Files
CapacityReport/static/lib/monaco/vs/assets/ts.worker.77b7bdc2.js
T

51332 lines
5.8 MiB
Plaintext

var c0t=Object.defineProperty;var u0t=(XD,_A,aS)=>_A in XD?c0t(XD,_A,{enumerable:!0,configurable:!0,writable:!0,value:aS}):XD[_A]=aS;var D8=(XD,_A,aS)=>(u0t(XD,typeof _A!="symbol"?_A+"":_A,aS),aS);(function(){var CEe,PEe,MEe,LEe;"use strict";class XD{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(g){setTimeout(()=>{throw g.stack?CM.isErrorNoTelemetry(g)?new CM(g.message+`
`+g.stack):new Error(g.message+`
`+g.stack):g},0)}}emit(g){this.listeners.forEach(S=>{S(g)})}onUnexpectedError(g){this.unexpectedErrorHandler(g),this.emit(g)}onUnexpectedExternalError(g){this.unexpectedErrorHandler(g)}}const _A=new XD;function aS(_){KWe(_)||_A.onUnexpectedError(_)}function Jte(_){if(_ instanceof Error){const{name:g,message:S,cause:w}=_,H=_.stacktrace||_.stack;return{$isError:!0,name:g,message:S,stack:H,noTelemetry:CM.isErrorNoTelemetry(_),cause:w?Jte(w):void 0,code:_.code}}return _}const Kte="Canceled";function KWe(_){return _ instanceof c0e?!0:_ instanceof Error&&_.name===Kte&&_.message===Kte}class c0e extends Error{constructor(){super(Kte),this.name=this.message}}class CM extends Error{constructor(g){super(g),this.name="CodeExpectedError"}static fromError(g){if(g instanceof CM)return g;const S=new CM;return S.message=g.message,S.stack=g.stack,S}static isErrorNoTelemetry(g){return g.name==="CodeExpectedError"}}class ch extends Error{constructor(g){super(g||"An unexpected bug occurred."),Object.setPrototypeOf(this,ch.prototype)}}function XWe(_,g){const S=this;let w=!1,H;return function(){if(w)return H;if(w=!0,g)try{H=_.apply(S,arguments)}finally{g()}else H=_.apply(S,arguments);return H}}function YWe(_,g="Unreachable"){throw new Error(g)}function $We(_,g="unexpected state"){if(!_)throw typeof g=="string"?new ch(`Assertion Failed: ${g}`):g}function qB(_){if(!_()){debugger;_(),aS(new ch("Assertion Failed"))}}function u0e(_,g){let S=0;for(;S<_.length-1;){const w=_[S],H=_[S+1];if(!g(w,H))return!1;S++}return!0}function QWe(_){return typeof _=="string"}function ZWe(_){return!!_&&typeof _[Symbol.iterator]=="function"}var JB;(function(_){function g(Mn){return!!Mn&&typeof Mn=="object"&&typeof Mn[Symbol.iterator]=="function"}_.is=g;const S=Object.freeze([]);function w(){return S}_.empty=w;function*H(Mn){yield Mn}_.single=H;function ue(Mn){return g(Mn)?Mn:H(Mn)}_.wrap=ue;function Ae(Mn){return Mn||S}_.from=Ae;function*Be(Mn){for(let Ni=Mn.length-1;Ni>=0;Ni--)yield Mn[Ni]}_.reverse=Be;function at(Mn){return!Mn||Mn[Symbol.iterator]().next().done===!0}_.isEmpty=at;function Pe(Mn){return Mn[Symbol.iterator]().next().value}_.first=Pe;function Ve(Mn,Ni){let Mo=0;for(const Ca of Mn)if(Ni(Ca,Mo++))return!0;return!1}_.some=Ve;function Ht(Mn,Ni){let Mo=0;for(const Ca of Mn)if(!Ni(Ca,Mo++))return!1;return!0}_.every=Ht;function $t(Mn,Ni){for(const Mo of Mn)if(Ni(Mo))return Mo}_.find=$t;function*ar(Mn,Ni){for(const Mo of Mn)Ni(Mo)&&(yield Mo)}_.filter=ar;function*Fn(Mn,Ni){let Mo=0;for(const Ca of Mn)yield Ni(Ca,Mo++)}_.map=Fn;function*In(Mn,Ni){let Mo=0;for(const Ca of Mn)yield*Ni(Ca,Mo++)}_.flatMap=In;function*Oi(...Mn){for(const Ni of Mn)ZWe(Ni)?yield*Ni:yield Ni}_.concat=Oi;function Bn(Mn,Ni,Mo){let Ca=Mo;for(const Vn of Mn)Ca=Ni(Ca,Vn);return Ca}_.reduce=Bn;function un(Mn){let Ni=0;for(const Mo of Mn)Ni++;return Ni}_.length=un;function*Mi(Mn,Ni,Mo=Mn.length){for(Ni<-Mn.length&&(Ni=0),Ni<0&&(Ni+=Mn.length),Mo<0?Mo+=Mn.length:Mo>Mn.length&&(Mo=Mn.length);Ni<Mo;Ni++)yield Mn[Ni]}_.slice=Mi;function Ji(Mn,Ni=Number.POSITIVE_INFINITY){const Mo=[];if(Ni===0)return[Mo,Mn];const Ca=Mn[Symbol.iterator]();for(let Vn=0;Vn<Ni;Vn++){const Si=Ca.next();if(Si.done)return[Mo,_.empty()];Mo.push(Si.value)}return[Mo,{[Symbol.iterator](){return Ca}}]}_.consume=Ji;async function as(Mn){const Ni=[];for await(const Mo of Mn)Ni.push(Mo);return Ni}_.asyncToArray=as;async function rl(Mn){let Ni=[];for await(const Mo of Mn)Ni=Ni.concat(Mo);return Ni}_.asyncToArrayFlat=rl})(JB||(JB={}));let hA=null;function Xte(_){return hA==null||hA.trackDisposable(_),_}function Yte(_){hA==null||hA.markAsDisposed(_)}function d0e(_,g){hA==null||hA.setParent(_,g)}function p0e(_){if(JB.is(_)){const g=[];for(const S of _)if(S)try{S.dispose()}catch(w){g.push(w)}if(g.length===1)throw g[0];if(g.length>1)throw new AggregateError(g,"Encountered errors while disposing of store");return Array.isArray(_)?[]:_}else if(_)return _.dispose(),_}function eFe(..._){return KB(()=>p0e(_))}function KB(_){const g=Xte({dispose:XWe(()=>{Yte(g),_()})});return g}const pG=class{constructor(){this._toDispose=new Set,this._isDisposed=!1,Xte(this)}dispose(){this._isDisposed||(Yte(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{p0e(this._toDispose)}finally{this._toDispose.clear()}}add(g){if(!g||g===YD.None)return g;if(g===this)throw new Error("Cannot register a disposable on itself!");return d0e(g,this),this._isDisposed?pG.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(g),g}delete(g){if(!!g){if(g===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(g),g.dispose()}}};let C8=pG;(()=>{pG.DISABLE_DISPOSED_WARNING=!1})();const One=class{constructor(){this._store=new C8,Xte(this),d0e(this._store,this)}dispose(){Yte(this),this._store.dispose()}_register(g){if(g===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(g)}};let YD=One;(()=>{One.None=Object.freeze({dispose(){}})})();const HM=class{constructor(g){this.element=g,this.next=HM.Undefined,this.prev=HM.Undefined}};let _p=HM;(()=>{HM.Undefined=new HM(void 0)})();class tFe{constructor(){this._first=_p.Undefined,this._last=_p.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===_p.Undefined}clear(){let g=this._first;for(;g!==_p.Undefined;){const S=g.next;g.prev=_p.Undefined,g.next=_p.Undefined,g=S}this._first=_p.Undefined,this._last=_p.Undefined,this._size=0}unshift(g){return this._insert(g,!1)}push(g){return this._insert(g,!0)}_insert(g,S){const w=new _p(g);if(this._first===_p.Undefined)this._first=w,this._last=w;else if(S){const ue=this._last;this._last=w,w.prev=ue,ue.next=w}else{const ue=this._first;this._first=w,w.next=ue,ue.prev=w}this._size+=1;let H=!1;return()=>{H||(H=!0,this._remove(w))}}shift(){if(this._first!==_p.Undefined){const g=this._first.element;return this._remove(this._first),g}}pop(){if(this._last!==_p.Undefined){const g=this._last.element;return this._remove(this._last),g}}_remove(g){if(g.prev!==_p.Undefined&&g.next!==_p.Undefined){const S=g.prev;S.next=g.next,g.next.prev=S}else g.prev===_p.Undefined&&g.next===_p.Undefined?(this._first=_p.Undefined,this._last=_p.Undefined):g.next===_p.Undefined?(this._last=this._last.prev,this._last.next=_p.Undefined):g.prev===_p.Undefined&&(this._first=this._first.next,this._first.prev=_p.Undefined);this._size-=1}*[Symbol.iterator](){let g=this._first;for(;g!==_p.Undefined;)yield g.element,g=g.next}}const nFe=globalThis.performance.now.bind(globalThis.performance);class XB{static create(g){return new XB(g)}constructor(g){this._now=g===!1?Date.now:nFe,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var YB;(function(_){_.None=()=>YD.None;function g(Si,Yi){return $t(Si,()=>{},0,void 0,!0,void 0,Yi)}_.defer=g;function S(Si){return(Yi,Wt=null,Xo)=>{let mo=!1,Oa;return Oa=Si(qi=>{if(!mo)return Oa?Oa.dispose():mo=!0,Yi.call(Wt,qi)},null,Xo),mo&&Oa.dispose(),Oa}}_.once=S;function w(Si,Yi){return _.once(_.filter(Si,Yi))}_.onceIf=w;function H(Si,Yi,Wt){return Ve((Xo,mo=null,Oa)=>Si(qi=>Xo.call(mo,Yi(qi)),null,Oa),Wt)}_.map=H;function ue(Si,Yi,Wt){return Ve((Xo,mo=null,Oa)=>Si(qi=>{Yi(qi),Xo.call(mo,qi)},null,Oa),Wt)}_.forEach=ue;function Ae(Si,Yi,Wt){return Ve((Xo,mo=null,Oa)=>Si(qi=>Yi(qi)&&Xo.call(mo,qi),null,Oa),Wt)}_.filter=Ae;function Be(Si){return Si}_.signal=Be;function at(...Si){return(Yi,Wt=null,Xo)=>{const mo=eFe(...Si.map(Oa=>Oa(qi=>Yi.call(Wt,qi))));return Ht(mo,Xo)}}_.any=at;function Pe(Si,Yi,Wt,Xo){let mo=Wt;return H(Si,Oa=>(mo=Yi(mo,Oa),mo),Xo)}_.reduce=Pe;function Ve(Si,Yi){let Wt;const Xo={onWillAddFirstListener(){Wt=Si(mo.fire,mo)},onDidRemoveLastListener(){Wt==null||Wt.dispose()}},mo=new S1(Xo);return Yi==null||Yi.add(mo),mo.event}function Ht(Si,Yi){return Yi instanceof Array?Yi.push(Si):Yi&&Yi.add(Si),Si}function $t(Si,Yi,Wt=100,Xo=!1,mo=!1,Oa,qi){let Zd,Zf,D1,SA=0,Vi;const TA={leakWarningThreshold:Oa,onWillAddFirstListener(){Zd=Si(AA=>{SA++,Zf=Yi(Zf,AA),Xo&&!D1&&(Gx.fire(Zf),Zf=void 0),Vi=()=>{const Rv=Zf;Zf=void 0,D1=void 0,(!Xo||SA>1)&&Gx.fire(Rv),SA=0},typeof Wt=="number"?(D1&&clearTimeout(D1),D1=setTimeout(Vi,Wt)):D1===void 0&&(D1=null,queueMicrotask(Vi))})},onWillRemoveListener(){mo&&SA>0&&(Vi==null||Vi())},onDidRemoveLastListener(){Vi=void 0,Zd.dispose()}},Gx=new S1(TA);return qi==null||qi.add(Gx),Gx.event}_.debounce=$t;function ar(Si,Yi=0,Wt){return _.debounce(Si,(Xo,mo)=>Xo?(Xo.push(mo),Xo):[mo],Yi,void 0,!0,void 0,Wt)}_.accumulate=ar;function Fn(Si,Yi=(Xo,mo)=>Xo===mo,Wt){let Xo=!0,mo;return Ae(Si,Oa=>{const qi=Xo||!Yi(Oa,mo);return Xo=!1,mo=Oa,qi},Wt)}_.latch=Fn;function In(Si,Yi,Wt){return[_.filter(Si,Yi,Wt),_.filter(Si,Xo=>!Yi(Xo),Wt)]}_.split=In;function Oi(Si,Yi=!1,Wt=[],Xo){let mo=Wt.slice(),Oa=Si(Zf=>{mo?mo.push(Zf):Zd.fire(Zf)});Xo&&Xo.add(Oa);const qi=()=>{mo==null||mo.forEach(Zf=>Zd.fire(Zf)),mo=null},Zd=new S1({onWillAddFirstListener(){Oa||(Oa=Si(Zf=>Zd.fire(Zf)),Xo&&Xo.add(Oa))},onDidAddFirstListener(){mo&&(Yi?setTimeout(qi):qi())},onDidRemoveLastListener(){Oa&&Oa.dispose(),Oa=null}});return Xo&&Xo.add(Zd),Zd.event}_.buffer=Oi;function Bn(Si,Yi){return(Xo,mo,Oa)=>{const qi=Yi(new Mi);return Si(function(Zd){const Zf=qi.evaluate(Zd);Zf!==un&&Xo.call(mo,Zf)},void 0,Oa)}}_.chain=Bn;const un=Symbol("HaltChainable");class Mi{constructor(){this.steps=[]}map(Yi){return this.steps.push(Yi),this}forEach(Yi){return this.steps.push(Wt=>(Yi(Wt),Wt)),this}filter(Yi){return this.steps.push(Wt=>Yi(Wt)?Wt:un),this}reduce(Yi,Wt){let Xo=Wt;return this.steps.push(mo=>(Xo=Yi(Xo,mo),Xo)),this}latch(Yi=(Wt,Xo)=>Wt===Xo){let Wt=!0,Xo;return this.steps.push(mo=>{const Oa=Wt||!Yi(mo,Xo);return Wt=!1,Xo=mo,Oa?mo:un}),this}evaluate(Yi){for(const Wt of this.steps)if(Yi=Wt(Yi),Yi===un)break;return Yi}}function Ji(Si,Yi,Wt=Xo=>Xo){const Xo=(...Zd)=>qi.fire(Wt(...Zd)),mo=()=>Si.on(Yi,Xo),Oa=()=>Si.removeListener(Yi,Xo),qi=new S1({onWillAddFirstListener:mo,onDidRemoveLastListener:Oa});return qi.event}_.fromNodeEventEmitter=Ji;function as(Si,Yi,Wt=Xo=>Xo){const Xo=(...Zd)=>qi.fire(Wt(...Zd)),mo=()=>Si.addEventListener(Yi,Xo),Oa=()=>Si.removeEventListener(Yi,Xo),qi=new S1({onWillAddFirstListener:mo,onDidRemoveLastListener:Oa});return qi.event}_.fromDOMEventEmitter=as;function rl(Si,Yi){let Wt;const Xo=new Promise((mo,Oa)=>{const qi=S(Si)(mo,null,Yi);Wt=()=>qi.dispose()});return Xo.cancel=Wt,Xo}_.toPromise=rl;function Mn(Si,Yi){return Si(Wt=>Yi.fire(Wt))}_.forward=Mn;function Ni(Si,Yi,Wt){return Yi(Wt),Si(Xo=>Yi(Xo))}_.runAndSubscribe=Ni;class Mo{constructor(Yi,Wt){this._observable=Yi,this._counter=0,this._hasChanged=!1;const Xo={onWillAddFirstListener:()=>{Yi.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{Yi.removeObserver(this)}};this.emitter=new S1(Xo),Wt&&Wt.add(this.emitter)}beginUpdate(Yi){this._counter++}handlePossibleChange(Yi){}handleChange(Yi,Wt){this._hasChanged=!0}endUpdate(Yi){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Ca(Si,Yi){return new Mo(Si,Yi).emitter.event}_.fromObservable=Ca;function Vn(Si){return(Yi,Wt,Xo)=>{let mo=0,Oa=!1;const qi={beginUpdate(){mo++},endUpdate(){mo--,mo===0&&(Si.reportChanges(),Oa&&(Oa=!1,Yi.call(Wt)))},handlePossibleChange(){},handleChange(){Oa=!0}};Si.addObserver(qi),Si.reportChanges();const Zd={dispose(){Si.removeObserver(qi)}};return Xo instanceof C8?Xo.add(Zd):Array.isArray(Xo)&&Xo.push(Zd),Zd}}_.fromObservableLight=Vn})(YB||(YB={}));const qM=class{constructor(g){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${g}_${qM._idPool++}`,qM.all.add(this)}start(g){this._stopWatch=new XB,this.listenerCount=g}stop(){if(this._stopWatch){const g=this._stopWatch.elapsed();this.durations.push(g),this.elapsedOverall+=g,this.invocationCount+=1,this._stopWatch=void 0}}};let $te=qM;(()=>{qM.all=new Set})(),(()=>{qM._idPool=0})();let rFe=-1;const fG=class{constructor(g,S,w=(fG._idPool++).toString(16).padStart(3,"0")){this._errorHandler=g,this.threshold=S,this.name=w,this._warnCountdown=0}dispose(){var g;(g=this._stacks)==null||g.clear()}check(g,S){const w=this.threshold;if(w<=0||S<w)return;this._stacks||(this._stacks=new Map);const H=this._stacks.get(g.value)||0;if(this._stacks.set(g.value,H+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=w*.5;const[ue,Ae]=this.getMostFrequentStack(),Be=`[${this.name}] potential listener LEAK detected, having ${S} listeners already. MOST frequent listener (${Ae}):`;console.warn(Be),console.warn(ue);const at=new iFe(Be,ue);this._errorHandler(at)}return()=>{const ue=this._stacks.get(g.value)||0;this._stacks.set(g.value,ue-1)}}getMostFrequentStack(){if(!this._stacks)return;let g,S=0;for(const[w,H]of this._stacks)(!g||S<H)&&(g=[w,H],S=H);return g}};let Qte=fG;(()=>{fG._idPool=1})();class Zte{static create(){var S;const g=new Error;return new Zte((S=g.stack)!=null?S:"")}constructor(g){this.value=g}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}}class iFe extends Error{constructor(g,S){super(g),this.name="ListenerLeakError",this.stack=S}}class oFe extends Error{constructor(g,S){super(g),this.name="ListenerRefusalError",this.stack=S}}class ene{constructor(g){this.value=g}}const aFe=2;class S1{constructor(g){var S,w,H,ue,Ae,Be;this._size=0,this._options=g,this._leakageMon=(S=this._options)!=null&&S.leakWarningThreshold?new Qte((w=g==null?void 0:g.onListenerError)!=null?w:aS,(ue=(H=this._options)==null?void 0:H.leakWarningThreshold)!=null?ue:rFe):void 0,this._perfMon=(Ae=this._options)!=null&&Ae._profName?new $te(this._options._profName):void 0,this._deliveryQueue=(Be=this._options)==null?void 0:Be.deliveryQueue}dispose(){var g,S,w,H;this._disposed||(this._disposed=!0,((g=this._deliveryQueue)==null?void 0:g.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(w=(S=this._options)==null?void 0:S.onDidRemoveLastListener)==null||w.call(S),(H=this._leakageMon)==null||H.dispose())}get event(){var g;return(g=this._event)!=null||(this._event=(S,w,H)=>{var at,Pe,Ve,Ht,$t,ar,Fn,In,Oi;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const Bn=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(Bn);const un=(at=this._leakageMon.getMostFrequentStack())!=null?at:["UNKNOWN stack",-1],Mi=new oFe(`${Bn}. HINT: Stack shows most frequent listener (${un[1]}-times)`,un[0]);return(((Pe=this._options)==null?void 0:Pe.onListenerError)||aS)(Mi),YD.None}if(this._disposed)return YD.None;w&&(S=S.bind(w));const ue=new ene(S);let Ae;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(ue.stack=Zte.create(),Ae=this._leakageMon.check(ue.stack,this._size+1)),this._listeners?this._listeners instanceof ene?((Fn=this._deliveryQueue)!=null||(this._deliveryQueue=new sFe),this._listeners=[this._listeners,ue]):this._listeners.push(ue):((Ht=(Ve=this._options)==null?void 0:Ve.onWillAddFirstListener)==null||Ht.call(Ve,this),this._listeners=ue,(ar=($t=this._options)==null?void 0:$t.onDidAddFirstListener)==null||ar.call($t,this)),(Oi=(In=this._options)==null?void 0:In.onDidAddListener)==null||Oi.call(In,this),this._size++;const Be=KB(()=>{Ae==null||Ae(),this._removeListener(ue)});return H instanceof C8?H.add(Be):Array.isArray(H)&&H.push(Be),Be}),this._event}_removeListener(g){var ue,Ae,Be,at;if((Ae=(ue=this._options)==null?void 0:ue.onWillRemoveListener)==null||Ae.call(ue,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(at=(Be=this._options)==null?void 0:Be.onDidRemoveLastListener)==null||at.call(Be,this),this._size=0;return}const S=this._listeners,w=S.indexOf(g);if(w===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,S[w]=void 0;const H=this._deliveryQueue.current===this;if(this._size*aFe<=S.length){let Pe=0;for(let Ve=0;Ve<S.length;Ve++)S[Ve]?S[Pe++]=S[Ve]:H&&Pe<this._deliveryQueue.end&&(this._deliveryQueue.end--,Pe<this._deliveryQueue.i&&this._deliveryQueue.i--);S.length=Pe}}_deliver(g,S){var H;if(!g)return;const w=((H=this._options)==null?void 0:H.onListenerError)||aS;if(!w){g.value(S);return}try{g.value(S)}catch(ue){w(ue)}}_deliverQueue(g){const S=g.current._listeners;for(;g.i<g.end;)this._deliver(S[g.i++],g.value);g.reset()}fire(g){var S,w,H,ue;if((S=this._deliveryQueue)!=null&&S.current&&(this._deliverQueue(this._deliveryQueue),(w=this._perfMon)==null||w.stop()),(H=this._perfMon)==null||H.start(this._size),this._listeners)if(this._listeners instanceof ene)this._deliver(this._listeners,g);else{const Ae=this._deliveryQueue;Ae.enqueue(this,g,this._listeners.length),this._deliverQueue(Ae)}(ue=this._perfMon)==null||ue.stop()}hasListeners(){return this._size>0}}class sFe{constructor(){this.i=-1,this.end=0}enqueue(g,S,w){this.i=0,this.end=w,this.current=g,this.value=S}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function lFe(){return globalThis._VSCODE_NLS_MESSAGES}function f0e(){return globalThis._VSCODE_NLS_LANGUAGE}const cFe=f0e()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function m0e(_,g){let S;return g.length===0?S=_:S=_.replace(/\{(\d+)\}/g,(w,H)=>{const ue=H[0],Ae=g[ue];let Be=w;return typeof Ae=="string"?Be=Ae:(typeof Ae=="number"||typeof Ae=="boolean"||Ae===void 0||Ae===null)&&(Be=String(Ae)),Be}),cFe&&(S="\uFF3B"+S.replace(/[aouei]/g,"$&$&")+"\uFF3D"),S}function xs(_,g,...S){return m0e(typeof _=="number"?uFe(_,g):g,S)}function uFe(_,g){var w;const S=(w=lFe())==null?void 0:w[_];if(typeof S!="string"){if(typeof g=="string")return g;throw new Error(`!!! NLS MISSING: ${_} !!!`)}return S}const PM="en";let tne=!1,nne=!1,rne=!1,$B,ine=PM,_0e=PM,dFe,T1;const $D=globalThis;let S_;typeof $D.vscode<"u"&&typeof $D.vscode.process<"u"?S_=$D.vscode.process:typeof process<"u"&&typeof((CEe=process==null?void 0:process.versions)==null?void 0:CEe.node)=="string"&&(S_=process);const pFe=typeof((PEe=S_==null?void 0:S_.versions)==null?void 0:PEe.electron)=="string"&&(S_==null?void 0:S_.type)==="renderer";if(typeof S_=="object"){tne=S_.platform==="win32",nne=S_.platform==="darwin",rne=S_.platform==="linux",rne&&!!S_.env.SNAP&&S_.env.SNAP_REVISION,!!S_.env.CI||!!S_.env.BUILD_ARTIFACTSTAGINGDIRECTORY||S_.env.GITHUB_WORKSPACE,$B=PM,ine=PM;const _=S_.env.VSCODE_NLS_CONFIG;if(_)try{const g=JSON.parse(_);$B=g.userLocale,_0e=g.osLocale,ine=g.resolvedLanguage||PM,dFe=(MEe=g.languagePack)==null?void 0:MEe.translationsConfigFile}catch{}}else typeof navigator=="object"&&!pFe?(T1=navigator.userAgent,tne=T1.indexOf("Windows")>=0,nne=T1.indexOf("Macintosh")>=0,(T1.indexOf("Macintosh")>=0||T1.indexOf("iPad")>=0||T1.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,rne=T1.indexOf("Linux")>=0,(T1==null?void 0:T1.indexOf("Mobi"))>=0,ine=f0e()||PM,$B=navigator.language.toLowerCase(),_0e=$B):console.error("Unable to resolve platform.");const P8=tne,fFe=nne,sS=T1,mFe=typeof $D.postMessage=="function"&&!$D.importScripts;(()=>{if(mFe){const _=[];$D.addEventListener("message",S=>{if(S.data&&S.data.vscodeScheduleAsyncWork)for(let w=0,H=_.length;w<H;w++){const ue=_[w];if(ue.id===S.data.vscodeScheduleAsyncWork){_.splice(w,1),ue.callback();return}}});let g=0;return S=>{const w=++g;_.push({id:w,callback:S}),$D.postMessage({vscodeScheduleAsyncWork:w},"*")}}return _=>setTimeout(_)})();const _Fe=!!(sS&&sS.indexOf("Chrome")>=0);sS&&sS.indexOf("Firefox")>=0,!_Fe&&sS&&sS.indexOf("Safari")>=0,sS&&sS.indexOf("Edg/")>=0,sS&&sS.indexOf("Android")>=0;function hFe(_){return _}class gFe{constructor(g,S){this.lastCache=void 0,this.lastArgKey=void 0,typeof g=="function"?(this._fn=g,this._computeKey=hFe):(this._fn=S,this._computeKey=g.getCacheKey)}get(g){const S=this._computeKey(g);return this.lastArgKey!==S&&(this.lastArgKey=S,this.lastCache=this._fn(g)),this.lastCache}}var QD;(function(_){_[_.Uninitialized=0]="Uninitialized",_[_.Running=1]="Running",_[_.Completed=2]="Completed"})(QD||(QD={}));class one{constructor(g){this.executor=g,this._state=QD.Uninitialized}get value(){if(this._state===QD.Uninitialized){this._state=QD.Running;try{this._value=this.executor()}catch(g){this._error=g}finally{this._state=QD.Completed}}else if(this._state===QD.Running)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function vFe(_){return _.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function yFe(_){return _.source==="^"||_.source==="^$"||_.source==="$"||_.source==="^\\s*$"?!1:!!(_.exec("")&&_.lastIndex===0)}function bFe(_){return _.split(/\r\n|\r|\n/)}function EFe(_){for(let g=0,S=_.length;g<S;g++){const w=_.charCodeAt(g);if(w!==32&&w!==9)return g}return-1}function SFe(_,g=_.length-1){for(let S=g;S>=0;S--){const w=_.charCodeAt(S);if(w!==32&&w!==9)return S}return-1}function h0e(_){return _>=65&&_<=90}function TFe(_,g){const S=Math.min(_.length,g.length);let w;for(w=0;w<S;w++)if(_.charCodeAt(w)!==g.charCodeAt(w))return w;return S}function AFe(_,g){const S=Math.min(_.length,g.length);let w;const H=_.length-1,ue=g.length-1;for(w=0;w<S;w++)if(_.charCodeAt(H-w)!==g.charCodeAt(ue-w))return w;return S}function QB(_){return 55296<=_&&_<=56319}function ane(_){return 56320<=_&&_<=57343}function g0e(_,g){return(_-55296<<10)+(g-56320)+65536}function IFe(_,g,S){const w=_.charCodeAt(S);if(QB(w)&&S+1<g){const H=_.charCodeAt(S+1);if(ane(H))return g0e(w,H)}return w}const xFe=/^[\t\n\r\x20-\x7E]*$/;function RFe(_){return xFe.test(_)}const nN=class{static getInstance(){return nN._INSTANCE||(nN._INSTANCE=new nN),nN._INSTANCE}constructor(){this._data=DFe()}getGraphemeBreakType(g){if(g<32)return g===10?3:g===13?2:4;if(g<127)return 0;const S=this._data,w=S.length/3;let H=1;for(;H<=w;)if(g<S[3*H])H=2*H;else if(g>S[3*H+1])H=2*H+1;else return S[3*H+2];return 0}};let v0e=nN;(()=>{nN._INSTANCE=null})();function DFe(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}const cS=class{static getInstance(g){return cS.cache.get(Array.from(g))}static getLocales(){return cS._locales.value}constructor(g){this.confusableDictionary=g}isAmbiguous(g){return this.confusableDictionary.has(g)}getPrimaryConfusable(g){return this.confusableDictionary.get(g)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};let M8=cS;(()=>{cS.ambiguousCharacterData=new one(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}'))})(),(()=>{cS.cache=new gFe({getCacheKey:JSON.stringify},g=>{function S(Ve){const Ht=new Map;for(let $t=0;$t<Ve.length;$t+=2)Ht.set(Ve[$t],Ve[$t+1]);return Ht}function w(Ve,Ht){const $t=new Map(Ve);for(const[ar,Fn]of Ht)$t.set(ar,Fn);return $t}function H(Ve,Ht){if(!Ve)return Ht;const $t=new Map;for(const[ar,Fn]of Ve)Ht.has(ar)&&$t.set(ar,Fn);return $t}const ue=cS.ambiguousCharacterData.value;let Ae=g.filter(Ve=>!Ve.startsWith("_")&&Ve in ue);Ae.length===0&&(Ae=["_default"]);let Be;for(const Ve of Ae){const Ht=S(ue[Ve]);Be=H(Be,Ht)}const at=S(ue._common),Pe=w(at,Be);return new cS(Pe)})})(),(()=>{cS._locales=new one(()=>Object.keys(cS.ambiguousCharacterData.value).filter(g=>!g.startsWith("_")))})();const JM=class{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static getData(){return this._data||(this._data=new Set([...Object.values(JM.getRawData())].flat())),this._data}static isInvisibleCharacter(g){return JM.getData().has(g)}static get codePoints(){return JM.getData()}};let L8=JM;(()=>{JM._data=void 0})();const sne="default",NFe="$initialize";class CFe{constructor(g,S,w,H,ue){this.vsWorker=g,this.req=S,this.channel=w,this.method=H,this.args=ue,this.type=0}}class y0e{constructor(g,S,w,H){this.vsWorker=g,this.seq=S,this.res=w,this.err=H,this.type=1}}class PFe{constructor(g,S,w,H,ue){this.vsWorker=g,this.req=S,this.channel=w,this.eventName=H,this.arg=ue,this.type=2}}class MFe{constructor(g,S,w){this.vsWorker=g,this.req=S,this.event=w,this.type=3}}class LFe{constructor(g,S){this.vsWorker=g,this.req=S,this.type=4}}class kFe{constructor(g){this._workerId=-1,this._handler=g,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(g){this._workerId=g}sendMessage(g,S,w){const H=String(++this._lastSentReq);return new Promise((ue,Ae)=>{this._pendingReplies[H]={resolve:ue,reject:Ae},this._send(new CFe(this._workerId,H,g,S,w))})}listen(g,S,w){let H=null;const ue=new S1({onWillAddFirstListener:()=>{H=String(++this._lastSentReq),this._pendingEmitters.set(H,ue),this._send(new PFe(this._workerId,H,g,S,w))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(H),this._send(new LFe(this._workerId,H)),H=null}});return ue.event}handleMessage(g){!g||!g.vsWorker||this._workerId!==-1&&g.vsWorker!==this._workerId||this._handleMessage(g)}createProxyToRemoteChannel(g,S){const w={get:(H,ue)=>(typeof ue=="string"&&!H[ue]&&(E0e(ue)?H[ue]=Ae=>this.listen(g,ue,Ae):b0e(ue)?H[ue]=this.listen(g,ue,void 0):ue.charCodeAt(0)===36&&(H[ue]=async(...Ae)=>(await(S==null?void 0:S()),this.sendMessage(g,ue,Ae)))),H[ue])};return new Proxy(Object.create(null),w)}_handleMessage(g){switch(g.type){case 1:return this._handleReplyMessage(g);case 0:return this._handleRequestMessage(g);case 2:return this._handleSubscribeEventMessage(g);case 3:return this._handleEventMessage(g);case 4:return this._handleUnsubscribeEventMessage(g)}}_handleReplyMessage(g){if(!this._pendingReplies[g.seq]){console.warn("Got reply to unknown seq");return}const S=this._pendingReplies[g.seq];if(delete this._pendingReplies[g.seq],g.err){let w=g.err;g.err.$isError&&(w=new Error,w.name=g.err.name,w.message=g.err.message,w.stack=g.err.stack),S.reject(w);return}S.resolve(g.res)}_handleRequestMessage(g){const S=g.req;this._handler.handleMessage(g.channel,g.method,g.args).then(H=>{this._send(new y0e(this._workerId,S,H,void 0))},H=>{H.detail instanceof Error&&(H.detail=Jte(H.detail)),this._send(new y0e(this._workerId,S,void 0,Jte(H)))})}_handleSubscribeEventMessage(g){const S=g.req,w=this._handler.handleEvent(g.channel,g.eventName,g.arg)(H=>{this._send(new MFe(this._workerId,S,H))});this._pendingEvents.set(S,w)}_handleEventMessage(g){if(!this._pendingEmitters.has(g.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(g.req).fire(g.event)}_handleUnsubscribeEventMessage(g){if(!this._pendingEvents.has(g.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(g.req).dispose(),this._pendingEvents.delete(g.req)}_send(g){const S=[];if(g.type===0)for(let w=0;w<g.args.length;w++)g.args[w]instanceof ArrayBuffer&&S.push(g.args[w]);else g.type===1&&g.res instanceof ArrayBuffer&&S.push(g.res);this._handler.sendMessage(g,S)}}function b0e(_){return _[0]==="o"&&_[1]==="n"&&h0e(_.charCodeAt(2))}function E0e(_){return/^onDynamic/.test(_)&&h0e(_.charCodeAt(9))}class wFe{constructor(g,S){this._localChannels=new Map,this._remoteChannels=new Map,this._protocol=new kFe({sendMessage:(w,H)=>{g(w,H)},handleMessage:(w,H,ue)=>this._handleMessage(w,H,ue),handleEvent:(w,H,ue)=>this._handleEvent(w,H,ue)}),this.requestHandler=S(this)}onmessage(g){this._protocol.handleMessage(g)}_handleMessage(g,S,w){if(g===sne&&S===NFe)return this.initialize(w[0]);const H=g===sne?this.requestHandler:this._localChannels.get(g);if(!H)return Promise.reject(new Error(`Missing channel ${g} on worker thread`));if(typeof H[S]!="function")return Promise.reject(new Error(`Missing method ${S} on worker thread channel ${g}`));try{return Promise.resolve(H[S].apply(H,w))}catch(ue){return Promise.reject(ue)}}_handleEvent(g,S,w){const H=g===sne?this.requestHandler:this._localChannels.get(g);if(!H)throw new Error(`Missing channel ${g} on worker thread`);if(E0e(S)){const ue=H[S].call(H,w);if(typeof ue!="function")throw new Error(`Missing dynamic event ${S} on request handler.`);return ue}if(b0e(S)){const ue=H[S];if(typeof ue!="function")throw new Error(`Missing event ${S} on request handler.`);return ue}throw new Error(`Malformed event name ${S}`)}getChannel(g){if(!this._remoteChannels.has(g)){const S=this._protocol.createProxyToRemoteChannel(g);this._remoteChannels.set(g,S)}return this._remoteChannels.get(g)}async initialize(g){this._protocol.setWorkerId(g)}}let S0e=!1;function OFe(_){if(S0e)throw new Error("WebWorker already initialized!");S0e=!0;const g=new wFe(S=>globalThis.postMessage(S),S=>_(S));return globalThis.onmessage=S=>{g.onmessage(S.data)},g}class wx{constructor(g,S,w,H){this.originalStart=g,this.originalLength=S,this.modifiedStart=w,this.modifiedLength=H}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}const T0e=typeof Buffer<"u";new one(()=>new Uint8Array(256));let lne;class cne{static wrap(g){return T0e&&!Buffer.isBuffer(g)&&(g=Buffer.from(g.buffer,g.byteOffset,g.byteLength)),new cne(g)}constructor(g){this.buffer=g,this.byteLength=this.buffer.byteLength}toString(){return T0e?this.buffer.toString():(lne||(lne=new TextDecoder),lne.decode(this.buffer))}}const A0e="0123456789abcdef";function WFe({buffer:_}){let g="";for(let S=0;S<_.length;S++){const w=_[S];g+=A0e[w>>>4],g+=A0e[w&15]}return g}function I0e(_,g){return(g<<5)-g+_|0}function FFe(_,g){g=I0e(149417,g);for(let S=0,w=_.length;S<w;S++)g=I0e(_.charCodeAt(S),g);return g}function une(_,g,S=32){const w=S-g,H=~((1<<w)-1);return(_<<g|(H&_)>>>w)>>>0}function k8(_,g=32){return _ instanceof ArrayBuffer?WFe(cne.wrap(new Uint8Array(_))):(_>>>0).toString(16).padStart(g/4,"0")}const mG=class{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(g){const S=g.length;if(S===0)return;const w=this._buff;let H=this._buffLen,ue=this._leftoverHighSurrogate,Ae,Be;for(ue!==0?(Ae=ue,Be=-1,ue=0):(Ae=g.charCodeAt(0),Be=0);;){let at=Ae;if(QB(Ae))if(Be+1<S){const Pe=g.charCodeAt(Be+1);ane(Pe)?(Be++,at=g0e(Ae,Pe)):at=65533}else{ue=Ae;break}else ane(Ae)&&(at=65533);if(H=this._push(w,H,at),Be++,Be<S)Ae=g.charCodeAt(Be);else break}this._buffLen=H,this._leftoverHighSurrogate=ue}_push(g,S,w){return w<128?g[S++]=w:w<2048?(g[S++]=192|(w&1984)>>>6,g[S++]=128|(w&63)>>>0):w<65536?(g[S++]=224|(w&61440)>>>12,g[S++]=128|(w&4032)>>>6,g[S++]=128|(w&63)>>>0):(g[S++]=240|(w&1835008)>>>18,g[S++]=128|(w&258048)>>>12,g[S++]=128|(w&4032)>>>6,g[S++]=128|(w&63)>>>0),S>=64&&(this._step(),S-=64,this._totalLen+=64,g[0]=g[64+0],g[1]=g[64+1],g[2]=g[64+2]),S}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),k8(this._h0)+k8(this._h1)+k8(this._h2)+k8(this._h3)+k8(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));const g=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(g/4294967296),!1),this._buffDV.setUint32(60,g%4294967296,!1),this._step()}_step(){const g=mG._bigBlock32,S=this._buffDV;for(let Ht=0;Ht<64;Ht+=4)g.setUint32(Ht,S.getUint32(Ht,!1),!1);for(let Ht=64;Ht<320;Ht+=4)g.setUint32(Ht,une(g.getUint32(Ht-12,!1)^g.getUint32(Ht-32,!1)^g.getUint32(Ht-56,!1)^g.getUint32(Ht-64,!1),1),!1);let w=this._h0,H=this._h1,ue=this._h2,Ae=this._h3,Be=this._h4,at,Pe,Ve;for(let Ht=0;Ht<80;Ht++)Ht<20?(at=H&ue|~H&Ae,Pe=1518500249):Ht<40?(at=H^ue^Ae,Pe=1859775393):Ht<60?(at=H&ue|H&Ae|ue&Ae,Pe=2400959708):(at=H^ue^Ae,Pe=3395469782),Ve=une(w,5)+at+Be+Pe+g.getUint32(Ht*4,!1)&4294967295,Be=Ae,Ae=ue,ue=une(H,30),H=w,w=Ve;this._h0=this._h0+w&4294967295,this._h1=this._h1+H&4294967295,this._h2=this._h2+ue&4294967295,this._h3=this._h3+Ae&4294967295,this._h4=this._h4+Be&4294967295}};let x0e=mG;(()=>{mG._bigBlock32=new DataView(new ArrayBuffer(320))})();class R0e{constructor(g){this.source=g}getElements(){const g=this.source,S=new Int32Array(g.length);for(let w=0,H=g.length;w<H;w++)S[w]=g.charCodeAt(w);return S}}function zFe(_,g,S){return new Ox(new R0e(_),new R0e(g)).ComputeDiff(S).changes}class MM{static Assert(g,S){if(!g)throw new Error(S)}}class LM{static Copy(g,S,w,H,ue){for(let Ae=0;Ae<ue;Ae++)w[H+Ae]=g[S+Ae]}static Copy2(g,S,w,H,ue){for(let Ae=0;Ae<ue;Ae++)w[H+Ae]=g[S+Ae]}}class D0e{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 wx(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(g,S){this.m_originalStart=Math.min(this.m_originalStart,g),this.m_modifiedStart=Math.min(this.m_modifiedStart,S),this.m_originalCount++}AddModifiedElement(g,S){this.m_originalStart=Math.min(this.m_originalStart,g),this.m_modifiedStart=Math.min(this.m_modifiedStart,S),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Ox{constructor(g,S,w=null){this.ContinueProcessingPredicate=w,this._originalSequence=g,this._modifiedSequence=S;const[H,ue,Ae]=Ox._getElements(g),[Be,at,Pe]=Ox._getElements(S);this._hasStrings=Ae&&Pe,this._originalStringElements=H,this._originalElementsOrHash=ue,this._modifiedStringElements=Be,this._modifiedElementsOrHash=at,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(g){return g.length>0&&typeof g[0]=="string"}static _getElements(g){const S=g.getElements();if(Ox._isStringArray(S)){const w=new Int32Array(S.length);for(let H=0,ue=S.length;H<ue;H++)w[H]=FFe(S[H],0);return[S,w,!0]}return S instanceof Int32Array?[[],S,!1]:[[],new Int32Array(S),!1]}ElementsAreEqual(g,S){return this._originalElementsOrHash[g]!==this._modifiedElementsOrHash[S]?!1:this._hasStrings?this._originalStringElements[g]===this._modifiedStringElements[S]:!0}ElementsAreStrictEqual(g,S){if(!this.ElementsAreEqual(g,S))return!1;const w=Ox._getStrictElement(this._originalSequence,g),H=Ox._getStrictElement(this._modifiedSequence,S);return w===H}static _getStrictElement(g,S){return typeof g.getStrictElement=="function"?g.getStrictElement(S):null}OriginalElementsAreEqual(g,S){return this._originalElementsOrHash[g]!==this._originalElementsOrHash[S]?!1:this._hasStrings?this._originalStringElements[g]===this._originalStringElements[S]:!0}ModifiedElementsAreEqual(g,S){return this._modifiedElementsOrHash[g]!==this._modifiedElementsOrHash[S]?!1:this._hasStrings?this._modifiedStringElements[g]===this._modifiedStringElements[S]:!0}ComputeDiff(g){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,g)}_ComputeDiff(g,S,w,H,ue){const Ae=[!1];let Be=this.ComputeDiffRecursive(g,S,w,H,Ae);return ue&&(Be=this.PrettifyChanges(Be)),{quitEarly:Ae[0],changes:Be}}ComputeDiffRecursive(g,S,w,H,ue){for(ue[0]=!1;g<=S&&w<=H&&this.ElementsAreEqual(g,w);)g++,w++;for(;S>=g&&H>=w&&this.ElementsAreEqual(S,H);)S--,H--;if(g>S||w>H){let Ht;return w<=H?(MM.Assert(g===S+1,"originalStart should only be one more than originalEnd"),Ht=[new wx(g,0,w,H-w+1)]):g<=S?(MM.Assert(w===H+1,"modifiedStart should only be one more than modifiedEnd"),Ht=[new wx(g,S-g+1,w,0)]):(MM.Assert(g===S+1,"originalStart should only be one more than originalEnd"),MM.Assert(w===H+1,"modifiedStart should only be one more than modifiedEnd"),Ht=[]),Ht}const Ae=[0],Be=[0],at=this.ComputeRecursionPoint(g,S,w,H,Ae,Be,ue),Pe=Ae[0],Ve=Be[0];if(at!==null)return at;if(!ue[0]){const Ht=this.ComputeDiffRecursive(g,Pe,w,Ve,ue);let $t=[];return ue[0]?$t=[new wx(Pe+1,S-(Pe+1)+1,Ve+1,H-(Ve+1)+1)]:$t=this.ComputeDiffRecursive(Pe+1,S,Ve+1,H,ue),this.ConcatenateChanges(Ht,$t)}return[new wx(g,S-g+1,w,H-w+1)]}WALKTRACE(g,S,w,H,ue,Ae,Be,at,Pe,Ve,Ht,$t,ar,Fn,In,Oi,Bn,un){let Mi=null,Ji=null,as=new D0e,rl=S,Mn=w,Ni=ar[0]-Oi[0]-H,Mo=-1073741824,Ca=this.m_forwardHistory.length-1;do{const Vn=Ni+g;Vn===rl||Vn<Mn&&Pe[Vn-1]<Pe[Vn+1]?(Ht=Pe[Vn+1],Fn=Ht-Ni-H,Ht<Mo&&as.MarkNextChange(),Mo=Ht,as.AddModifiedElement(Ht+1,Fn),Ni=Vn+1-g):(Ht=Pe[Vn-1]+1,Fn=Ht-Ni-H,Ht<Mo&&as.MarkNextChange(),Mo=Ht-1,as.AddOriginalElement(Ht,Fn+1),Ni=Vn-1-g),Ca>=0&&(Pe=this.m_forwardHistory[Ca],g=Pe[0],rl=1,Mn=Pe.length-1)}while(--Ca>=-1);if(Mi=as.getReverseChanges(),un[0]){let Vn=ar[0]+1,Si=Oi[0]+1;if(Mi!==null&&Mi.length>0){const Yi=Mi[Mi.length-1];Vn=Math.max(Vn,Yi.getOriginalEnd()),Si=Math.max(Si,Yi.getModifiedEnd())}Ji=[new wx(Vn,$t-Vn+1,Si,In-Si+1)]}else{as=new D0e,rl=Ae,Mn=Be,Ni=ar[0]-Oi[0]-at,Mo=1073741824,Ca=Bn?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const Vn=Ni+ue;Vn===rl||Vn<Mn&&Ve[Vn-1]>=Ve[Vn+1]?(Ht=Ve[Vn+1]-1,Fn=Ht-Ni-at,Ht>Mo&&as.MarkNextChange(),Mo=Ht+1,as.AddOriginalElement(Ht+1,Fn+1),Ni=Vn+1-ue):(Ht=Ve[Vn-1],Fn=Ht-Ni-at,Ht>Mo&&as.MarkNextChange(),Mo=Ht,as.AddModifiedElement(Ht+1,Fn+1),Ni=Vn-1-ue),Ca>=0&&(Ve=this.m_reverseHistory[Ca],ue=Ve[0],rl=1,Mn=Ve.length-1)}while(--Ca>=-1);Ji=as.getChanges()}return this.ConcatenateChanges(Mi,Ji)}ComputeRecursionPoint(g,S,w,H,ue,Ae,Be){let at=0,Pe=0,Ve=0,Ht=0,$t=0,ar=0;g--,w--,ue[0]=0,Ae[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const Fn=S-g+(H-w),In=Fn+1,Oi=new Int32Array(In),Bn=new Int32Array(In),un=H-w,Mi=S-g,Ji=g-w,as=S-H,Mn=(Mi-un)%2===0;Oi[un]=g,Bn[Mi]=S,Be[0]=!1;for(let Ni=1;Ni<=Fn/2+1;Ni++){let Mo=0,Ca=0;Ve=this.ClipDiagonalBound(un-Ni,Ni,un,In),Ht=this.ClipDiagonalBound(un+Ni,Ni,un,In);for(let Si=Ve;Si<=Ht;Si+=2){Si===Ve||Si<Ht&&Oi[Si-1]<Oi[Si+1]?at=Oi[Si+1]:at=Oi[Si-1]+1,Pe=at-(Si-un)-Ji;const Yi=at;for(;at<S&&Pe<H&&this.ElementsAreEqual(at+1,Pe+1);)at++,Pe++;if(Oi[Si]=at,at+Pe>Mo+Ca&&(Mo=at,Ca=Pe),!Mn&&Math.abs(Si-Mi)<=Ni-1&&at>=Bn[Si])return ue[0]=at,Ae[0]=Pe,Yi<=Bn[Si]&&1447>0&&Ni<=1447+1?this.WALKTRACE(un,Ve,Ht,Ji,Mi,$t,ar,as,Oi,Bn,at,S,ue,Pe,H,Ae,Mn,Be):null}const Vn=(Mo-g+(Ca-w)-Ni)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Mo,Vn))return Be[0]=!0,ue[0]=Mo,Ae[0]=Ca,Vn>0&&1447>0&&Ni<=1447+1?this.WALKTRACE(un,Ve,Ht,Ji,Mi,$t,ar,as,Oi,Bn,at,S,ue,Pe,H,Ae,Mn,Be):(g++,w++,[new wx(g,S-g+1,w,H-w+1)]);$t=this.ClipDiagonalBound(Mi-Ni,Ni,Mi,In),ar=this.ClipDiagonalBound(Mi+Ni,Ni,Mi,In);for(let Si=$t;Si<=ar;Si+=2){Si===$t||Si<ar&&Bn[Si-1]>=Bn[Si+1]?at=Bn[Si+1]-1:at=Bn[Si-1],Pe=at-(Si-Mi)-as;const Yi=at;for(;at>g&&Pe>w&&this.ElementsAreEqual(at,Pe);)at--,Pe--;if(Bn[Si]=at,Mn&&Math.abs(Si-un)<=Ni&&at<=Oi[Si])return ue[0]=at,Ae[0]=Pe,Yi>=Oi[Si]&&1447>0&&Ni<=1447+1?this.WALKTRACE(un,Ve,Ht,Ji,Mi,$t,ar,as,Oi,Bn,at,S,ue,Pe,H,Ae,Mn,Be):null}if(Ni<=1447){let Si=new Int32Array(Ht-Ve+2);Si[0]=un-Ve+1,LM.Copy2(Oi,Ve,Si,1,Ht-Ve+1),this.m_forwardHistory.push(Si),Si=new Int32Array(ar-$t+2),Si[0]=Mi-$t+1,LM.Copy2(Bn,$t,Si,1,ar-$t+1),this.m_reverseHistory.push(Si)}}return this.WALKTRACE(un,Ve,Ht,Ji,Mi,$t,ar,as,Oi,Bn,at,S,ue,Pe,H,Ae,Mn,Be)}PrettifyChanges(g){for(let S=0;S<g.length;S++){const w=g[S],H=S<g.length-1?g[S+1].originalStart:this._originalElementsOrHash.length,ue=S<g.length-1?g[S+1].modifiedStart:this._modifiedElementsOrHash.length,Ae=w.originalLength>0,Be=w.modifiedLength>0;for(;w.originalStart+w.originalLength<H&&w.modifiedStart+w.modifiedLength<ue&&(!Ae||this.OriginalElementsAreEqual(w.originalStart,w.originalStart+w.originalLength))&&(!Be||this.ModifiedElementsAreEqual(w.modifiedStart,w.modifiedStart+w.modifiedLength));){const Pe=this.ElementsAreStrictEqual(w.originalStart,w.modifiedStart);if(this.ElementsAreStrictEqual(w.originalStart+w.originalLength,w.modifiedStart+w.modifiedLength)&&!Pe)break;w.originalStart++,w.modifiedStart++}const at=[null];if(S<g.length-1&&this.ChangesOverlap(g[S],g[S+1],at)){g[S]=at[0],g.splice(S+1,1),S--;continue}}for(let S=g.length-1;S>=0;S--){const w=g[S];let H=0,ue=0;if(S>0){const Ht=g[S-1];H=Ht.originalStart+Ht.originalLength,ue=Ht.modifiedStart+Ht.modifiedLength}const Ae=w.originalLength>0,Be=w.modifiedLength>0;let at=0,Pe=this._boundaryScore(w.originalStart,w.originalLength,w.modifiedStart,w.modifiedLength);for(let Ht=1;;Ht++){const $t=w.originalStart-Ht,ar=w.modifiedStart-Ht;if($t<H||ar<ue||Ae&&!this.OriginalElementsAreEqual($t,$t+w.originalLength)||Be&&!this.ModifiedElementsAreEqual(ar,ar+w.modifiedLength))break;const In=($t===H&&ar===ue?5:0)+this._boundaryScore($t,w.originalLength,ar,w.modifiedLength);In>Pe&&(Pe=In,at=Ht)}w.originalStart-=at,w.modifiedStart-=at;const Ve=[null];if(S>0&&this.ChangesOverlap(g[S-1],g[S],Ve)){g[S-1]=Ve[0],g.splice(S,1),S++;continue}}if(this._hasStrings)for(let S=1,w=g.length;S<w;S++){const H=g[S-1],ue=g[S],Ae=ue.originalStart-H.originalStart-H.originalLength,Be=H.originalStart,at=ue.originalStart+ue.originalLength,Pe=at-Be,Ve=H.modifiedStart,Ht=ue.modifiedStart+ue.modifiedLength,$t=Ht-Ve;if(Ae<5&&Pe<20&&$t<20){const ar=this._findBetterContiguousSequence(Be,Pe,Ve,$t,Ae);if(ar){const[Fn,In]=ar;(Fn!==H.originalStart+H.originalLength||In!==H.modifiedStart+H.modifiedLength)&&(H.originalLength=Fn-H.originalStart,H.modifiedLength=In-H.modifiedStart,ue.originalStart=Fn+Ae,ue.modifiedStart=In+Ae,ue.originalLength=at-ue.originalStart,ue.modifiedLength=Ht-ue.modifiedStart)}}}return g}_findBetterContiguousSequence(g,S,w,H,ue){if(S<ue||H<ue)return null;const Ae=g+S-ue+1,Be=w+H-ue+1;let at=0,Pe=0,Ve=0;for(let Ht=g;Ht<Ae;Ht++)for(let $t=w;$t<Be;$t++){const ar=this._contiguousSequenceScore(Ht,$t,ue);ar>0&&ar>at&&(at=ar,Pe=Ht,Ve=$t)}return at>0?[Pe,Ve]:null}_contiguousSequenceScore(g,S,w){let H=0;for(let ue=0;ue<w;ue++){if(!this.ElementsAreEqual(g+ue,S+ue))return 0;H+=this._originalStringElements[g+ue].length}return H}_OriginalIsBoundary(g){return g<=0||g>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[g])}_OriginalRegionIsBoundary(g,S){if(this._OriginalIsBoundary(g)||this._OriginalIsBoundary(g-1))return!0;if(S>0){const w=g+S;if(this._OriginalIsBoundary(w-1)||this._OriginalIsBoundary(w))return!0}return!1}_ModifiedIsBoundary(g){return g<=0||g>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[g])}_ModifiedRegionIsBoundary(g,S){if(this._ModifiedIsBoundary(g)||this._ModifiedIsBoundary(g-1))return!0;if(S>0){const w=g+S;if(this._ModifiedIsBoundary(w-1)||this._ModifiedIsBoundary(w))return!0}return!1}_boundaryScore(g,S,w,H){const ue=this._OriginalRegionIsBoundary(g,S)?1:0,Ae=this._ModifiedRegionIsBoundary(w,H)?1:0;return ue+Ae}ConcatenateChanges(g,S){const w=[];if(g.length===0||S.length===0)return S.length>0?S:g;if(this.ChangesOverlap(g[g.length-1],S[0],w)){const H=new Array(g.length+S.length-1);return LM.Copy(g,0,H,0,g.length-1),H[g.length-1]=w[0],LM.Copy(S,1,H,g.length,S.length-1),H}else{const H=new Array(g.length+S.length);return LM.Copy(g,0,H,0,g.length),LM.Copy(S,0,H,g.length,S.length),H}}ChangesOverlap(g,S,w){if(MM.Assert(g.originalStart<=S.originalStart,"Left change is not less than or equal to right change"),MM.Assert(g.modifiedStart<=S.modifiedStart,"Left change is not less than or equal to right change"),g.originalStart+g.originalLength>=S.originalStart||g.modifiedStart+g.modifiedLength>=S.modifiedStart){const H=g.originalStart;let ue=g.originalLength;const Ae=g.modifiedStart;let Be=g.modifiedLength;return g.originalStart+g.originalLength>=S.originalStart&&(ue=S.originalStart+S.originalLength-g.originalStart),g.modifiedStart+g.modifiedLength>=S.modifiedStart&&(Be=S.modifiedStart+S.modifiedLength-g.modifiedStart),w[0]=new wx(H,ue,Ae,Be),!0}else return w[0]=null,!1}ClipDiagonalBound(g,S,w,H){if(g>=0&&g<H)return g;const ue=w,Ae=H-w-1,Be=S%2===0;if(g<0){const at=ue%2===0;return Be===at?0:1}else{const at=Ae%2===0;return Be===at?H-1:H-2}}}class jc{constructor(g,S){this.lineNumber=g,this.column=S}with(g=this.lineNumber,S=this.column){return g===this.lineNumber&&S===this.column?this:new jc(g,S)}delta(g=0,S=0){return this.with(Math.max(1,this.lineNumber+g),Math.max(1,this.column+S))}equals(g){return jc.equals(this,g)}static equals(g,S){return!g&&!S?!0:!!g&&!!S&&g.lineNumber===S.lineNumber&&g.column===S.column}isBefore(g){return jc.isBefore(this,g)}static isBefore(g,S){return g.lineNumber<S.lineNumber?!0:S.lineNumber<g.lineNumber?!1:g.column<S.column}isBeforeOrEqual(g){return jc.isBeforeOrEqual(this,g)}static isBeforeOrEqual(g,S){return g.lineNumber<S.lineNumber?!0:S.lineNumber<g.lineNumber?!1:g.column<=S.column}static compare(g,S){const w=g.lineNumber|0,H=S.lineNumber|0;if(w===H){const ue=g.column|0,Ae=S.column|0;return ue-Ae}return w-H}clone(){return new jc(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(g){return new jc(g.lineNumber,g.column)}static isIPosition(g){return g&&typeof g.lineNumber=="number"&&typeof g.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}class ns{constructor(g,S,w,H){g>w||g===w&&S>H?(this.startLineNumber=w,this.startColumn=H,this.endLineNumber=g,this.endColumn=S):(this.startLineNumber=g,this.startColumn=S,this.endLineNumber=w,this.endColumn=H)}isEmpty(){return ns.isEmpty(this)}static isEmpty(g){return g.startLineNumber===g.endLineNumber&&g.startColumn===g.endColumn}containsPosition(g){return ns.containsPosition(this,g)}static containsPosition(g,S){return!(S.lineNumber<g.startLineNumber||S.lineNumber>g.endLineNumber||S.lineNumber===g.startLineNumber&&S.column<g.startColumn||S.lineNumber===g.endLineNumber&&S.column>g.endColumn)}static strictContainsPosition(g,S){return!(S.lineNumber<g.startLineNumber||S.lineNumber>g.endLineNumber||S.lineNumber===g.startLineNumber&&S.column<=g.startColumn||S.lineNumber===g.endLineNumber&&S.column>=g.endColumn)}containsRange(g){return ns.containsRange(this,g)}static containsRange(g,S){return!(S.startLineNumber<g.startLineNumber||S.endLineNumber<g.startLineNumber||S.startLineNumber>g.endLineNumber||S.endLineNumber>g.endLineNumber||S.startLineNumber===g.startLineNumber&&S.startColumn<g.startColumn||S.endLineNumber===g.endLineNumber&&S.endColumn>g.endColumn)}strictContainsRange(g){return ns.strictContainsRange(this,g)}static strictContainsRange(g,S){return!(S.startLineNumber<g.startLineNumber||S.endLineNumber<g.startLineNumber||S.startLineNumber>g.endLineNumber||S.endLineNumber>g.endLineNumber||S.startLineNumber===g.startLineNumber&&S.startColumn<=g.startColumn||S.endLineNumber===g.endLineNumber&&S.endColumn>=g.endColumn)}plusRange(g){return ns.plusRange(this,g)}static plusRange(g,S){let w,H,ue,Ae;return S.startLineNumber<g.startLineNumber?(w=S.startLineNumber,H=S.startColumn):S.startLineNumber===g.startLineNumber?(w=S.startLineNumber,H=Math.min(S.startColumn,g.startColumn)):(w=g.startLineNumber,H=g.startColumn),S.endLineNumber>g.endLineNumber?(ue=S.endLineNumber,Ae=S.endColumn):S.endLineNumber===g.endLineNumber?(ue=S.endLineNumber,Ae=Math.max(S.endColumn,g.endColumn)):(ue=g.endLineNumber,Ae=g.endColumn),new ns(w,H,ue,Ae)}intersectRanges(g){return ns.intersectRanges(this,g)}static intersectRanges(g,S){let w=g.startLineNumber,H=g.startColumn,ue=g.endLineNumber,Ae=g.endColumn;const Be=S.startLineNumber,at=S.startColumn,Pe=S.endLineNumber,Ve=S.endColumn;return w<Be?(w=Be,H=at):w===Be&&(H=Math.max(H,at)),ue>Pe?(ue=Pe,Ae=Ve):ue===Pe&&(Ae=Math.min(Ae,Ve)),w>ue||w===ue&&H>Ae?null:new ns(w,H,ue,Ae)}equalsRange(g){return ns.equalsRange(this,g)}static equalsRange(g,S){return!g&&!S?!0:!!g&&!!S&&g.startLineNumber===S.startLineNumber&&g.startColumn===S.startColumn&&g.endLineNumber===S.endLineNumber&&g.endColumn===S.endColumn}getEndPosition(){return ns.getEndPosition(this)}static getEndPosition(g){return new jc(g.endLineNumber,g.endColumn)}getStartPosition(){return ns.getStartPosition(this)}static getStartPosition(g){return new jc(g.startLineNumber,g.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(g,S){return new ns(this.startLineNumber,this.startColumn,g,S)}setStartPosition(g,S){return new ns(g,S,this.endLineNumber,this.endColumn)}collapseToStart(){return ns.collapseToStart(this)}static collapseToStart(g){return new ns(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn)}collapseToEnd(){return ns.collapseToEnd(this)}static collapseToEnd(g){return new ns(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn)}delta(g){return new ns(this.startLineNumber+g,this.startColumn,this.endLineNumber+g,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(g,S=g){return new ns(g.lineNumber,g.column,S.lineNumber,S.column)}static lift(g){return g?new ns(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):null}static isIRange(g){return g&&typeof g.startLineNumber=="number"&&typeof g.startColumn=="number"&&typeof g.endLineNumber=="number"&&typeof g.endColumn=="number"}static areIntersectingOrTouching(g,S){return!(g.endLineNumber<S.startLineNumber||g.endLineNumber===S.startLineNumber&&g.endColumn<S.startColumn||S.endLineNumber<g.startLineNumber||S.endLineNumber===g.startLineNumber&&S.endColumn<g.startColumn)}static areIntersecting(g,S){return!(g.endLineNumber<S.startLineNumber||g.endLineNumber===S.startLineNumber&&g.endColumn<=S.startColumn||S.endLineNumber<g.startLineNumber||S.endLineNumber===g.startLineNumber&&S.endColumn<=g.startColumn)}static areOnlyIntersecting(g,S){return!(g.endLineNumber<S.startLineNumber-1||g.endLineNumber===S.startLineNumber&&g.endColumn<S.startColumn-1||S.endLineNumber<g.startLineNumber-1||S.endLineNumber===g.startLineNumber&&S.endColumn<g.startColumn-1)}static compareRangesUsingStarts(g,S){if(g&&S){const ue=g.startLineNumber|0,Ae=S.startLineNumber|0;if(ue===Ae){const Be=g.startColumn|0,at=S.startColumn|0;if(Be===at){const Pe=g.endLineNumber|0,Ve=S.endLineNumber|0;if(Pe===Ve){const Ht=g.endColumn|0,$t=S.endColumn|0;return Ht-$t}return Pe-Ve}return Be-at}return ue-Ae}return(g?1:0)-(S?1:0)}static compareRangesUsingEnds(g,S){return g.endLineNumber===S.endLineNumber?g.endColumn===S.endColumn?g.startLineNumber===S.startLineNumber?g.startColumn-S.startColumn:g.startLineNumber-S.startLineNumber:g.endColumn-S.endColumn:g.endLineNumber-S.endLineNumber}static spansMultipleLines(g){return g.endLineNumber>g.startLineNumber}toJSON(){return this}}function N0e(_){return _<0?0:_>255?255:_|0}function kM(_){return _<0?0:_>4294967295?4294967295:_|0}class dne{constructor(g){const S=N0e(g);this._defaultValue=S,this._asciiMap=dne._createAsciiMap(S),this._map=new Map}static _createAsciiMap(g){const S=new Uint8Array(256);return S.fill(g),S}set(g,S){const w=N0e(S);g>=0&&g<256?this._asciiMap[g]=w:this._map.set(g,w)}get(g){return g>=0&&g<256?this._asciiMap[g]:this._map.get(g)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class BFe{constructor(g,S,w){const H=new Uint8Array(g*S);for(let ue=0,Ae=g*S;ue<Ae;ue++)H[ue]=w;this._data=H,this.rows=g,this.cols=S}get(g,S){return this._data[g*this.cols+S]}set(g,S,w){this._data[g*this.cols+S]=w}}class GFe{constructor(g){let S=0,w=0;for(let ue=0,Ae=g.length;ue<Ae;ue++){const[Be,at,Pe]=g[ue];at>S&&(S=at),Be>w&&(w=Be),Pe>w&&(w=Pe)}S++,w++;const H=new BFe(w,S,0);for(let ue=0,Ae=g.length;ue<Ae;ue++){const[Be,at,Pe]=g[ue];H.set(Be,at,Pe)}this._states=H,this._maxCharCode=S}nextState(g,S){return S<0||S>=this._maxCharCode?0:this._states.get(g,S)}}let pne=null;function VFe(){return pne===null&&(pne=new GFe([[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]])),pne}let w8=null;function jFe(){if(w8===null){w8=new dne(0);const _=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026|`;for(let S=0;S<_.length;S++)w8.set(_.charCodeAt(S),1);const g=".,;:";for(let S=0;S<g.length;S++)w8.set(g.charCodeAt(S),2)}return w8}class ZB{static _createLink(g,S,w,H,ue){let Ae=ue-1;do{const Be=S.charCodeAt(Ae);if(g.get(Be)!==2)break;Ae--}while(Ae>H);if(H>0){const Be=S.charCodeAt(H-1),at=S.charCodeAt(Ae);(Be===40&&at===41||Be===91&&at===93||Be===123&&at===125)&&Ae--}return{range:{startLineNumber:w,startColumn:H+1,endLineNumber:w,endColumn:Ae+2},url:S.substring(H,Ae+1)}}static computeLinks(g,S=VFe()){const w=jFe(),H=[];for(let ue=1,Ae=g.getLineCount();ue<=Ae;ue++){const Be=g.getLineContent(ue),at=Be.length;let Pe=0,Ve=0,Ht=0,$t=1,ar=!1,Fn=!1,In=!1,Oi=!1;for(;Pe<at;){let Bn=!1;const un=Be.charCodeAt(Pe);if($t===13){let Mi;switch(un){case 40:ar=!0,Mi=0;break;case 41:Mi=ar?0:1;break;case 91:In=!0,Fn=!0,Mi=0;break;case 93:In=!1,Mi=Fn?0:1;break;case 123:Oi=!0,Mi=0;break;case 125:Mi=Oi?0:1;break;case 39:case 34:case 96:Ht===un?Mi=1:Ht===39||Ht===34||Ht===96?Mi=0:Mi=1;break;case 42:Mi=Ht===42?1:0;break;case 32:Mi=In?0:1;break;default:Mi=w.get(un)}Mi===1&&(H.push(ZB._createLink(w,Be,ue,Ve,Pe)),Bn=!0)}else if($t===12){let Mi;un===91?(Fn=!0,Mi=0):Mi=w.get(un),Mi===1?Bn=!0:$t=13}else $t=S.nextState($t,un),$t===0&&(Bn=!0);Bn&&($t=1,ar=!1,Fn=!1,Oi=!1,Ve=Pe+1,Ht=un),Pe++}$t===13&&H.push(ZB._createLink(w,Be,ue,Ve,at))}return H}}function UFe(_){return!_||typeof _.getLineCount!="function"||typeof _.getLineContent!="function"?[]:ZB.computeLinks(_)}const _G=class{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(g,S,w,H,ue){if(g&&S){const Ae=this.doNavigateValueSet(S,ue);if(Ae)return{range:g,value:Ae}}if(w&&H){const Ae=this.doNavigateValueSet(H,ue);if(Ae)return{range:w,value:Ae}}return null}doNavigateValueSet(g,S){const w=this.numberReplace(g,S);return w!==null?w:this.textReplace(g,S)}numberReplace(g,S){const w=Math.pow(10,g.length-(g.lastIndexOf(".")+1));let H=Number(g);const ue=parseFloat(g);return!isNaN(H)&&!isNaN(ue)&&H===ue?H===0&&!S?null:(H=Math.floor(H*w),H+=S?w:-w,String(H/w)):null}textReplace(g,S){return this.valueSetsReplace(this._defaultValueSet,g,S)}valueSetsReplace(g,S,w){let H=null;for(let ue=0,Ae=g.length;H===null&&ue<Ae;ue++)H=this.valueSetReplace(g[ue],S,w);return H}valueSetReplace(g,S,w){let H=g.indexOf(S);return H>=0?(H+=w?1:-1,H<0?H=g.length-1:H%=g.length,g[H]):null}};let fne=_G;(()=>{_G.INSTANCE=new _G})();const C0e=Object.freeze(function(_,g){const S=setTimeout(_.bind(g),0);return{dispose(){clearTimeout(S)}}});var eG;(function(_){function g(S){return S===_.None||S===_.Cancelled||S instanceof tG?!0:!S||typeof S!="object"?!1:typeof S.isCancellationRequested=="boolean"&&typeof S.onCancellationRequested=="function"}_.isCancellationToken=g,_.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:YB.None}),_.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:C0e})})(eG||(eG={}));class tG{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?C0e:(this._emitter||(this._emitter=new S1),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class HFe{constructor(g){this._token=void 0,this._parentListener=void 0,this._parentListener=g&&g.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new tG),this._token}cancel(){this._token?this._token instanceof tG&&this._token.cancel():this._token=eG.Cancelled}dispose(g=!1){var S;g&&this.cancel(),(S=this._parentListener)==null||S.dispose(),this._token?this._token instanceof tG&&this._token.dispose():this._token=eG.None}}class mne{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(g,S){this._keyCodeToStr[g]=S,this._strToKeyCode[S.toLowerCase()]=g}keyCodeToStr(g){return this._keyCodeToStr[g]}strToKeyCode(g){return this._strToKeyCode[g.toLowerCase()]||0}}const nG=new mne,_ne=new mne,hne=new mne,qFe=new Array(230),JFe=Object.create(null),KFe=Object.create(null);(function(){const _="",g=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",_,_],[1,1,"Hyper",0,_,0,_,_,_],[1,2,"Super",0,_,0,_,_,_],[1,3,"Fn",0,_,0,_,_,_],[1,4,"FnLock",0,_,0,_,_,_],[1,5,"Suspend",0,_,0,_,_,_],[1,6,"Resume",0,_,0,_,_,_],[1,7,"Turbo",0,_,0,_,_,_],[1,8,"Sleep",0,_,0,"VK_SLEEP",_,_],[1,9,"WakeUp",0,_,0,_,_,_],[0,10,"KeyA",31,"A",65,"VK_A",_,_],[0,11,"KeyB",32,"B",66,"VK_B",_,_],[0,12,"KeyC",33,"C",67,"VK_C",_,_],[0,13,"KeyD",34,"D",68,"VK_D",_,_],[0,14,"KeyE",35,"E",69,"VK_E",_,_],[0,15,"KeyF",36,"F",70,"VK_F",_,_],[0,16,"KeyG",37,"G",71,"VK_G",_,_],[0,17,"KeyH",38,"H",72,"VK_H",_,_],[0,18,"KeyI",39,"I",73,"VK_I",_,_],[0,19,"KeyJ",40,"J",74,"VK_J",_,_],[0,20,"KeyK",41,"K",75,"VK_K",_,_],[0,21,"KeyL",42,"L",76,"VK_L",_,_],[0,22,"KeyM",43,"M",77,"VK_M",_,_],[0,23,"KeyN",44,"N",78,"VK_N",_,_],[0,24,"KeyO",45,"O",79,"VK_O",_,_],[0,25,"KeyP",46,"P",80,"VK_P",_,_],[0,26,"KeyQ",47,"Q",81,"VK_Q",_,_],[0,27,"KeyR",48,"R",82,"VK_R",_,_],[0,28,"KeyS",49,"S",83,"VK_S",_,_],[0,29,"KeyT",50,"T",84,"VK_T",_,_],[0,30,"KeyU",51,"U",85,"VK_U",_,_],[0,31,"KeyV",52,"V",86,"VK_V",_,_],[0,32,"KeyW",53,"W",87,"VK_W",_,_],[0,33,"KeyX",54,"X",88,"VK_X",_,_],[0,34,"KeyY",55,"Y",89,"VK_Y",_,_],[0,35,"KeyZ",56,"Z",90,"VK_Z",_,_],[0,36,"Digit1",22,"1",49,"VK_1",_,_],[0,37,"Digit2",23,"2",50,"VK_2",_,_],[0,38,"Digit3",24,"3",51,"VK_3",_,_],[0,39,"Digit4",25,"4",52,"VK_4",_,_],[0,40,"Digit5",26,"5",53,"VK_5",_,_],[0,41,"Digit6",27,"6",54,"VK_6",_,_],[0,42,"Digit7",28,"7",55,"VK_7",_,_],[0,43,"Digit8",29,"8",56,"VK_8",_,_],[0,44,"Digit9",30,"9",57,"VK_9",_,_],[0,45,"Digit0",21,"0",48,"VK_0",_,_],[1,46,"Enter",3,"Enter",13,"VK_RETURN",_,_],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",_,_],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",_,_],[1,49,"Tab",2,"Tab",9,"VK_TAB",_,_],[1,50,"Space",10,"Space",32,"VK_SPACE",_,_],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,_,0,_,_,_],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",_,_],[1,64,"F1",59,"F1",112,"VK_F1",_,_],[1,65,"F2",60,"F2",113,"VK_F2",_,_],[1,66,"F3",61,"F3",114,"VK_F3",_,_],[1,67,"F4",62,"F4",115,"VK_F4",_,_],[1,68,"F5",63,"F5",116,"VK_F5",_,_],[1,69,"F6",64,"F6",117,"VK_F6",_,_],[1,70,"F7",65,"F7",118,"VK_F7",_,_],[1,71,"F8",66,"F8",119,"VK_F8",_,_],[1,72,"F9",67,"F9",120,"VK_F9",_,_],[1,73,"F10",68,"F10",121,"VK_F10",_,_],[1,74,"F11",69,"F11",122,"VK_F11",_,_],[1,75,"F12",70,"F12",123,"VK_F12",_,_],[1,76,"PrintScreen",0,_,0,_,_,_],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",_,_],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",_,_],[1,79,"Insert",19,"Insert",45,"VK_INSERT",_,_],[1,80,"Home",14,"Home",36,"VK_HOME",_,_],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",_,_],[1,82,"Delete",20,"Delete",46,"VK_DELETE",_,_],[1,83,"End",13,"End",35,"VK_END",_,_],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",_,_],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",_],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",_],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",_],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",_],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",_,_],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",_,_],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",_,_],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",_,_],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",_,_],[1,94,"NumpadEnter",3,_,0,_,_,_],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",_,_],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",_,_],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",_,_],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",_,_],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",_,_],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",_,_],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",_,_],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",_,_],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",_,_],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",_,_],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",_,_],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",_,_],[1,107,"ContextMenu",58,"ContextMenu",93,_,_,_],[1,108,"Power",0,_,0,_,_,_],[1,109,"NumpadEqual",0,_,0,_,_,_],[1,110,"F13",71,"F13",124,"VK_F13",_,_],[1,111,"F14",72,"F14",125,"VK_F14",_,_],[1,112,"F15",73,"F15",126,"VK_F15",_,_],[1,113,"F16",74,"F16",127,"VK_F16",_,_],[1,114,"F17",75,"F17",128,"VK_F17",_,_],[1,115,"F18",76,"F18",129,"VK_F18",_,_],[1,116,"F19",77,"F19",130,"VK_F19",_,_],[1,117,"F20",78,"F20",131,"VK_F20",_,_],[1,118,"F21",79,"F21",132,"VK_F21",_,_],[1,119,"F22",80,"F22",133,"VK_F22",_,_],[1,120,"F23",81,"F23",134,"VK_F23",_,_],[1,121,"F24",82,"F24",135,"VK_F24",_,_],[1,122,"Open",0,_,0,_,_,_],[1,123,"Help",0,_,0,_,_,_],[1,124,"Select",0,_,0,_,_,_],[1,125,"Again",0,_,0,_,_,_],[1,126,"Undo",0,_,0,_,_,_],[1,127,"Cut",0,_,0,_,_,_],[1,128,"Copy",0,_,0,_,_,_],[1,129,"Paste",0,_,0,_,_,_],[1,130,"Find",0,_,0,_,_,_],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",_,_],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",_,_],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",_,_],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",_,_],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",_,_],[1,136,"KanaMode",0,_,0,_,_,_],[0,137,"IntlYen",0,_,0,_,_,_],[1,138,"Convert",0,_,0,_,_,_],[1,139,"NonConvert",0,_,0,_,_,_],[1,140,"Lang1",0,_,0,_,_,_],[1,141,"Lang2",0,_,0,_,_,_],[1,142,"Lang3",0,_,0,_,_,_],[1,143,"Lang4",0,_,0,_,_,_],[1,144,"Lang5",0,_,0,_,_,_],[1,145,"Abort",0,_,0,_,_,_],[1,146,"Props",0,_,0,_,_,_],[1,147,"NumpadParenLeft",0,_,0,_,_,_],[1,148,"NumpadParenRight",0,_,0,_,_,_],[1,149,"NumpadBackspace",0,_,0,_,_,_],[1,150,"NumpadMemoryStore",0,_,0,_,_,_],[1,151,"NumpadMemoryRecall",0,_,0,_,_,_],[1,152,"NumpadMemoryClear",0,_,0,_,_,_],[1,153,"NumpadMemoryAdd",0,_,0,_,_,_],[1,154,"NumpadMemorySubtract",0,_,0,_,_,_],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",_,_],[1,156,"NumpadClearEntry",0,_,0,_,_,_],[1,0,_,5,"Ctrl",17,"VK_CONTROL",_,_],[1,0,_,4,"Shift",16,"VK_SHIFT",_,_],[1,0,_,6,"Alt",18,"VK_MENU",_,_],[1,0,_,57,"Meta",91,"VK_COMMAND",_,_],[1,157,"ControlLeft",5,_,0,"VK_LCONTROL",_,_],[1,158,"ShiftLeft",4,_,0,"VK_LSHIFT",_,_],[1,159,"AltLeft",6,_,0,"VK_LMENU",_,_],[1,160,"MetaLeft",57,_,0,"VK_LWIN",_,_],[1,161,"ControlRight",5,_,0,"VK_RCONTROL",_,_],[1,162,"ShiftRight",4,_,0,"VK_RSHIFT",_,_],[1,163,"AltRight",6,_,0,"VK_RMENU",_,_],[1,164,"MetaRight",57,_,0,"VK_RWIN",_,_],[1,165,"BrightnessUp",0,_,0,_,_,_],[1,166,"BrightnessDown",0,_,0,_,_,_],[1,167,"MediaPlay",0,_,0,_,_,_],[1,168,"MediaRecord",0,_,0,_,_,_],[1,169,"MediaFastForward",0,_,0,_,_,_],[1,170,"MediaRewind",0,_,0,_,_,_],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",_,_],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",_,_],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",_,_],[1,174,"Eject",0,_,0,_,_,_],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",_,_],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",_,_],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",_,_],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",_,_],[1,179,"LaunchApp1",0,_,0,"VK_MEDIA_LAUNCH_APP1",_,_],[1,180,"SelectTask",0,_,0,_,_,_],[1,181,"LaunchScreenSaver",0,_,0,_,_,_],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",_,_],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",_,_],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",_,_],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",_,_],[1,186,"BrowserStop",0,_,0,"VK_BROWSER_STOP",_,_],[1,187,"BrowserRefresh",0,_,0,"VK_BROWSER_REFRESH",_,_],[1,188,"BrowserFavorites",0,_,0,"VK_BROWSER_FAVORITES",_,_],[1,189,"ZoomToggle",0,_,0,_,_,_],[1,190,"MailReply",0,_,0,_,_,_],[1,191,"MailForward",0,_,0,_,_,_],[1,192,"MailSend",0,_,0,_,_,_],[1,0,_,114,"KeyInComposition",229,_,_,_],[1,0,_,116,"ABNT_C2",194,"VK_ABNT_C2",_,_],[1,0,_,96,"OEM_8",223,"VK_OEM_8",_,_],[1,0,_,0,_,0,"VK_KANA",_,_],[1,0,_,0,_,0,"VK_HANGUL",_,_],[1,0,_,0,_,0,"VK_JUNJA",_,_],[1,0,_,0,_,0,"VK_FINAL",_,_],[1,0,_,0,_,0,"VK_HANJA",_,_],[1,0,_,0,_,0,"VK_KANJI",_,_],[1,0,_,0,_,0,"VK_CONVERT",_,_],[1,0,_,0,_,0,"VK_NONCONVERT",_,_],[1,0,_,0,_,0,"VK_ACCEPT",_,_],[1,0,_,0,_,0,"VK_MODECHANGE",_,_],[1,0,_,0,_,0,"VK_SELECT",_,_],[1,0,_,0,_,0,"VK_PRINT",_,_],[1,0,_,0,_,0,"VK_EXECUTE",_,_],[1,0,_,0,_,0,"VK_SNAPSHOT",_,_],[1,0,_,0,_,0,"VK_HELP",_,_],[1,0,_,0,_,0,"VK_APPS",_,_],[1,0,_,0,_,0,"VK_PROCESSKEY",_,_],[1,0,_,0,_,0,"VK_PACKET",_,_],[1,0,_,0,_,0,"VK_DBE_SBCSCHAR",_,_],[1,0,_,0,_,0,"VK_DBE_DBCSCHAR",_,_],[1,0,_,0,_,0,"VK_ATTN",_,_],[1,0,_,0,_,0,"VK_CRSEL",_,_],[1,0,_,0,_,0,"VK_EXSEL",_,_],[1,0,_,0,_,0,"VK_EREOF",_,_],[1,0,_,0,_,0,"VK_PLAY",_,_],[1,0,_,0,_,0,"VK_ZOOM",_,_],[1,0,_,0,_,0,"VK_NONAME",_,_],[1,0,_,0,_,0,"VK_PA1",_,_],[1,0,_,0,_,0,"VK_OEM_CLEAR",_,_]],S=[],w=[];for(const H of g){const[ue,Ae,Be,at,Pe,Ve,Ht,$t,ar]=H;if(w[Ae]||(w[Ae]=!0,JFe[Be]=Ae,KFe[Be.toLowerCase()]=Ae),!S[at]){if(S[at]=!0,!Pe)throw new Error(`String representation missing for key code ${at} around scan code ${Be}`);nG.define(at,Pe),_ne.define(at,$t||Pe),hne.define(at,ar||$t||Pe)}Ve&&(qFe[Ve]=at)}})();var P0e;(function(_){function g(Be){return nG.keyCodeToStr(Be)}_.toString=g;function S(Be){return nG.strToKeyCode(Be)}_.fromString=S;function w(Be){return _ne.keyCodeToStr(Be)}_.toUserSettingsUS=w;function H(Be){return hne.keyCodeToStr(Be)}_.toUserSettingsGeneral=H;function ue(Be){return _ne.strToKeyCode(Be)||hne.strToKeyCode(Be)}_.fromUserSettings=ue;function Ae(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 nG.keyCodeToStr(Be)}_.toElectronAccelerator=Ae})(P0e||(P0e={}));function XFe(_,g){const S=(g&65535)<<16>>>0;return(_|S)>>>0}let wM;const gne=globalThis.vscode;if(typeof gne<"u"&&typeof gne.process<"u"){const _=gne.process;wM={get platform(){return _.platform},get arch(){return _.arch},get env(){return _.env},cwd(){return _.cwd()}}}else typeof process<"u"&&typeof((LEe=process==null?void 0:process.versions)==null?void 0:LEe.node)=="string"?wM={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:wM={get platform(){return P8?"win32":fFe?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const rG=wM.cwd,YFe=wM.env,$Fe=wM.platform,QFe=65,ZFe=97,e9e=90,t9e=122,ZD=46,T_=47,Av=92,gA=58,n9e=63;class M0e extends Error{constructor(g,S,w){let H;typeof S=="string"&&S.indexOf("not ")===0?(H="must not be",S=S.replace(/^not /,"")):H="must be";const ue=g.indexOf(".")!==-1?"property":"argument";let Ae=`The "${g}" ${ue} ${H} of type ${S}`;Ae+=`. Received type ${typeof w}`,super(Ae),this.code="ERR_INVALID_ARG_TYPE"}}function r9e(_,g){if(_===null||typeof _!="object")throw new M0e(g,"Object",_)}function Sf(_,g){if(typeof _!="string")throw new M0e(g,"string",_)}const Wx=$Fe==="win32";function Ul(_){return _===T_||_===Av}function vne(_){return _===T_}function vA(_){return _>=QFe&&_<=e9e||_>=ZFe&&_<=t9e}function iG(_,g,S,w){let H="",ue=0,Ae=-1,Be=0,at=0;for(let Pe=0;Pe<=_.length;++Pe){if(Pe<_.length)at=_.charCodeAt(Pe);else{if(w(at))break;at=T_}if(w(at)){if(!(Ae===Pe-1||Be===1))if(Be===2){if(H.length<2||ue!==2||H.charCodeAt(H.length-1)!==ZD||H.charCodeAt(H.length-2)!==ZD){if(H.length>2){const Ve=H.lastIndexOf(S);Ve===-1?(H="",ue=0):(H=H.slice(0,Ve),ue=H.length-1-H.lastIndexOf(S)),Ae=Pe,Be=0;continue}else if(H.length!==0){H="",ue=0,Ae=Pe,Be=0;continue}}g&&(H+=H.length>0?`${S}..`:"..",ue=2)}else H.length>0?H+=`${S}${_.slice(Ae+1,Pe)}`:H=_.slice(Ae+1,Pe),ue=Pe-Ae-1;Ae=Pe,Be=0}else at===ZD&&Be!==-1?++Be:Be=-1}return H}function i9e(_){return _?`${_[0]==="."?"":"."}${_}`:""}function L0e(_,g){r9e(g,"pathObject");const S=g.dir||g.root,w=g.base||`${g.name||""}${i9e(g.ext)}`;return S?S===g.root?`${S}${w}`:`${S}${_}${w}`:w}const Pg={resolve(..._){let g="",S="",w=!1;for(let H=_.length-1;H>=-1;H--){let ue;if(H>=0){if(ue=_[H],Sf(ue,`paths[${H}]`),ue.length===0)continue}else g.length===0?ue=rG():(ue=YFe[`=${g}`]||rG(),(ue===void 0||ue.slice(0,2).toLowerCase()!==g.toLowerCase()&&ue.charCodeAt(2)===Av)&&(ue=`${g}\\`));const Ae=ue.length;let Be=0,at="",Pe=!1;const Ve=ue.charCodeAt(0);if(Ae===1)Ul(Ve)&&(Be=1,Pe=!0);else if(Ul(Ve))if(Pe=!0,Ul(ue.charCodeAt(1))){let Ht=2,$t=Ht;for(;Ht<Ae&&!Ul(ue.charCodeAt(Ht));)Ht++;if(Ht<Ae&&Ht!==$t){const ar=ue.slice($t,Ht);for($t=Ht;Ht<Ae&&Ul(ue.charCodeAt(Ht));)Ht++;if(Ht<Ae&&Ht!==$t){for($t=Ht;Ht<Ae&&!Ul(ue.charCodeAt(Ht));)Ht++;(Ht===Ae||Ht!==$t)&&(at=`\\\\${ar}\\${ue.slice($t,Ht)}`,Be=Ht)}}}else Be=1;else vA(Ve)&&ue.charCodeAt(1)===gA&&(at=ue.slice(0,2),Be=2,Ae>2&&Ul(ue.charCodeAt(2))&&(Pe=!0,Be=3));if(at.length>0)if(g.length>0){if(at.toLowerCase()!==g.toLowerCase())continue}else g=at;if(w){if(g.length>0)break}else if(S=`${ue.slice(Be)}\\${S}`,w=Pe,Pe&&g.length>0)break}return S=iG(S,!w,"\\",Ul),w?`${g}\\${S}`:`${g}${S}`||"."},normalize(_){Sf(_,"path");const g=_.length;if(g===0)return".";let S=0,w,H=!1;const ue=_.charCodeAt(0);if(g===1)return vne(ue)?"\\":_;if(Ul(ue))if(H=!0,Ul(_.charCodeAt(1))){let Be=2,at=Be;for(;Be<g&&!Ul(_.charCodeAt(Be));)Be++;if(Be<g&&Be!==at){const Pe=_.slice(at,Be);for(at=Be;Be<g&&Ul(_.charCodeAt(Be));)Be++;if(Be<g&&Be!==at){for(at=Be;Be<g&&!Ul(_.charCodeAt(Be));)Be++;if(Be===g)return`\\\\${Pe}\\${_.slice(at)}\\`;Be!==at&&(w=`\\\\${Pe}\\${_.slice(at,Be)}`,S=Be)}}}else S=1;else vA(ue)&&_.charCodeAt(1)===gA&&(w=_.slice(0,2),S=2,g>2&&Ul(_.charCodeAt(2))&&(H=!0,S=3));let Ae=S<g?iG(_.slice(S),!H,"\\",Ul):"";if(Ae.length===0&&!H&&(Ae="."),Ae.length>0&&Ul(_.charCodeAt(g-1))&&(Ae+="\\"),!H&&w===void 0&&_.includes(":")){if(Ae.length>=2&&vA(Ae.charCodeAt(0))&&Ae.charCodeAt(1)===gA)return`.\\${Ae}`;let Be=_.indexOf(":");do if(Be===g-1||Ul(_.charCodeAt(Be+1)))return`.\\${Ae}`;while((Be=_.indexOf(":",Be+1))!==-1)}return w===void 0?H?`\\${Ae}`:Ae:H?`${w}\\${Ae}`:`${w}${Ae}`},isAbsolute(_){Sf(_,"path");const g=_.length;if(g===0)return!1;const S=_.charCodeAt(0);return Ul(S)||g>2&&vA(S)&&_.charCodeAt(1)===gA&&Ul(_.charCodeAt(2))},join(..._){if(_.length===0)return".";let g,S;for(let ue=0;ue<_.length;++ue){const Ae=_[ue];Sf(Ae,"path"),Ae.length>0&&(g===void 0?g=S=Ae:g+=`\\${Ae}`)}if(g===void 0)return".";let w=!0,H=0;if(typeof S=="string"&&Ul(S.charCodeAt(0))){++H;const ue=S.length;ue>1&&Ul(S.charCodeAt(1))&&(++H,ue>2&&(Ul(S.charCodeAt(2))?++H:w=!1))}if(w){for(;H<g.length&&Ul(g.charCodeAt(H));)H++;H>=2&&(g=`\\${g.slice(H)}`)}return Pg.normalize(g)},relative(_,g){if(Sf(_,"from"),Sf(g,"to"),_===g)return"";const S=Pg.resolve(_),w=Pg.resolve(g);if(S===w||(_=S.toLowerCase(),g=w.toLowerCase(),_===g))return"";if(S.length!==_.length||w.length!==g.length){const Fn=S.split("\\"),In=w.split("\\");Fn[Fn.length-1]===""&&Fn.pop(),In[In.length-1]===""&&In.pop();const Oi=Fn.length,Bn=In.length,un=Oi<Bn?Oi:Bn;let Mi;for(Mi=0;Mi<un&&Fn[Mi].toLowerCase()===In[Mi].toLowerCase();Mi++);return Mi===0?w:Mi===un?Bn>un?In.slice(Mi).join("\\"):Oi>un?"..\\".repeat(Oi-1-Mi)+"..":"":"..\\".repeat(Oi-Mi)+In.slice(Mi).join("\\")}let H=0;for(;H<_.length&&_.charCodeAt(H)===Av;)H++;let ue=_.length;for(;ue-1>H&&_.charCodeAt(ue-1)===Av;)ue--;const Ae=ue-H;let Be=0;for(;Be<g.length&&g.charCodeAt(Be)===Av;)Be++;let at=g.length;for(;at-1>Be&&g.charCodeAt(at-1)===Av;)at--;const Pe=at-Be,Ve=Ae<Pe?Ae:Pe;let Ht=-1,$t=0;for(;$t<Ve;$t++){const Fn=_.charCodeAt(H+$t);if(Fn!==g.charCodeAt(Be+$t))break;Fn===Av&&(Ht=$t)}if($t!==Ve){if(Ht===-1)return w}else{if(Pe>Ve){if(g.charCodeAt(Be+$t)===Av)return w.slice(Be+$t+1);if($t===2)return w.slice(Be+$t)}Ae>Ve&&(_.charCodeAt(H+$t)===Av?Ht=$t:$t===2&&(Ht=3)),Ht===-1&&(Ht=0)}let ar="";for($t=H+Ht+1;$t<=ue;++$t)($t===ue||_.charCodeAt($t)===Av)&&(ar+=ar.length===0?"..":"\\..");return Be+=Ht,ar.length>0?`${ar}${w.slice(Be,at)}`:(w.charCodeAt(Be)===Av&&++Be,w.slice(Be,at))},toNamespacedPath(_){if(typeof _!="string"||_.length===0)return _;const g=Pg.resolve(_);if(g.length<=2)return _;if(g.charCodeAt(0)===Av){if(g.charCodeAt(1)===Av){const S=g.charCodeAt(2);if(S!==n9e&&S!==ZD)return`\\\\?\\UNC\\${g.slice(2)}`}}else if(vA(g.charCodeAt(0))&&g.charCodeAt(1)===gA&&g.charCodeAt(2)===Av)return`\\\\?\\${g}`;return g},dirname(_){Sf(_,"path");const g=_.length;if(g===0)return".";let S=-1,w=0;const H=_.charCodeAt(0);if(g===1)return Ul(H)?_:".";if(Ul(H)){if(S=w=1,Ul(_.charCodeAt(1))){let Be=2,at=Be;for(;Be<g&&!Ul(_.charCodeAt(Be));)Be++;if(Be<g&&Be!==at){for(at=Be;Be<g&&Ul(_.charCodeAt(Be));)Be++;if(Be<g&&Be!==at){for(at=Be;Be<g&&!Ul(_.charCodeAt(Be));)Be++;if(Be===g)return _;Be!==at&&(S=w=Be+1)}}}}else vA(H)&&_.charCodeAt(1)===gA&&(S=g>2&&Ul(_.charCodeAt(2))?3:2,w=S);let ue=-1,Ae=!0;for(let Be=g-1;Be>=w;--Be)if(Ul(_.charCodeAt(Be))){if(!Ae){ue=Be;break}}else Ae=!1;if(ue===-1){if(S===-1)return".";ue=S}return _.slice(0,ue)},basename(_,g){g!==void 0&&Sf(g,"suffix"),Sf(_,"path");let S=0,w=-1,H=!0,ue;if(_.length>=2&&vA(_.charCodeAt(0))&&_.charCodeAt(1)===gA&&(S=2),g!==void 0&&g.length>0&&g.length<=_.length){if(g===_)return"";let Ae=g.length-1,Be=-1;for(ue=_.length-1;ue>=S;--ue){const at=_.charCodeAt(ue);if(Ul(at)){if(!H){S=ue+1;break}}else Be===-1&&(H=!1,Be=ue+1),Ae>=0&&(at===g.charCodeAt(Ae)?--Ae===-1&&(w=ue):(Ae=-1,w=Be))}return S===w?w=Be:w===-1&&(w=_.length),_.slice(S,w)}for(ue=_.length-1;ue>=S;--ue)if(Ul(_.charCodeAt(ue))){if(!H){S=ue+1;break}}else w===-1&&(H=!1,w=ue+1);return w===-1?"":_.slice(S,w)},extname(_){Sf(_,"path");let g=0,S=-1,w=0,H=-1,ue=!0,Ae=0;_.length>=2&&_.charCodeAt(1)===gA&&vA(_.charCodeAt(0))&&(g=w=2);for(let Be=_.length-1;Be>=g;--Be){const at=_.charCodeAt(Be);if(Ul(at)){if(!ue){w=Be+1;break}continue}H===-1&&(ue=!1,H=Be+1),at===ZD?S===-1?S=Be:Ae!==1&&(Ae=1):S!==-1&&(Ae=-1)}return S===-1||H===-1||Ae===0||Ae===1&&S===H-1&&S===w+1?"":_.slice(S,H)},format:L0e.bind(null,"\\"),parse(_){Sf(_,"path");const g={root:"",dir:"",base:"",ext:"",name:""};if(_.length===0)return g;const S=_.length;let w=0,H=_.charCodeAt(0);if(S===1)return Ul(H)?(g.root=g.dir=_,g):(g.base=g.name=_,g);if(Ul(H)){if(w=1,Ul(_.charCodeAt(1))){let Ht=2,$t=Ht;for(;Ht<S&&!Ul(_.charCodeAt(Ht));)Ht++;if(Ht<S&&Ht!==$t){for($t=Ht;Ht<S&&Ul(_.charCodeAt(Ht));)Ht++;if(Ht<S&&Ht!==$t){for($t=Ht;Ht<S&&!Ul(_.charCodeAt(Ht));)Ht++;Ht===S?w=Ht:Ht!==$t&&(w=Ht+1)}}}}else if(vA(H)&&_.charCodeAt(1)===gA){if(S<=2)return g.root=g.dir=_,g;if(w=2,Ul(_.charCodeAt(2))){if(S===3)return g.root=g.dir=_,g;w=3}}w>0&&(g.root=_.slice(0,w));let ue=-1,Ae=w,Be=-1,at=!0,Pe=_.length-1,Ve=0;for(;Pe>=w;--Pe){if(H=_.charCodeAt(Pe),Ul(H)){if(!at){Ae=Pe+1;break}continue}Be===-1&&(at=!1,Be=Pe+1),H===ZD?ue===-1?ue=Pe:Ve!==1&&(Ve=1):ue!==-1&&(Ve=-1)}return Be!==-1&&(ue===-1||Ve===0||Ve===1&&ue===Be-1&&ue===Ae+1?g.base=g.name=_.slice(Ae,Be):(g.name=_.slice(Ae,ue),g.base=_.slice(Ae,Be),g.ext=_.slice(ue,Be))),Ae>0&&Ae!==w?g.dir=_.slice(0,Ae-1):g.dir=g.root,g},sep:"\\",delimiter:";",win32:null,posix:null},o9e=(()=>{if(Wx){const _=/\\/g;return()=>{const g=rG().replace(_,"/");return g.slice(g.indexOf("/"))}}return()=>rG()})(),Iv={resolve(..._){let g="",S=!1;for(let w=_.length-1;w>=0&&!S;w--){const H=_[w];Sf(H,`paths[${w}]`),H.length!==0&&(g=`${H}/${g}`,S=H.charCodeAt(0)===T_)}if(!S){const w=o9e();g=`${w}/${g}`,S=w.charCodeAt(0)===T_}return g=iG(g,!S,"/",vne),S?`/${g}`:g.length>0?g:"."},normalize(_){if(Sf(_,"path"),_.length===0)return".";const g=_.charCodeAt(0)===T_,S=_.charCodeAt(_.length-1)===T_;return _=iG(_,!g,"/",vne),_.length===0?g?"/":S?"./":".":(S&&(_+="/"),g?`/${_}`:_)},isAbsolute(_){return Sf(_,"path"),_.length>0&&_.charCodeAt(0)===T_},join(..._){if(_.length===0)return".";const g=[];for(let S=0;S<_.length;++S){const w=_[S];Sf(w,"path"),w.length>0&&g.push(w)}return g.length===0?".":Iv.normalize(g.join("/"))},relative(_,g){if(Sf(_,"from"),Sf(g,"to"),_===g||(_=Iv.resolve(_),g=Iv.resolve(g),_===g))return"";const S=1,w=_.length,H=w-S,ue=1,Ae=g.length-ue,Be=H<Ae?H:Ae;let at=-1,Pe=0;for(;Pe<Be;Pe++){const Ht=_.charCodeAt(S+Pe);if(Ht!==g.charCodeAt(ue+Pe))break;Ht===T_&&(at=Pe)}if(Pe===Be)if(Ae>Be){if(g.charCodeAt(ue+Pe)===T_)return g.slice(ue+Pe+1);if(Pe===0)return g.slice(ue+Pe)}else H>Be&&(_.charCodeAt(S+Pe)===T_?at=Pe:Pe===0&&(at=0));let Ve="";for(Pe=S+at+1;Pe<=w;++Pe)(Pe===w||_.charCodeAt(Pe)===T_)&&(Ve+=Ve.length===0?"..":"/..");return`${Ve}${g.slice(ue+at)}`},toNamespacedPath(_){return _},dirname(_){if(Sf(_,"path"),_.length===0)return".";const g=_.charCodeAt(0)===T_;let S=-1,w=!0;for(let H=_.length-1;H>=1;--H)if(_.charCodeAt(H)===T_){if(!w){S=H;break}}else w=!1;return S===-1?g?"/":".":g&&S===1?"//":_.slice(0,S)},basename(_,g){g!==void 0&&Sf(g,"suffix"),Sf(_,"path");let S=0,w=-1,H=!0,ue;if(g!==void 0&&g.length>0&&g.length<=_.length){if(g===_)return"";let Ae=g.length-1,Be=-1;for(ue=_.length-1;ue>=0;--ue){const at=_.charCodeAt(ue);if(at===T_){if(!H){S=ue+1;break}}else Be===-1&&(H=!1,Be=ue+1),Ae>=0&&(at===g.charCodeAt(Ae)?--Ae===-1&&(w=ue):(Ae=-1,w=Be))}return S===w?w=Be:w===-1&&(w=_.length),_.slice(S,w)}for(ue=_.length-1;ue>=0;--ue)if(_.charCodeAt(ue)===T_){if(!H){S=ue+1;break}}else w===-1&&(H=!1,w=ue+1);return w===-1?"":_.slice(S,w)},extname(_){Sf(_,"path");let g=-1,S=0,w=-1,H=!0,ue=0;for(let Ae=_.length-1;Ae>=0;--Ae){const Be=_[Ae];if(Be==="/"){if(!H){S=Ae+1;break}continue}w===-1&&(H=!1,w=Ae+1),Be==="."?g===-1?g=Ae:ue!==1&&(ue=1):g!==-1&&(ue=-1)}return g===-1||w===-1||ue===0||ue===1&&g===w-1&&g===S+1?"":_.slice(g,w)},format:L0e.bind(null,"/"),parse(_){Sf(_,"path");const g={root:"",dir:"",base:"",ext:"",name:""};if(_.length===0)return g;const S=_.charCodeAt(0)===T_;let w;S?(g.root="/",w=1):w=0;let H=-1,ue=0,Ae=-1,Be=!0,at=_.length-1,Pe=0;for(;at>=w;--at){const Ve=_.charCodeAt(at);if(Ve===T_){if(!Be){ue=at+1;break}continue}Ae===-1&&(Be=!1,Ae=at+1),Ve===ZD?H===-1?H=at:Pe!==1&&(Pe=1):H!==-1&&(Pe=-1)}if(Ae!==-1){const Ve=ue===0&&S?1:ue;H===-1||Pe===0||Pe===1&&H===Ae-1&&H===ue+1?g.base=g.name=_.slice(Ve,Ae):(g.name=_.slice(Ve,H),g.base=_.slice(Ve,Ae),g.ext=_.slice(H,Ae))}return ue>0?g.dir=_.slice(0,ue-1):S&&(g.dir="/"),g},sep:"/",delimiter:":",win32:null,posix:null};Iv.win32=Pg.win32=Pg,Iv.posix=Pg.posix=Iv,Wx?Pg.normalize:Iv.normalize,Wx?Pg.resolve:Iv.resolve,Wx?Pg.relative:Iv.relative,Wx?Pg.dirname:Iv.dirname,Wx?Pg.basename:Iv.basename,Wx?Pg.extname:Iv.extname,Wx?Pg.sep:Iv.sep;const a9e=/^\w[\w\d+.-]*$/,s9e=/^\//,l9e=/^\/\//;function c9e(_,g){if(!_.scheme&&g)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${_.authority}", path: "${_.path}", query: "${_.query}", fragment: "${_.fragment}"}`);if(_.scheme&&!a9e.test(_.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(_.path){if(_.authority){if(!s9e.test(_.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(l9e.test(_.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function u9e(_,g){return!_&&!g?"file":_}function d9e(_,g){switch(_){case"https":case"http":case"file":g?g[0]!==A1&&(g=A1+g):g=A1;break}return g}const Wd="",A1="/",p9e=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class eN{static isUri(g){return g instanceof eN?!0:!g||typeof g!="object"?!1:typeof g.authority=="string"&&typeof g.fragment=="string"&&typeof g.path=="string"&&typeof g.query=="string"&&typeof g.scheme=="string"&&typeof g.fsPath=="string"&&typeof g.with=="function"&&typeof g.toString=="function"}constructor(g,S,w,H,ue,Ae=!1){typeof g=="object"?(this.scheme=g.scheme||Wd,this.authority=g.authority||Wd,this.path=g.path||Wd,this.query=g.query||Wd,this.fragment=g.fragment||Wd):(this.scheme=u9e(g,Ae),this.authority=S||Wd,this.path=d9e(this.scheme,w||Wd),this.query=H||Wd,this.fragment=ue||Wd,c9e(this,Ae))}get fsPath(){return yne(this,!1)}with(g){if(!g)return this;let{scheme:S,authority:w,path:H,query:ue,fragment:Ae}=g;return S===void 0?S=this.scheme:S===null&&(S=Wd),w===void 0?w=this.authority:w===null&&(w=Wd),H===void 0?H=this.path:H===null&&(H=Wd),ue===void 0?ue=this.query:ue===null&&(ue=Wd),Ae===void 0?Ae=this.fragment:Ae===null&&(Ae=Wd),S===this.scheme&&w===this.authority&&H===this.path&&ue===this.query&&Ae===this.fragment?this:new OM(S,w,H,ue,Ae)}static parse(g,S=!1){const w=p9e.exec(g);return w?new OM(w[2]||Wd,oG(w[4]||Wd),oG(w[5]||Wd),oG(w[7]||Wd),oG(w[9]||Wd),S):new OM(Wd,Wd,Wd,Wd,Wd)}static file(g){let S=Wd;if(P8&&(g=g.replace(/\\/g,A1)),g[0]===A1&&g[1]===A1){const w=g.indexOf(A1,2);w===-1?(S=g.substring(2),g=A1):(S=g.substring(2,w),g=g.substring(w)||A1)}return new OM("file",S,g,Wd,Wd)}static from(g,S){return new OM(g.scheme,g.authority,g.path,g.query,g.fragment,S)}static joinPath(g,...S){if(!g.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let w;return P8&&g.scheme==="file"?w=eN.file(Pg.join(yne(g,!0),...S)).path:w=Iv.join(g.path,...S),g.with({path:w})}toString(g=!1){return bne(this,g)}toJSON(){return this}static revive(g){var S,w;if(g){if(g instanceof eN)return g;{const H=new OM(g);return H._formatted=(S=g.external)!=null?S:null,H._fsPath=g._sep===k0e&&(w=g.fsPath)!=null?w:null,H}}else return g}}const k0e=P8?1:void 0;class OM extends eN{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=yne(this,!1)),this._fsPath}toString(g=!1){return g?bne(this,!0):(this._formatted||(this._formatted=bne(this,!1)),this._formatted)}toJSON(){const g={$mid:1};return this._fsPath&&(g.fsPath=this._fsPath,g._sep=k0e),this._formatted&&(g.external=this._formatted),this.path&&(g.path=this.path),this.scheme&&(g.scheme=this.scheme),this.authority&&(g.authority=this.authority),this.query&&(g.query=this.query),this.fragment&&(g.fragment=this.fragment),g}}const w0e={[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 O0e(_,g,S){let w,H=-1;for(let ue=0;ue<_.length;ue++){const Ae=_.charCodeAt(ue);if(Ae>=97&&Ae<=122||Ae>=65&&Ae<=90||Ae>=48&&Ae<=57||Ae===45||Ae===46||Ae===95||Ae===126||g&&Ae===47||S&&Ae===91||S&&Ae===93||S&&Ae===58)H!==-1&&(w+=encodeURIComponent(_.substring(H,ue)),H=-1),w!==void 0&&(w+=_.charAt(ue));else{w===void 0&&(w=_.substr(0,ue));const Be=w0e[Ae];Be!==void 0?(H!==-1&&(w+=encodeURIComponent(_.substring(H,ue)),H=-1),w+=Be):H===-1&&(H=ue)}}return H!==-1&&(w+=encodeURIComponent(_.substring(H))),w!==void 0?w:_}function f9e(_){let g;for(let S=0;S<_.length;S++){const w=_.charCodeAt(S);w===35||w===63?(g===void 0&&(g=_.substr(0,S)),g+=w0e[w]):g!==void 0&&(g+=_[S])}return g!==void 0?g:_}function yne(_,g){let S;return _.authority&&_.path.length>1&&_.scheme==="file"?S=`//${_.authority}${_.path}`:_.path.charCodeAt(0)===47&&(_.path.charCodeAt(1)>=65&&_.path.charCodeAt(1)<=90||_.path.charCodeAt(1)>=97&&_.path.charCodeAt(1)<=122)&&_.path.charCodeAt(2)===58?g?S=_.path.substr(1):S=_.path[1].toLowerCase()+_.path.substr(2):S=_.path,P8&&(S=S.replace(/\//g,"\\")),S}function bne(_,g){const S=g?f9e:O0e;let w="",{scheme:H,authority:ue,path:Ae,query:Be,fragment:at}=_;if(H&&(w+=H,w+=":"),(ue||H==="file")&&(w+=A1,w+=A1),ue){let Pe=ue.indexOf("@");if(Pe!==-1){const Ve=ue.substr(0,Pe);ue=ue.substr(Pe+1),Pe=Ve.lastIndexOf(":"),Pe===-1?w+=S(Ve,!1,!1):(w+=S(Ve.substr(0,Pe),!1,!1),w+=":",w+=S(Ve.substr(Pe+1),!1,!0)),w+="@"}ue=ue.toLowerCase(),Pe=ue.lastIndexOf(":"),Pe===-1?w+=S(ue,!1,!0):(w+=S(ue.substr(0,Pe),!1,!0),w+=ue.substr(Pe))}if(Ae){if(Ae.length>=3&&Ae.charCodeAt(0)===47&&Ae.charCodeAt(2)===58){const Pe=Ae.charCodeAt(1);Pe>=65&&Pe<=90&&(Ae=`/${String.fromCharCode(Pe+32)}:${Ae.substr(3)}`)}else if(Ae.length>=2&&Ae.charCodeAt(1)===58){const Pe=Ae.charCodeAt(0);Pe>=65&&Pe<=90&&(Ae=`${String.fromCharCode(Pe+32)}:${Ae.substr(2)}`)}w+=S(Ae,!0,!1)}return Be&&(w+="?",w+=S(Be,!1,!1)),at&&(w+="#",w+=g?at:O0e(at,!1,!1)),w}function W0e(_){try{return decodeURIComponent(_)}catch{return _.length>3?_.substr(0,3)+W0e(_.substr(3)):_}}const F0e=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function oG(_){return _.match(F0e)?_.replace(F0e,g=>W0e(g)):_}class Ty extends ns{constructor(g,S,w,H){super(g,S,w,H),this.selectionStartLineNumber=g,this.selectionStartColumn=S,this.positionLineNumber=w,this.positionColumn=H}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(g){return Ty.selectionsEqual(this,g)}static selectionsEqual(g,S){return g.selectionStartLineNumber===S.selectionStartLineNumber&&g.selectionStartColumn===S.selectionStartColumn&&g.positionLineNumber===S.positionLineNumber&&g.positionColumn===S.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(g,S){return this.getDirection()===0?new Ty(this.startLineNumber,this.startColumn,g,S):new Ty(g,S,this.startLineNumber,this.startColumn)}getPosition(){return new jc(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new jc(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(g,S){return this.getDirection()===0?new Ty(g,S,this.endLineNumber,this.endColumn):new Ty(this.endLineNumber,this.endColumn,g,S)}static fromPositions(g,S=g){return new Ty(g.lineNumber,g.column,S.lineNumber,S.column)}static fromRange(g,S){return S===0?new Ty(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):new Ty(g.endLineNumber,g.endColumn,g.startLineNumber,g.startColumn)}static liftSelection(g){return new Ty(g.selectionStartLineNumber,g.selectionStartColumn,g.positionLineNumber,g.positionColumn)}static selectionsArrEqual(g,S){if(g&&!S||!g&&S)return!1;if(!g&&!S)return!0;if(g.length!==S.length)return!1;for(let w=0,H=g.length;w<H;w++)if(!this.selectionsEqual(g[w],S[w]))return!1;return!0}static isISelection(g){return g&&typeof g.selectionStartLineNumber=="number"&&typeof g.selectionStartColumn=="number"&&typeof g.positionLineNumber=="number"&&typeof g.positionColumn=="number"}static createWithDirection(g,S,w,H,ue){return ue===0?new Ty(g,S,w,H):new Ty(w,H,g,S)}}const z0e=Object.create(null);function Ee(_,g){if(QWe(g)){const S=z0e[g];if(S===void 0)throw new Error(`${_} references an unknown codicon: ${g}`);g=S}return z0e[_]=g,{id:_}}const m9e={add:Ee("add",6e4),plus:Ee("plus",6e4),gistNew:Ee("gist-new",6e4),repoCreate:Ee("repo-create",6e4),lightbulb:Ee("lightbulb",60001),lightBulb:Ee("light-bulb",60001),repo:Ee("repo",60002),repoDelete:Ee("repo-delete",60002),gistFork:Ee("gist-fork",60003),repoForked:Ee("repo-forked",60003),gitPullRequest:Ee("git-pull-request",60004),gitPullRequestAbandoned:Ee("git-pull-request-abandoned",60004),recordKeys:Ee("record-keys",60005),keyboard:Ee("keyboard",60005),tag:Ee("tag",60006),gitPullRequestLabel:Ee("git-pull-request-label",60006),tagAdd:Ee("tag-add",60006),tagRemove:Ee("tag-remove",60006),person:Ee("person",60007),personFollow:Ee("person-follow",60007),personOutline:Ee("person-outline",60007),personFilled:Ee("person-filled",60007),gitBranch:Ee("git-branch",60008),gitBranchCreate:Ee("git-branch-create",60008),gitBranchDelete:Ee("git-branch-delete",60008),sourceControl:Ee("source-control",60008),mirror:Ee("mirror",60009),mirrorPublic:Ee("mirror-public",60009),star:Ee("star",60010),starAdd:Ee("star-add",60010),starDelete:Ee("star-delete",60010),starEmpty:Ee("star-empty",60010),comment:Ee("comment",60011),commentAdd:Ee("comment-add",60011),alert:Ee("alert",60012),warning:Ee("warning",60012),search:Ee("search",60013),searchSave:Ee("search-save",60013),logOut:Ee("log-out",60014),signOut:Ee("sign-out",60014),logIn:Ee("log-in",60015),signIn:Ee("sign-in",60015),eye:Ee("eye",60016),eyeUnwatch:Ee("eye-unwatch",60016),eyeWatch:Ee("eye-watch",60016),circleFilled:Ee("circle-filled",60017),primitiveDot:Ee("primitive-dot",60017),closeDirty:Ee("close-dirty",60017),debugBreakpoint:Ee("debug-breakpoint",60017),debugBreakpointDisabled:Ee("debug-breakpoint-disabled",60017),debugHint:Ee("debug-hint",60017),terminalDecorationSuccess:Ee("terminal-decoration-success",60017),primitiveSquare:Ee("primitive-square",60018),edit:Ee("edit",60019),pencil:Ee("pencil",60019),info:Ee("info",60020),issueOpened:Ee("issue-opened",60020),gistPrivate:Ee("gist-private",60021),gitForkPrivate:Ee("git-fork-private",60021),lock:Ee("lock",60021),mirrorPrivate:Ee("mirror-private",60021),close:Ee("close",60022),removeClose:Ee("remove-close",60022),x:Ee("x",60022),repoSync:Ee("repo-sync",60023),sync:Ee("sync",60023),clone:Ee("clone",60024),desktopDownload:Ee("desktop-download",60024),beaker:Ee("beaker",60025),microscope:Ee("microscope",60025),vm:Ee("vm",60026),deviceDesktop:Ee("device-desktop",60026),file:Ee("file",60027),fileText:Ee("file-text",60027),more:Ee("more",60028),ellipsis:Ee("ellipsis",60028),kebabHorizontal:Ee("kebab-horizontal",60028),mailReply:Ee("mail-reply",60029),reply:Ee("reply",60029),organization:Ee("organization",60030),organizationFilled:Ee("organization-filled",60030),organizationOutline:Ee("organization-outline",60030),newFile:Ee("new-file",60031),fileAdd:Ee("file-add",60031),newFolder:Ee("new-folder",60032),fileDirectoryCreate:Ee("file-directory-create",60032),trash:Ee("trash",60033),trashcan:Ee("trashcan",60033),history:Ee("history",60034),clock:Ee("clock",60034),folder:Ee("folder",60035),fileDirectory:Ee("file-directory",60035),symbolFolder:Ee("symbol-folder",60035),logoGithub:Ee("logo-github",60036),markGithub:Ee("mark-github",60036),github:Ee("github",60036),terminal:Ee("terminal",60037),console:Ee("console",60037),repl:Ee("repl",60037),zap:Ee("zap",60038),symbolEvent:Ee("symbol-event",60038),error:Ee("error",60039),stop:Ee("stop",60039),variable:Ee("variable",60040),symbolVariable:Ee("symbol-variable",60040),array:Ee("array",60042),symbolArray:Ee("symbol-array",60042),symbolModule:Ee("symbol-module",60043),symbolPackage:Ee("symbol-package",60043),symbolNamespace:Ee("symbol-namespace",60043),symbolObject:Ee("symbol-object",60043),symbolMethod:Ee("symbol-method",60044),symbolFunction:Ee("symbol-function",60044),symbolConstructor:Ee("symbol-constructor",60044),symbolBoolean:Ee("symbol-boolean",60047),symbolNull:Ee("symbol-null",60047),symbolNumeric:Ee("symbol-numeric",60048),symbolNumber:Ee("symbol-number",60048),symbolStructure:Ee("symbol-structure",60049),symbolStruct:Ee("symbol-struct",60049),symbolParameter:Ee("symbol-parameter",60050),symbolTypeParameter:Ee("symbol-type-parameter",60050),symbolKey:Ee("symbol-key",60051),symbolText:Ee("symbol-text",60051),symbolReference:Ee("symbol-reference",60052),goToFile:Ee("go-to-file",60052),symbolEnum:Ee("symbol-enum",60053),symbolValue:Ee("symbol-value",60053),symbolRuler:Ee("symbol-ruler",60054),symbolUnit:Ee("symbol-unit",60054),activateBreakpoints:Ee("activate-breakpoints",60055),archive:Ee("archive",60056),arrowBoth:Ee("arrow-both",60057),arrowDown:Ee("arrow-down",60058),arrowLeft:Ee("arrow-left",60059),arrowRight:Ee("arrow-right",60060),arrowSmallDown:Ee("arrow-small-down",60061),arrowSmallLeft:Ee("arrow-small-left",60062),arrowSmallRight:Ee("arrow-small-right",60063),arrowSmallUp:Ee("arrow-small-up",60064),arrowUp:Ee("arrow-up",60065),bell:Ee("bell",60066),bold:Ee("bold",60067),book:Ee("book",60068),bookmark:Ee("bookmark",60069),debugBreakpointConditionalUnverified:Ee("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:Ee("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:Ee("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:Ee("debug-breakpoint-data-unverified",60072),debugBreakpointData:Ee("debug-breakpoint-data",60073),debugBreakpointDataDisabled:Ee("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:Ee("debug-breakpoint-log-unverified",60074),debugBreakpointLog:Ee("debug-breakpoint-log",60075),debugBreakpointLogDisabled:Ee("debug-breakpoint-log-disabled",60075),briefcase:Ee("briefcase",60076),broadcast:Ee("broadcast",60077),browser:Ee("browser",60078),bug:Ee("bug",60079),calendar:Ee("calendar",60080),caseSensitive:Ee("case-sensitive",60081),check:Ee("check",60082),checklist:Ee("checklist",60083),chevronDown:Ee("chevron-down",60084),chevronLeft:Ee("chevron-left",60085),chevronRight:Ee("chevron-right",60086),chevronUp:Ee("chevron-up",60087),chromeClose:Ee("chrome-close",60088),chromeMaximize:Ee("chrome-maximize",60089),chromeMinimize:Ee("chrome-minimize",60090),chromeRestore:Ee("chrome-restore",60091),circleOutline:Ee("circle-outline",60092),circle:Ee("circle",60092),debugBreakpointUnverified:Ee("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:Ee("terminal-decoration-incomplete",60092),circleSlash:Ee("circle-slash",60093),circuitBoard:Ee("circuit-board",60094),clearAll:Ee("clear-all",60095),clippy:Ee("clippy",60096),closeAll:Ee("close-all",60097),cloudDownload:Ee("cloud-download",60098),cloudUpload:Ee("cloud-upload",60099),code:Ee("code",60100),collapseAll:Ee("collapse-all",60101),colorMode:Ee("color-mode",60102),commentDiscussion:Ee("comment-discussion",60103),creditCard:Ee("credit-card",60105),dash:Ee("dash",60108),dashboard:Ee("dashboard",60109),database:Ee("database",60110),debugContinue:Ee("debug-continue",60111),debugDisconnect:Ee("debug-disconnect",60112),debugPause:Ee("debug-pause",60113),debugRestart:Ee("debug-restart",60114),debugStart:Ee("debug-start",60115),debugStepInto:Ee("debug-step-into",60116),debugStepOut:Ee("debug-step-out",60117),debugStepOver:Ee("debug-step-over",60118),debugStop:Ee("debug-stop",60119),debug:Ee("debug",60120),deviceCameraVideo:Ee("device-camera-video",60121),deviceCamera:Ee("device-camera",60122),deviceMobile:Ee("device-mobile",60123),diffAdded:Ee("diff-added",60124),diffIgnored:Ee("diff-ignored",60125),diffModified:Ee("diff-modified",60126),diffRemoved:Ee("diff-removed",60127),diffRenamed:Ee("diff-renamed",60128),diff:Ee("diff",60129),diffSidebyside:Ee("diff-sidebyside",60129),discard:Ee("discard",60130),editorLayout:Ee("editor-layout",60131),emptyWindow:Ee("empty-window",60132),exclude:Ee("exclude",60133),extensions:Ee("extensions",60134),eyeClosed:Ee("eye-closed",60135),fileBinary:Ee("file-binary",60136),fileCode:Ee("file-code",60137),fileMedia:Ee("file-media",60138),filePdf:Ee("file-pdf",60139),fileSubmodule:Ee("file-submodule",60140),fileSymlinkDirectory:Ee("file-symlink-directory",60141),fileSymlinkFile:Ee("file-symlink-file",60142),fileZip:Ee("file-zip",60143),files:Ee("files",60144),filter:Ee("filter",60145),flame:Ee("flame",60146),foldDown:Ee("fold-down",60147),foldUp:Ee("fold-up",60148),fold:Ee("fold",60149),folderActive:Ee("folder-active",60150),folderOpened:Ee("folder-opened",60151),gear:Ee("gear",60152),gift:Ee("gift",60153),gistSecret:Ee("gist-secret",60154),gist:Ee("gist",60155),gitCommit:Ee("git-commit",60156),gitCompare:Ee("git-compare",60157),compareChanges:Ee("compare-changes",60157),gitMerge:Ee("git-merge",60158),githubAction:Ee("github-action",60159),githubAlt:Ee("github-alt",60160),globe:Ee("globe",60161),grabber:Ee("grabber",60162),graph:Ee("graph",60163),gripper:Ee("gripper",60164),heart:Ee("heart",60165),home:Ee("home",60166),horizontalRule:Ee("horizontal-rule",60167),hubot:Ee("hubot",60168),inbox:Ee("inbox",60169),issueReopened:Ee("issue-reopened",60171),issues:Ee("issues",60172),italic:Ee("italic",60173),jersey:Ee("jersey",60174),json:Ee("json",60175),kebabVertical:Ee("kebab-vertical",60176),key:Ee("key",60177),law:Ee("law",60178),lightbulbAutofix:Ee("lightbulb-autofix",60179),linkExternal:Ee("link-external",60180),link:Ee("link",60181),listOrdered:Ee("list-ordered",60182),listUnordered:Ee("list-unordered",60183),liveShare:Ee("live-share",60184),loading:Ee("loading",60185),location:Ee("location",60186),mailRead:Ee("mail-read",60187),mail:Ee("mail",60188),markdown:Ee("markdown",60189),megaphone:Ee("megaphone",60190),mention:Ee("mention",60191),milestone:Ee("milestone",60192),gitPullRequestMilestone:Ee("git-pull-request-milestone",60192),mortarBoard:Ee("mortar-board",60193),move:Ee("move",60194),multipleWindows:Ee("multiple-windows",60195),mute:Ee("mute",60196),noNewline:Ee("no-newline",60197),note:Ee("note",60198),octoface:Ee("octoface",60199),openPreview:Ee("open-preview",60200),package:Ee("package",60201),paintcan:Ee("paintcan",60202),pin:Ee("pin",60203),play:Ee("play",60204),run:Ee("run",60204),plug:Ee("plug",60205),preserveCase:Ee("preserve-case",60206),preview:Ee("preview",60207),project:Ee("project",60208),pulse:Ee("pulse",60209),question:Ee("question",60210),quote:Ee("quote",60211),radioTower:Ee("radio-tower",60212),reactions:Ee("reactions",60213),references:Ee("references",60214),refresh:Ee("refresh",60215),regex:Ee("regex",60216),remoteExplorer:Ee("remote-explorer",60217),remote:Ee("remote",60218),remove:Ee("remove",60219),replaceAll:Ee("replace-all",60220),replace:Ee("replace",60221),repoClone:Ee("repo-clone",60222),repoForcePush:Ee("repo-force-push",60223),repoPull:Ee("repo-pull",60224),repoPush:Ee("repo-push",60225),report:Ee("report",60226),requestChanges:Ee("request-changes",60227),rocket:Ee("rocket",60228),rootFolderOpened:Ee("root-folder-opened",60229),rootFolder:Ee("root-folder",60230),rss:Ee("rss",60231),ruby:Ee("ruby",60232),saveAll:Ee("save-all",60233),saveAs:Ee("save-as",60234),save:Ee("save",60235),screenFull:Ee("screen-full",60236),screenNormal:Ee("screen-normal",60237),searchStop:Ee("search-stop",60238),server:Ee("server",60240),settingsGear:Ee("settings-gear",60241),settings:Ee("settings",60242),shield:Ee("shield",60243),smiley:Ee("smiley",60244),sortPrecedence:Ee("sort-precedence",60245),splitHorizontal:Ee("split-horizontal",60246),splitVertical:Ee("split-vertical",60247),squirrel:Ee("squirrel",60248),starFull:Ee("star-full",60249),starHalf:Ee("star-half",60250),symbolClass:Ee("symbol-class",60251),symbolColor:Ee("symbol-color",60252),symbolConstant:Ee("symbol-constant",60253),symbolEnumMember:Ee("symbol-enum-member",60254),symbolField:Ee("symbol-field",60255),symbolFile:Ee("symbol-file",60256),symbolInterface:Ee("symbol-interface",60257),symbolKeyword:Ee("symbol-keyword",60258),symbolMisc:Ee("symbol-misc",60259),symbolOperator:Ee("symbol-operator",60260),symbolProperty:Ee("symbol-property",60261),wrench:Ee("wrench",60261),wrenchSubaction:Ee("wrench-subaction",60261),symbolSnippet:Ee("symbol-snippet",60262),tasklist:Ee("tasklist",60263),telescope:Ee("telescope",60264),textSize:Ee("text-size",60265),threeBars:Ee("three-bars",60266),thumbsdown:Ee("thumbsdown",60267),thumbsup:Ee("thumbsup",60268),tools:Ee("tools",60269),triangleDown:Ee("triangle-down",60270),triangleLeft:Ee("triangle-left",60271),triangleRight:Ee("triangle-right",60272),triangleUp:Ee("triangle-up",60273),twitter:Ee("twitter",60274),unfold:Ee("unfold",60275),unlock:Ee("unlock",60276),unmute:Ee("unmute",60277),unverified:Ee("unverified",60278),verified:Ee("verified",60279),versions:Ee("versions",60280),vmActive:Ee("vm-active",60281),vmOutline:Ee("vm-outline",60282),vmRunning:Ee("vm-running",60283),watch:Ee("watch",60284),whitespace:Ee("whitespace",60285),wholeWord:Ee("whole-word",60286),window:Ee("window",60287),wordWrap:Ee("word-wrap",60288),zoomIn:Ee("zoom-in",60289),zoomOut:Ee("zoom-out",60290),listFilter:Ee("list-filter",60291),listFlat:Ee("list-flat",60292),listSelection:Ee("list-selection",60293),selection:Ee("selection",60293),listTree:Ee("list-tree",60294),debugBreakpointFunctionUnverified:Ee("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:Ee("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:Ee("debug-breakpoint-function-disabled",60296),debugStackframeActive:Ee("debug-stackframe-active",60297),circleSmallFilled:Ee("circle-small-filled",60298),debugStackframeDot:Ee("debug-stackframe-dot",60298),terminalDecorationMark:Ee("terminal-decoration-mark",60298),debugStackframe:Ee("debug-stackframe",60299),debugStackframeFocused:Ee("debug-stackframe-focused",60299),debugBreakpointUnsupported:Ee("debug-breakpoint-unsupported",60300),symbolString:Ee("symbol-string",60301),debugReverseContinue:Ee("debug-reverse-continue",60302),debugStepBack:Ee("debug-step-back",60303),debugRestartFrame:Ee("debug-restart-frame",60304),debugAlt:Ee("debug-alt",60305),callIncoming:Ee("call-incoming",60306),callOutgoing:Ee("call-outgoing",60307),menu:Ee("menu",60308),expandAll:Ee("expand-all",60309),feedback:Ee("feedback",60310),gitPullRequestReviewer:Ee("git-pull-request-reviewer",60310),groupByRefType:Ee("group-by-ref-type",60311),ungroupByRefType:Ee("ungroup-by-ref-type",60312),account:Ee("account",60313),gitPullRequestAssignee:Ee("git-pull-request-assignee",60313),bellDot:Ee("bell-dot",60314),debugConsole:Ee("debug-console",60315),library:Ee("library",60316),output:Ee("output",60317),runAll:Ee("run-all",60318),syncIgnored:Ee("sync-ignored",60319),pinned:Ee("pinned",60320),githubInverted:Ee("github-inverted",60321),serverProcess:Ee("server-process",60322),serverEnvironment:Ee("server-environment",60323),pass:Ee("pass",60324),issueClosed:Ee("issue-closed",60324),stopCircle:Ee("stop-circle",60325),playCircle:Ee("play-circle",60326),record:Ee("record",60327),debugAltSmall:Ee("debug-alt-small",60328),vmConnect:Ee("vm-connect",60329),cloud:Ee("cloud",60330),merge:Ee("merge",60331),export:Ee("export",60332),graphLeft:Ee("graph-left",60333),magnet:Ee("magnet",60334),notebook:Ee("notebook",60335),redo:Ee("redo",60336),checkAll:Ee("check-all",60337),pinnedDirty:Ee("pinned-dirty",60338),passFilled:Ee("pass-filled",60339),circleLargeFilled:Ee("circle-large-filled",60340),circleLarge:Ee("circle-large",60341),circleLargeOutline:Ee("circle-large-outline",60341),combine:Ee("combine",60342),gather:Ee("gather",60342),table:Ee("table",60343),variableGroup:Ee("variable-group",60344),typeHierarchy:Ee("type-hierarchy",60345),typeHierarchySub:Ee("type-hierarchy-sub",60346),typeHierarchySuper:Ee("type-hierarchy-super",60347),gitPullRequestCreate:Ee("git-pull-request-create",60348),runAbove:Ee("run-above",60349),runBelow:Ee("run-below",60350),notebookTemplate:Ee("notebook-template",60351),debugRerun:Ee("debug-rerun",60352),workspaceTrusted:Ee("workspace-trusted",60353),workspaceUntrusted:Ee("workspace-untrusted",60354),workspaceUnknown:Ee("workspace-unknown",60355),terminalCmd:Ee("terminal-cmd",60356),terminalDebian:Ee("terminal-debian",60357),terminalLinux:Ee("terminal-linux",60358),terminalPowershell:Ee("terminal-powershell",60359),terminalTmux:Ee("terminal-tmux",60360),terminalUbuntu:Ee("terminal-ubuntu",60361),terminalBash:Ee("terminal-bash",60362),arrowSwap:Ee("arrow-swap",60363),copy:Ee("copy",60364),personAdd:Ee("person-add",60365),filterFilled:Ee("filter-filled",60366),wand:Ee("wand",60367),debugLineByLine:Ee("debug-line-by-line",60368),inspect:Ee("inspect",60369),layers:Ee("layers",60370),layersDot:Ee("layers-dot",60371),layersActive:Ee("layers-active",60372),compass:Ee("compass",60373),compassDot:Ee("compass-dot",60374),compassActive:Ee("compass-active",60375),azure:Ee("azure",60376),issueDraft:Ee("issue-draft",60377),gitPullRequestClosed:Ee("git-pull-request-closed",60378),gitPullRequestDraft:Ee("git-pull-request-draft",60379),debugAll:Ee("debug-all",60380),debugCoverage:Ee("debug-coverage",60381),runErrors:Ee("run-errors",60382),folderLibrary:Ee("folder-library",60383),debugContinueSmall:Ee("debug-continue-small",60384),beakerStop:Ee("beaker-stop",60385),graphLine:Ee("graph-line",60386),graphScatter:Ee("graph-scatter",60387),pieChart:Ee("pie-chart",60388),bracket:Ee("bracket",60175),bracketDot:Ee("bracket-dot",60389),bracketError:Ee("bracket-error",60390),lockSmall:Ee("lock-small",60391),azureDevops:Ee("azure-devops",60392),verifiedFilled:Ee("verified-filled",60393),newline:Ee("newline",60394),layout:Ee("layout",60395),layoutActivitybarLeft:Ee("layout-activitybar-left",60396),layoutActivitybarRight:Ee("layout-activitybar-right",60397),layoutPanelLeft:Ee("layout-panel-left",60398),layoutPanelCenter:Ee("layout-panel-center",60399),layoutPanelJustify:Ee("layout-panel-justify",60400),layoutPanelRight:Ee("layout-panel-right",60401),layoutPanel:Ee("layout-panel",60402),layoutSidebarLeft:Ee("layout-sidebar-left",60403),layoutSidebarRight:Ee("layout-sidebar-right",60404),layoutStatusbar:Ee("layout-statusbar",60405),layoutMenubar:Ee("layout-menubar",60406),layoutCentered:Ee("layout-centered",60407),target:Ee("target",60408),indent:Ee("indent",60409),recordSmall:Ee("record-small",60410),errorSmall:Ee("error-small",60411),terminalDecorationError:Ee("terminal-decoration-error",60411),arrowCircleDown:Ee("arrow-circle-down",60412),arrowCircleLeft:Ee("arrow-circle-left",60413),arrowCircleRight:Ee("arrow-circle-right",60414),arrowCircleUp:Ee("arrow-circle-up",60415),layoutSidebarRightOff:Ee("layout-sidebar-right-off",60416),layoutPanelOff:Ee("layout-panel-off",60417),layoutSidebarLeftOff:Ee("layout-sidebar-left-off",60418),blank:Ee("blank",60419),heartFilled:Ee("heart-filled",60420),map:Ee("map",60421),mapHorizontal:Ee("map-horizontal",60421),foldHorizontal:Ee("fold-horizontal",60421),mapFilled:Ee("map-filled",60422),mapHorizontalFilled:Ee("map-horizontal-filled",60422),foldHorizontalFilled:Ee("fold-horizontal-filled",60422),circleSmall:Ee("circle-small",60423),bellSlash:Ee("bell-slash",60424),bellSlashDot:Ee("bell-slash-dot",60425),commentUnresolved:Ee("comment-unresolved",60426),gitPullRequestGoToChanges:Ee("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:Ee("git-pull-request-new-changes",60428),searchFuzzy:Ee("search-fuzzy",60429),commentDraft:Ee("comment-draft",60430),send:Ee("send",60431),sparkle:Ee("sparkle",60432),insert:Ee("insert",60433),mic:Ee("mic",60434),thumbsdownFilled:Ee("thumbsdown-filled",60435),thumbsupFilled:Ee("thumbsup-filled",60436),coffee:Ee("coffee",60437),snake:Ee("snake",60438),game:Ee("game",60439),vr:Ee("vr",60440),chip:Ee("chip",60441),piano:Ee("piano",60442),music:Ee("music",60443),micFilled:Ee("mic-filled",60444),repoFetch:Ee("repo-fetch",60445),copilot:Ee("copilot",60446),lightbulbSparkle:Ee("lightbulb-sparkle",60447),robot:Ee("robot",60448),sparkleFilled:Ee("sparkle-filled",60449),diffSingle:Ee("diff-single",60450),diffMultiple:Ee("diff-multiple",60451),surroundWith:Ee("surround-with",60452),share:Ee("share",60453),gitStash:Ee("git-stash",60454),gitStashApply:Ee("git-stash-apply",60455),gitStashPop:Ee("git-stash-pop",60456),vscode:Ee("vscode",60457),vscodeInsiders:Ee("vscode-insiders",60458),codeOss:Ee("code-oss",60459),runCoverage:Ee("run-coverage",60460),runAllCoverage:Ee("run-all-coverage",60461),coverage:Ee("coverage",60462),githubProject:Ee("github-project",60463),mapVertical:Ee("map-vertical",60464),foldVertical:Ee("fold-vertical",60464),mapVerticalFilled:Ee("map-vertical-filled",60465),foldVerticalFilled:Ee("fold-vertical-filled",60465),goToSearch:Ee("go-to-search",60466),percentage:Ee("percentage",60467),sortPercentage:Ee("sort-percentage",60467),attach:Ee("attach",60468),goToEditingSession:Ee("go-to-editing-session",60469),editSession:Ee("edit-session",60470),codeReview:Ee("code-review",60471),copilotWarning:Ee("copilot-warning",60472),python:Ee("python",60473),copilotLarge:Ee("copilot-large",60474),copilotWarningLarge:Ee("copilot-warning-large",60475),keyboardTab:Ee("keyboard-tab",60476),copilotBlocked:Ee("copilot-blocked",60477),copilotNotConnected:Ee("copilot-not-connected",60478),flag:Ee("flag",60479),lightbulbEmpty:Ee("lightbulb-empty",60480),symbolMethodArrow:Ee("symbol-method-arrow",60481),copilotUnavailable:Ee("copilot-unavailable",60482),repoPinned:Ee("repo-pinned",60483),keyboardTabAbove:Ee("keyboard-tab-above",60484),keyboardTabBelow:Ee("keyboard-tab-below",60485),gitPullRequestDone:Ee("git-pull-request-done",60486),mcp:Ee("mcp",60487),extensionsLarge:Ee("extensions-large",60488),layoutPanelDock:Ee("layout-panel-dock",60489),layoutSidebarLeftDock:Ee("layout-sidebar-left-dock",60490),layoutSidebarRightDock:Ee("layout-sidebar-right-dock",60491),copilotInProgress:Ee("copilot-in-progress",60492),copilotError:Ee("copilot-error",60493),copilotSuccess:Ee("copilot-success",60494),chatSparkle:Ee("chat-sparkle",60495),searchSparkle:Ee("search-sparkle",60496),editSparkle:Ee("edit-sparkle",60497),copilotSnooze:Ee("copilot-snooze",60498),sendToRemoteAgent:Ee("send-to-remote-agent",60499),commentDiscussionSparkle:Ee("comment-discussion-sparkle",60500),chatSparkleWarning:Ee("chat-sparkle-warning",60501),chatSparkleError:Ee("chat-sparkle-error",60502)},_9e={dialogError:Ee("dialog-error","error"),dialogWarning:Ee("dialog-warning","warning"),dialogInfo:Ee("dialog-info","info"),dialogClose:Ee("dialog-close","close"),treeItemExpanded:Ee("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:Ee("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:Ee("tree-filter-on-type-off","list-selection"),treeFilterClear:Ee("tree-filter-clear","close"),treeItemLoading:Ee("tree-item-loading","loading"),menuSelection:Ee("menu-selection","check"),menuSubmenu:Ee("menu-submenu","chevron-right"),menuBarMore:Ee("menubar-more","more"),scrollbarButtonLeft:Ee("scrollbar-button-left","triangle-left"),scrollbarButtonRight:Ee("scrollbar-button-right","triangle-right"),scrollbarButtonUp:Ee("scrollbar-button-up","triangle-up"),scrollbarButtonDown:Ee("scrollbar-button-down","triangle-down"),toolBarMore:Ee("toolbar-more","more"),quickInputBack:Ee("quick-input-back","arrow-left"),dropDownButton:Ee("drop-down-button",60084),symbolCustomColor:Ee("symbol-customcolor",60252),exportIcon:Ee("export",60332),workspaceUnspecified:Ee("workspace-unspecified",60355),newLine:Ee("newline",60394),thumbsDownFilled:Ee("thumbsdown-filled",60435),thumbsUpFilled:Ee("thumbsup-filled",60436),gitFetch:Ee("git-fetch",60445),lightbulbSparkleAutofix:Ee("lightbulb-sparkle-autofix",60447),debugBreakpointPending:Ee("debug-breakpoint-pending",60377)},_s={...m9e,..._9e};class h9e{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new S1,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(g){this._onDidChange.fire({changedLanguages:g,changedColorMap:!1})}register(g,S){return this._tokenizationSupports.set(g,S),this.handleChange([g]),KB(()=>{this._tokenizationSupports.get(g)===S&&(this._tokenizationSupports.delete(g),this.handleChange([g]))})}get(g){return this._tokenizationSupports.get(g)||null}registerFactory(g,S){var H;(H=this._factories.get(g))==null||H.dispose();const w=new g9e(this,g,S);return this._factories.set(g,w),KB(()=>{const ue=this._factories.get(g);!ue||ue!==w||(this._factories.delete(g),ue.dispose())})}async getOrCreate(g){const S=this.get(g);if(S)return S;const w=this._factories.get(g);return!w||w.isResolved?null:(await w.resolve(),this.get(g))}isResolved(g){if(this.get(g))return!0;const w=this._factories.get(g);return!!(!w||w.isResolved)}setColorMap(g){this._colorMap=g,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class g9e extends YD{get isResolved(){return this._isResolved}constructor(g,S,w){super(),this._registry=g,this._languageId=S,this._factory=w,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const g=await this._factory.tokenizationSupport;this._isResolved=!0,g&&!this._isDisposed&&this._register(this._registry.register(this._languageId,g))}}class v9e{constructor(g,S,w){this.offset=g,this.type=S,this.language=w,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var B0e;(function(_){_[_.Increase=0]="Increase",_[_.Decrease=1]="Decrease"})(B0e||(B0e={}));var G0e;(function(_){const g=new Map;g.set(0,_s.symbolMethod),g.set(1,_s.symbolFunction),g.set(2,_s.symbolConstructor),g.set(3,_s.symbolField),g.set(4,_s.symbolVariable),g.set(5,_s.symbolClass),g.set(6,_s.symbolStruct),g.set(7,_s.symbolInterface),g.set(8,_s.symbolModule),g.set(9,_s.symbolProperty),g.set(10,_s.symbolEvent),g.set(11,_s.symbolOperator),g.set(12,_s.symbolUnit),g.set(13,_s.symbolValue),g.set(15,_s.symbolEnum),g.set(14,_s.symbolConstant),g.set(15,_s.symbolEnum),g.set(16,_s.symbolEnumMember),g.set(17,_s.symbolKeyword),g.set(28,_s.symbolSnippet),g.set(18,_s.symbolText),g.set(19,_s.symbolColor),g.set(20,_s.symbolFile),g.set(21,_s.symbolReference),g.set(22,_s.symbolCustomColor),g.set(23,_s.symbolFolder),g.set(24,_s.symbolTypeParameter),g.set(25,_s.account),g.set(26,_s.issues),g.set(27,_s.tools);function S(Ae){let Be=g.get(Ae);return Be||(console.info("No codicon found for CompletionItemKind "+Ae),Be=_s.symbolProperty),Be}_.toIcon=S;function w(Ae){switch(Ae){case 0:return xs(721,"Method");case 1:return xs(722,"Function");case 2:return xs(723,"Constructor");case 3:return xs(724,"Field");case 4:return xs(725,"Variable");case 5:return xs(726,"Class");case 6:return xs(727,"Struct");case 7:return xs(728,"Interface");case 8:return xs(729,"Module");case 9:return xs(730,"Property");case 10:return xs(731,"Event");case 11:return xs(732,"Operator");case 12:return xs(733,"Unit");case 13:return xs(734,"Value");case 14:return xs(735,"Constant");case 15:return xs(736,"Enum");case 16:return xs(737,"Enum Member");case 17:return xs(738,"Keyword");case 18:return xs(739,"Text");case 19:return xs(740,"Color");case 20:return xs(741,"File");case 21:return xs(742,"Reference");case 22:return xs(743,"Custom Color");case 23:return xs(744,"Folder");case 24:return xs(745,"Type Parameter");case 25:return xs(746,"User");case 26:return xs(747,"Issue");case 27:return xs(748,"Tool");case 28:return xs(749,"Snippet");default:return""}}_.toLabel=w;const H=new Map;H.set("method",0),H.set("function",1),H.set("constructor",2),H.set("field",3),H.set("variable",4),H.set("class",5),H.set("struct",6),H.set("interface",7),H.set("module",8),H.set("property",9),H.set("event",10),H.set("operator",11),H.set("unit",12),H.set("value",13),H.set("constant",14),H.set("enum",15),H.set("enum-member",16),H.set("enumMember",16),H.set("keyword",17),H.set("snippet",28),H.set("text",18),H.set("color",19),H.set("file",20),H.set("reference",21),H.set("customcolor",22),H.set("folder",23),H.set("type-parameter",24),H.set("typeParameter",24),H.set("account",25),H.set("issue",26),H.set("tool",27);function ue(Ae,Be){let at=H.get(Ae);return typeof at>"u"&&!Be&&(at=9),at}_.fromString=ue})(G0e||(G0e={}));var V0e;(function(_){_[_.Automatic=0]="Automatic",_[_.Explicit=1]="Explicit"})(V0e||(V0e={}));var j0e;(function(_){_[_.Code=1]="Code",_[_.Label=2]="Label"})(j0e||(j0e={}));var U0e;(function(_){_[_.Accepted=0]="Accepted",_[_.Rejected=1]="Rejected",_[_.Ignored=2]="Ignored"})(U0e||(U0e={}));var H0e;(function(_){_[_.Automatic=0]="Automatic",_[_.PasteAs=1]="PasteAs"})(H0e||(H0e={}));var q0e;(function(_){_[_.Invoke=1]="Invoke",_[_.TriggerCharacter=2]="TriggerCharacter",_[_.ContentChange=3]="ContentChange"})(q0e||(q0e={}));var J0e;(function(_){_[_.Text=0]="Text",_[_.Read=1]="Read",_[_.Write=2]="Write"})(J0e||(J0e={})),17+"",xs(750,"array"),16+"",xs(751,"boolean"),4+"",xs(752,"class"),13+"",xs(753,"constant"),8+"",xs(754,"constructor"),9+"",xs(755,"enumeration"),21+"",xs(756,"enumeration member"),23+"",xs(757,"event"),7+"",xs(758,"field"),0+"",xs(759,"file"),11+"",xs(760,"function"),10+"",xs(761,"interface"),19+"",xs(762,"key"),5+"",xs(763,"method"),1+"",xs(764,"module"),2+"",xs(765,"namespace"),20+"",xs(766,"null"),15+"",xs(767,"number"),18+"",xs(768,"object"),24+"",xs(769,"operator"),3+"",xs(770,"package"),6+"",xs(771,"property"),14+"",xs(772,"string"),22+"",xs(773,"struct"),25+"",xs(774,"type parameter"),12+"",xs(775,"variable");var K0e;(function(_){const g=new Map;g.set(0,_s.symbolFile),g.set(1,_s.symbolModule),g.set(2,_s.symbolNamespace),g.set(3,_s.symbolPackage),g.set(4,_s.symbolClass),g.set(5,_s.symbolMethod),g.set(6,_s.symbolProperty),g.set(7,_s.symbolField),g.set(8,_s.symbolConstructor),g.set(9,_s.symbolEnum),g.set(10,_s.symbolInterface),g.set(11,_s.symbolFunction),g.set(12,_s.symbolVariable),g.set(13,_s.symbolConstant),g.set(14,_s.symbolString),g.set(15,_s.symbolNumber),g.set(16,_s.symbolBoolean),g.set(17,_s.symbolArray),g.set(18,_s.symbolObject),g.set(19,_s.symbolKey),g.set(20,_s.symbolNull),g.set(21,_s.symbolEnumMember),g.set(22,_s.symbolStruct),g.set(23,_s.symbolEvent),g.set(24,_s.symbolOperator),g.set(25,_s.symbolTypeParameter);function S(ue){let Ae=g.get(ue);return Ae||(console.info("No codicon found for SymbolKind "+ue),Ae=_s.symbolProperty),Ae}_.toIcon=S;const w=new Map;w.set(0,20),w.set(1,8),w.set(2,8),w.set(3,8),w.set(4,5),w.set(5,0),w.set(6,9),w.set(7,3),w.set(8,2),w.set(9,15),w.set(10,7),w.set(11,1),w.set(12,4),w.set(13,14),w.set(14,18),w.set(15,13),w.set(16,13),w.set(17,13),w.set(18,13),w.set(19,17),w.set(20,13),w.set(21,16),w.set(22,6),w.set(23,10),w.set(24,11),w.set(25,24);function H(ue){let Ae=w.get(ue);return Ae===void 0&&(console.info("No completion kind found for SymbolKind "+ue),Ae=20),Ae}_.toCompletionKind=H})(K0e||(K0e={}));const t0=class{static fromValue(g){switch(g){case"comment":return t0.Comment;case"imports":return t0.Imports;case"region":return t0.Region}return new t0(g)}constructor(g){this.value=g}};let X0e=t0;(()=>{t0.Comment=new t0("comment")})(),(()=>{t0.Imports=new t0("imports")})(),(()=>{t0.Region=new t0("region")})();var Y0e;(function(_){_[_.AIGenerated=1]="AIGenerated"})(Y0e||(Y0e={}));var $0e;(function(_){_[_.Invoke=0]="Invoke",_[_.Automatic=1]="Automatic"})($0e||($0e={}));var Q0e;(function(_){function g(S){return!S||typeof S!="object"?!1:typeof S.id=="string"&&typeof S.title=="string"}_.is=g})(Q0e||(Q0e={}));var Z0e;(function(_){_[_.Type=1]="Type",_[_.Parameter=2]="Parameter"})(Z0e||(Z0e={})),new h9e;var e1e;(function(_){_[_.Unknown=0]="Unknown",_[_.Disabled=1]="Disabled",_[_.Enabled=2]="Enabled"})(e1e||(e1e={}));var t1e;(function(_){_[_.Invoke=1]="Invoke",_[_.Auto=2]="Auto"})(t1e||(t1e={}));var n1e;(function(_){_[_.None=0]="None",_[_.KeepWhitespace=1]="KeepWhitespace",_[_.InsertAsSnippet=4]="InsertAsSnippet"})(n1e||(n1e={}));var r1e;(function(_){_[_.Method=0]="Method",_[_.Function=1]="Function",_[_.Constructor=2]="Constructor",_[_.Field=3]="Field",_[_.Variable=4]="Variable",_[_.Class=5]="Class",_[_.Struct=6]="Struct",_[_.Interface=7]="Interface",_[_.Module=8]="Module",_[_.Property=9]="Property",_[_.Event=10]="Event",_[_.Operator=11]="Operator",_[_.Unit=12]="Unit",_[_.Value=13]="Value",_[_.Constant=14]="Constant",_[_.Enum=15]="Enum",_[_.EnumMember=16]="EnumMember",_[_.Keyword=17]="Keyword",_[_.Text=18]="Text",_[_.Color=19]="Color",_[_.File=20]="File",_[_.Reference=21]="Reference",_[_.Customcolor=22]="Customcolor",_[_.Folder=23]="Folder",_[_.TypeParameter=24]="TypeParameter",_[_.User=25]="User",_[_.Issue=26]="Issue",_[_.Tool=27]="Tool",_[_.Snippet=28]="Snippet"})(r1e||(r1e={}));var i1e;(function(_){_[_.Deprecated=1]="Deprecated"})(i1e||(i1e={}));var o1e;(function(_){_[_.Invoke=0]="Invoke",_[_.TriggerCharacter=1]="TriggerCharacter",_[_.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(o1e||(o1e={}));var a1e;(function(_){_[_.EXACT=0]="EXACT",_[_.ABOVE=1]="ABOVE",_[_.BELOW=2]="BELOW"})(a1e||(a1e={}));var s1e;(function(_){_[_.NotSet=0]="NotSet",_[_.ContentFlush=1]="ContentFlush",_[_.RecoverFromMarkers=2]="RecoverFromMarkers",_[_.Explicit=3]="Explicit",_[_.Paste=4]="Paste",_[_.Undo=5]="Undo",_[_.Redo=6]="Redo"})(s1e||(s1e={}));var l1e;(function(_){_[_.LF=1]="LF",_[_.CRLF=2]="CRLF"})(l1e||(l1e={}));var c1e;(function(_){_[_.Text=0]="Text",_[_.Read=1]="Read",_[_.Write=2]="Write"})(c1e||(c1e={}));var u1e;(function(_){_[_.None=0]="None",_[_.Keep=1]="Keep",_[_.Brackets=2]="Brackets",_[_.Advanced=3]="Advanced",_[_.Full=4]="Full"})(u1e||(u1e={}));var d1e;(function(_){_[_.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",_[_.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",_[_.accessibilitySupport=2]="accessibilitySupport",_[_.accessibilityPageSize=3]="accessibilityPageSize",_[_.allowOverflow=4]="allowOverflow",_[_.allowVariableLineHeights=5]="allowVariableLineHeights",_[_.allowVariableFonts=6]="allowVariableFonts",_[_.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",_[_.ariaLabel=8]="ariaLabel",_[_.ariaRequired=9]="ariaRequired",_[_.autoClosingBrackets=10]="autoClosingBrackets",_[_.autoClosingComments=11]="autoClosingComments",_[_.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",_[_.autoClosingDelete=13]="autoClosingDelete",_[_.autoClosingOvertype=14]="autoClosingOvertype",_[_.autoClosingQuotes=15]="autoClosingQuotes",_[_.autoIndent=16]="autoIndent",_[_.autoIndentOnPaste=17]="autoIndentOnPaste",_[_.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",_[_.automaticLayout=19]="automaticLayout",_[_.autoSurround=20]="autoSurround",_[_.bracketPairColorization=21]="bracketPairColorization",_[_.guides=22]="guides",_[_.codeLens=23]="codeLens",_[_.codeLensFontFamily=24]="codeLensFontFamily",_[_.codeLensFontSize=25]="codeLensFontSize",_[_.colorDecorators=26]="colorDecorators",_[_.colorDecoratorsLimit=27]="colorDecoratorsLimit",_[_.columnSelection=28]="columnSelection",_[_.comments=29]="comments",_[_.contextmenu=30]="contextmenu",_[_.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",_[_.cursorBlinking=32]="cursorBlinking",_[_.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",_[_.cursorStyle=34]="cursorStyle",_[_.cursorSurroundingLines=35]="cursorSurroundingLines",_[_.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",_[_.cursorWidth=37]="cursorWidth",_[_.cursorHeight=38]="cursorHeight",_[_.disableLayerHinting=39]="disableLayerHinting",_[_.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",_[_.domReadOnly=41]="domReadOnly",_[_.dragAndDrop=42]="dragAndDrop",_[_.dropIntoEditor=43]="dropIntoEditor",_[_.editContext=44]="editContext",_[_.emptySelectionClipboard=45]="emptySelectionClipboard",_[_.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",_[_.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",_[_.extraEditorClassName=48]="extraEditorClassName",_[_.fastScrollSensitivity=49]="fastScrollSensitivity",_[_.find=50]="find",_[_.fixedOverflowWidgets=51]="fixedOverflowWidgets",_[_.folding=52]="folding",_[_.foldingStrategy=53]="foldingStrategy",_[_.foldingHighlight=54]="foldingHighlight",_[_.foldingImportsByDefault=55]="foldingImportsByDefault",_[_.foldingMaximumRegions=56]="foldingMaximumRegions",_[_.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",_[_.fontFamily=58]="fontFamily",_[_.fontInfo=59]="fontInfo",_[_.fontLigatures=60]="fontLigatures",_[_.fontSize=61]="fontSize",_[_.fontWeight=62]="fontWeight",_[_.fontVariations=63]="fontVariations",_[_.formatOnPaste=64]="formatOnPaste",_[_.formatOnType=65]="formatOnType",_[_.glyphMargin=66]="glyphMargin",_[_.gotoLocation=67]="gotoLocation",_[_.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",_[_.hover=69]="hover",_[_.inDiffEditor=70]="inDiffEditor",_[_.inlineSuggest=71]="inlineSuggest",_[_.letterSpacing=72]="letterSpacing",_[_.lightbulb=73]="lightbulb",_[_.lineDecorationsWidth=74]="lineDecorationsWidth",_[_.lineHeight=75]="lineHeight",_[_.lineNumbers=76]="lineNumbers",_[_.lineNumbersMinChars=77]="lineNumbersMinChars",_[_.linkedEditing=78]="linkedEditing",_[_.links=79]="links",_[_.matchBrackets=80]="matchBrackets",_[_.minimap=81]="minimap",_[_.mouseStyle=82]="mouseStyle",_[_.mouseWheelScrollSensitivity=83]="mouseWheelScrollSensitivity",_[_.mouseWheelZoom=84]="mouseWheelZoom",_[_.multiCursorMergeOverlapping=85]="multiCursorMergeOverlapping",_[_.multiCursorModifier=86]="multiCursorModifier",_[_.multiCursorPaste=87]="multiCursorPaste",_[_.multiCursorLimit=88]="multiCursorLimit",_[_.occurrencesHighlight=89]="occurrencesHighlight",_[_.occurrencesHighlightDelay=90]="occurrencesHighlightDelay",_[_.overtypeCursorStyle=91]="overtypeCursorStyle",_[_.overtypeOnPaste=92]="overtypeOnPaste",_[_.overviewRulerBorder=93]="overviewRulerBorder",_[_.overviewRulerLanes=94]="overviewRulerLanes",_[_.padding=95]="padding",_[_.pasteAs=96]="pasteAs",_[_.parameterHints=97]="parameterHints",_[_.peekWidgetDefaultFocus=98]="peekWidgetDefaultFocus",_[_.placeholder=99]="placeholder",_[_.definitionLinkOpensInPeek=100]="definitionLinkOpensInPeek",_[_.quickSuggestions=101]="quickSuggestions",_[_.quickSuggestionsDelay=102]="quickSuggestionsDelay",_[_.readOnly=103]="readOnly",_[_.readOnlyMessage=104]="readOnlyMessage",_[_.renameOnType=105]="renameOnType",_[_.renderRichScreenReaderContent=106]="renderRichScreenReaderContent",_[_.renderControlCharacters=107]="renderControlCharacters",_[_.renderFinalNewline=108]="renderFinalNewline",_[_.renderLineHighlight=109]="renderLineHighlight",_[_.renderLineHighlightOnlyWhenFocus=110]="renderLineHighlightOnlyWhenFocus",_[_.renderValidationDecorations=111]="renderValidationDecorations",_[_.renderWhitespace=112]="renderWhitespace",_[_.revealHorizontalRightPadding=113]="revealHorizontalRightPadding",_[_.roundedSelection=114]="roundedSelection",_[_.rulers=115]="rulers",_[_.scrollbar=116]="scrollbar",_[_.scrollBeyondLastColumn=117]="scrollBeyondLastColumn",_[_.scrollBeyondLastLine=118]="scrollBeyondLastLine",_[_.scrollPredominantAxis=119]="scrollPredominantAxis",_[_.selectionClipboard=120]="selectionClipboard",_[_.selectionHighlight=121]="selectionHighlight",_[_.selectionHighlightMaxLength=122]="selectionHighlightMaxLength",_[_.selectionHighlightMultiline=123]="selectionHighlightMultiline",_[_.selectOnLineNumbers=124]="selectOnLineNumbers",_[_.showFoldingControls=125]="showFoldingControls",_[_.showUnused=126]="showUnused",_[_.snippetSuggestions=127]="snippetSuggestions",_[_.smartSelect=128]="smartSelect",_[_.smoothScrolling=129]="smoothScrolling",_[_.stickyScroll=130]="stickyScroll",_[_.stickyTabStops=131]="stickyTabStops",_[_.stopRenderingLineAfter=132]="stopRenderingLineAfter",_[_.suggest=133]="suggest",_[_.suggestFontSize=134]="suggestFontSize",_[_.suggestLineHeight=135]="suggestLineHeight",_[_.suggestOnTriggerCharacters=136]="suggestOnTriggerCharacters",_[_.suggestSelection=137]="suggestSelection",_[_.tabCompletion=138]="tabCompletion",_[_.tabIndex=139]="tabIndex",_[_.trimWhitespaceOnDelete=140]="trimWhitespaceOnDelete",_[_.unicodeHighlighting=141]="unicodeHighlighting",_[_.unusualLineTerminators=142]="unusualLineTerminators",_[_.useShadowDOM=143]="useShadowDOM",_[_.useTabStops=144]="useTabStops",_[_.wordBreak=145]="wordBreak",_[_.wordSegmenterLocales=146]="wordSegmenterLocales",_[_.wordSeparators=147]="wordSeparators",_[_.wordWrap=148]="wordWrap",_[_.wordWrapBreakAfterCharacters=149]="wordWrapBreakAfterCharacters",_[_.wordWrapBreakBeforeCharacters=150]="wordWrapBreakBeforeCharacters",_[_.wordWrapColumn=151]="wordWrapColumn",_[_.wordWrapOverride1=152]="wordWrapOverride1",_[_.wordWrapOverride2=153]="wordWrapOverride2",_[_.wrappingIndent=154]="wrappingIndent",_[_.wrappingStrategy=155]="wrappingStrategy",_[_.showDeprecated=156]="showDeprecated",_[_.inertialScroll=157]="inertialScroll",_[_.inlayHints=158]="inlayHints",_[_.wrapOnEscapedLineFeeds=159]="wrapOnEscapedLineFeeds",_[_.effectiveCursorStyle=160]="effectiveCursorStyle",_[_.editorClassName=161]="editorClassName",_[_.pixelRatio=162]="pixelRatio",_[_.tabFocusMode=163]="tabFocusMode",_[_.layoutInfo=164]="layoutInfo",_[_.wrappingInfo=165]="wrappingInfo",_[_.defaultColorDecorators=166]="defaultColorDecorators",_[_.colorDecoratorsActivatedOn=167]="colorDecoratorsActivatedOn",_[_.inlineCompletionsAccessibilityVerbose=168]="inlineCompletionsAccessibilityVerbose",_[_.effectiveEditContext=169]="effectiveEditContext",_[_.scrollOnMiddleClick=170]="scrollOnMiddleClick",_[_.effectiveAllowVariableFonts=171]="effectiveAllowVariableFonts"})(d1e||(d1e={}));var p1e;(function(_){_[_.TextDefined=0]="TextDefined",_[_.LF=1]="LF",_[_.CRLF=2]="CRLF"})(p1e||(p1e={}));var f1e;(function(_){_[_.LF=0]="LF",_[_.CRLF=1]="CRLF"})(f1e||(f1e={}));var m1e;(function(_){_[_.Left=1]="Left",_[_.Center=2]="Center",_[_.Right=3]="Right"})(m1e||(m1e={}));var _1e;(function(_){_[_.Increase=0]="Increase",_[_.Decrease=1]="Decrease"})(_1e||(_1e={}));var h1e;(function(_){_[_.None=0]="None",_[_.Indent=1]="Indent",_[_.IndentOutdent=2]="IndentOutdent",_[_.Outdent=3]="Outdent"})(h1e||(h1e={}));var g1e;(function(_){_[_.Both=0]="Both",_[_.Right=1]="Right",_[_.Left=2]="Left",_[_.None=3]="None"})(g1e||(g1e={}));var v1e;(function(_){_[_.Type=1]="Type",_[_.Parameter=2]="Parameter"})(v1e||(v1e={}));var y1e;(function(_){_[_.Code=1]="Code",_[_.Label=2]="Label"})(y1e||(y1e={}));var b1e;(function(_){_[_.Accepted=0]="Accepted",_[_.Rejected=1]="Rejected",_[_.Ignored=2]="Ignored"})(b1e||(b1e={}));var E1e;(function(_){_[_.Automatic=0]="Automatic",_[_.Explicit=1]="Explicit"})(E1e||(E1e={}));var Ene;(function(_){_[_.DependsOnKbLayout=-1]="DependsOnKbLayout",_[_.Unknown=0]="Unknown",_[_.Backspace=1]="Backspace",_[_.Tab=2]="Tab",_[_.Enter=3]="Enter",_[_.Shift=4]="Shift",_[_.Ctrl=5]="Ctrl",_[_.Alt=6]="Alt",_[_.PauseBreak=7]="PauseBreak",_[_.CapsLock=8]="CapsLock",_[_.Escape=9]="Escape",_[_.Space=10]="Space",_[_.PageUp=11]="PageUp",_[_.PageDown=12]="PageDown",_[_.End=13]="End",_[_.Home=14]="Home",_[_.LeftArrow=15]="LeftArrow",_[_.UpArrow=16]="UpArrow",_[_.RightArrow=17]="RightArrow",_[_.DownArrow=18]="DownArrow",_[_.Insert=19]="Insert",_[_.Delete=20]="Delete",_[_.Digit0=21]="Digit0",_[_.Digit1=22]="Digit1",_[_.Digit2=23]="Digit2",_[_.Digit3=24]="Digit3",_[_.Digit4=25]="Digit4",_[_.Digit5=26]="Digit5",_[_.Digit6=27]="Digit6",_[_.Digit7=28]="Digit7",_[_.Digit8=29]="Digit8",_[_.Digit9=30]="Digit9",_[_.KeyA=31]="KeyA",_[_.KeyB=32]="KeyB",_[_.KeyC=33]="KeyC",_[_.KeyD=34]="KeyD",_[_.KeyE=35]="KeyE",_[_.KeyF=36]="KeyF",_[_.KeyG=37]="KeyG",_[_.KeyH=38]="KeyH",_[_.KeyI=39]="KeyI",_[_.KeyJ=40]="KeyJ",_[_.KeyK=41]="KeyK",_[_.KeyL=42]="KeyL",_[_.KeyM=43]="KeyM",_[_.KeyN=44]="KeyN",_[_.KeyO=45]="KeyO",_[_.KeyP=46]="KeyP",_[_.KeyQ=47]="KeyQ",_[_.KeyR=48]="KeyR",_[_.KeyS=49]="KeyS",_[_.KeyT=50]="KeyT",_[_.KeyU=51]="KeyU",_[_.KeyV=52]="KeyV",_[_.KeyW=53]="KeyW",_[_.KeyX=54]="KeyX",_[_.KeyY=55]="KeyY",_[_.KeyZ=56]="KeyZ",_[_.Meta=57]="Meta",_[_.ContextMenu=58]="ContextMenu",_[_.F1=59]="F1",_[_.F2=60]="F2",_[_.F3=61]="F3",_[_.F4=62]="F4",_[_.F5=63]="F5",_[_.F6=64]="F6",_[_.F7=65]="F7",_[_.F8=66]="F8",_[_.F9=67]="F9",_[_.F10=68]="F10",_[_.F11=69]="F11",_[_.F12=70]="F12",_[_.F13=71]="F13",_[_.F14=72]="F14",_[_.F15=73]="F15",_[_.F16=74]="F16",_[_.F17=75]="F17",_[_.F18=76]="F18",_[_.F19=77]="F19",_[_.F20=78]="F20",_[_.F21=79]="F21",_[_.F22=80]="F22",_[_.F23=81]="F23",_[_.F24=82]="F24",_[_.NumLock=83]="NumLock",_[_.ScrollLock=84]="ScrollLock",_[_.Semicolon=85]="Semicolon",_[_.Equal=86]="Equal",_[_.Comma=87]="Comma",_[_.Minus=88]="Minus",_[_.Period=89]="Period",_[_.Slash=90]="Slash",_[_.Backquote=91]="Backquote",_[_.BracketLeft=92]="BracketLeft",_[_.Backslash=93]="Backslash",_[_.BracketRight=94]="BracketRight",_[_.Quote=95]="Quote",_[_.OEM_8=96]="OEM_8",_[_.IntlBackslash=97]="IntlBackslash",_[_.Numpad0=98]="Numpad0",_[_.Numpad1=99]="Numpad1",_[_.Numpad2=100]="Numpad2",_[_.Numpad3=101]="Numpad3",_[_.Numpad4=102]="Numpad4",_[_.Numpad5=103]="Numpad5",_[_.Numpad6=104]="Numpad6",_[_.Numpad7=105]="Numpad7",_[_.Numpad8=106]="Numpad8",_[_.Numpad9=107]="Numpad9",_[_.NumpadMultiply=108]="NumpadMultiply",_[_.NumpadAdd=109]="NumpadAdd",_[_.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",_[_.NumpadSubtract=111]="NumpadSubtract",_[_.NumpadDecimal=112]="NumpadDecimal",_[_.NumpadDivide=113]="NumpadDivide",_[_.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",_[_.ABNT_C1=115]="ABNT_C1",_[_.ABNT_C2=116]="ABNT_C2",_[_.AudioVolumeMute=117]="AudioVolumeMute",_[_.AudioVolumeUp=118]="AudioVolumeUp",_[_.AudioVolumeDown=119]="AudioVolumeDown",_[_.BrowserSearch=120]="BrowserSearch",_[_.BrowserHome=121]="BrowserHome",_[_.BrowserBack=122]="BrowserBack",_[_.BrowserForward=123]="BrowserForward",_[_.MediaTrackNext=124]="MediaTrackNext",_[_.MediaTrackPrevious=125]="MediaTrackPrevious",_[_.MediaStop=126]="MediaStop",_[_.MediaPlayPause=127]="MediaPlayPause",_[_.LaunchMediaPlayer=128]="LaunchMediaPlayer",_[_.LaunchMail=129]="LaunchMail",_[_.LaunchApp2=130]="LaunchApp2",_[_.Clear=131]="Clear",_[_.MAX_VALUE=132]="MAX_VALUE"})(Ene||(Ene={}));var Sne;(function(_){_[_.Hint=1]="Hint",_[_.Info=2]="Info",_[_.Warning=4]="Warning",_[_.Error=8]="Error"})(Sne||(Sne={}));var Tne;(function(_){_[_.Unnecessary=1]="Unnecessary",_[_.Deprecated=2]="Deprecated"})(Tne||(Tne={}));var S1e;(function(_){_[_.Inline=1]="Inline",_[_.Gutter=2]="Gutter"})(S1e||(S1e={}));var T1e;(function(_){_[_.Normal=1]="Normal",_[_.Underlined=2]="Underlined"})(T1e||(T1e={}));var A1e;(function(_){_[_.UNKNOWN=0]="UNKNOWN",_[_.TEXTAREA=1]="TEXTAREA",_[_.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",_[_.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",_[_.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",_[_.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",_[_.CONTENT_TEXT=6]="CONTENT_TEXT",_[_.CONTENT_EMPTY=7]="CONTENT_EMPTY",_[_.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",_[_.CONTENT_WIDGET=9]="CONTENT_WIDGET",_[_.OVERVIEW_RULER=10]="OVERVIEW_RULER",_[_.SCROLLBAR=11]="SCROLLBAR",_[_.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",_[_.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(A1e||(A1e={}));var I1e;(function(_){_[_.AIGenerated=1]="AIGenerated"})(I1e||(I1e={}));var x1e;(function(_){_[_.Invoke=0]="Invoke",_[_.Automatic=1]="Automatic"})(x1e||(x1e={}));var R1e;(function(_){_[_.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",_[_.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",_[_.TOP_CENTER=2]="TOP_CENTER"})(R1e||(R1e={}));var D1e;(function(_){_[_.Left=1]="Left",_[_.Center=2]="Center",_[_.Right=4]="Right",_[_.Full=7]="Full"})(D1e||(D1e={}));var N1e;(function(_){_[_.Word=0]="Word",_[_.Line=1]="Line",_[_.Suggest=2]="Suggest"})(N1e||(N1e={}));var C1e;(function(_){_[_.Left=0]="Left",_[_.Right=1]="Right",_[_.None=2]="None",_[_.LeftOfInjectedText=3]="LeftOfInjectedText",_[_.RightOfInjectedText=4]="RightOfInjectedText"})(C1e||(C1e={}));var P1e;(function(_){_[_.Off=0]="Off",_[_.On=1]="On",_[_.Relative=2]="Relative",_[_.Interval=3]="Interval",_[_.Custom=4]="Custom"})(P1e||(P1e={}));var M1e;(function(_){_[_.None=0]="None",_[_.Text=1]="Text",_[_.Blocks=2]="Blocks"})(M1e||(M1e={}));var L1e;(function(_){_[_.Smooth=0]="Smooth",_[_.Immediate=1]="Immediate"})(L1e||(L1e={}));var k1e;(function(_){_[_.Auto=1]="Auto",_[_.Hidden=2]="Hidden",_[_.Visible=3]="Visible"})(k1e||(k1e={}));var Ane;(function(_){_[_.LTR=0]="LTR",_[_.RTL=1]="RTL"})(Ane||(Ane={}));var w1e;(function(_){_.Off="off",_.OnCode="onCode",_.On="on"})(w1e||(w1e={}));var O1e;(function(_){_[_.Invoke=1]="Invoke",_[_.TriggerCharacter=2]="TriggerCharacter",_[_.ContentChange=3]="ContentChange"})(O1e||(O1e={}));var W1e;(function(_){_[_.File=0]="File",_[_.Module=1]="Module",_[_.Namespace=2]="Namespace",_[_.Package=3]="Package",_[_.Class=4]="Class",_[_.Method=5]="Method",_[_.Property=6]="Property",_[_.Field=7]="Field",_[_.Constructor=8]="Constructor",_[_.Enum=9]="Enum",_[_.Interface=10]="Interface",_[_.Function=11]="Function",_[_.Variable=12]="Variable",_[_.Constant=13]="Constant",_[_.String=14]="String",_[_.Number=15]="Number",_[_.Boolean=16]="Boolean",_[_.Array=17]="Array",_[_.Object=18]="Object",_[_.Key=19]="Key",_[_.Null=20]="Null",_[_.EnumMember=21]="EnumMember",_[_.Struct=22]="Struct",_[_.Event=23]="Event",_[_.Operator=24]="Operator",_[_.TypeParameter=25]="TypeParameter"})(W1e||(W1e={}));var F1e;(function(_){_[_.Deprecated=1]="Deprecated"})(F1e||(F1e={}));var z1e;(function(_){_[_.LTR=0]="LTR",_[_.RTL=1]="RTL"})(z1e||(z1e={}));var B1e;(function(_){_[_.Hidden=0]="Hidden",_[_.Blink=1]="Blink",_[_.Smooth=2]="Smooth",_[_.Phase=3]="Phase",_[_.Expand=4]="Expand",_[_.Solid=5]="Solid"})(B1e||(B1e={}));var G1e;(function(_){_[_.Line=1]="Line",_[_.Block=2]="Block",_[_.Underline=3]="Underline",_[_.LineThin=4]="LineThin",_[_.BlockOutline=5]="BlockOutline",_[_.UnderlineThin=6]="UnderlineThin"})(G1e||(G1e={}));var V1e;(function(_){_[_.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",_[_.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",_[_.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",_[_.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(V1e||(V1e={}));var j1e;(function(_){_[_.None=0]="None",_[_.Same=1]="Same",_[_.Indent=2]="Indent",_[_.DeepIndent=3]="DeepIndent"})(j1e||(j1e={}));const KM=class{static chord(g,S){return XFe(g,S)}};let Ine=KM;(()=>{KM.CtrlCmd=2048})(),(()=>{KM.Shift=1024})(),(()=>{KM.Alt=512})(),(()=>{KM.WinCtrl=256})();function y9e(){return{editor:void 0,languages:void 0,CancellationTokenSource:HFe,Emitter:S1,KeyCode:Ene,KeyMod:Ine,Position:jc,Range:ns,Selection:Ty,SelectionDirection:Ane,MarkerSeverity:Sne,MarkerTag:Tne,Uri:eN,Token:v9e}}var U1e,H1e;class b9e{constructor(g,S){this.uri=g,this.value=S}}function E9e(_){return Array.isArray(_)}const rN=class{constructor(g,S){if(this[U1e]="ResourceMap",g instanceof rN)this.map=new Map(g.map),this.toKey=S!=null?S:rN.defaultToKey;else if(E9e(g)){this.map=new Map,this.toKey=S!=null?S:rN.defaultToKey;for(const[w,H]of g)this.set(w,H)}else this.map=new Map,this.toKey=g!=null?g:rN.defaultToKey}set(g,S){return this.map.set(this.toKey(g),new b9e(g,S)),this}get(g){var S;return(S=this.map.get(this.toKey(g)))==null?void 0:S.value}has(g){return this.map.has(this.toKey(g))}get size(){return this.map.size}clear(){this.map.clear()}delete(g){return this.map.delete(this.toKey(g))}forEach(g,S){typeof S<"u"&&(g=g.bind(S));for(const[w,H]of this.map)g(H.value,H.uri,this)}*values(){for(const g of this.map.values())yield g.value}*keys(){for(const g of this.map.values())yield g.uri}*entries(){for(const g of this.map.values())yield[g.uri,g.value]}*[(U1e=Symbol.toStringTag,Symbol.iterator)](){for(const[,g]of this.map)yield[g.uri,g.value]}};let q1e=rN;(()=>{rN.defaultToKey=g=>g.toString()})();class S9e{constructor(){this[H1e]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var g;return(g=this._head)==null?void 0:g.value}get last(){var g;return(g=this._tail)==null?void 0:g.value}has(g){return this._map.has(g)}get(g,S=0){const w=this._map.get(g);if(!!w)return S!==0&&this.touch(w,S),w.value}set(g,S,w=0){let H=this._map.get(g);if(H)H.value=S,w!==0&&this.touch(H,w);else{switch(H={key:g,value:S,next:void 0,previous:void 0},w){case 0:this.addItemLast(H);break;case 1:this.addItemFirst(H);break;case 2:this.addItemLast(H);break;default:this.addItemLast(H);break}this._map.set(g,H),this._size++}return this}delete(g){return!!this.remove(g)}remove(g){const S=this._map.get(g);if(!!S)return this._map.delete(g),this.removeItem(S),this._size--,S.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const g=this._head;return this._map.delete(g.key),this.removeItem(g),this._size--,g.value}forEach(g,S){const w=this._state;let H=this._head;for(;H;){if(S?g.bind(S)(H.value,H.key,this):g(H.value,H.key,this),this._state!==w)throw new Error("LinkedMap got modified during iteration.");H=H.next}}keys(){const g=this,S=this._state;let w=this._head;const H={[Symbol.iterator](){return H},next(){if(g._state!==S)throw new Error("LinkedMap got modified during iteration.");if(w){const ue={value:w.key,done:!1};return w=w.next,ue}else return{value:void 0,done:!0}}};return H}values(){const g=this,S=this._state;let w=this._head;const H={[Symbol.iterator](){return H},next(){if(g._state!==S)throw new Error("LinkedMap got modified during iteration.");if(w){const ue={value:w.value,done:!1};return w=w.next,ue}else return{value:void 0,done:!0}}};return H}entries(){const g=this,S=this._state;let w=this._head;const H={[Symbol.iterator](){return H},next(){if(g._state!==S)throw new Error("LinkedMap got modified during iteration.");if(w){const ue={value:[w.key,w.value],done:!1};return w=w.next,ue}else return{value:void 0,done:!0}}};return H}[(H1e=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(g){if(g>=this.size)return;if(g===0){this.clear();return}let S=this._head,w=this.size;for(;S&&w>g;)this._map.delete(S.key),S=S.next,w--;this._head=S,this._size=w,S&&(S.previous=void 0),this._state++}trimNew(g){if(g>=this.size)return;if(g===0){this.clear();return}let S=this._tail,w=this.size;for(;S&&w>g;)this._map.delete(S.key),S=S.previous,w--;this._tail=S,this._size=w,S&&(S.next=void 0),this._state++}addItemFirst(g){if(!this._head&&!this._tail)this._tail=g;else if(this._head)g.next=this._head,this._head.previous=g;else throw new Error("Invalid list");this._head=g,this._state++}addItemLast(g){if(!this._head&&!this._tail)this._head=g;else if(this._tail)g.previous=this._tail,this._tail.next=g;else throw new Error("Invalid list");this._tail=g,this._state++}removeItem(g){if(g===this._head&&g===this._tail)this._head=void 0,this._tail=void 0;else if(g===this._head){if(!g.next)throw new Error("Invalid list");g.next.previous=void 0,this._head=g.next}else if(g===this._tail){if(!g.previous)throw new Error("Invalid list");g.previous.next=void 0,this._tail=g.previous}else{const S=g.next,w=g.previous;if(!S||!w)throw new Error("Invalid list");S.previous=w,w.next=S}g.next=void 0,g.previous=void 0,this._state++}touch(g,S){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(S!==1&&S!==2)){if(S===1){if(g===this._head)return;const w=g.next,H=g.previous;g===this._tail?(H.next=void 0,this._tail=H):(w.previous=H,H.next=w),g.previous=void 0,g.next=this._head,this._head.previous=g,this._head=g,this._state++}else if(S===2){if(g===this._tail)return;const w=g.next,H=g.previous;g===this._head?(w.previous=void 0,this._head=w):(w.previous=H,H.next=w),g.next=void 0,g.previous=this._tail,this._tail.next=g,this._tail=g,this._state++}}}toJSON(){const g=[];return this.forEach((S,w)=>{g.push([w,S])}),g}fromJSON(g){this.clear();for(const[S,w]of g)this.set(S,w)}}class T9e extends S9e{constructor(g,S=1){super(),this._limit=g,this._ratio=Math.min(Math.max(0,S),1)}get limit(){return this._limit}set limit(g){this._limit=g,this.checkTrim()}get(g,S=2){return super.get(g,S)}peek(g){return super.get(g,0)}set(g,S){return super.set(g,S,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class A9e extends T9e{constructor(g,S=1){super(g,S)}trim(g){this.trimOld(g)}set(g,S){return super.set(g,S),this.checkTrim(),this}}class I9e{constructor(){this.map=new Map}add(g,S){let w=this.map.get(g);w||(w=new Set,this.map.set(g,w)),w.add(S)}delete(g,S){const w=this.map.get(g);!w||(w.delete(S),w.size===0&&this.map.delete(g))}forEach(g,S){const w=this.map.get(g);!w||w.forEach(S)}}new A9e(10);var J1e;(function(_){_[_.Left=1]="Left",_[_.Center=2]="Center",_[_.Right=4]="Right",_[_.Full=7]="Full"})(J1e||(J1e={}));var K1e;(function(_){_[_.Left=1]="Left",_[_.Center=2]="Center",_[_.Right=3]="Right"})(K1e||(K1e={}));var X1e;(function(_){_[_.LTR=0]="LTR",_[_.RTL=1]="RTL"})(X1e||(X1e={}));var Y1e;(function(_){_[_.Both=0]="Both",_[_.Right=1]="Right",_[_.Left=2]="Left",_[_.None=3]="None"})(Y1e||(Y1e={}));function x9e(_){if(!_||_.length===0)return!1;for(let g=0,S=_.length;g<S;g++){const w=_.charCodeAt(g);if(w===10)return!0;if(w===92){if(g++,g>=S)break;const H=_.charCodeAt(g);if(H===110||H===114||H===87)return!0}}return!1}function R9e(_,g,S,w,H){if(w===0)return!0;const ue=g.charCodeAt(w-1);if(_.get(ue)!==0||ue===13||ue===10)return!0;if(H>0){const Ae=g.charCodeAt(w);if(_.get(Ae)!==0)return!0}return!1}function D9e(_,g,S,w,H){if(w+H===S)return!0;const ue=g.charCodeAt(w+H);if(_.get(ue)!==0||ue===13||ue===10)return!0;if(H>0){const Ae=g.charCodeAt(w+H-1);if(_.get(Ae)!==0)return!0}return!1}function N9e(_,g,S,w,H){return R9e(_,g,S,w,H)&&D9e(_,g,S,w,H)}class C9e{constructor(g,S){this._wordSeparators=g,this._searchRegex=S,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(g){this._searchRegex.lastIndex=g,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(g){const S=g.length;let w;do{if(this._prevMatchStartIndex+this._prevMatchLength===S||(w=this._searchRegex.exec(g),!w))return null;const H=w.index,ue=w[0].length;if(H===this._prevMatchStartIndex&&ue===this._prevMatchLength){if(ue===0){IFe(g,S,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=H,this._prevMatchLength=ue,!this._wordSeparators||N9e(this._wordSeparators,g,S,H,ue))return w}while(w);return null}}const P9e="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function M9e(_=""){let g="(-?\\d*\\.\\d\\w*)|([^";for(const S of P9e)_.indexOf(S)>=0||(g+="\\"+S);return g+="\\s]+)",new RegExp(g,"g")}const $1e=M9e();function Q1e(_){let g=$1e;if(_&&_ instanceof RegExp)if(_.global)g=_;else{let S="g";_.ignoreCase&&(S+="i"),_.multiline&&(S+="m"),_.unicode&&(S+="u"),g=new RegExp(_.source,S)}return g.lastIndex=0,g}const Z1e=new tFe;Z1e.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function xne(_,g,S,w,H){if(g=Q1e(g),H||(H=JB.first(Z1e)),S.length>H.maxLen){let Pe=_-H.maxLen/2;return Pe<0?Pe=0:w+=Pe,S=S.substring(Pe,_+H.maxLen/2),xne(_,g,S,w,H)}const ue=Date.now(),Ae=_-1-w;let Be=-1,at=null;for(let Pe=1;!(Date.now()-ue>=H.timeBudget);Pe++){const Ve=Ae-H.windowSize*Pe;g.lastIndex=Math.max(0,Ve);const Ht=L9e(g,S,Ae,Be);if(!Ht&&at||(at=Ht,Ve<=0))break;Be=Ve}if(at){const Pe={word:at[0],startColumn:w+1+at.index,endColumn:w+1+at.index+at[0].length};return g.lastIndex=0,Pe}return null}function L9e(_,g,S,w){let H;for(;H=_.exec(g);){const ue=H.index||0;if(ue<=S&&_.lastIndex>=S)return H;if(w>0&&ue>w)return null}return null}class k9e{static computeUnicodeHighlights(g,S,w){const H=w?w.startLineNumber:1,ue=w?w.endLineNumber:g.getLineCount(),Ae=new eEe(S),Be=Ae.getCandidateCodePoints();let at;Be==="allNonBasicAscii"?at=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):at=new RegExp(`${w9e(Array.from(Be))}`,"g");const Pe=new C9e(null,at),Ve=[];let Ht=!1,$t,ar=0,Fn=0,In=0;e:for(let Oi=H,Bn=ue;Oi<=Bn;Oi++){const un=g.getLineContent(Oi),Mi=un.length;Pe.reset(0);do if($t=Pe.next(un),$t){let Ji=$t.index,as=$t.index+$t[0].length;if(Ji>0){const Mo=un.charCodeAt(Ji-1);QB(Mo)&&Ji--}if(as+1<Mi){const Mo=un.charCodeAt(as-1);QB(Mo)&&as++}const rl=un.substring(Ji,as);let Mn=xne(Ji+1,$1e,un,0);Mn&&Mn.endColumn<=Ji+1&&(Mn=null);const Ni=Ae.shouldHighlightNonBasicASCII(rl,Mn?Mn.word:null);if(Ni!==0){Ni===3?ar++:Ni===2?Fn++:Ni===1?In++:YWe();const Mo=1e3;if(Ve.length>=Mo){Ht=!0;break e}Ve.push(new ns(Oi,Ji+1,Oi,as+1))}}while($t)}return{ranges:Ve,hasMore:Ht,ambiguousCharacterCount:ar,invisibleCharacterCount:Fn,nonBasicAsciiCharacterCount:In}}static computeUnicodeHighlightReason(g,S){const w=new eEe(S);switch(w.shouldHighlightNonBasicASCII(g,null)){case 0:return null;case 2:return{kind:1};case 3:{const ue=g.codePointAt(0),Ae=w.ambiguousCharacters.getPrimaryConfusable(ue),Be=M8.getLocales().filter(at=>!M8.getInstance(new Set([...S.allowedLocales,at])).isAmbiguous(ue));return{kind:0,confusableWith:String.fromCodePoint(Ae),notAmbiguousInLocales:Be}}case 1:return{kind:2}}}}function w9e(_,g){return`[${vFe(_.map(w=>String.fromCodePoint(w)).join(""))}]`}class eEe{constructor(g){this.options=g,this.allowedCodePoints=new Set(g.allowedCodePoints),this.ambiguousCharacters=M8.getInstance(new Set(g.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const g=new Set;if(this.options.invisibleCharacters)for(const S of L8.codePoints)tEe(String.fromCodePoint(S))||g.add(S);if(this.options.ambiguousCharacters)for(const S of this.ambiguousCharacters.getConfusableCodePoints())g.add(S);for(const S of this.allowedCodePoints)g.delete(S);return g}shouldHighlightNonBasicASCII(g,S){const w=g.codePointAt(0);if(this.allowedCodePoints.has(w))return 0;if(this.options.nonBasicASCII)return 1;let H=!1,ue=!1;if(S)for(const Ae of S){const Be=Ae.codePointAt(0),at=RFe(Ae);H=H||at,!at&&!this.ambiguousCharacters.isAmbiguous(Be)&&!L8.isInvisibleCharacter(Be)&&(ue=!0)}return!H&&ue?0:this.options.invisibleCharacters&&!tEe(g)&&L8.isInvisibleCharacter(w)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(w)?3:0}}function tEe(_){return _===" "||_===`
`||_===" "}class aG{constructor(g,S,w){this.changes=g,this.moves=S,this.hitTimeout=w}}class O9e{constructor(g,S){this.lineRangeMapping=g,this.changes=S}}function W9e(_,g,S=(w,H)=>w===H){if(_===g)return!0;if(!_||!g||_.length!==g.length)return!1;for(let w=0,H=_.length;w<H;w++)if(!S(_[w],g[w]))return!1;return!0}function*F9e(_,g){let S,w;for(const H of _)w!==void 0&&g(w,H)?S.push(H):(S&&(yield S),S=[H]),w=H;S&&(yield S)}function z9e(_,g){for(let S=0;S<=_.length;S++)g(S===0?void 0:_[S-1],S===_.length?void 0:_[S])}function B9e(_,g){for(let S=0;S<_.length;S++)g(S===0?void 0:_[S-1],_[S],S+1===_.length?void 0:_[S+1])}function G9e(_,g){for(const S of g)_.push(S)}var Rne;(function(_){function g(ue){return ue<0}_.isLessThan=g;function S(ue){return ue<=0}_.isLessThanOrEqual=S;function w(ue){return ue>0}_.isGreaterThan=w;function H(ue){return ue===0}_.isNeitherLessOrGreaterThan=H,_.greaterThan=1,_.lessThan=-1,_.neitherLessOrGreaterThan=0})(Rne||(Rne={}));function O8(_,g){return(S,w)=>g(_(S),_(w))}const W8=(_,g)=>_-g;function V9e(_){return(g,S)=>-_(g,S)}const XM=class{constructor(g){this.iterate=g}toArray(){const g=[];return this.iterate(S=>(g.push(S),!0)),g}filter(g){return new XM(S=>this.iterate(w=>g(w)?S(w):!0))}map(g){return new XM(S=>this.iterate(w=>S(g(w))))}findLast(g){let S;return this.iterate(w=>(g(w)&&(S=w),!0)),S}findLastMaxBy(g){let S,w=!0;return this.iterate(H=>((w||Rne.isGreaterThan(g(H,S)))&&(w=!1,S=H),!0)),S}};let nEe=XM;(()=>{XM.empty=new XM(g=>{})})();class Yl{static fromTo(g,S){return new Yl(g,S)}static addRange(g,S){let w=0;for(;w<S.length&&S[w].endExclusive<g.start;)w++;let H=w;for(;H<S.length&&S[H].start<=g.endExclusive;)H++;if(w===H)S.splice(w,0,g);else{const ue=Math.min(g.start,S[w].start),Ae=Math.max(g.endExclusive,S[H-1].endExclusive);S.splice(w,H-w,new Yl(ue,Ae))}}static tryCreate(g,S){if(!(g>S))return new Yl(g,S)}static ofLength(g){return new Yl(0,g)}static ofStartAndLength(g,S){return new Yl(g,g+S)}static emptyAt(g){return new Yl(g,g)}constructor(g,S){if(this.start=g,this.endExclusive=S,g>S)throw new ch(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(g){return new Yl(this.start+g,this.endExclusive+g)}deltaStart(g){return new Yl(this.start+g,this.endExclusive)}deltaEnd(g){return new Yl(this.start,this.endExclusive+g)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(g){return this.start===g.start&&this.endExclusive===g.endExclusive}contains(g){return this.start<=g&&g<this.endExclusive}join(g){return new Yl(Math.min(this.start,g.start),Math.max(this.endExclusive,g.endExclusive))}intersect(g){const S=Math.max(this.start,g.start),w=Math.min(this.endExclusive,g.endExclusive);if(S<=w)return new Yl(S,w)}intersectionLength(g){const S=Math.max(this.start,g.start),w=Math.min(this.endExclusive,g.endExclusive);return Math.max(0,w-S)}intersects(g){const S=Math.max(this.start,g.start),w=Math.min(this.endExclusive,g.endExclusive);return S<w}intersectsOrTouches(g){const S=Math.max(this.start,g.start),w=Math.min(this.endExclusive,g.endExclusive);return S<=w}isBefore(g){return this.endExclusive<=g.start}isAfter(g){return this.start>=g.endExclusive}slice(g){return g.slice(this.start,this.endExclusive)}substring(g){return g.substring(this.start,this.endExclusive)}clip(g){if(this.isEmpty)throw new ch(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,g))}clipCyclic(g){if(this.isEmpty)throw new ch(`Invalid clipping range: ${this.toString()}`);return g<this.start?this.endExclusive-(this.start-g)%this.length:g>=this.endExclusive?this.start+(g-this.start)%this.length:g}forEach(g){for(let S=this.start;S<this.endExclusive;S++)g(S)}joinRightTouching(g){if(this.endExclusive!==g.start)throw new ch(`Invalid join: ${this.toString()} and ${g.toString()}`);return new Yl(this.start,g.endExclusive)}}function WM(_,g){const S=FM(_,g);return S===-1?void 0:_[S]}function FM(_,g,S=0,w=_.length){let H=S,ue=w;for(;H<ue;){const Ae=Math.floor((H+ue)/2);g(_[Ae])?H=Ae+1:ue=Ae}return H-1}function j9e(_,g){const S=Dne(_,g);return S===_.length?void 0:_[S]}function Dne(_,g,S=0,w=_.length){let H=S,ue=w;for(;H<ue;){const Ae=Math.floor((H+ue)/2);g(_[Ae])?ue=Ae:H=Ae+1}return H}const hG=class{constructor(g){this._array=g,this._findLastMonotonousLastIdx=0}findLastMonotonous(g){if(hG.assertInvariants){if(this._prevFindLastPredicate){for(const w of this._array)if(this._prevFindLastPredicate(w)&&!g(w))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=g}const S=FM(this._array,g,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=S+1,S===-1?void 0:this._array[S]}};let sG=hG;(()=>{hG.assertInvariants=!1})();const n0=class{static ofLength(g,S){return new n0(g,g+S)}static fromRangeInclusive(g){return new n0(g.startLineNumber,g.endLineNumber+1)}static joinMany(g){if(g.length===0)return[];let S=new lS(g[0].slice());for(let w=1;w<g.length;w++)S=S.getUnion(new lS(g[w].slice()));return S.ranges}static join(g){if(g.length===0)throw new ch("lineRanges cannot be empty");let S=g[0].startLineNumber,w=g[0].endLineNumberExclusive;for(let H=1;H<g.length;H++)S=Math.min(S,g[H].startLineNumber),w=Math.max(w,g[H].endLineNumberExclusive);return new n0(S,w)}static deserialize(g){return new n0(g[0],g[1])}constructor(g,S){if(g>S)throw new ch(`startLineNumber ${g} cannot be after endLineNumberExclusive ${S}`);this.startLineNumber=g,this.endLineNumberExclusive=S}contains(g){return this.startLineNumber<=g&&g<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(g){return new n0(this.startLineNumber+g,this.endLineNumberExclusive+g)}deltaLength(g){return new n0(this.startLineNumber,this.endLineNumberExclusive+g)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(g){return new n0(Math.min(this.startLineNumber,g.startLineNumber),Math.max(this.endLineNumberExclusive,g.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(g){const S=Math.max(this.startLineNumber,g.startLineNumber),w=Math.min(this.endLineNumberExclusive,g.endLineNumberExclusive);if(S<=w)return new n0(S,w)}intersectsStrict(g){return this.startLineNumber<g.endLineNumberExclusive&&g.startLineNumber<this.endLineNumberExclusive}intersectsOrTouches(g){return this.startLineNumber<=g.endLineNumberExclusive&&g.startLineNumber<=this.endLineNumberExclusive}equals(g){return this.startLineNumber===g.startLineNumber&&this.endLineNumberExclusive===g.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new ns(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new ns(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(g){const S=[];for(let w=this.startLineNumber;w<this.endLineNumberExclusive;w++)S.push(g(w));return S}forEach(g){for(let S=this.startLineNumber;S<this.endLineNumberExclusive;S++)g(S)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}toOffsetRange(){return new Yl(this.startLineNumber-1,this.endLineNumberExclusive-1)}addMargin(g,S){return new n0(this.startLineNumber-g,this.endLineNumberExclusive+S)}};let Oc=n0;(()=>{n0.compareByStart=O8(g=>g.startLineNumber,W8)})();class lS{constructor(g=[]){this._normalizedRanges=g}get ranges(){return this._normalizedRanges}addRange(g){if(g.length===0)return;const S=Dne(this._normalizedRanges,H=>H.endLineNumberExclusive>=g.startLineNumber),w=FM(this._normalizedRanges,H=>H.startLineNumber<=g.endLineNumberExclusive)+1;if(S===w)this._normalizedRanges.splice(S,0,g);else if(S===w-1){const H=this._normalizedRanges[S];this._normalizedRanges[S]=H.join(g)}else{const H=this._normalizedRanges[S].join(this._normalizedRanges[w-1]).join(g);this._normalizedRanges.splice(S,w-S,H)}}contains(g){const S=WM(this._normalizedRanges,w=>w.startLineNumber<=g);return!!S&&S.endLineNumberExclusive>g}intersects(g){const S=WM(this._normalizedRanges,w=>w.startLineNumber<g.endLineNumberExclusive);return!!S&&S.endLineNumberExclusive>g.startLineNumber}getUnion(g){if(this._normalizedRanges.length===0)return g;if(g._normalizedRanges.length===0)return this;const S=[];let w=0,H=0,ue=null;for(;w<this._normalizedRanges.length||H<g._normalizedRanges.length;){let Ae=null;if(w<this._normalizedRanges.length&&H<g._normalizedRanges.length){const Be=this._normalizedRanges[w],at=g._normalizedRanges[H];Be.startLineNumber<at.startLineNumber?(Ae=Be,w++):(Ae=at,H++)}else w<this._normalizedRanges.length?(Ae=this._normalizedRanges[w],w++):(Ae=g._normalizedRanges[H],H++);ue===null?ue=Ae:ue.endLineNumberExclusive>=Ae.startLineNumber?ue=new Oc(ue.startLineNumber,Math.max(ue.endLineNumberExclusive,Ae.endLineNumberExclusive)):(S.push(ue),ue=Ae)}return ue!==null&&S.push(ue),new lS(S)}subtractFrom(g){const S=Dne(this._normalizedRanges,Ae=>Ae.endLineNumberExclusive>=g.startLineNumber),w=FM(this._normalizedRanges,Ae=>Ae.startLineNumber<=g.endLineNumberExclusive)+1;if(S===w)return new lS([g]);const H=[];let ue=g.startLineNumber;for(let Ae=S;Ae<w;Ae++){const Be=this._normalizedRanges[Ae];Be.startLineNumber>ue&&H.push(new Oc(ue,Be.startLineNumber)),ue=Be.endLineNumberExclusive}return ue<g.endLineNumberExclusive&&H.push(new Oc(ue,g.endLineNumberExclusive)),new lS(H)}toString(){return this._normalizedRanges.map(g=>g.toString()).join(", ")}getIntersection(g){const S=[];let w=0,H=0;for(;w<this._normalizedRanges.length&&H<g._normalizedRanges.length;){const ue=this._normalizedRanges[w],Ae=g._normalizedRanges[H],Be=ue.intersect(Ae);Be&&!Be.isEmpty&&S.push(Be),ue.endLineNumberExclusive<Ae.endLineNumberExclusive?w++:H++}return new lS(S)}getWithDelta(g){return new lS(this._normalizedRanges.map(S=>S.delta(g)))}}const R1=class{static betweenPositions(g,S){return g.lineNumber===S.lineNumber?new R1(0,S.column-g.column):new R1(S.lineNumber-g.lineNumber,S.column-1)}static fromPosition(g){return new R1(g.lineNumber-1,g.column-1)}static ofRange(g){return R1.betweenPositions(g.getStartPosition(),g.getEndPosition())}static ofText(g){let S=0,w=0;for(const H of g)H===`
`?(S++,w=0):w++;return new R1(S,w)}constructor(g,S){this.lineCount=g,this.columnCount=S}isGreaterThanOrEqualTo(g){return this.lineCount!==g.lineCount?this.lineCount>g.lineCount:this.columnCount>=g.columnCount}add(g){return g.lineCount===0?new R1(this.lineCount,this.columnCount+g.columnCount):new R1(this.lineCount+g.lineCount,g.columnCount)}createRange(g){return this.lineCount===0?new ns(g.lineNumber,g.column,g.lineNumber,g.column+this.columnCount):new ns(g.lineNumber,g.column,g.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new ns(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return Oc.ofLength(1,this.lineCount+1)}addToPosition(g){return this.lineCount===0?new jc(g.lineNumber,g.column+this.columnCount):new jc(g.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};let F8=R1;(()=>{R1.zero=new R1(0,0)})();class U9e{getOffsetRange(g){return new Yl(this.getOffset(g.getStartPosition()),this.getOffset(g.getEndPosition()))}getRange(g){return ns.fromPositions(this.getPosition(g.start),this.getPosition(g.endExclusive))}getStringReplacement(g){return new zM.deps.StringReplacement(this.getOffsetRange(g.range),g.text)}getTextReplacement(g){return new zM.deps.TextReplacement(this.getRange(g.replaceRange),g.newText)}getTextEdit(g){const S=g.replacements.map(w=>this.getTextReplacement(w));return new zM.deps.TextEdit(S)}}const Wne=class{static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}};let zM=Wne;(()=>{Wne._deps=void 0})();class H9e extends U9e{constructor(g){super(),this.text=g,this.lineStartOffsetByLineIdx=[],this.lineEndOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let S=0;S<g.length;S++)g.charAt(S)===`
`&&(this.lineStartOffsetByLineIdx.push(S+1),S>0&&g.charAt(S-1)==="\r"?this.lineEndOffsetByLineIdx.push(S-1):this.lineEndOffsetByLineIdx.push(S));this.lineEndOffsetByLineIdx.push(g.length)}getOffset(g){const S=this._validatePosition(g);return this.lineStartOffsetByLineIdx[S.lineNumber-1]+S.column-1}_validatePosition(g){if(g.lineNumber<1)return new jc(1,1);const S=this.textLength.lineCount+1;if(g.lineNumber>S){const H=this.getLineLength(S);return new jc(S,H+1)}if(g.column<1)return new jc(g.lineNumber,1);const w=this.getLineLength(g.lineNumber);return g.column-1>w?new jc(g.lineNumber,w+1):g}getPosition(g){const S=FM(this.lineStartOffsetByLineIdx,ue=>ue<=g),w=S+1,H=g-this.lineStartOffsetByLineIdx[S]+1;return new jc(w,H)}get textLength(){const g=this.lineStartOffsetByLineIdx.length-1;return new zM.deps.TextLength(g,this.text.length-this.lineStartOffsetByLineIdx[g])}getLineLength(g){return this.lineEndOffsetByLineIdx[g-1]-this.lineStartOffsetByLineIdx[g-1]}}class q9e{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new jc(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(g){return this.getValueOfRange(this.getTransformer().getRange(g))}getLineLength(g){return this.getValueOfRange(new ns(g,1,g,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new H9e(this.getValue())),this._transformer}getLineAt(g){return this.getValueOfRange(new ns(g,1,g,Number.MAX_SAFE_INTEGER))}}class J9e extends q9e{constructor(g,S){$We(S>=1),super(),this._getLineContent=g,this._lineCount=S}getValueOfRange(g){if(g.startLineNumber===g.endLineNumber)return this._getLineContent(g.startLineNumber).substring(g.startColumn-1,g.endColumn-1);let S=this._getLineContent(g.startLineNumber).substring(g.startColumn-1);for(let w=g.startLineNumber+1;w<g.endLineNumber;w++)S+=`
`+this._getLineContent(w);return S+=`
`+this._getLineContent(g.endLineNumber).substring(0,g.endColumn-1),S}getLineLength(g){return this._getLineContent(g).length}get length(){const g=this._getLineContent(this._lineCount);return new F8(this._lineCount-1,g.length)}}class lG extends J9e{constructor(g){super(S=>g[S-1],g.length)}}class Fx{static joinReplacements(g,S){if(g.length===0)throw new ch;if(g.length===1)return g[0];const w=g[0].range.getStartPosition(),H=g[g.length-1].range.getEndPosition();let ue="";for(let Ae=0;Ae<g.length;Ae++){const Be=g[Ae];if(ue+=Be.text,Ae<g.length-1){const at=g[Ae+1],Pe=ns.fromPositions(Be.range.getEndPosition(),at.range.getStartPosition()),Ve=S.getValueOfRange(Pe);ue+=Ve}}return new Fx(ns.fromPositions(w,H),ue)}static fromStringReplacement(g,S){return new Fx(S.getTransformer().getRange(g.replaceRange),g.newText)}static delete(g){return new Fx(g,"")}constructor(g,S){this.range=g,this.text=S}get isEmpty(){return this.range.isEmpty()&&this.text.length===0}static equals(g,S){return g.range.equalsRange(S.range)&&g.text===S.text}equals(g){return Fx.equals(this,g)}removeCommonPrefixAndSuffix(g){return this.removeCommonPrefix(g).removeCommonSuffix(g)}removeCommonPrefix(g){const S=g.getValueOfRange(this.range).replaceAll(`\r
`,`
`),w=this.text.replaceAll(`\r
`,`
`),H=TFe(S,w),ue=F8.ofText(S.substring(0,H)).addToPosition(this.range.getStartPosition()),Ae=w.substring(H),Be=ns.fromPositions(ue,this.range.getEndPosition());return new Fx(Be,Ae)}removeCommonSuffix(g){const S=g.getValueOfRange(this.range).replaceAll(`\r
`,`
`),w=this.text.replaceAll(`\r
`,`
`),H=AFe(S,w),ue=F8.ofText(S.substring(0,S.length-H)).addToPosition(this.range.getStartPosition()),Ae=w.substring(0,w.length-H),Be=ns.fromPositions(this.range.getStartPosition(),ue);return new Fx(Be,Ae)}toString(){const g=this.range.getStartPosition(),S=this.range.getEndPosition();return`(${g.lineNumber},${g.column} -> ${S.lineNumber},${S.column}): "${this.text}"`}}class Qb{static inverse(g,S,w){const H=[];let ue=1,Ae=1;for(const at of g){const Pe=new Qb(new Oc(ue,at.original.startLineNumber),new Oc(Ae,at.modified.startLineNumber));Pe.modified.isEmpty||H.push(Pe),ue=at.original.endLineNumberExclusive,Ae=at.modified.endLineNumberExclusive}const Be=new Qb(new Oc(ue,S+1),new Oc(Ae,w+1));return Be.modified.isEmpty||H.push(Be),H}static clip(g,S,w){const H=[];for(const ue of g){const Ae=ue.original.intersect(S),Be=ue.modified.intersect(w);Ae&&!Ae.isEmpty&&Be&&!Be.isEmpty&&H.push(new Qb(Ae,Be))}return H}constructor(g,S){this.original=g,this.modified=S}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Qb(this.modified,this.original)}join(g){return new Qb(this.original.join(g.original),this.modified.join(g.modified))}toRangeMapping(){const g=this.original.toInclusiveRange(),S=this.modified.toInclusiveRange();if(g&&S)return new Zb(g,S);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new ch("not a valid diff");return new Zb(new ns(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new ns(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new Zb(new ns(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new ns(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(g,S){if(rEe(this.original.endLineNumberExclusive,g)&&rEe(this.modified.endLineNumberExclusive,S))return new Zb(new ns(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new ns(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new Zb(ns.fromPositions(new jc(this.original.startLineNumber,1),BM(new jc(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),g)),ns.fromPositions(new jc(this.modified.startLineNumber,1),BM(new jc(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),S)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new Zb(ns.fromPositions(BM(new jc(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),g),BM(new jc(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),g)),ns.fromPositions(BM(new jc(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),S),BM(new jc(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),S)));throw new ch}}function BM(_,g){if(_.lineNumber<1)return new jc(1,1);if(_.lineNumber>g.length)return new jc(g.length,g[g.length-1].length+1);const S=g[_.lineNumber-1];return _.column>S.length+1?new jc(_.lineNumber,S.length+1):_}function rEe(_,g){return _>=1&&_<=g.length}class yA extends Qb{static fromRangeMappings(g){const S=Oc.join(g.map(H=>Oc.fromRangeInclusive(H.originalRange))),w=Oc.join(g.map(H=>Oc.fromRangeInclusive(H.modifiedRange)));return new yA(S,w,g)}constructor(g,S,w){super(g,S),this.innerChanges=w}flip(){var g;return new yA(this.modified,this.original,(g=this.innerChanges)==null?void 0:g.map(S=>S.flip()))}withInnerChangesFromLineRanges(){return new yA(this.original,this.modified,[this.toRangeMapping()])}}class Zb{static fromEdit(g){const S=g.getNewRanges();return g.replacements.map((H,ue)=>new Zb(H.range,S[ue]))}static assertSorted(g){for(let S=1;S<g.length;S++){const w=g[S-1],H=g[S];if(!(w.originalRange.getEndPosition().isBeforeOrEqual(H.originalRange.getStartPosition())&&w.modifiedRange.getEndPosition().isBeforeOrEqual(H.modifiedRange.getStartPosition())))throw new ch("Range mappings must be sorted")}}constructor(g,S){this.originalRange=g,this.modifiedRange=S}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Zb(this.modifiedRange,this.originalRange)}toTextEdit(g){const S=g.getValueOfRange(this.modifiedRange);return new Fx(this.originalRange,S)}}function iEe(_,g,S,w=!1){const H=[];for(const ue of F9e(_.map(Ae=>K9e(Ae,g,S)),(Ae,Be)=>Ae.original.intersectsOrTouches(Be.original)||Ae.modified.intersectsOrTouches(Be.modified))){const Ae=ue[0],Be=ue[ue.length-1];H.push(new yA(Ae.original.join(Be.original),Ae.modified.join(Be.modified),ue.map(at=>at.innerChanges[0])))}return qB(()=>!w&&H.length>0&&(H[0].modified.startLineNumber!==H[0].original.startLineNumber||S.length.lineCount-H[H.length-1].modified.endLineNumberExclusive!==g.length.lineCount-H[H.length-1].original.endLineNumberExclusive)?!1:u0e(H,(ue,Ae)=>Ae.original.startLineNumber-ue.original.endLineNumberExclusive===Ae.modified.startLineNumber-ue.modified.endLineNumberExclusive&&ue.original.endLineNumberExclusive<Ae.original.startLineNumber&&ue.modified.endLineNumberExclusive<Ae.modified.startLineNumber)),H}function K9e(_,g,S){let w=0,H=0;_.modifiedRange.endColumn===1&&_.originalRange.endColumn===1&&_.originalRange.startLineNumber+w<=_.originalRange.endLineNumber&&_.modifiedRange.startLineNumber+w<=_.modifiedRange.endLineNumber&&(H=-1),_.modifiedRange.startColumn-1>=S.getLineLength(_.modifiedRange.startLineNumber)&&_.originalRange.startColumn-1>=g.getLineLength(_.originalRange.startLineNumber)&&_.originalRange.startLineNumber<=_.originalRange.endLineNumber+H&&_.modifiedRange.startLineNumber<=_.modifiedRange.endLineNumber+H&&(w=1);const ue=new Oc(_.originalRange.startLineNumber+w,_.originalRange.endLineNumber+1+H),Ae=new Oc(_.modifiedRange.startLineNumber+w,_.modifiedRange.endLineNumber+1+H);return new yA(ue,Ae,[_])}const X9e=3;class Y9e{computeDiff(g,S,w){var at;const ue=new Z9e(g,S,{maxComputationTime:w.maxComputationTimeMs,shouldIgnoreTrimWhitespace:w.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),Ae=[];let Be=null;for(const Pe of ue.changes){let Ve;Pe.originalEndLineNumber===0?Ve=new Oc(Pe.originalStartLineNumber+1,Pe.originalStartLineNumber+1):Ve=new Oc(Pe.originalStartLineNumber,Pe.originalEndLineNumber+1);let Ht;Pe.modifiedEndLineNumber===0?Ht=new Oc(Pe.modifiedStartLineNumber+1,Pe.modifiedStartLineNumber+1):Ht=new Oc(Pe.modifiedStartLineNumber,Pe.modifiedEndLineNumber+1);let $t=new yA(Ve,Ht,(at=Pe.charChanges)==null?void 0:at.map(ar=>new Zb(new ns(ar.originalStartLineNumber,ar.originalStartColumn,ar.originalEndLineNumber,ar.originalEndColumn),new ns(ar.modifiedStartLineNumber,ar.modifiedStartColumn,ar.modifiedEndLineNumber,ar.modifiedEndColumn))));Be&&(Be.modified.endLineNumberExclusive===$t.modified.startLineNumber||Be.original.endLineNumberExclusive===$t.original.startLineNumber)&&($t=new yA(Be.original.join($t.original),Be.modified.join($t.modified),Be.innerChanges&&$t.innerChanges?Be.innerChanges.concat($t.innerChanges):void 0),Ae.pop()),Ae.push($t),Be=$t}return qB(()=>u0e(Ae,(Pe,Ve)=>Ve.original.startLineNumber-Pe.original.endLineNumberExclusive===Ve.modified.startLineNumber-Pe.modified.endLineNumberExclusive&&Pe.original.endLineNumberExclusive<Ve.original.startLineNumber&&Pe.modified.endLineNumberExclusive<Ve.modified.startLineNumber)),new aG(Ae,[],ue.quitEarly)}}function oEe(_,g,S,w){return new Ox(_,g,S).ComputeDiff(w)}class aEe{constructor(g){const S=[],w=[];for(let H=0,ue=g.length;H<ue;H++)S[H]=Nne(g[H],1),w[H]=Cne(g[H],1);this.lines=g,this._startColumns=S,this._endColumns=w}getElements(){const g=[];for(let S=0,w=this.lines.length;S<w;S++)g[S]=this.lines[S].substring(this._startColumns[S]-1,this._endColumns[S]-1);return g}getStrictElement(g){return this.lines[g]}getStartLineNumber(g){return g+1}getEndLineNumber(g){return g+1}createCharSequence(g,S,w){const H=[],ue=[],Ae=[];let Be=0;for(let at=S;at<=w;at++){const Pe=this.lines[at],Ve=g?this._startColumns[at]:1,Ht=g?this._endColumns[at]:Pe.length+1;for(let $t=Ve;$t<Ht;$t++)H[Be]=Pe.charCodeAt($t-1),ue[Be]=at+1,Ae[Be]=$t,Be++;!g&&at<w&&(H[Be]=10,ue[Be]=at+1,Ae[Be]=Pe.length+1,Be++)}return new $9e(H,ue,Ae)}}class $9e{constructor(g,S,w){this._charCodes=g,this._lineNumbers=S,this._columns=w}toString(){return"["+this._charCodes.map((g,S)=>(g===10?"\\n":String.fromCharCode(g))+`-(${this._lineNumbers[S]},${this._columns[S]})`).join(", ")+"]"}_assertIndex(g,S){if(g<0||g>=S.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(g){return g>0&&g===this._lineNumbers.length?this.getEndLineNumber(g-1):(this._assertIndex(g,this._lineNumbers),this._lineNumbers[g])}getEndLineNumber(g){return g===-1?this.getStartLineNumber(g+1):(this._assertIndex(g,this._lineNumbers),this._charCodes[g]===10?this._lineNumbers[g]+1:this._lineNumbers[g])}getStartColumn(g){return g>0&&g===this._columns.length?this.getEndColumn(g-1):(this._assertIndex(g,this._columns),this._columns[g])}getEndColumn(g){return g===-1?this.getStartColumn(g+1):(this._assertIndex(g,this._columns),this._charCodes[g]===10?1:this._columns[g]+1)}}class GM{constructor(g,S,w,H,ue,Ae,Be,at){this.originalStartLineNumber=g,this.originalStartColumn=S,this.originalEndLineNumber=w,this.originalEndColumn=H,this.modifiedStartLineNumber=ue,this.modifiedStartColumn=Ae,this.modifiedEndLineNumber=Be,this.modifiedEndColumn=at}static createFromDiffChange(g,S,w){const H=S.getStartLineNumber(g.originalStart),ue=S.getStartColumn(g.originalStart),Ae=S.getEndLineNumber(g.originalStart+g.originalLength-1),Be=S.getEndColumn(g.originalStart+g.originalLength-1),at=w.getStartLineNumber(g.modifiedStart),Pe=w.getStartColumn(g.modifiedStart),Ve=w.getEndLineNumber(g.modifiedStart+g.modifiedLength-1),Ht=w.getEndColumn(g.modifiedStart+g.modifiedLength-1);return new GM(H,ue,Ae,Be,at,Pe,Ve,Ht)}}function Q9e(_){if(_.length<=1)return _;const g=[_[0]];let S=g[0];for(let w=1,H=_.length;w<H;w++){const ue=_[w],Ae=ue.originalStart-(S.originalStart+S.originalLength),Be=ue.modifiedStart-(S.modifiedStart+S.modifiedLength);Math.min(Ae,Be)<X9e?(S.originalLength=ue.originalStart+ue.originalLength-S.originalStart,S.modifiedLength=ue.modifiedStart+ue.modifiedLength-S.modifiedStart):(g.push(ue),S=ue)}return g}class z8{constructor(g,S,w,H,ue){this.originalStartLineNumber=g,this.originalEndLineNumber=S,this.modifiedStartLineNumber=w,this.modifiedEndLineNumber=H,this.charChanges=ue}static createFromDiffResult(g,S,w,H,ue,Ae,Be){let at,Pe,Ve,Ht,$t;if(S.originalLength===0?(at=w.getStartLineNumber(S.originalStart)-1,Pe=0):(at=w.getStartLineNumber(S.originalStart),Pe=w.getEndLineNumber(S.originalStart+S.originalLength-1)),S.modifiedLength===0?(Ve=H.getStartLineNumber(S.modifiedStart)-1,Ht=0):(Ve=H.getStartLineNumber(S.modifiedStart),Ht=H.getEndLineNumber(S.modifiedStart+S.modifiedLength-1)),Ae&&S.originalLength>0&&S.originalLength<20&&S.modifiedLength>0&&S.modifiedLength<20&&ue()){const ar=w.createCharSequence(g,S.originalStart,S.originalStart+S.originalLength-1),Fn=H.createCharSequence(g,S.modifiedStart,S.modifiedStart+S.modifiedLength-1);if(ar.getElements().length>0&&Fn.getElements().length>0){let In=oEe(ar,Fn,ue,!0).changes;Be&&(In=Q9e(In)),$t=[];for(let Oi=0,Bn=In.length;Oi<Bn;Oi++)$t.push(GM.createFromDiffChange(In[Oi],ar,Fn))}}return new z8(at,Pe,Ve,Ht,$t)}}class Z9e{constructor(g,S,w){this.shouldComputeCharChanges=w.shouldComputeCharChanges,this.shouldPostProcessCharChanges=w.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=w.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=w.shouldMakePrettyDiff,this.originalLines=g,this.modifiedLines=S,this.original=new aEe(g),this.modified=new aEe(S),this.continueLineDiff=sEe(w.maxComputationTime),this.continueCharDiff=sEe(w.maxComputationTime===0?0:Math.min(w.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const g=oEe(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),S=g.changes,w=g.quitEarly;if(this.shouldIgnoreTrimWhitespace){const Be=[];for(let at=0,Pe=S.length;at<Pe;at++)Be.push(z8.createFromDiffResult(this.shouldIgnoreTrimWhitespace,S[at],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:w,changes:Be}}const H=[];let ue=0,Ae=0;for(let Be=-1,at=S.length;Be<at;Be++){const Pe=Be+1<at?S[Be+1]:null,Ve=Pe?Pe.originalStart:this.originalLines.length,Ht=Pe?Pe.modifiedStart:this.modifiedLines.length;for(;ue<Ve&&Ae<Ht;){const $t=this.originalLines[ue],ar=this.modifiedLines[Ae];if($t!==ar){{let Fn=Nne($t,1),In=Nne(ar,1);for(;Fn>1&&In>1;){const Oi=$t.charCodeAt(Fn-2),Bn=ar.charCodeAt(In-2);if(Oi!==Bn)break;Fn--,In--}(Fn>1||In>1)&&this._pushTrimWhitespaceCharChange(H,ue+1,1,Fn,Ae+1,1,In)}{let Fn=Cne($t,1),In=Cne(ar,1);const Oi=$t.length+1,Bn=ar.length+1;for(;Fn<Oi&&In<Bn;){const un=$t.charCodeAt(Fn-1),Mi=$t.charCodeAt(In-1);if(un!==Mi)break;Fn++,In++}(Fn<Oi||In<Bn)&&this._pushTrimWhitespaceCharChange(H,ue+1,Fn,Oi,Ae+1,In,Bn)}}ue++,Ae++}Pe&&(H.push(z8.createFromDiffResult(this.shouldIgnoreTrimWhitespace,Pe,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),ue+=Pe.originalLength,Ae+=Pe.modifiedLength)}return{quitEarly:w,changes:H}}_pushTrimWhitespaceCharChange(g,S,w,H,ue,Ae,Be){if(this._mergeTrimWhitespaceCharChange(g,S,w,H,ue,Ae,Be))return;let at;this.shouldComputeCharChanges&&(at=[new GM(S,w,S,H,ue,Ae,ue,Be)]),g.push(new z8(S,S,ue,ue,at))}_mergeTrimWhitespaceCharChange(g,S,w,H,ue,Ae,Be){const at=g.length;if(at===0)return!1;const Pe=g[at-1];return Pe.originalEndLineNumber===0||Pe.modifiedEndLineNumber===0?!1:Pe.originalEndLineNumber===S&&Pe.modifiedEndLineNumber===ue?(this.shouldComputeCharChanges&&Pe.charChanges&&Pe.charChanges.push(new GM(S,w,S,H,ue,Ae,ue,Be)),!0):Pe.originalEndLineNumber+1===S&&Pe.modifiedEndLineNumber+1===ue?(Pe.originalEndLineNumber=S,Pe.modifiedEndLineNumber=ue,this.shouldComputeCharChanges&&Pe.charChanges&&Pe.charChanges.push(new GM(S,w,S,H,ue,Ae,ue,Be)),!0):!1}}function Nne(_,g){const S=EFe(_);return S===-1?g:S+1}function Cne(_,g){const S=SFe(_);return S===-1?g:S+2}function sEe(_){if(_===0)return()=>!0;const g=Date.now();return()=>Date.now()-g<_}class bA{static trivial(g,S){return new bA([new Qp(Yl.ofLength(g.length),Yl.ofLength(S.length))],!1)}static trivialTimedOut(g,S){return new bA([new Qp(Yl.ofLength(g.length),Yl.ofLength(S.length))],!0)}constructor(g,S){this.diffs=g,this.hitTimeout=S}}class Qp{static invert(g,S){const w=[];return z9e(g,(H,ue)=>{w.push(Qp.fromOffsetPairs(H?H.getEndExclusives():EA.zero,ue?ue.getStarts():new EA(S,(H?H.seq2Range.endExclusive-H.seq1Range.endExclusive:0)+S)))}),w}static fromOffsetPairs(g,S){return new Qp(new Yl(g.offset1,S.offset1),new Yl(g.offset2,S.offset2))}static assertSorted(g){let S;for(const w of g){if(S&&!(S.seq1Range.endExclusive<=w.seq1Range.start&&S.seq2Range.endExclusive<=w.seq2Range.start))throw new ch("Sequence diffs must be sorted");S=w}}constructor(g,S){this.seq1Range=g,this.seq2Range=S}swap(){return new Qp(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(g){return new Qp(this.seq1Range.join(g.seq1Range),this.seq2Range.join(g.seq2Range))}delta(g){return g===0?this:new Qp(this.seq1Range.delta(g),this.seq2Range.delta(g))}deltaStart(g){return g===0?this:new Qp(this.seq1Range.deltaStart(g),this.seq2Range.deltaStart(g))}deltaEnd(g){return g===0?this:new Qp(this.seq1Range.deltaEnd(g),this.seq2Range.deltaEnd(g))}intersect(g){const S=this.seq1Range.intersect(g.seq1Range),w=this.seq2Range.intersect(g.seq2Range);if(!(!S||!w))return new Qp(S,w)}getStarts(){return new EA(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new EA(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}const iN=class{constructor(g,S){this.offset1=g,this.offset2=S}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(g){return g===0?this:new iN(this.offset1+g,this.offset2+g)}equals(g){return this.offset1===g.offset1&&this.offset2===g.offset2}};let EA=iN;(()=>{iN.zero=new iN(0,0)})(),(()=>{iN.max=new iN(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)})();const gG=class{isValid(){return!0}};let B8=gG;(()=>{gG.instance=new gG})();class eze{constructor(g){if(this.timeout=g,this.startTime=Date.now(),this.valid=!0,g<=0)throw new ch("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class Pne{constructor(g,S){this.width=g,this.height=S,this.array=[],this.array=new Array(g*S)}get(g,S){return this.array[g+S*this.width]}set(g,S,w){this.array[g+S*this.width]=w}}function Mne(_){return _===32||_===9}const j8=class{static getKey(g){let S=this.chrKeys.get(g);return S===void 0&&(S=this.chrKeys.size,this.chrKeys.set(g,S)),S}constructor(g,S,w){this.range=g,this.lines=S,this.source=w,this.histogram=[];let H=0;for(let ue=g.startLineNumber-1;ue<g.endLineNumberExclusive-1;ue++){const Ae=S[ue];for(let at=0;at<Ae.length;at++){H++;const Pe=Ae[at],Ve=j8.getKey(Pe);this.histogram[Ve]=(this.histogram[Ve]||0)+1}H++;const Be=j8.getKey(`
`);this.histogram[Be]=(this.histogram[Be]||0)+1}this.totalCount=H}computeSimilarity(g){var H,ue;let S=0;const w=Math.max(this.histogram.length,g.histogram.length);for(let Ae=0;Ae<w;Ae++)S+=Math.abs(((H=this.histogram[Ae])!=null?H:0)-((ue=g.histogram[Ae])!=null?ue:0));return 1-S/(this.totalCount+g.totalCount)}};let cG=j8;(()=>{j8.chrKeys=new Map})();class tze{compute(g,S,w=B8.instance,H){if(g.length===0||S.length===0)return bA.trivial(g,S);const ue=new Pne(g.length,S.length),Ae=new Pne(g.length,S.length),Be=new Pne(g.length,S.length);for(let Fn=0;Fn<g.length;Fn++)for(let In=0;In<S.length;In++){if(!w.isValid())return bA.trivialTimedOut(g,S);const Oi=Fn===0?0:ue.get(Fn-1,In),Bn=In===0?0:ue.get(Fn,In-1);let un;g.getElement(Fn)===S.getElement(In)?(Fn===0||In===0?un=0:un=ue.get(Fn-1,In-1),Fn>0&&In>0&&Ae.get(Fn-1,In-1)===3&&(un+=Be.get(Fn-1,In-1)),un+=H?H(Fn,In):1):un=-1;const Mi=Math.max(Oi,Bn,un);if(Mi===un){const Ji=Fn>0&&In>0?Be.get(Fn-1,In-1):0;Be.set(Fn,In,Ji+1),Ae.set(Fn,In,3)}else Mi===Oi?(Be.set(Fn,In,0),Ae.set(Fn,In,1)):Mi===Bn&&(Be.set(Fn,In,0),Ae.set(Fn,In,2));ue.set(Fn,In,Mi)}const at=[];let Pe=g.length,Ve=S.length;function Ht(Fn,In){(Fn+1!==Pe||In+1!==Ve)&&at.push(new Qp(new Yl(Fn+1,Pe),new Yl(In+1,Ve))),Pe=Fn,Ve=In}let $t=g.length-1,ar=S.length-1;for(;$t>=0&&ar>=0;)Ae.get($t,ar)===3?(Ht($t,ar),$t--,ar--):Ae.get($t,ar)===1?$t--:ar--;return Ht(-1,-1),at.reverse(),new bA(at,!1)}}class lEe{compute(g,S,w=B8.instance){if(g.length===0||S.length===0)return bA.trivial(g,S);const H=g,ue=S;function Ae(In,Oi){for(;In<H.length&&Oi<ue.length&&H.getElement(In)===ue.getElement(Oi);)In++,Oi++;return In}let Be=0;const at=new nze;at.set(0,Ae(0,0));const Pe=new rze;Pe.set(0,at.get(0)===0?null:new cEe(null,0,0,at.get(0)));let Ve=0;e:for(;;){if(Be++,!w.isValid())return bA.trivialTimedOut(H,ue);const In=-Math.min(Be,ue.length+Be%2),Oi=Math.min(Be,H.length+Be%2);for(Ve=In;Ve<=Oi;Ve+=2){const Bn=Ve===Oi?-1:at.get(Ve+1),un=Ve===In?-1:at.get(Ve-1)+1,Mi=Math.min(Math.max(Bn,un),H.length),Ji=Mi-Ve;if(Mi>H.length||Ji>ue.length)continue;const as=Ae(Mi,Ji);at.set(Ve,as);const rl=Mi===Bn?Pe.get(Ve+1):Pe.get(Ve-1);if(Pe.set(Ve,as!==Mi?new cEe(rl,Mi,Ji,as-Mi):rl),at.get(Ve)===H.length&&at.get(Ve)-Ve===ue.length)break e}}let Ht=Pe.get(Ve);const $t=[];let ar=H.length,Fn=ue.length;for(;;){const In=Ht?Ht.x+Ht.length:0,Oi=Ht?Ht.y+Ht.length:0;if((In!==ar||Oi!==Fn)&&$t.push(new Qp(new Yl(In,ar),new Yl(Oi,Fn))),!Ht)break;ar=Ht.x,Fn=Ht.y,Ht=Ht.prev}return $t.reverse(),new bA($t,!1)}}class cEe{constructor(g,S,w,H){this.prev=g,this.x=S,this.y=w,this.length=H}}class nze{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(g){return g<0?(g=-g-1,this.negativeArr[g]):this.positiveArr[g]}set(g,S){if(g<0){if(g=-g-1,g>=this.negativeArr.length){const w=this.negativeArr;this.negativeArr=new Int32Array(w.length*2),this.negativeArr.set(w)}this.negativeArr[g]=S}else{if(g>=this.positiveArr.length){const w=this.positiveArr;this.positiveArr=new Int32Array(w.length*2),this.positiveArr.set(w)}this.positiveArr[g]=S}}}class rze{constructor(){this.positiveArr=[],this.negativeArr=[]}get(g){return g<0?(g=-g-1,this.negativeArr[g]):this.positiveArr[g]}set(g,S){g<0?(g=-g-1,this.negativeArr[g]=S):this.positiveArr[g]=S}}class uG{constructor(g,S,w){this.lines=g,this.range=S,this.considerWhitespaceChanges=w,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let H=this.range.startLineNumber;H<=this.range.endLineNumber;H++){let ue=g[H-1],Ae=0;H===this.range.startLineNumber&&this.range.startColumn>1&&(Ae=this.range.startColumn-1,ue=ue.substring(Ae)),this.lineStartOffsets.push(Ae);let Be=0;if(!w){const Pe=ue.trimStart();Be=ue.length-Pe.length,ue=Pe.trimEnd()}this.trimmedWsLengthsByLineIdx.push(Be);const at=H===this.range.endLineNumber?Math.min(this.range.endColumn-1-Ae-Be,ue.length):ue.length;for(let Pe=0;Pe<at;Pe++)this.elements.push(ue.charCodeAt(Pe));H<this.range.endLineNumber&&(this.elements.push(`
`.charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Yl(0,this.length))}getText(g){return this.elements.slice(g.start,g.endExclusive).map(S=>String.fromCharCode(S)).join("")}getElement(g){return this.elements[g]}get length(){return this.elements.length}getBoundaryScore(g){const S=pEe(g>0?this.elements[g-1]:-1),w=pEe(g<this.elements.length?this.elements[g]:-1);if(S===7&&w===8)return 0;if(S===8)return 150;let H=0;return S!==w&&(H+=10,S===0&&w===1&&(H+=1)),H+=dEe(S),H+=dEe(w),H}translateOffset(g,S="right"){const w=FM(this.firstElementOffsetByLineIdx,ue=>ue<=g),H=g-this.firstElementOffsetByLineIdx[w];return new jc(this.range.startLineNumber+w,1+this.lineStartOffsets[w]+H+(H===0&&S==="left"?0:this.trimmedWsLengthsByLineIdx[w]))}translateRange(g){const S=this.translateOffset(g.start,"right"),w=this.translateOffset(g.endExclusive,"left");return w.isBefore(S)?ns.fromPositions(w,w):ns.fromPositions(S,w)}findWordContaining(g){if(g<0||g>=this.elements.length||!VM(this.elements[g]))return;let S=g;for(;S>0&&VM(this.elements[S-1]);)S--;let w=g;for(;w<this.elements.length&&VM(this.elements[w]);)w++;return new Yl(S,w)}findSubWordContaining(g){if(g<0||g>=this.elements.length||!VM(this.elements[g]))return;let S=g;for(;S>0&&VM(this.elements[S-1])&&!uEe(this.elements[S]);)S--;let w=g;for(;w<this.elements.length&&VM(this.elements[w])&&!uEe(this.elements[w]);)w++;return new Yl(S,w)}countLinesIn(g){return this.translateOffset(g.endExclusive).lineNumber-this.translateOffset(g.start).lineNumber}isStronglyEqual(g,S){return this.elements[g]===this.elements[S]}extendToFullLines(g){var H,ue;const S=(H=WM(this.firstElementOffsetByLineIdx,Ae=>Ae<=g.start))!=null?H:0,w=(ue=j9e(this.firstElementOffsetByLineIdx,Ae=>g.endExclusive<=Ae))!=null?ue:this.elements.length;return new Yl(S,w)}}function VM(_){return _>=97&&_<=122||_>=65&&_<=90||_>=48&&_<=57}function uEe(_){return _>=65&&_<=90}const ize={[0]:0,[1]:0,[2]:0,[3]:10,[4]:2,[5]:30,[6]:3,[7]:10,[8]:10};function dEe(_){return ize[_]}function pEe(_){return _===10?8:_===13?7:Mne(_)?6:_>=97&&_<=122?0:_>=65&&_<=90?1:_>=48&&_<=57?2:_===-1?3:_===44||_===59?5:4}function oze(_,g,S,w,H,ue){let{moves:Ae,excludedChanges:Be}=sze(_,g,S,ue);if(!ue.isValid())return[];const at=_.filter(Ve=>!Be.has(Ve)),Pe=lze(at,w,H,g,S,ue);return G9e(Ae,Pe),Ae=cze(Ae),Ae=Ae.filter(Ve=>{const Ht=Ve.original.toOffsetRange().slice(g).map(ar=>ar.trim());return Ht.join(`
`).length>=15&&aze(Ht,ar=>ar.length>=2)>=2}),Ae=uze(_,Ae),Ae}function aze(_,g){let S=0;for(const w of _)g(w)&&S++;return S}function sze(_,g,S,w){const H=[],ue=_.filter(at=>at.modified.isEmpty&&at.original.length>=3).map(at=>new cG(at.original,g,at)),Ae=new Set(_.filter(at=>at.original.isEmpty&&at.modified.length>=3).map(at=>new cG(at.modified,S,at))),Be=new Set;for(const at of ue){let Pe=-1,Ve;for(const Ht of Ae){const $t=at.computeSimilarity(Ht);$t>Pe&&(Pe=$t,Ve=Ht)}if(Pe>.9&&Ve&&(Ae.delete(Ve),H.push(new Qb(at.range,Ve.range)),Be.add(at.source),Be.add(Ve.source)),!w.isValid())return{moves:H,excludedChanges:Be}}return{moves:H,excludedChanges:Be}}function lze(_,g,S,w,H,ue){const Ae=[],Be=new I9e;for(const $t of _)for(let ar=$t.original.startLineNumber;ar<$t.original.endLineNumberExclusive-2;ar++){const Fn=`${g[ar-1]}:${g[ar+1-1]}:${g[ar+2-1]}`;Be.add(Fn,{range:new Oc(ar,ar+3)})}const at=[];_.sort(O8($t=>$t.modified.startLineNumber,W8));for(const $t of _){let ar=[];for(let Fn=$t.modified.startLineNumber;Fn<$t.modified.endLineNumberExclusive-2;Fn++){const In=`${S[Fn-1]}:${S[Fn+1-1]}:${S[Fn+2-1]}`,Oi=new Oc(Fn,Fn+3),Bn=[];Be.forEach(In,({range:un})=>{for(const Ji of ar)if(Ji.originalLineRange.endLineNumberExclusive+1===un.endLineNumberExclusive&&Ji.modifiedLineRange.endLineNumberExclusive+1===Oi.endLineNumberExclusive){Ji.originalLineRange=new Oc(Ji.originalLineRange.startLineNumber,un.endLineNumberExclusive),Ji.modifiedLineRange=new Oc(Ji.modifiedLineRange.startLineNumber,Oi.endLineNumberExclusive),Bn.push(Ji);return}const Mi={modifiedLineRange:Oi,originalLineRange:un};at.push(Mi),Bn.push(Mi)}),ar=Bn}if(!ue.isValid())return[]}at.sort(V9e(O8($t=>$t.modifiedLineRange.length,W8)));const Pe=new lS,Ve=new lS;for(const $t of at){const ar=$t.modifiedLineRange.startLineNumber-$t.originalLineRange.startLineNumber,Fn=Pe.subtractFrom($t.modifiedLineRange),In=Ve.subtractFrom($t.originalLineRange).getWithDelta(ar),Oi=Fn.getIntersection(In);for(const Bn of Oi.ranges){if(Bn.length<3)continue;const un=Bn,Mi=Bn.delta(-ar);Ae.push(new Qb(Mi,un)),Pe.addRange(un),Ve.addRange(Mi)}}Ae.sort(O8($t=>$t.original.startLineNumber,W8));const Ht=new sG(_);for(let $t=0;$t<Ae.length;$t++){const ar=Ae[$t],Fn=Ht.findLastMonotonous(rl=>rl.original.startLineNumber<=ar.original.startLineNumber),In=WM(_,rl=>rl.modified.startLineNumber<=ar.modified.startLineNumber),Oi=Math.max(ar.original.startLineNumber-Fn.original.startLineNumber,ar.modified.startLineNumber-In.modified.startLineNumber),Bn=Ht.findLastMonotonous(rl=>rl.original.startLineNumber<ar.original.endLineNumberExclusive),un=WM(_,rl=>rl.modified.startLineNumber<ar.modified.endLineNumberExclusive),Mi=Math.max(Bn.original.endLineNumberExclusive-ar.original.endLineNumberExclusive,un.modified.endLineNumberExclusive-ar.modified.endLineNumberExclusive);let Ji;for(Ji=0;Ji<Oi;Ji++){const rl=ar.original.startLineNumber-Ji-1,Mn=ar.modified.startLineNumber-Ji-1;if(rl>w.length||Mn>H.length||Pe.contains(Mn)||Ve.contains(rl)||!fEe(w[rl-1],H[Mn-1],ue))break}Ji>0&&(Ve.addRange(new Oc(ar.original.startLineNumber-Ji,ar.original.startLineNumber)),Pe.addRange(new Oc(ar.modified.startLineNumber-Ji,ar.modified.startLineNumber)));let as;for(as=0;as<Mi;as++){const rl=ar.original.endLineNumberExclusive+as,Mn=ar.modified.endLineNumberExclusive+as;if(rl>w.length||Mn>H.length||Pe.contains(Mn)||Ve.contains(rl)||!fEe(w[rl-1],H[Mn-1],ue))break}as>0&&(Ve.addRange(new Oc(ar.original.endLineNumberExclusive,ar.original.endLineNumberExclusive+as)),Pe.addRange(new Oc(ar.modified.endLineNumberExclusive,ar.modified.endLineNumberExclusive+as))),(Ji>0||as>0)&&(Ae[$t]=new Qb(new Oc(ar.original.startLineNumber-Ji,ar.original.endLineNumberExclusive+as),new Oc(ar.modified.startLineNumber-Ji,ar.modified.endLineNumberExclusive+as)))}return Ae}function fEe(_,g,S){if(_.trim()===g.trim())return!0;if(_.length>300&&g.length>300)return!1;const H=new lEe().compute(new uG([_],new ns(1,1,1,_.length),!1),new uG([g],new ns(1,1,1,g.length),!1),S);let ue=0;const Ae=Qp.invert(H.diffs,_.length);for(const Ve of Ae)Ve.seq1Range.forEach(Ht=>{Mne(_.charCodeAt(Ht))||ue++});function Be(Ve){let Ht=0;for(let $t=0;$t<_.length;$t++)Mne(Ve.charCodeAt($t))||Ht++;return Ht}const at=Be(_.length>g.length?_:g);return ue/at>.6&&at>10}function cze(_){if(_.length===0)return _;_.sort(O8(S=>S.original.startLineNumber,W8));const g=[_[0]];for(let S=1;S<_.length;S++){const w=g[g.length-1],H=_[S],ue=H.original.startLineNumber-w.original.endLineNumberExclusive,Ae=H.modified.startLineNumber-w.modified.endLineNumberExclusive;if(ue>=0&&Ae>=0&&ue+Ae<=2){g[g.length-1]=w.join(H);continue}g.push(H)}return g}function uze(_,g){const S=new sG(_);return g=g.filter(w=>{const H=S.findLastMonotonous(Be=>Be.original.startLineNumber<w.original.endLineNumberExclusive)||new Qb(new Oc(1,1),new Oc(1,1)),ue=WM(_,Be=>Be.modified.startLineNumber<w.modified.endLineNumberExclusive);return H!==ue}),g}function mEe(_,g,S){let w=S;return w=_Ee(_,g,w),w=_Ee(_,g,w),w=dze(_,g,w),w}function _Ee(_,g,S){if(S.length===0)return S;const w=[];w.push(S[0]);for(let ue=1;ue<S.length;ue++){const Ae=w[w.length-1];let Be=S[ue];if(Be.seq1Range.isEmpty||Be.seq2Range.isEmpty){const at=Be.seq1Range.start-Ae.seq1Range.endExclusive;let Pe;for(Pe=1;Pe<=at&&!(_.getElement(Be.seq1Range.start-Pe)!==_.getElement(Be.seq1Range.endExclusive-Pe)||g.getElement(Be.seq2Range.start-Pe)!==g.getElement(Be.seq2Range.endExclusive-Pe));Pe++);if(Pe--,Pe===at){w[w.length-1]=new Qp(new Yl(Ae.seq1Range.start,Be.seq1Range.endExclusive-at),new Yl(Ae.seq2Range.start,Be.seq2Range.endExclusive-at));continue}Be=Be.delta(-Pe)}w.push(Be)}const H=[];for(let ue=0;ue<w.length-1;ue++){const Ae=w[ue+1];let Be=w[ue];if(Be.seq1Range.isEmpty||Be.seq2Range.isEmpty){const at=Ae.seq1Range.start-Be.seq1Range.endExclusive;let Pe;for(Pe=0;Pe<at&&!(!_.isStronglyEqual(Be.seq1Range.start+Pe,Be.seq1Range.endExclusive+Pe)||!g.isStronglyEqual(Be.seq2Range.start+Pe,Be.seq2Range.endExclusive+Pe));Pe++);if(Pe===at){w[ue+1]=new Qp(new Yl(Be.seq1Range.start+at,Ae.seq1Range.endExclusive),new Yl(Be.seq2Range.start+at,Ae.seq2Range.endExclusive));continue}Pe>0&&(Be=Be.delta(Pe))}H.push(Be)}return w.length>0&&H.push(w[w.length-1]),H}function dze(_,g,S){if(!_.getBoundaryScore||!g.getBoundaryScore)return S;for(let w=0;w<S.length;w++){const H=w>0?S[w-1]:void 0,ue=S[w],Ae=w+1<S.length?S[w+1]:void 0,Be=new Yl(H?H.seq1Range.endExclusive+1:0,Ae?Ae.seq1Range.start-1:_.length),at=new Yl(H?H.seq2Range.endExclusive+1:0,Ae?Ae.seq2Range.start-1:g.length);ue.seq1Range.isEmpty?S[w]=hEe(ue,_,g,Be,at):ue.seq2Range.isEmpty&&(S[w]=hEe(ue.swap(),g,_,at,Be).swap())}return S}function hEe(_,g,S,w,H){let Ae=1;for(;_.seq1Range.start-Ae>=w.start&&_.seq2Range.start-Ae>=H.start&&S.isStronglyEqual(_.seq2Range.start-Ae,_.seq2Range.endExclusive-Ae)&&Ae<100;)Ae++;Ae--;let Be=0;for(;_.seq1Range.start+Be<w.endExclusive&&_.seq2Range.endExclusive+Be<H.endExclusive&&S.isStronglyEqual(_.seq2Range.start+Be,_.seq2Range.endExclusive+Be)&&Be<100;)Be++;if(Ae===0&&Be===0)return _;let at=0,Pe=-1;for(let Ve=-Ae;Ve<=Be;Ve++){const Ht=_.seq2Range.start+Ve,$t=_.seq2Range.endExclusive+Ve,ar=_.seq1Range.start+Ve,Fn=g.getBoundaryScore(ar)+S.getBoundaryScore(Ht)+S.getBoundaryScore($t);Fn>Pe&&(Pe=Fn,at=Ve)}return _.delta(at)}function pze(_,g,S){const w=[];for(const H of S){const ue=w[w.length-1];if(!ue){w.push(H);continue}H.seq1Range.start-ue.seq1Range.endExclusive<=2||H.seq2Range.start-ue.seq2Range.endExclusive<=2?w[w.length-1]=new Qp(ue.seq1Range.join(H.seq1Range),ue.seq2Range.join(H.seq2Range)):w.push(H)}return w}function gEe(_,g,S,w,H=!1){const ue=Qp.invert(S,_.length),Ae=[];let Be=new EA(0,0);function at(Ve,Ht){if(Ve.offset1<Be.offset1||Ve.offset2<Be.offset2)return;const $t=w(_,Ve.offset1),ar=w(g,Ve.offset2);if(!$t||!ar)return;let Fn=new Qp($t,ar);const In=Fn.intersect(Ht);let Oi=In.seq1Range.length,Bn=In.seq2Range.length;for(;ue.length>0;){const un=ue[0];if(!(un.seq1Range.intersects(Fn.seq1Range)||un.seq2Range.intersects(Fn.seq2Range)))break;const Ji=w(_,un.seq1Range.start),as=w(g,un.seq2Range.start),rl=new Qp(Ji,as),Mn=rl.intersect(un);if(Oi+=Mn.seq1Range.length,Bn+=Mn.seq2Range.length,Fn=Fn.join(rl),Fn.seq1Range.endExclusive>=un.seq1Range.endExclusive)ue.shift();else break}(H&&Oi+Bn<Fn.seq1Range.length+Fn.seq2Range.length||Oi+Bn<(Fn.seq1Range.length+Fn.seq2Range.length)*2/3)&&Ae.push(Fn),Be=Fn.getEndExclusives()}for(;ue.length>0;){const Ve=ue.shift();Ve.seq1Range.isEmpty||(at(Ve.getStarts(),Ve),at(Ve.getEndExclusives().delta(-1),Ve))}return fze(S,Ae)}function fze(_,g){const S=[];for(;_.length>0||g.length>0;){const w=_[0],H=g[0];let ue;w&&(!H||w.seq1Range.start<H.seq1Range.start)?ue=_.shift():ue=g.shift(),S.length>0&&S[S.length-1].seq1Range.endExclusive>=ue.seq1Range.start?S[S.length-1]=S[S.length-1].join(ue):S.push(ue)}return S}function mze(_,g,S){let w=S;if(w.length===0)return w;let H=0,ue;do{ue=!1;const Ae=[w[0]];for(let Be=1;Be<w.length;Be++){let Ve=function($t,ar){const Fn=new Yl(Pe.seq1Range.endExclusive,at.seq1Range.start);return _.getText(Fn).replace(/\s/g,"").length<=4&&($t.seq1Range.length+$t.seq2Range.length>5||ar.seq1Range.length+ar.seq2Range.length>5)};const at=w[Be],Pe=Ae[Ae.length-1];Ve(Pe,at)?(ue=!0,Ae[Ae.length-1]=Ae[Ae.length-1].join(at)):Ae.push(at)}w=Ae}while(H++<10&&ue);return w}function _ze(_,g,S){let w=S;if(w.length===0)return w;let H=0,ue;do{ue=!1;const Be=[w[0]];for(let at=1;at<w.length;at++){let Ht=function(ar,Fn){const In=new Yl(Ve.seq1Range.endExclusive,Pe.seq1Range.start);if(_.countLinesIn(In)>5||In.length>500)return!1;const Bn=_.getText(In).trim();if(Bn.length>20||Bn.split(/\r\n|\r|\n/).length>1)return!1;const un=_.countLinesIn(ar.seq1Range),Mi=ar.seq1Range.length,Ji=g.countLinesIn(ar.seq2Range),as=ar.seq2Range.length,rl=_.countLinesIn(Fn.seq1Range),Mn=Fn.seq1Range.length,Ni=g.countLinesIn(Fn.seq2Range),Mo=Fn.seq2Range.length,Ca=2*40+50;function Vn(Si){return Math.min(Si,Ca)}return Math.pow(Math.pow(Vn(un*40+Mi),1.5)+Math.pow(Vn(Ji*40+as),1.5),1.5)+Math.pow(Math.pow(Vn(rl*40+Mn),1.5)+Math.pow(Vn(Ni*40+Mo),1.5),1.5)>(Ca**1.5)**1.5*1.3};const Pe=w[at],Ve=Be[Be.length-1];Ht(Ve,Pe)?(ue=!0,Be[Be.length-1]=Be[Be.length-1].join(Pe)):Be.push(Pe)}w=Be}while(H++<10&&ue);const Ae=[];return B9e(w,(Be,at,Pe)=>{let Ve=at;function Ht(Bn){return Bn.length>0&&Bn.trim().length<=3&&at.seq1Range.length+at.seq2Range.length>100}const $t=_.extendToFullLines(at.seq1Range),ar=_.getText(new Yl($t.start,at.seq1Range.start));Ht(ar)&&(Ve=Ve.deltaStart(-ar.length));const Fn=_.getText(new Yl(at.seq1Range.endExclusive,$t.endExclusive));Ht(Fn)&&(Ve=Ve.deltaEnd(Fn.length));const In=Qp.fromOffsetPairs(Be?Be.getEndExclusives():EA.zero,Pe?Pe.getStarts():EA.max),Oi=Ve.intersect(In);Ae.length>0&&Oi.getStarts().equals(Ae[Ae.length-1].getEndExclusives())?Ae[Ae.length-1]=Ae[Ae.length-1].join(Oi):Ae.push(Oi)}),Ae}class vEe{constructor(g,S){this.trimmedHash=g,this.lines=S}getElement(g){return this.trimmedHash[g]}get length(){return this.trimmedHash.length}getBoundaryScore(g){const S=g===0?0:yEe(this.lines[g-1]),w=g===this.lines.length?0:yEe(this.lines[g]);return 1e3-(S+w)}getText(g){return this.lines.slice(g.start,g.endExclusive).join(`
`)}isStronglyEqual(g,S){return this.lines[g]===this.lines[S]}}function yEe(_){let g=0;for(;g<_.length&&(_.charCodeAt(g)===32||_.charCodeAt(g)===9);)g++;return g}class hze{constructor(){this.dynamicProgrammingDiffing=new tze,this.myersDiffingAlgorithm=new lEe}computeDiff(g,S,w){if(g.length<=1&&W9e(g,S,(Mn,Ni)=>Mn===Ni))return new aG([],[],!1);if(g.length===1&&g[0].length===0||S.length===1&&S[0].length===0)return new aG([new yA(new Oc(1,g.length+1),new Oc(1,S.length+1),[new Zb(new ns(1,1,g.length,g[g.length-1].length+1),new ns(1,1,S.length,S[S.length-1].length+1))])],[],!1);const H=w.maxComputationTimeMs===0?B8.instance:new eze(w.maxComputationTimeMs),ue=!w.ignoreTrimWhitespace,Ae=new Map;function Be(Mn){let Ni=Ae.get(Mn);return Ni===void 0&&(Ni=Ae.size,Ae.set(Mn,Ni)),Ni}const at=g.map(Mn=>Be(Mn.trim())),Pe=S.map(Mn=>Be(Mn.trim())),Ve=new vEe(at,g),Ht=new vEe(Pe,S),$t=(()=>Ve.length+Ht.length<1700?this.dynamicProgrammingDiffing.compute(Ve,Ht,H,(Mn,Ni)=>g[Mn]===S[Ni]?S[Ni].length===0?.1:1+Math.log(1+S[Ni].length):.99):this.myersDiffingAlgorithm.compute(Ve,Ht,H))();let ar=$t.diffs,Fn=$t.hitTimeout;ar=mEe(Ve,Ht,ar),ar=mze(Ve,Ht,ar);const In=[],Oi=Mn=>{if(!!ue)for(let Ni=0;Ni<Mn;Ni++){const Mo=Bn+Ni,Ca=un+Ni;if(g[Mo]!==S[Ca]){const Vn=this.refineDiff(g,S,new Qp(new Yl(Mo,Mo+1),new Yl(Ca,Ca+1)),H,ue,w);for(const Si of Vn.mappings)In.push(Si);Vn.hitTimeout&&(Fn=!0)}}};let Bn=0,un=0;for(const Mn of ar){qB(()=>Mn.seq1Range.start-Bn===Mn.seq2Range.start-un);const Ni=Mn.seq1Range.start-Bn;Oi(Ni),Bn=Mn.seq1Range.endExclusive,un=Mn.seq2Range.endExclusive;const Mo=this.refineDiff(g,S,Mn,H,ue,w);Mo.hitTimeout&&(Fn=!0);for(const Ca of Mo.mappings)In.push(Ca)}Oi(g.length-Bn);const Mi=new lG(g),Ji=new lG(S),as=iEe(In,Mi,Ji);let rl=[];return w.computeMoves&&(rl=this.computeMoves(as,g,S,at,Pe,H,ue,w)),qB(()=>{function Mn(Mo,Ca){if(Mo.lineNumber<1||Mo.lineNumber>Ca.length)return!1;const Vn=Ca[Mo.lineNumber-1];return!(Mo.column<1||Mo.column>Vn.length+1)}function Ni(Mo,Ca){return!(Mo.startLineNumber<1||Mo.startLineNumber>Ca.length+1||Mo.endLineNumberExclusive<1||Mo.endLineNumberExclusive>Ca.length+1)}for(const Mo of as){if(!Mo.innerChanges)return!1;for(const Ca of Mo.innerChanges)if(!(Mn(Ca.modifiedRange.getStartPosition(),S)&&Mn(Ca.modifiedRange.getEndPosition(),S)&&Mn(Ca.originalRange.getStartPosition(),g)&&Mn(Ca.originalRange.getEndPosition(),g)))return!1;if(!Ni(Mo.modified,S)||!Ni(Mo.original,g))return!1}return!0}),new aG(as,rl,Fn)}computeMoves(g,S,w,H,ue,Ae,Be,at){return oze(g,S,w,H,ue,Ae).map(Ht=>{const $t=this.refineDiff(S,w,new Qp(Ht.original.toOffsetRange(),Ht.modified.toOffsetRange()),Ae,Be,at),ar=iEe($t.mappings,new lG(S),new lG(w),!0);return new O9e(Ht,ar)})}refineDiff(g,S,w,H,ue,Ae){const at=gze(w).toRangeMapping2(g,S),Pe=new uG(g,at.originalRange,ue),Ve=new uG(S,at.modifiedRange,ue),Ht=Pe.length+Ve.length<500?this.dynamicProgrammingDiffing.compute(Pe,Ve,H):this.myersDiffingAlgorithm.compute(Pe,Ve,H);let $t=Ht.diffs;return $t=mEe(Pe,Ve,$t),$t=gEe(Pe,Ve,$t,(Fn,In)=>Fn.findWordContaining(In)),Ae.extendToSubwords&&($t=gEe(Pe,Ve,$t,(Fn,In)=>Fn.findSubWordContaining(In),!0)),$t=pze(Pe,Ve,$t),$t=_ze(Pe,Ve,$t),{mappings:$t.map(Fn=>new Zb(Pe.translateRange(Fn.seq1Range),Ve.translateRange(Fn.seq2Range))),hitTimeout:Ht.hitTimeout}}}function gze(_){return new Qb(new Oc(_.seq1Range.start+1,_.seq1Range.endExclusive+1),new Oc(_.seq2Range.start+1,_.seq2Range.endExclusive+1))}const bEe={getLegacy:()=>new Y9e,getDefault:()=>new hze};function zx(_,g){const S=Math.pow(10,g);return Math.round(_*S)/S}class sr{constructor(g,S,w,H=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,g))|0,this.g=Math.min(255,Math.max(0,S))|0,this.b=Math.min(255,Math.max(0,w))|0,this.a=zx(Math.max(Math.min(1,H),0),3)}static equals(g,S){return g.r===S.r&&g.g===S.g&&g.b===S.b&&g.a===S.a}}class e0{constructor(g,S,w,H){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,g),0)|0,this.s=zx(Math.max(Math.min(1,S),0),3),this.l=zx(Math.max(Math.min(1,w),0),3),this.a=zx(Math.max(Math.min(1,H),0),3)}static equals(g,S){return g.h===S.h&&g.s===S.s&&g.l===S.l&&g.a===S.a}static fromRGBA(g){const S=g.r/255,w=g.g/255,H=g.b/255,ue=g.a,Ae=Math.max(S,w,H),Be=Math.min(S,w,H);let at=0,Pe=0;const Ve=(Be+Ae)/2,Ht=Ae-Be;if(Ht>0){switch(Pe=Math.min(Ve<=.5?Ht/(2*Ve):Ht/(2-2*Ve),1),Ae){case S:at=(w-H)/Ht+(w<H?6:0);break;case w:at=(H-S)/Ht+2;break;case H:at=(S-w)/Ht+4;break}at*=60,at=Math.round(at)}return new e0(at,Pe,Ve,ue)}static _hue2rgb(g,S,w){return w<0&&(w+=1),w>1&&(w-=1),w<1/6?g+(S-g)*6*w:w<1/2?S:w<2/3?g+(S-g)*(2/3-w)*6:g}static toRGBA(g){const S=g.h/360,{s:w,l:H,a:ue}=g;let Ae,Be,at;if(w===0)Ae=Be=at=H;else{const Pe=H<.5?H*(1+w):H+w-H*w,Ve=2*H-Pe;Ae=e0._hue2rgb(Ve,Pe,S+1/3),Be=e0._hue2rgb(Ve,Pe,S),at=e0._hue2rgb(Ve,Pe,S-1/3)}return new sr(Math.round(Ae*255),Math.round(Be*255),Math.round(at*255),ue)}}class jM{constructor(g,S,w,H){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,g),0)|0,this.s=zx(Math.max(Math.min(1,S),0),3),this.v=zx(Math.max(Math.min(1,w),0),3),this.a=zx(Math.max(Math.min(1,H),0),3)}static equals(g,S){return g.h===S.h&&g.s===S.s&&g.v===S.v&&g.a===S.a}static fromRGBA(g){const S=g.r/255,w=g.g/255,H=g.b/255,ue=Math.max(S,w,H),Ae=Math.min(S,w,H),Be=ue-Ae,at=ue===0?0:Be/ue;let Pe;return Be===0?Pe=0:ue===S?Pe=((w-H)/Be%6+6)%6:ue===w?Pe=(H-S)/Be+2:Pe=(S-w)/Be+4,new jM(Math.round(Pe*60),at,ue,g.a)}static toRGBA(g){const{h:S,s:w,v:H,a:ue}=g,Ae=H*w,Be=Ae*(1-Math.abs(S/60%2-1)),at=H-Ae;let[Pe,Ve,Ht]=[0,0,0];return S<60?(Pe=Ae,Ve=Be):S<120?(Pe=Be,Ve=Ae):S<180?(Ve=Ae,Ht=Be):S<240?(Ve=Be,Ht=Ae):S<300?(Pe=Be,Ht=Ae):S<=360&&(Pe=Ae,Ht=Be),Pe=Math.round((Pe+at)*255),Ve=Math.round((Ve+at)*255),Ht=Math.round((Ht+at)*255),new sr(Pe,Ve,Ht,ue)}}const qu=class{static fromHex(g){return qu.Format.CSS.parseHex(g)||qu.red}static equals(g,S){return!g&&!S?!0:!g||!S?!1:g.equals(S)}get hsla(){return this._hsla?this._hsla:e0.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:jM.fromRGBA(this.rgba)}constructor(g){if(g)if(g instanceof sr)this.rgba=g;else if(g instanceof e0)this._hsla=g,this.rgba=e0.toRGBA(g);else if(g instanceof jM)this._hsva=g,this.rgba=jM.toRGBA(g);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(g){return!!g&&sr.equals(this.rgba,g.rgba)&&e0.equals(this.hsla,g.hsla)&&jM.equals(this.hsva,g.hsva)}getRelativeLuminance(){const g=qu._relativeLuminanceForComponent(this.rgba.r),S=qu._relativeLuminanceForComponent(this.rgba.g),w=qu._relativeLuminanceForComponent(this.rgba.b),H=.2126*g+.7152*S+.0722*w;return zx(H,4)}static _relativeLuminanceForComponent(g){const S=g/255;return S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(g){const S=this.getRelativeLuminance(),w=g.getRelativeLuminance();return S>w}isDarkerThan(g){const S=this.getRelativeLuminance(),w=g.getRelativeLuminance();return S<w}lighten(g){return new qu(new e0(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*g,this.hsla.a))}darken(g){return new qu(new e0(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*g,this.hsla.a))}transparent(g){const{r:S,g:w,b:H,a:ue}=this.rgba;return new qu(new sr(S,w,H,ue*g))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new qu(new sr(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}mix(g,S=.5){const w=Math.min(Math.max(S,0),1),H=this.rgba,ue=g.rgba,Ae=H.r+(ue.r-H.r)*w,Be=H.g+(ue.g-H.g)*w,at=H.b+(ue.b-H.b)*w,Pe=H.a+(ue.a-H.a)*w;return new qu(new sr(Ae,Be,at,Pe))}makeOpaque(g){if(this.isOpaque()||g.rgba.a!==1)return this;const{r:S,g:w,b:H,a:ue}=this.rgba;return new qu(new sr(g.rgba.r-ue*(g.rgba.r-S),g.rgba.g-ue*(g.rgba.g-w),g.rgba.b-ue*(g.rgba.b-H),1))}toString(){return this._toString||(this._toString=qu.Format.CSS.format(this)),this._toString}toNumber32Bit(){return this._toNumber32Bit||(this._toNumber32Bit=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|this.rgba.a*255<<0)>>>0),this._toNumber32Bit}static getLighterColor(g,S,w){if(g.isLighterThan(S))return g;w=w||.5;const H=g.getRelativeLuminance(),ue=S.getRelativeLuminance();return w=w*(ue-H)/ue,g.lighten(w)}static getDarkerColor(g,S,w){if(g.isDarkerThan(S))return g;w=w||.5;const H=g.getRelativeLuminance(),ue=S.getRelativeLuminance();return w=w*(H-ue)/H,g.darken(w)}};let UM=qu;(()=>{qu.white=new qu(new sr(255,255,255,1))})(),(()=>{qu.black=new qu(new sr(0,0,0,1))})(),(()=>{qu.red=new qu(new sr(255,0,0,1))})(),(()=>{qu.blue=new qu(new sr(0,0,255,1))})(),(()=>{qu.green=new qu(new sr(0,255,0,1))})(),(()=>{qu.cyan=new qu(new sr(0,255,255,1))})(),(()=>{qu.lightgrey=new qu(new sr(211,211,211,1))})(),(()=>{qu.transparent=new qu(new sr(0,0,0,0))})(),function(_){(function(g){(function(S){function w(In){return In.rgba.a===1?`rgb(${In.rgba.r}, ${In.rgba.g}, ${In.rgba.b})`:_.Format.CSS.formatRGBA(In)}S.formatRGB=w;function H(In){return`rgba(${In.rgba.r}, ${In.rgba.g}, ${In.rgba.b}, ${+In.rgba.a.toFixed(2)})`}S.formatRGBA=H;function ue(In){return In.hsla.a===1?`hsl(${In.hsla.h}, ${Math.round(In.hsla.s*100)}%, ${Math.round(In.hsla.l*100)}%)`:_.Format.CSS.formatHSLA(In)}S.formatHSL=ue;function Ae(In){return`hsla(${In.hsla.h}, ${Math.round(In.hsla.s*100)}%, ${Math.round(In.hsla.l*100)}%, ${In.hsla.a.toFixed(2)})`}S.formatHSLA=Ae;function Be(In){const Oi=In.toString(16);return Oi.length!==2?"0"+Oi:Oi}function at(In){return`#${Be(In.rgba.r)}${Be(In.rgba.g)}${Be(In.rgba.b)}`}S.formatHex=at;function Pe(In,Oi=!1){return Oi&&In.rgba.a===1?_.Format.CSS.formatHex(In):`#${Be(In.rgba.r)}${Be(In.rgba.g)}${Be(In.rgba.b)}${Be(Math.round(In.rgba.a*255))}`}S.formatHexA=Pe;function Ve(In){return In.isOpaque()?_.Format.CSS.formatHex(In):_.Format.CSS.formatRGBA(In)}S.format=Ve;function Ht(In){var Oi,Bn,un,Mi,Ji,as,rl,Mn,Ni,Mo,Ca,Vn,Si,Yi;if(In==="transparent")return _.transparent;if(In.startsWith("#"))return ar(In);if(In.startsWith("rgba(")){const Wt=In.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!Wt)throw new Error("Invalid color format "+In);const Xo=parseInt((Bn=(Oi=Wt.groups)==null?void 0:Oi.r)!=null?Bn:"0"),mo=parseInt((Mi=(un=Wt.groups)==null?void 0:un.g)!=null?Mi:"0"),Oa=parseInt((as=(Ji=Wt.groups)==null?void 0:Ji.b)!=null?as:"0"),qi=parseFloat((Mn=(rl=Wt.groups)==null?void 0:rl.a)!=null?Mn:"0");return new _(new sr(Xo,mo,Oa,qi))}if(In.startsWith("rgb(")){const Wt=In.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!Wt)throw new Error("Invalid color format "+In);const Xo=parseInt((Mo=(Ni=Wt.groups)==null?void 0:Ni.r)!=null?Mo:"0"),mo=parseInt((Vn=(Ca=Wt.groups)==null?void 0:Ca.g)!=null?Vn:"0"),Oa=parseInt((Yi=(Si=Wt.groups)==null?void 0:Si.b)!=null?Yi:"0");return new _(new sr(Xo,mo,Oa))}return $t(In)}S.parse=Ht;function $t(In){switch(In){case"aliceblue":return new _(new sr(240,248,255,1));case"antiquewhite":return new _(new sr(250,235,215,1));case"aqua":return new _(new sr(0,255,255,1));case"aquamarine":return new _(new sr(127,255,212,1));case"azure":return new _(new sr(240,255,255,1));case"beige":return new _(new sr(245,245,220,1));case"bisque":return new _(new sr(255,228,196,1));case"black":return new _(new sr(0,0,0,1));case"blanchedalmond":return new _(new sr(255,235,205,1));case"blue":return new _(new sr(0,0,255,1));case"blueviolet":return new _(new sr(138,43,226,1));case"brown":return new _(new sr(165,42,42,1));case"burlywood":return new _(new sr(222,184,135,1));case"cadetblue":return new _(new sr(95,158,160,1));case"chartreuse":return new _(new sr(127,255,0,1));case"chocolate":return new _(new sr(210,105,30,1));case"coral":return new _(new sr(255,127,80,1));case"cornflowerblue":return new _(new sr(100,149,237,1));case"cornsilk":return new _(new sr(255,248,220,1));case"crimson":return new _(new sr(220,20,60,1));case"cyan":return new _(new sr(0,255,255,1));case"darkblue":return new _(new sr(0,0,139,1));case"darkcyan":return new _(new sr(0,139,139,1));case"darkgoldenrod":return new _(new sr(184,134,11,1));case"darkgray":return new _(new sr(169,169,169,1));case"darkgreen":return new _(new sr(0,100,0,1));case"darkgrey":return new _(new sr(169,169,169,1));case"darkkhaki":return new _(new sr(189,183,107,1));case"darkmagenta":return new _(new sr(139,0,139,1));case"darkolivegreen":return new _(new sr(85,107,47,1));case"darkorange":return new _(new sr(255,140,0,1));case"darkorchid":return new _(new sr(153,50,204,1));case"darkred":return new _(new sr(139,0,0,1));case"darksalmon":return new _(new sr(233,150,122,1));case"darkseagreen":return new _(new sr(143,188,143,1));case"darkslateblue":return new _(new sr(72,61,139,1));case"darkslategray":return new _(new sr(47,79,79,1));case"darkslategrey":return new _(new sr(47,79,79,1));case"darkturquoise":return new _(new sr(0,206,209,1));case"darkviolet":return new _(new sr(148,0,211,1));case"deeppink":return new _(new sr(255,20,147,1));case"deepskyblue":return new _(new sr(0,191,255,1));case"dimgray":return new _(new sr(105,105,105,1));case"dimgrey":return new _(new sr(105,105,105,1));case"dodgerblue":return new _(new sr(30,144,255,1));case"firebrick":return new _(new sr(178,34,34,1));case"floralwhite":return new _(new sr(255,250,240,1));case"forestgreen":return new _(new sr(34,139,34,1));case"fuchsia":return new _(new sr(255,0,255,1));case"gainsboro":return new _(new sr(220,220,220,1));case"ghostwhite":return new _(new sr(248,248,255,1));case"gold":return new _(new sr(255,215,0,1));case"goldenrod":return new _(new sr(218,165,32,1));case"gray":return new _(new sr(128,128,128,1));case"green":return new _(new sr(0,128,0,1));case"greenyellow":return new _(new sr(173,255,47,1));case"grey":return new _(new sr(128,128,128,1));case"honeydew":return new _(new sr(240,255,240,1));case"hotpink":return new _(new sr(255,105,180,1));case"indianred":return new _(new sr(205,92,92,1));case"indigo":return new _(new sr(75,0,130,1));case"ivory":return new _(new sr(255,255,240,1));case"khaki":return new _(new sr(240,230,140,1));case"lavender":return new _(new sr(230,230,250,1));case"lavenderblush":return new _(new sr(255,240,245,1));case"lawngreen":return new _(new sr(124,252,0,1));case"lemonchiffon":return new _(new sr(255,250,205,1));case"lightblue":return new _(new sr(173,216,230,1));case"lightcoral":return new _(new sr(240,128,128,1));case"lightcyan":return new _(new sr(224,255,255,1));case"lightgoldenrodyellow":return new _(new sr(250,250,210,1));case"lightgray":return new _(new sr(211,211,211,1));case"lightgreen":return new _(new sr(144,238,144,1));case"lightgrey":return new _(new sr(211,211,211,1));case"lightpink":return new _(new sr(255,182,193,1));case"lightsalmon":return new _(new sr(255,160,122,1));case"lightseagreen":return new _(new sr(32,178,170,1));case"lightskyblue":return new _(new sr(135,206,250,1));case"lightslategray":return new _(new sr(119,136,153,1));case"lightslategrey":return new _(new sr(119,136,153,1));case"lightsteelblue":return new _(new sr(176,196,222,1));case"lightyellow":return new _(new sr(255,255,224,1));case"lime":return new _(new sr(0,255,0,1));case"limegreen":return new _(new sr(50,205,50,1));case"linen":return new _(new sr(250,240,230,1));case"magenta":return new _(new sr(255,0,255,1));case"maroon":return new _(new sr(128,0,0,1));case"mediumaquamarine":return new _(new sr(102,205,170,1));case"mediumblue":return new _(new sr(0,0,205,1));case"mediumorchid":return new _(new sr(186,85,211,1));case"mediumpurple":return new _(new sr(147,112,219,1));case"mediumseagreen":return new _(new sr(60,179,113,1));case"mediumslateblue":return new _(new sr(123,104,238,1));case"mediumspringgreen":return new _(new sr(0,250,154,1));case"mediumturquoise":return new _(new sr(72,209,204,1));case"mediumvioletred":return new _(new sr(199,21,133,1));case"midnightblue":return new _(new sr(25,25,112,1));case"mintcream":return new _(new sr(245,255,250,1));case"mistyrose":return new _(new sr(255,228,225,1));case"moccasin":return new _(new sr(255,228,181,1));case"navajowhite":return new _(new sr(255,222,173,1));case"navy":return new _(new sr(0,0,128,1));case"oldlace":return new _(new sr(253,245,230,1));case"olive":return new _(new sr(128,128,0,1));case"olivedrab":return new _(new sr(107,142,35,1));case"orange":return new _(new sr(255,165,0,1));case"orangered":return new _(new sr(255,69,0,1));case"orchid":return new _(new sr(218,112,214,1));case"palegoldenrod":return new _(new sr(238,232,170,1));case"palegreen":return new _(new sr(152,251,152,1));case"paleturquoise":return new _(new sr(175,238,238,1));case"palevioletred":return new _(new sr(219,112,147,1));case"papayawhip":return new _(new sr(255,239,213,1));case"peachpuff":return new _(new sr(255,218,185,1));case"peru":return new _(new sr(205,133,63,1));case"pink":return new _(new sr(255,192,203,1));case"plum":return new _(new sr(221,160,221,1));case"powderblue":return new _(new sr(176,224,230,1));case"purple":return new _(new sr(128,0,128,1));case"rebeccapurple":return new _(new sr(102,51,153,1));case"red":return new _(new sr(255,0,0,1));case"rosybrown":return new _(new sr(188,143,143,1));case"royalblue":return new _(new sr(65,105,225,1));case"saddlebrown":return new _(new sr(139,69,19,1));case"salmon":return new _(new sr(250,128,114,1));case"sandybrown":return new _(new sr(244,164,96,1));case"seagreen":return new _(new sr(46,139,87,1));case"seashell":return new _(new sr(255,245,238,1));case"sienna":return new _(new sr(160,82,45,1));case"silver":return new _(new sr(192,192,192,1));case"skyblue":return new _(new sr(135,206,235,1));case"slateblue":return new _(new sr(106,90,205,1));case"slategray":return new _(new sr(112,128,144,1));case"slategrey":return new _(new sr(112,128,144,1));case"snow":return new _(new sr(255,250,250,1));case"springgreen":return new _(new sr(0,255,127,1));case"steelblue":return new _(new sr(70,130,180,1));case"tan":return new _(new sr(210,180,140,1));case"teal":return new _(new sr(0,128,128,1));case"thistle":return new _(new sr(216,191,216,1));case"tomato":return new _(new sr(255,99,71,1));case"turquoise":return new _(new sr(64,224,208,1));case"violet":return new _(new sr(238,130,238,1));case"wheat":return new _(new sr(245,222,179,1));case"white":return new _(new sr(255,255,255,1));case"whitesmoke":return new _(new sr(245,245,245,1));case"yellow":return new _(new sr(255,255,0,1));case"yellowgreen":return new _(new sr(154,205,50,1));default:return null}}function ar(In){const Oi=In.length;if(Oi===0||In.charCodeAt(0)!==35)return null;if(Oi===7){const Bn=16*Fn(In.charCodeAt(1))+Fn(In.charCodeAt(2)),un=16*Fn(In.charCodeAt(3))+Fn(In.charCodeAt(4)),Mi=16*Fn(In.charCodeAt(5))+Fn(In.charCodeAt(6));return new _(new sr(Bn,un,Mi,1))}if(Oi===9){const Bn=16*Fn(In.charCodeAt(1))+Fn(In.charCodeAt(2)),un=16*Fn(In.charCodeAt(3))+Fn(In.charCodeAt(4)),Mi=16*Fn(In.charCodeAt(5))+Fn(In.charCodeAt(6)),Ji=16*Fn(In.charCodeAt(7))+Fn(In.charCodeAt(8));return new _(new sr(Bn,un,Mi,Ji/255))}if(Oi===4){const Bn=Fn(In.charCodeAt(1)),un=Fn(In.charCodeAt(2)),Mi=Fn(In.charCodeAt(3));return new _(new sr(16*Bn+Bn,16*un+un,16*Mi+Mi))}if(Oi===5){const Bn=Fn(In.charCodeAt(1)),un=Fn(In.charCodeAt(2)),Mi=Fn(In.charCodeAt(3)),Ji=Fn(In.charCodeAt(4));return new _(new sr(16*Bn+Bn,16*un+un,16*Mi+Mi,(16*Ji+Ji)/255))}return null}S.parseHex=ar;function Fn(In){switch(In){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(g.CSS||(g.CSS={}))})(_.Format||(_.Format={}))}(UM||(UM={}));function EEe(_){const g=[];for(const S of _){const w=Number(S);(w||w===0&&S.replace(/\s/g,"")!=="")&&g.push(w)}return g}function Lne(_,g,S,w){return{red:_/255,blue:S/255,green:g/255,alpha:w}}function G8(_,g){const S=g.index,w=g[0].length;if(S===void 0)return;const H=_.positionAt(S);return{startLineNumber:H.lineNumber,startColumn:H.column,endLineNumber:H.lineNumber,endColumn:H.column+w}}function vze(_,g){if(!_)return;const S=UM.Format.CSS.parseHex(g);if(!!S)return{range:_,color:Lne(S.rgba.r,S.rgba.g,S.rgba.b,S.rgba.a)}}function SEe(_,g,S){if(!_||g.length!==1)return;const H=g[0].values(),ue=EEe(H);return{range:_,color:Lne(ue[0],ue[1],ue[2],S?ue[3]:1)}}function TEe(_,g,S){if(!_||g.length!==1)return;const H=g[0].values(),ue=EEe(H),Ae=new UM(new e0(ue[0],ue[1]/100,ue[2]/100,S?ue[3]:1));return{range:_,color:Lne(Ae.rgba.r,Ae.rgba.g,Ae.rgba.b,Ae.rgba.a)}}function V8(_,g){return typeof _=="string"?[..._.matchAll(g)]:_.findMatches(g)}function yze(_){const g=[],S=new RegExp(`\\b(rgb|rgba|hsl|hsla)(\\([0-9\\s,.\\%]*\\))|^(#)([A-Fa-f0-9]{3})\\b|^(#)([A-Fa-f0-9]{4})\\b|^(#)([A-Fa-f0-9]{6})\\b|^(#)([A-Fa-f0-9]{8})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{3})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{4})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{6})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{8})\\b`,"gm"),w=V8(_,S);if(w.length>0)for(const H of w){const ue=H.filter(Pe=>Pe!==void 0),Ae=ue[1],Be=ue[2];if(!Be)continue;let at;if(Ae==="rgb"){const Pe=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;at=SEe(G8(_,H),V8(Be,Pe),!1)}else if(Ae==="rgba"){const Pe=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;at=SEe(G8(_,H),V8(Be,Pe),!0)}else if(Ae==="hsl"){const Pe=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;at=TEe(G8(_,H),V8(Be,Pe),!1)}else if(Ae==="hsla"){const Pe=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;at=TEe(G8(_,H),V8(Be,Pe),!0)}else Ae==="#"&&(at=vze(G8(_,H),Ae+Be));at&&g.push(at)}return g}function bze(_){return!_||typeof _.getValue!="function"||typeof _.positionAt!="function"?[]:yze(_)}const Eze=/^-+|-+$/g,AEe=100,Sze=5;function Tze(_,g){var w;let S=[];if(g.findRegionSectionHeaders&&((w=g.foldingRules)==null?void 0:w.markers)){const H=Aze(_,g);S=S.concat(H)}if(g.findMarkSectionHeaders){const H=Ize(_,g);S=S.concat(H)}return S}function Aze(_,g){const S=[],w=_.getLineCount();for(let H=1;H<=w;H++){const ue=_.getLineContent(H),Ae=ue.match(g.foldingRules.markers.start);if(Ae){const Be={startLineNumber:H,startColumn:Ae[0].length+1,endLineNumber:H,endColumn:ue.length+1};if(Be.endColumn>Be.startColumn){const at={range:Be,...xze(ue.substring(Ae[0].length)),shouldBeInComments:!1};(at.text||at.hasSeparatorLine)&&S.push(at)}}}return S}function Ize(_,g){var Ae,Be,at,Pe;const S=[],w=_.getLineCount();if(!g.markSectionHeaderRegex||g.markSectionHeaderRegex.trim()==="")return S;const H=x9e(g.markSectionHeaderRegex),ue=new RegExp(g.markSectionHeaderRegex,`gdm${H?"s":""}`);if(yFe(ue))return S;for(let Ve=1;Ve<=w;Ve+=AEe-Sze){const Ht=Math.min(Ve+AEe-1,w),$t=[];for(let In=Ve;In<=Ht;In++)$t.push(_.getLineContent(In));const ar=$t.join(`
`);ue.lastIndex=0;let Fn;for(;(Fn=ue.exec(ar))!==null;){const In=ar.substring(0,Fn.index),Oi=(In.match(/\n/g)||[]).length,Bn=Ve+Oi,un=Fn[0].split(`
`),Mi=un.length,Ji=Bn+Mi-1,as=In.lastIndexOf(`
`)+1,rl=Fn.index-as+1,Mn=un[un.length-1],Ni=Mi===1?rl+Fn[0].length:Mn.length+1,Mo={startLineNumber:Bn,startColumn:rl,endLineNumber:Ji,endColumn:Ni},Ca=(Be=((Ae=Fn.groups)!=null?Ae:{}).label)!=null?Be:"",Vn=((Pe=((at=Fn.groups)!=null?at:{}).separator)!=null?Pe:"")!=="",Si={range:Mo,text:Ca,hasSeparatorLine:Vn,shouldBeInComments:!0};(Si.text||Si.hasSeparatorLine)&&(S.length===0||S[S.length-1].range.endLineNumber<Si.range.startLineNumber)&&S.push(Si),ue.lastIndex=Fn.index+Fn[0].length}}return S}function xze(_){_=_.trim();const g=_.startsWith("-");return _=_.replace(Eze,""),{text:_,hasSeparatorLine:g}}class Rze{get isRejected(){var g;return((g=this.outcome)==null?void 0:g.outcome)===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((g,S)=>{this.completeCallback=g,this.errorCallback=S})}complete(g){return new Promise(S=>{this.completeCallback(g),this.outcome={outcome:0,value:g},S()})}error(g){return new Promise(S=>{this.errorCallback(g),this.outcome={outcome:1,value:g},S()})}cancel(){return this.error(new c0e)}}var IEe;(function(_){async function g(w){let H;const ue=await Promise.all(w.map(Ae=>Ae.then(Be=>Be,Be=>{H||(H=Be)})));if(typeof H<"u")throw H;return ue}_.settled=g;function S(w){return new Promise(async(H,ue)=>{try{await w(H,ue)}catch(Ae){ue(Ae)}})}_.withAsyncBody=S})(IEe||(IEe={}));const Mg=class{static fromArray(g){return new Mg(S=>{S.emitMany(g)})}static fromPromise(g){return new Mg(async S=>{S.emitMany(await g)})}static fromPromisesResolveOrder(g){return new Mg(async S=>{await Promise.all(g.map(async w=>S.emitOne(await w)))})}static merge(g){return new Mg(async S=>{await Promise.all(g.map(async w=>{for await(const H of w)S.emitOne(H)}))})}constructor(g,S){this._state=0,this._results=[],this._error=null,this._onReturn=S,this._onStateChanged=new S1,queueMicrotask(async()=>{const w={emitOne:H=>this.emitOne(H),emitMany:H=>this.emitMany(H),reject:H=>this.reject(H)};try{await Promise.resolve(g(w)),this.resolve()}catch(H){this.reject(H)}finally{w.emitOne=void 0,w.emitMany=void 0,w.reject=void 0}})}[Symbol.asyncIterator](){let g=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(g<this._results.length)return{done:!1,value:this._results[g++]};if(this._state===1)return{done:!0,value:void 0};await YB.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>{var S;return(S=this._onReturn)==null||S.call(this),{done:!0,value:void 0}}}}static map(g,S){return new Mg(async w=>{for await(const H of g)w.emitOne(S(H))})}map(g){return Mg.map(this,g)}static filter(g,S){return new Mg(async w=>{for await(const H of g)S(H)&&w.emitOne(H)})}filter(g){return Mg.filter(this,g)}static coalesce(g){return Mg.filter(g,S=>!!S)}coalesce(){return Mg.coalesce(this)}static async toPromise(g){const S=[];for await(const w of g)S.push(w);return S}toPromise(){return Mg.toPromise(this)}emitOne(g){this._state===0&&(this._results.push(g),this._onStateChanged.fire())}emitMany(g){this._state===0&&(this._results=this._results.concat(g),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(g){this._state===0&&(this._state=2,this._error=g,this._onStateChanged.fire())}};let xEe=Mg;(()=>{Mg.EMPTY=Mg.fromArray([])})();class Dze{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(g){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){const S=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(S,g)}else this._unconsumedValues.push(g)}produceFinal(g){this._ensureNoFinalValue(),this._finalValue=g;for(const S of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(S,g);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new ch("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(g,S){S.ok?g.complete(S.value):g.error(S.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){const g=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return g.ok?Promise.resolve(g.value):Promise.reject(g.error)}else{const g=new Rze;return this._unsatisfiedConsumers.push(g),g.p}}}const xv=class{constructor(g,S){this._onReturn=S,this._producerConsumer=new Dze,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>{var w;return(w=this._onReturn)==null||w.call(this),Promise.resolve({done:!0,value:void 0})},throw:async w=>(this._finishError(w),{done:!0,value:void 0})},queueMicrotask(async()=>{const w=g({emitOne:H=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:H}}),emitMany:H=>{for(const ue of H)this._producerConsumer.produce({ok:!0,value:{done:!1,value:ue}})},reject:H=>this._finishError(H)});if(!this._producerConsumer.hasFinalValue)try{await w,this._finishOk()}catch(H){this._finishError(H)}})}static fromArray(g){return new xv(S=>{S.emitMany(g)})}static fromPromise(g){return new xv(async S=>{S.emitMany(await g)})}static fromPromisesResolveOrder(g){return new xv(async S=>{await Promise.all(g.map(async w=>S.emitOne(await w)))})}static merge(g){return new xv(async S=>{await Promise.all(g.map(async w=>{for await(const H of w)S.emitOne(H)}))})}static map(g,S){return new xv(async w=>{for await(const H of g)w.emitOne(S(H))})}map(g){return xv.map(this,g)}static coalesce(g){return xv.filter(g,S=>!!S)}coalesce(){return xv.coalesce(this)}static filter(g,S){return new xv(async w=>{for await(const H of g)S(H)&&w.emitOne(H)})}filter(g){return xv.filter(this,g)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(g){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:g})}[Symbol.asyncIterator](){return this._iterator}};let REe=xv;(()=>{xv.EMPTY=xv.fromArray([])})();class Nze{constructor(g){this.values=g,this.prefixSum=new Uint32Array(g.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(g,S){g=kM(g);const w=this.values,H=this.prefixSum,ue=S.length;return ue===0?!1:(this.values=new Uint32Array(w.length+ue),this.values.set(w.subarray(0,g),0),this.values.set(w.subarray(g),g+ue),this.values.set(S,g),g-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=g-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(H.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(g,S){return g=kM(g),S=kM(S),this.values[g]===S?!1:(this.values[g]=S,g-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=g-1),!0)}removeValues(g,S){g=kM(g),S=kM(S);const w=this.values,H=this.prefixSum;if(g>=w.length)return!1;const ue=w.length-g;return S>=ue&&(S=ue),S===0?!1:(this.values=new Uint32Array(w.length-S),this.values.set(w.subarray(0,g),0),this.values.set(w.subarray(g+S),g),this.prefixSum=new Uint32Array(this.values.length),g-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=g-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(H.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(g){return g<0?0:(g=kM(g),this._getPrefixSum(g))}_getPrefixSum(g){if(g<=this.prefixSumValidIndex[0])return this.prefixSum[g];let S=this.prefixSumValidIndex[0]+1;S===0&&(this.prefixSum[0]=this.values[0],S++),g>=this.values.length&&(g=this.values.length-1);for(let w=S;w<=g;w++)this.prefixSum[w]=this.prefixSum[w-1]+this.values[w];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],g),this.prefixSum[g]}getIndexOf(g){g=Math.floor(g),this.getTotalSum();let S=0,w=this.values.length-1,H=0,ue=0,Ae=0;for(;S<=w;)if(H=S+(w-S)/2|0,ue=this.prefixSum[H],Ae=ue-this.values[H],g<Ae)w=H-1;else if(g>=ue)S=H+1;else break;return new Cze(H,g-Ae)}}class Cze{constructor(g,S){this.index=g,this.remainder=S,this._prefixSumIndexOfResultBrand=void 0,this.index=g,this.remainder=S}}class Pze{constructor(g,S,w,H){this._uri=g,this._lines=S,this._eol=w,this._versionId=H,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(g){g.eol&&g.eol!==this._eol&&(this._eol=g.eol,this._lineStarts=null);const S=g.changes;for(const w of S)this._acceptDeleteRange(w.range),this._acceptInsertText(new jc(w.range.startLineNumber,w.range.startColumn),w.text);this._versionId=g.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const g=this._eol.length,S=this._lines.length,w=new Uint32Array(S);for(let H=0;H<S;H++)w[H]=this._lines[H].length+g;this._lineStarts=new Nze(w)}}_setLineText(g,S){this._lines[g]=S,this._lineStarts&&this._lineStarts.setValue(g,this._lines[g].length+this._eol.length)}_acceptDeleteRange(g){if(g.startLineNumber===g.endLineNumber){if(g.startColumn===g.endColumn)return;this._setLineText(g.startLineNumber-1,this._lines[g.startLineNumber-1].substring(0,g.startColumn-1)+this._lines[g.startLineNumber-1].substring(g.endColumn-1));return}this._setLineText(g.startLineNumber-1,this._lines[g.startLineNumber-1].substring(0,g.startColumn-1)+this._lines[g.endLineNumber-1].substring(g.endColumn-1)),this._lines.splice(g.startLineNumber,g.endLineNumber-g.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(g.startLineNumber,g.endLineNumber-g.startLineNumber)}_acceptInsertText(g,S){if(S.length===0)return;const w=bFe(S);if(w.length===1){this._setLineText(g.lineNumber-1,this._lines[g.lineNumber-1].substring(0,g.column-1)+w[0]+this._lines[g.lineNumber-1].substring(g.column-1));return}w[w.length-1]+=this._lines[g.lineNumber-1].substring(g.column-1),this._setLineText(g.lineNumber-1,this._lines[g.lineNumber-1].substring(0,g.column-1)+w[0]);const H=new Uint32Array(w.length-1);for(let ue=1;ue<w.length;ue++)this._lines.splice(g.lineNumber+ue-1,0,w[ue]),H[ue-1]=w[ue].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(g.lineNumber,H)}}class Mze{constructor(){this._models=Object.create(null)}getModel(g){return this._models[g]}getModels(){const g=[];return Object.keys(this._models).forEach(S=>g.push(this._models[S])),g}$acceptNewModel(g){this._models[g.url]=new Lze(eN.parse(g.url),g.lines,g.EOL,g.versionId)}$acceptModelChanged(g,S){if(!this._models[g])return;this._models[g].onEvents(S)}$acceptRemovedModel(g){!this._models[g]||delete this._models[g]}}class Lze extends Pze{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(g){const S=[];for(let w=0;w<this._lines.length;w++){const H=this._lines[w],ue=this.offsetAt(new jc(w+1,1)),Ae=H.matchAll(g);for(const Be of Ae)(Be.index||Be.index===0)&&(Be.index=Be.index+ue),S.push(Be)}return S}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(g){return this._lines[g-1]}getWordAtPosition(g,S){const w=xne(g.column,Q1e(S),this._lines[g.lineNumber-1],0);return w?new ns(g.lineNumber,w.startColumn,g.lineNumber,w.endColumn):null}words(g){const S=this._lines,w=this._wordenize.bind(this);let H=0,ue="",Ae=0,Be=[];return{*[Symbol.iterator](){for(;;)if(Ae<Be.length){const at=ue.substring(Be[Ae].start,Be[Ae].end);Ae+=1,yield at}else if(H<S.length)ue=S[H],Be=w(ue,g),Ae=0,H+=1;else break}}}getLineWords(g,S){const w=this._lines[g-1],H=this._wordenize(w,S),ue=[];for(const Ae of H)ue.push({word:w.substring(Ae.start,Ae.end),startColumn:Ae.start+1,endColumn:Ae.end+1});return ue}_wordenize(g,S){const w=[];let H;for(S.lastIndex=0;(H=S.exec(g))&&H[0].length!==0;)w.push({start:H.index,end:H.index+H[0].length});return w}getValueInRange(g){if(g=this._validateRange(g),g.startLineNumber===g.endLineNumber)return this._lines[g.startLineNumber-1].substring(g.startColumn-1,g.endColumn-1);const S=this._eol,w=g.startLineNumber-1,H=g.endLineNumber-1,ue=[];ue.push(this._lines[w].substring(g.startColumn-1));for(let Ae=w+1;Ae<H;Ae++)ue.push(this._lines[Ae]);return ue.push(this._lines[H].substring(0,g.endColumn-1)),ue.join(S)}offsetAt(g){return g=this._validatePosition(g),this._ensureLineStarts(),this._lineStarts.getPrefixSum(g.lineNumber-2)+(g.column-1)}positionAt(g){g=Math.floor(g),g=Math.max(0,g),this._ensureLineStarts();const S=this._lineStarts.getIndexOf(g),w=this._lines[S.index].length;return{lineNumber:1+S.index,column:1+Math.min(S.remainder,w)}}_validateRange(g){const S=this._validatePosition({lineNumber:g.startLineNumber,column:g.startColumn}),w=this._validatePosition({lineNumber:g.endLineNumber,column:g.endColumn});return S.lineNumber!==g.startLineNumber||S.column!==g.startColumn||w.lineNumber!==g.endLineNumber||w.column!==g.endColumn?{startLineNumber:S.lineNumber,startColumn:S.column,endLineNumber:w.lineNumber,endColumn:w.column}:g}_validatePosition(g){if(!jc.isIPosition(g))throw new Error("bad position");let{lineNumber:S,column:w}=g,H=!1;if(S<1)S=1,w=1,H=!0;else if(S>this._lines.length)S=this._lines.length,w=this._lines[S-1].length+1,H=!0;else{const ue=this._lines[S-1].length+1;w<1?(w=1,H=!0):w>ue&&(w=ue,H=!0)}return H?{lineNumber:S,column:w}:g}}const oN=class{constructor(g=null){this._foreignModule=g,this._workerTextModelSyncServer=new Mze}dispose(){}async $ping(){return"pong"}_getModel(g){return this._workerTextModelSyncServer.getModel(g)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(g){this._workerTextModelSyncServer.$acceptNewModel(g)}$acceptModelChanged(g,S){this._workerTextModelSyncServer.$acceptModelChanged(g,S)}$acceptRemovedModel(g){this._workerTextModelSyncServer.$acceptRemovedModel(g)}async $computeUnicodeHighlights(g,S,w){const H=this._getModel(g);return H?k9e.computeUnicodeHighlights(H,S,w):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(g,S){const w=this._getModel(g);return w?Tze(w,S):[]}async $computeDiff(g,S,w,H){const ue=this._getModel(g),Ae=this._getModel(S);return!ue||!Ae?null:oN.computeDiff(ue,Ae,w,H)}static computeDiff(g,S,w,H){const ue=H==="advanced"?bEe.getDefault():bEe.getLegacy(),Ae=g.getLinesContent(),Be=S.getLinesContent(),at=ue.computeDiff(Ae,Be,w),Pe=at.changes.length>0?!1:this._modelsAreIdentical(g,S);function Ve(Ht){return Ht.map($t=>{var ar;return[$t.original.startLineNumber,$t.original.endLineNumberExclusive,$t.modified.startLineNumber,$t.modified.endLineNumberExclusive,(ar=$t.innerChanges)==null?void 0:ar.map(Fn=>[Fn.originalRange.startLineNumber,Fn.originalRange.startColumn,Fn.originalRange.endLineNumber,Fn.originalRange.endColumn,Fn.modifiedRange.startLineNumber,Fn.modifiedRange.startColumn,Fn.modifiedRange.endLineNumber,Fn.modifiedRange.endColumn])]})}return{identical:Pe,quitEarly:at.hitTimeout,changes:Ve(at.changes),moves:at.moves.map(Ht=>[Ht.lineRangeMapping.original.startLineNumber,Ht.lineRangeMapping.original.endLineNumberExclusive,Ht.lineRangeMapping.modified.startLineNumber,Ht.lineRangeMapping.modified.endLineNumberExclusive,Ve(Ht.changes)])}}static _modelsAreIdentical(g,S){const w=g.getLineCount(),H=S.getLineCount();if(w!==H)return!1;for(let ue=1;ue<=w;ue++){const Ae=g.getLineContent(ue),Be=S.getLineContent(ue);if(Ae!==Be)return!1}return!0}async $computeMoreMinimalEdits(g,S,w){const H=this._getModel(g);if(!H)return S;const ue=[];let Ae;S=S.slice(0).sort((at,Pe)=>{if(at.range&&Pe.range)return ns.compareRangesUsingStarts(at.range,Pe.range);const Ve=at.range?0:1,Ht=Pe.range?0:1;return Ve-Ht});let Be=0;for(let at=1;at<S.length;at++)ns.getEndPosition(S[Be].range).equals(ns.getStartPosition(S[at].range))?(S[Be].range=ns.fromPositions(ns.getStartPosition(S[Be].range),ns.getEndPosition(S[at].range)),S[Be].text+=S[at].text):(Be++,S[Be]=S[at]);S.length=Be+1;for(let{range:at,text:Pe,eol:Ve}of S){if(typeof Ve=="number"&&(Ae=Ve),ns.isEmpty(at)&&!Pe)continue;const Ht=H.getValueInRange(at);if(Pe=Pe.replace(/\r\n|\n|\r/g,H.eol),Ht===Pe)continue;if(Math.max(Pe.length,Ht.length)>oN._diffLimit){ue.push({range:at,text:Pe});continue}const $t=zFe(Ht,Pe,w),ar=H.offsetAt(ns.lift(at).getStartPosition());for(const Fn of $t){const In=H.positionAt(ar+Fn.originalStart),Oi=H.positionAt(ar+Fn.originalStart+Fn.originalLength),Bn={text:Pe.substr(Fn.modifiedStart,Fn.modifiedLength),range:{startLineNumber:In.lineNumber,startColumn:In.column,endLineNumber:Oi.lineNumber,endColumn:Oi.column}};H.getValueInRange(Bn.range)!==Bn.text&&ue.push(Bn)}}return typeof Ae=="number"&&ue.push({eol:Ae,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),ue}async $computeLinks(g){const S=this._getModel(g);return S?UFe(S):null}async $computeDefaultDocumentColors(g){const S=this._getModel(g);return S?bze(S):null}async $textualSuggest(g,S,w,H){const ue=new XB,Ae=new RegExp(w,H),Be=new Set;e:for(const at of g){const Pe=this._getModel(at);if(!!Pe){for(const Ve of Pe.words(Ae))if(!(Ve===S||!isNaN(Number(Ve)))&&(Be.add(Ve),Be.size>oN._suggestionsLimit))break e}}return{words:Array.from(Be),duration:ue.elapsed()}}async $computeWordRanges(g,S,w,H){const ue=this._getModel(g);if(!ue)return Object.create(null);const Ae=new RegExp(w,H),Be=Object.create(null);for(let at=S.startLineNumber;at<S.endLineNumber;at++){const Pe=ue.getLineWords(at,Ae);for(const Ve of Pe){if(!isNaN(Number(Ve.word)))continue;let Ht=Be[Ve.word];Ht||(Ht=[],Be[Ve.word]=Ht),Ht.push({startLineNumber:at,startColumn:Ve.startColumn,endLineNumber:at,endColumn:Ve.endColumn})}}return Be}async $navigateValueSet(g,S,w,H,ue){const Ae=this._getModel(g);if(!Ae)return null;const Be=new RegExp(H,ue);S.startColumn===S.endColumn&&(S={startLineNumber:S.startLineNumber,startColumn:S.startColumn,endLineNumber:S.endLineNumber,endColumn:S.endColumn+1});const at=Ae.getValueInRange(S),Pe=Ae.getWordAtPosition({lineNumber:S.startLineNumber,column:S.startColumn},Be);if(!Pe)return null;const Ve=Ae.getValueInRange(Pe);return fne.INSTANCE.navigateValueSet(S,at,Pe,Ve,w)}$fmr(g,S){if(!this._foreignModule||typeof this._foreignModule[g]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+g));try{return Promise.resolve(this._foreignModule[g].apply(this._foreignModule,S))}catch(w){return Promise.reject(w)}}};let kne=oN;(()=>{oN._diffLimit=1e5})(),(()=>{oN._suggestionsLimit=1e4})(),typeof importScripts=="function"&&(globalThis.monaco=y9e());const U8=class{static getChannel(g){return g.getChannel(U8.CHANNEL_NAME)}static setChannel(g,S){g.setChannel(U8.CHANNEL_NAME,S)}};let wne=U8;(()=>{U8.CHANNEL_NAME="editorWorkerHost"})();function kze(_){let g;const S=OFe(w=>{const H=wne.getChannel(w),Ae={host:new Proxy({},{get(Be,at,Pe){if(at!=="then"){if(typeof at!="string")throw new Error("Not supported");return(...Ve)=>H.$fhr(at,Ve)}}}),getMirrorModels:()=>S.requestHandler.getModels()};return g=_(Ae),new kne(g)});return g}function wze(_){self.onmessage=g=>{kze(S=>_(S,g.data))}}var I1=void 0,dG={exports:{}},x1=(()=>{var _=Object.defineProperty,g=Object.getOwnPropertyNames,S=(e,t)=>function(){return e&&(t=(0,e[g(e)[0]])(e=0)),t},w=(e,t)=>function(){return t||(0,e[g(e)[0]])((t={exports:{}}).exports,t),t.exports},H=(e,t)=>{for(var r in t)_(e,r,{get:t[r],enumerable:!0})},ue,Ae,Be,at=S({"src/compiler/corePublic.ts"(){ue="5.4",Ae="5.4.5",Be=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Be||{})}});function Pe(e){return e?e.length:0}function Ve(e,t){if(e)for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}}function Ht(e,t){if(e)for(let r=e.length-1;r>=0;r--){const i=t(e[r],r);if(i)return i}}function $t(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i!==void 0)return i}}function ar(e,t){for(const r of e){const i=t(r);if(i!==void 0)return i}}function Fn(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 In(e,t,r){const i=[];N.assertEqual(e.length,t.length);for(let o=0;o<e.length;o++)i.push(r(e[o],t[o],o));return i}function Oi(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 Bn(e,t){if(e){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function un(e,t,r){if(e!==void 0)for(let i=r!=null?r:0;i<e.length;i++){const o=e[i];if(t(o,i))return o}}function Mi(e,t,r){if(e!==void 0)for(let i=r!=null?r:e.length-1;i>=0;i--){const o=e[i];if(t(o,i))return o}}function Ji(e,t,r){if(e===void 0)return-1;for(let i=r!=null?r:0;i<e.length;i++)if(t(e[i],i))return i;return-1}function as(e,t,r){if(e===void 0)return-1;for(let i=r!=null?r:e.length-1;i>=0;i--)if(t(e[i],i))return i;return-1}function rl(e,t){for(let r=0;r<e.length;r++){const i=t(e[r],r);if(i)return i}return N.fail()}function Mn(e,t,r=Mv){if(e){for(const i of e)if(r(i,t))return!0}return!1}function Ni(e,t,r=Mv){return e.length===t.length&&e.every((i,o)=>r(i,t[o]))}function Mo(e,t,r){for(let i=r||0;i<e.length;i++)if(Mn(t,e.charCodeAt(i)))return i;return-1}function Ca(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 Vn(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 Si(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 Yi(e){e.length=0}function Wt(e,t){let r;if(e){r=[];for(let i=0;i<e.length;i++)r.push(t(e[i],i))}return r}function*Xo(e,t){for(const r of e)yield t(r)}function mo(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 Oa(e){const t=[];for(const r of e)r&&(Do(r)?Hr(t,r):t.push(r));return t}function qi(e,t){let r;if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o&&(Do(o)?r=Hr(r,o):r=Rn(r,o))}return r||et}function Zd(e,t){const r=[];if(e)for(let i=0;i<e.length;i++){const o=t(e[i],i);o&&(Do(o)?Hr(r,o):r.push(o))}return r}function*Zf(e,t){for(const r of e){const i=t(r);!i||(yield*i)}}function D1(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||Do(s))&&(r||(r=e.slice(0,i)),Do(s)?Hr(r,s):r.push(s))}return r||e}function SA(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 Vi(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 Gx(e,t){if(!e)return;const r=new Map;return e.forEach((i,o)=>{const s=t(o,i);if(s!==void 0){const[l,u]=s;l!==void 0&&u!==void 0&&r.set(l,u)}}),r}function AA(e,t,r){if(e.has(t))return e.get(t);const i=r();return e.set(t,i),i}function Rv(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Fne(e){yield e}function vG(e,t,r){let i;if(e){i=[];const o=e.length;let s,l,u=0,p=0;for(;u<o;){for(;p<o;){const v=e[p];if(l=t(v,p),p===0)s=l;else if(l!==s)break;p++}if(u<p){const v=r(e.slice(u,p),s,u,p);v&&i.push(v),u=p}s=l,p++}}return i}function zne(e,t){if(!e)return;const r=new Map;return e.forEach((i,o)=>{const[s,l]=t(o,i);r.set(s,l)}),r}function St(e,t){if(e)if(t){for(const r of e)if(t(r))return!0}else return e.length>0;return!1}function yG(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 Ro(e,t){return St(t)?St(e)?[...e,...t]:t:e}function Hze(e,t){return t}function YM(e){return e.map(Hze)}function qze(e,t,r){const i=YM(e);kEe(e,i,r);let o=e[i[0]];const s=[i[0]];for(let l=1;l<i.length;l++){const u=i[l],p=e[u];t(o,p)||(s.push(u),o=p)}return s.sort(),s.map(l=>e[l])}function Jze(e,t){const r=[];for(const i of e)Tf(r,i,t);return r}function N1(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?qze(e,t,r):Jze(e,t)}function Kze(e,t){if(e.length===0)return et;let r=e[0];const i=[r];for(let o=1;o<e.length;o++){const s=e[o];switch(t(s,r)){case!0:case 0:continue;case-1:return N.fail("Array is unsorted.")}i.push(r=s)}return i}function bG(){return[]}function Ay(e,t,r,i){if(e.length===0)return e.push(t),!0;const o=Nv(e,t,ol,r);return o<0?(e.splice(~o,0,t),!0):i?(e.splice(o,0,t),!0):!1}function aN(e,t,r){return Kze(uS(e,t),r||t||Ju)}function H8(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 sN(e,t,r,i){let o=3;if(e.length<2)return o;let s=t(e[0]);for(let l=1,u=e.length;l<u&&o!==0;l++){const p=t(e[l]);o&1&&r(s,p)>0&&(o&=-2),o&2&&i(s,p)>0&&(o&=-3),s=p}return o}function Xm(e,t,r=Mv){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 $M(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 Bne(e,t,r){if(!t||!e||t.length===0||e.length===0)return t;const i=[];e:for(let o=0,s=0;s<t.length;s++){s>0&&N.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(const l=o;o<e.length;o++)switch(o>l&&N.assertGreaterThanOrEqual(r(e[o],e[o-1]),0),r(t[s],e[o])){case-1:i.push(t[s]);continue e;case 0:continue e;case 1:continue t}}return i}function Rn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Vx(e,t){return e===void 0?t:t===void 0?e:Do(e)?Do(t)?Ro(e,t):Rn(e,t):Do(t)?Rn(t,e):[e,t]}function Gne(e,t){return t<0?e.length+t:t}function Hr(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:Gne(t,r),i=i===void 0?t.length:Gne(t,i);for(let o=r;o<i&&o<t.length;o++)t[o]!==void 0&&e.push(t[o]);return e}function Tf(e,t,r){return Mn(e,t,r)?!1:(e.push(t),!0)}function Lg(e,t,r){return e?(Tf(e,t,r),e):[t]}function kEe(e,t,r){t.sort((i,o)=>r(e[i],e[o])||al(i,o))}function uS(e,t){return e.length===0?e:e.slice().sort(t)}function*EG(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Dv(e,t){const r=YM(e);return kEe(e,r,t),r.map(i=>e[i])}function SG(e,t,r,i){for(;r<i;){if(e[r]!==t[r])return!1;r++}return!0}function eu(e){return e===void 0||e.length===0?void 0:e[0]}function q8(e){if(e)for(const t of e)return t}function $a(e){return N.assert(e.length!==0),e[0]}function TG(e){for(const t of e)return t;N.fail("iterator is empty")}function il(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function rs(e){return N.assert(e.length!==0),e[e.length-1]}function uh(e){return e&&e.length===1?e[0]:void 0}function AG(e){return N.checkDefined(uh(e))}function dh(e){return e&&e.length===1?e[0]:e}function IG(e,t,r){const i=e.slice(0);return i[t]=r,i}function Nv(e,t,r,i,o){return IA(e,r(t),r,i,o)}function IA(e,t,r,i,o){if(!St(e))return-1;let s=o||0,l=e.length-1;for(;s<=l;){const u=s+(l-s>>1),p=r(e[u],u);switch(i(p,t)){case-1:s=u+1;break;case 0:return u;case 1:l=u-1;break}}return~s}function ad(e,t,r,i,o){if(e&&e.length>0){const s=e.length;if(s>0){let l=i===void 0||i<0?0:i;const u=o===void 0||l+o>s-1?s-1:l+o;let p;for(arguments.length<=2?(p=e[l],l++):p=r;l<=u;)p=t(p,e[l],l),l++;return p}}return r}function Ls(e,t){return Ry.call(e,t)}function J8(e,t){return Ry.call(e,t)?e[t]:void 0}function Yh(e){const t=[];for(const r in e)Ry.call(e,r)&&t.push(r);return t}function wEe(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)Tf(t,i)}while(e=Object.getPrototypeOf(e));return t}function xA(e){const t=[];for(const r in e)Ry.call(e,r)&&t.push(e[r]);return t}function Vne(e,t){const r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i);return r}function Go(e,t){const r=[];for(const i of e)r.push(t?t(i):i);return r}function jx(e,...t){for(const r of t)if(r!==void 0)for(const i in r)Ls(r,i)&&(e[i]=r[i]);return e}function jne(e,t,r=Mv){if(e===t)return!0;if(!e||!t)return!1;for(const i in e)if(Ry.call(e,i)&&(!Ry.call(t,i)||!r(e[i],t[i])))return!1;for(const i in t)if(Ry.call(t,i)&&!Ry.call(e,i))return!1;return!0}function C1(e,t,r=ol){const i=new Map;for(const o of e){const s=t(o);s!==void 0&&i.set(s,r(o))}return i}function Une(e,t,r=ol){const i=[];for(const o of e)i[t(o)]=r(o);return i}function QM(e,t,r=ol){const i=Zp();for(const o of e)i.add(t(o),r(o));return i}function lN(e,t,r=ol){return Go(QM(e,t).values(),r)}function K8(e,t){var i;const r={};if(e)for(const o of e){const s=`${t(o)}`;((i=r[s])!=null?i:r[s]=[]).push(o)}return r}function xG(e){const t={};for(const r in e)Ry.call(e,r)&&(t[r]=e[r]);return t}function X8(e,t){const r={};for(const i in t)Ry.call(t,i)&&(r[i]=t[i]);for(const i in e)Ry.call(e,i)&&(r[i]=e[i]);return r}function RG(e,t){for(const r in t)Ry.call(t,r)&&(e[r]=t[r])}function aa(e,t){return t?t.bind(e):void 0}function Zp(){const e=new Map;return e.add=Xze,e.remove=Yze,e}function Xze(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function Yze(e,t){const r=this.get(e);r&&(DA(r,t),r.length||this.delete(e))}function ZM(e){const t=(e==null?void 0:e.slice())||[];let r=0;function i(){return r===t.length}function o(...l){t.push(...l)}function s(){if(i())throw new Error("Queue is empty");const l=t[r];if(t[r]=void 0,r++,r>100&&r>t.length>>1){const u=t.length-r;t.copyWithin(0,r),t.length=u,r=0}return l}return{enqueue:o,dequeue:s,isEmpty:i}}function DG(e,t){const r=new Map;let i=0;function*o(){for(const l of r.values())Do(l)?yield*l:yield l}const s={has(l){const u=e(l);if(!r.has(u))return!1;const p=r.get(u);if(!Do(p))return t(p,l);for(const v of p)if(t(v,l))return!0;return!1},add(l){const u=e(l);if(r.has(u)){const p=r.get(u);if(Do(p))Mn(p,l,t)||(p.push(l),i++);else{const v=p;t(v,l)||(r.set(u,[v,l]),i++)}}else r.set(u,l),i++;return this},delete(l){const u=e(l);if(!r.has(u))return!1;const p=r.get(u);if(Do(p)){for(let v=0;v<p.length;v++)if(t(p[v],l))return p.length===1?r.delete(u):p.length===2?r.set(u,p[1-v]):PG(p,v),i--,!0}else if(t(p,l))return r.delete(u),i--,!0;return!1},clear(){r.clear(),i=0},get size(){return i},forEach(l){for(const u of Go(r.values()))if(Do(u))for(const p of u)l(p,p,s);else{const p=u;l(p,p,s)}},keys(){return o()},values(){return o()},*entries(){for(const l of o())yield[l,l]},[Symbol.iterator]:()=>o(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function Do(e){return Array.isArray(e)}function RA(e){return Do(e)?e:[e]}function wo(e){return typeof e=="string"}function Cv(e){return typeof e=="number"}function ni(e,t){return e!==void 0&&t(e)?e:void 0}function sa(e,t){return e!==void 0&&t(e)?e:N.fail(`Invalid cast. The supplied value ${e} did not pass the test '${N.getFunctionName(t)}'.`)}function is(e){}function Ym(){return!1}function Pv(){return!0}function r0(){}function ol(e){return e}function Hne(e){return e.toLowerCase()}function ph(e){return rre.test(e)?e.replace(rre,Hne):e}function Ko(){throw new Error("Not implemented")}function Td(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function fh(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 OEe(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 qne(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 WEe(e,t,r,i,o){if(o){const s=[];for(let l=0;l<arguments.length;l++)s[l]=arguments[l];return l=>ad(s,(u,p)=>p(u),l)}else return i?s=>i(r(t(e(s)))):r?s=>r(t(e(s))):t?s=>t(e(s)):e?s=>e(s):s=>s}function Mv(e,t){return e===t}function i0(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function dS(e,t){return Mv(e,t)}function FEe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function al(e,t){return FEe(e,t)}function Y8(e,t){return al(e==null?void 0:e.start,t==null?void 0:t.start)||al(e==null?void 0:e.length,t==null?void 0:t.length)}function NG(e,t){return ad(e,(r,i)=>t(r,i)===-1?r:i)}function $8(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 Jne(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 Ju(e,t){return FEe(e,t)}function Ux(e){return e?$8:Ju}function Kne(){return WG}function Xne(e){WG!==e&&(WG=e,ire=void 0)}function eL(e,t){return(ire||(ire=GEe(WG)))(e,t)}function Yne(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function Iy(e,t){return al(e?1:0,t?1:0)}function cN(e,t,r){const i=Math.max(2,Math.floor(e.length*.34));let o=Math.floor(e.length*.4)+1,s;for(const l of t){const u=r(l);if(u!==void 0&&Math.abs(u.length-e.length)<=i){if(u===e||u.length<3&&u.toLowerCase()!==e.toLowerCase())continue;const p=$ze(e,u,o-.1);if(p===void 0)continue;N.assert(p<o),o=p,s=l}}return s}function $ze(e,t,r){let i=new Array(t.length+1),o=new Array(t.length+1);const s=r+.01;for(let u=0;u<=t.length;u++)i[u]=u;for(let u=1;u<=e.length;u++){const p=e.charCodeAt(u-1),v=Math.ceil(u>r?u-r:1),f=Math.floor(t.length>r+u?r+u:t.length);o[0]=u;let b=u;for(let I=1;I<v;I++)o[I]=s;for(let I=v;I<=f;I++){const R=e[u-1].toLowerCase()===t[I-1].toLowerCase()?i[I-1]+.1:i[I-1]+2,M=p===t.charCodeAt(I-1)?i[I-1]:Math.min(i[I]+1,o[I-1]+1,R);o[I]=M,b=Math.min(b,M)}for(let I=f+1;I<=t.length;I++)o[I]=s;if(b>r)return;const A=i;i=o,o=A}const l=i[t.length];return l>r?void 0:l}function Dl(e,t,r){const i=e.length-t.length;return i>=0&&(r?i0(e.slice(i),t):e.indexOf(t,i)===i)}function Hx(e,t){return Dl(e,t)?e.slice(0,e.length-t.length):e}function $ne(e,t){return Dl(e,t)?e.slice(0,e.length-t.length):void 0}function CG(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 qx(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return xy(e,r),!0;return!1}function xy(e,t){for(let r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function PG(e,t){e[t]=e[e.length-1],e.pop()}function DA(e,t){return Qze(e,r=>r===t)}function Qze(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return PG(e,r),!0;return!1}function ku(e){return e?ol:ph}function Qne({prefix:e,suffix:t}){return`${e}*${t}`}function Zne(e,t){return N.assert(Q8(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function MG(e,t,r){let i,o=-1;for(const s of e){const l=t(s);Q8(l,r)&&l.prefix.length>o&&(o=l.prefix.length,i=s)}return i}function ho(e,t,r){return r?i0(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function uN(e,t){return ho(e,t)?e.substr(t.length):e}function LG(e,t,r=ol){return ho(r(e),r(t))?e.substring(t.length):void 0}function Q8({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&ho(r,e)&&Dl(r,t)}function Z8(e,t){return r=>e(r)&&t(r)}function $m(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function e6(e){return(...t)=>!e(...t)}function zEe(e){}function NA(e){return e===void 0?void 0:[e]}function t6(e,t,r,i,o,s){s=s||is;let l=0,u=0;const p=e.length,v=t.length;let f=!1;for(;l<p&&u<v;){const b=e[l],A=t[u],I=r(b,A);I===-1?(i(b),l++,f=!0):I===1?(o(A),u++,f=!0):(s(A,b),l++,u++)}for(;l<p;)i(e[l++]),f=!0;for(;u<v;)o(t[u++]),f=!0;return f}function ere(e){const t=[];return BEe(e,t,void 0,0),t}function BEe(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):BEe(e,t,s,i+1)}}function n6(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(0,i)}}function tre(e,t){if(e){const r=e.length;let i=0;for(;i<r&&t(e[i]);)i++;return e.slice(i)}}function kG(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof dG=="object"}var et,r6,nre,wG,Lv,Ry,rre,OG,GEe,ire,WG,Zze=S({"src/compiler/core.ts"(){ia(),et=[],r6=new Map,nre=new Set,wG=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(wG||{}),Lv=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=Gne(e,t),t<e.length))return e[t]},Ry=Object.prototype.hasOwnProperty,rre=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g,OG=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(OG||{}),GEe=(()=>{return t;function e(r,i,o){if(r===i)return 0;if(r===void 0)return-1;if(i===void 0)return 1;const s=o(r,i);return s<0?-1:s>0?1:0}function t(r){const i=new Intl.Collator(r,{usage:"sort",sensitivity:"variant"}).compare;return(o,s)=>e(o,s,i)}})()}}),FG,N,eBe=S({"src/compiler/debug.ts"(){ia(),ia(),FG=(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))(FG||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(Kt){return e.currentLogLevel<=Kt}e.shouldLog=r;function i(Kt,nt){e.loggingHost&&r(Kt)&&e.loggingHost.log(Kt,nt)}function o(Kt){i(3,Kt)}e.log=o,(Kt=>{function nt(yi){i(1,yi)}Kt.error=nt;function Bt(yi){i(2,yi)}Kt.warn=Bt;function Dn(yi){i(3,yi)}Kt.log=Dn;function si(yi){i(4,yi)}Kt.trace=si})(o=e.log||(e.log={}));const s={};function l(){return t}e.getAssertionLevel=l;function u(Kt){const nt=t;if(t=Kt,Kt>nt)for(const Bt of Yh(s)){const Dn=s[Bt];Dn!==void 0&&e[Bt]!==Dn.assertion&&Kt>=Dn.level&&(e[Bt]=Dn,s[Bt]=void 0)}}e.setAssertionLevel=u;function p(Kt){return t>=Kt}e.shouldAssert=p;function v(Kt,nt){return p(Kt)?!0:(s[nt]={level:Kt,assertion:e[nt]},e[nt]=is,!1)}function f(Kt,nt){debugger;const Bt=new Error(Kt?`Debug Failure. ${Kt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Bt,nt||f),Bt}e.fail=f;function b(Kt,nt,Bt){return f(`${nt||"Unexpected node."}\r
Node ${ge(Kt.kind)} was unexpected.`,Bt||b)}e.failBadSyntaxKind=b;function A(Kt,nt,Bt,Dn){Kt||(nt=nt?`False expression: ${nt}`:"False expression.",Bt&&(nt+=`\r
Verbose Debug Information: `+(typeof Bt=="string"?Bt:Bt())),f(nt,Dn||A))}e.assert=A;function I(Kt,nt,Bt,Dn,si){if(Kt!==nt){const yi=Bt?Dn?`${Bt} ${Dn}`:Bt:"";f(`Expected ${Kt} === ${nt}. ${yi}`,si||I)}}e.assertEqual=I;function R(Kt,nt,Bt,Dn){Kt>=nt&&f(`Expected ${Kt} < ${nt}. ${Bt||""}`,Dn||R)}e.assertLessThan=R;function M(Kt,nt,Bt){Kt>nt&&f(`Expected ${Kt} <= ${nt}`,Bt||M)}e.assertLessThanOrEqual=M;function C(Kt,nt,Bt){Kt<nt&&f(`Expected ${Kt} >= ${nt}`,Bt||C)}e.assertGreaterThanOrEqual=C;function W(Kt,nt,Bt){Kt==null&&f(nt,Bt||W)}e.assertIsDefined=W;function U(Kt,nt,Bt){return W(Kt,nt,Bt||U),Kt}e.checkDefined=U;function X(Kt,nt,Bt){for(const Dn of Kt)W(Dn,nt,Bt||X)}e.assertEachIsDefined=X;function ee(Kt,nt,Bt){return X(Kt,nt,Bt||ee),Kt}e.checkEachDefined=ee;function V(Kt,nt="Illegal value:",Bt){const Dn=typeof Kt=="object"&&Ls(Kt,"kind")&&Ls(Kt,"pos")?"SyntaxKind: "+ge(Kt.kind):JSON.stringify(Kt);return f(`${nt} ${Dn}`,Bt||V)}e.assertNever=V;function se(Kt,nt,Bt,Dn){v(1,"assertEachNode")&&A(nt===void 0||Bn(Kt,nt),Bt||"Unexpected node.",()=>`Node array did not pass test '${oe(nt)}'.`,Dn||se)}e.assertEachNode=se;function G(Kt,nt,Bt,Dn){v(1,"assertNode")&&A(Kt!==void 0&&(nt===void 0||nt(Kt)),Bt||"Unexpected node.",()=>`Node ${ge(Kt==null?void 0:Kt.kind)} did not pass test '${oe(nt)}'.`,Dn||G)}e.assertNode=G;function re(Kt,nt,Bt,Dn){v(1,"assertNotNode")&&A(Kt===void 0||nt===void 0||!nt(Kt),Bt||"Unexpected node.",()=>`Node ${ge(Kt.kind)} should not have passed test '${oe(nt)}'.`,Dn||re)}e.assertNotNode=re;function _e(Kt,nt,Bt,Dn){v(1,"assertOptionalNode")&&A(nt===void 0||Kt===void 0||nt(Kt),Bt||"Unexpected node.",()=>`Node ${ge(Kt==null?void 0:Kt.kind)} did not pass test '${oe(nt)}'.`,Dn||_e)}e.assertOptionalNode=_e;function ye(Kt,nt,Bt,Dn){v(1,"assertOptionalToken")&&A(nt===void 0||Kt===void 0||Kt.kind===nt,Bt||"Unexpected node.",()=>`Node ${ge(Kt==null?void 0:Kt.kind)} was not a '${ge(nt)}' token.`,Dn||ye)}e.assertOptionalToken=ye;function Q(Kt,nt,Bt){v(1,"assertMissingNode")&&A(Kt===void 0,nt||"Unexpected node.",()=>`Node ${ge(Kt.kind)} was unexpected'.`,Bt||Q)}e.assertMissingNode=Q;function Y(Kt){}e.type=Y;function oe(Kt){if(typeof Kt!="function")return"";if(Ls(Kt,"name"))return Kt.name;{const nt=Function.prototype.toString.call(Kt),Bt=/^function\s+([\w$]+)\s*\(/.exec(nt);return Bt?Bt[1]:""}}e.getFunctionName=oe;function he(Kt){return`{ name: ${Ki(Kt.escapedName)}; flags: ${At(Kt.flags)}; declarations: ${Wt(Kt.declarations,nt=>ge(nt.kind))} }`}e.formatSymbol=he;function Ie(Kt=0,nt,Bt){const Dn=ie(nt);if(Kt===0)return Dn.length>0&&Dn[0][0]===0?Dn[0][1]:"0";if(Bt){const si=[];let yi=Kt;for(const[oo,Po]of Dn){if(oo>Kt)break;oo!==0&&oo&Kt&&(si.push(Po),yi&=~oo)}if(yi===0)return si.join("|")}else for(const[si,yi]of Dn)if(si===Kt)return yi;return Kt.toString()}e.formatEnum=Ie;const de=new Map;function ie(Kt){const nt=de.get(Kt);if(nt)return nt;const Bt=[];for(const si in Kt){const yi=Kt[si];typeof yi=="number"&&Bt.push([yi,si])}const Dn=Dv(Bt,(si,yi)=>al(si[0],yi[0]));return de.set(Kt,Dn),Dn}function ge(Kt){return Ie(Kt,o6,!1)}e.formatSyntaxKind=ge;function Ce(Kt){return Ie(Kt,v6,!1)}e.formatSnippetKind=Ce;function qe(Kt){return Ie(Kt,h6,!1)}e.formatScriptKind=qe;function Se(Kt){return Ie(Kt,a6,!0)}e.formatNodeFlags=Se;function Le(Kt){return Ie(Kt,s6,!0)}e.formatModifierFlags=Le;function Ne(Kt){return Ie(Kt,g6,!0)}e.formatTransformFlags=Ne;function Oe(Kt){return Ie(Kt,y6,!0)}e.formatEmitFlags=Oe;function At(Kt){return Ie(Kt,p6,!0)}e.formatSymbolFlags=At;function be(Kt){return Ie(Kt,f6,!0)}e.formatTypeFlags=be;function He(Kt){return Ie(Kt,_6,!0)}e.formatSignatureFlags=He;function it(Kt){return Ie(Kt,m6,!0)}e.formatObjectFlags=it;function Ft(Kt){return Ie(Kt,iL,!0)}e.formatFlowFlags=Ft;function yt(Kt){return Ie(Kt,l6,!0)}e.formatRelationComparisonResult=yt;function Ze(Kt){return Ie(Kt,cW,!0)}e.formatCheckMode=Ze;function It(Kt){return Ie(Kt,uW,!0)}e.formatSignatureCheckMode=It;function on(Kt){return Ie(Kt,lW,!0)}e.formatTypeFacts=on;let Yt=!1,Nn;function Xn(Kt){"__debugFlowFlags"in Kt||Object.defineProperties(Kt,{__tsDebuggerDisplay:{value(){const nt=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",Bt=this.flags&~(2048-1);return`${nt}${Bt?` (${Ft(Bt)})`:""}`}},__debugFlowFlags:{get(){return Ie(this.flags,iL,!0)}},__debugToString:{value(){return Nr(this)}}})}function yn(Kt){Yt&&(typeof Object.setPrototypeOf=="function"?(Nn||(Nn=Object.create(Object.prototype),Xn(Nn)),Object.setPrototypeOf(Kt,Nn)):Xn(Kt))}e.attachFlowNodeDebugInfo=yn;let tn;function en(Kt){"__tsDebuggerDisplay"in Kt||Object.defineProperties(Kt,{__tsDebuggerDisplay:{value(nt){return nt=String(nt).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${nt}`}}})}function gi(Kt){Yt&&(typeof Object.setPrototypeOf=="function"?(tn||(tn=Object.create(Array.prototype),en(tn)),Object.setPrototypeOf(Kt,tn)):en(Kt))}e.attachNodeArrayDebugInfo=gi;function bo(){if(Yt)return;const Kt=new WeakMap,nt=new WeakMap;Object.defineProperties(pu.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const Dn=this.flags&33554432?"TransientSymbol":"Symbol",si=this.flags&-33554433;return`${Dn} '${Il(this)}'${si?` (${At(si)})`:""}`}},__debugFlags:{get(){return At(this.flags)}}}),Object.defineProperties(pu.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const Dn=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",si=this.flags&524288?this.objectFlags&-1344:0;return`${Dn}${this.symbol?` '${Il(this.symbol)}'`:""}${si?` (${it(si)})`:""}`}},__debugFlags:{get(){return be(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?it(this.objectFlags):""}},__debugTypeToString:{value(){let Dn=Kt.get(this);return Dn===void 0&&(Dn=this.checker.typeToString(this),Kt.set(this,Dn)),Dn}}}),Object.defineProperties(pu.getSignatureConstructor().prototype,{__debugFlags:{get(){return He(this.flags)}},__debugSignatureToString:{value(){var Dn;return(Dn=this.checker)==null?void 0:Dn.signatureToString(this)}}});const Bt=[pu.getNodeConstructor(),pu.getIdentifierConstructor(),pu.getTokenConstructor(),pu.getSourceFileConstructor()];for(const Dn of Bt)Ls(Dn.prototype,"__debugKind")||Object.defineProperties(Dn.prototype,{__tsDebuggerDisplay:{value(){return`${ul(this)?"GeneratedIdentifier":Ue(this)?`Identifier '${Rr(this)}'`:Qi(this)?`PrivateIdentifier '${Rr(this)}'`:La(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Ep(this)?`NumericLiteral ${this.text}`:c5(this)?`BigIntLiteral ${this.text}n`:El(this)?"TypeParameterDeclaration":No(this)?"ParameterDeclaration":Wl(this)?"ConstructorDeclaration":rf(this)?"GetAccessorDeclaration":Tp(this)?"SetAccessorDeclaration":pI(this)?"CallSignatureDeclaration":sw(this)?"ConstructSignatureDeclaration":nE(this)?"IndexSignatureDeclaration":lw(this)?"TypePredicateNode":Cf(this)?"TypeReferenceNode":Ah(this)?"FunctionTypeNode":Y2(this)?"ConstructorTypeNode":fI(this)?"TypeQueryNode":Ap(this)?"TypeLiteralNode":cw(this)?"ArrayTypeNode":mI(this)?"TupleTypeNode":m5(this)?"OptionalTypeNode":_5(this)?"RestTypeNode":Yy(this)?"UnionTypeNode":_I(this)?"IntersectionTypeNode":hI(this)?"ConditionalTypeNode":BS(this)?"InferTypeNode":GS(this)?"ParenthesizedTypeNode":uw(this)?"ThisTypeNode":VS(this)?"TypeOperatorNode":jS(this)?"IndexedAccessTypeNode":Q2(this)?"MappedTypeNode":$y(this)?"LiteralTypeNode":$2(this)?"NamedTupleMember":dg(this)?"ImportTypeNode":ge(this.kind)}${this.flags?` (${Se(this.flags)})`:""}`}},__debugKind:{get(){return ge(this.kind)}},__debugNodeFlags:{get(){return Se(this.flags)}},__debugModifierFlags:{get(){return Le(Poe(this))}},__debugTransformFlags:{get(){return Ne(this.transformFlags)}},__debugIsParseTreeNode:{get(){return EN(this)}},__debugEmitFlags:{get(){return Oe(Ka(this))}},__debugGetText:{value(si){if(Zs(this))return"";let yi=nt.get(this);if(yi===void 0){const oo=Lo(this),Po=oo&&Jn(oo);yi=Po?W1(Po,oo,si):"",nt.set(this,yi)}return yi}}});Yt=!0}e.enableDebugInfo=bo;function Ui(Kt){const nt=Kt&7;let Bt=nt===0?"in out":nt===3?"[bivariant]":nt===2?"in":nt===1?"out":nt===4?"[independent]":"";return Kt&8?Bt+=" (unmeasurable)":Kt&16&&(Bt+=" (unreliable)"),Bt}e.formatVariance=Ui;class Co{__debugToString(){var nt;switch(this.kind){case 3:return((nt=this.debugInfo)==null?void 0:nt.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return In(this.sources,this.targets||Wt(this.sources,()=>"any"),(Bt,Dn)=>`${Bt.__debugTypeToString()} -> ${typeof Dn=="string"?Dn:Dn.__debugTypeToString()}`).join(", ");case 2:return In(this.sources,this.targets,(Bt,Dn)=>`${Bt.__debugTypeToString()} -> ${Dn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
`).join(`
`)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
`)}`;default:return V(this)}}}e.DebugTypeMapper=Co;function tr(Kt){return e.isDebugging?Object.setPrototypeOf(Kt,Co.prototype):Kt}e.attachDebugPrototypeIfDebug=tr;function Ci(Kt){return console.log(Nr(Kt))}e.printControlFlowGraph=Ci;function Nr(Kt){let nt=-1;function Bt(L){return L.id||(L.id=nt,nt--),L.id}let Dn;(L=>{L.lr="\u2500",L.ud="\u2502",L.dr="\u256D",L.dl="\u256E",L.ul="\u256F",L.ur="\u2570",L.udr="\u251C",L.udl="\u2524",L.dlr="\u252C",L.ulr="\u2534",L.udlr="\u256B"})(Dn||(Dn={}));let si;(L=>{L[L.None=0]="None",L[L.Up=1]="Up",L[L.Down=2]="Down",L[L.Left=4]="Left",L[L.Right=8]="Right",L[L.UpDown=3]="UpDown",L[L.LeftRight=12]="LeftRight",L[L.UpLeft=5]="UpLeft",L[L.UpRight=9]="UpRight",L[L.DownLeft=6]="DownLeft",L[L.DownRight=10]="DownRight",L[L.UpDownLeft=7]="UpDownLeft",L[L.UpDownRight=11]="UpDownRight",L[L.UpLeftRight=13]="UpLeftRight",L[L.DownLeftRight=14]="DownLeftRight",L[L.UpDownLeftRight=15]="UpDownLeftRight",L[L.NoChildren=16]="NoChildren"})(si||(si={}));const yi=2032,oo=882,Po=Object.create(null),_a=[],Ba=dt(Kt,new Set);for(const L of _a)L.text=hn(L.flowNode,L.circular),ot(L);const Tn=Dt(Ba),On=Ye(Tn);return _t(Ba,0),pn();function Je(L){return!!(L.flags&128)}function mt(L){return!!(L.flags&12)&&!!L.antecedents}function pt(L){return!!(L.flags&yi)}function Pt(L){return!!(L.flags&oo)}function le(L){const me=[];for(const J of L.edges)J.source===L&&me.push(J.target);return me}function Fe(L){const me=[];for(const J of L.edges)J.target===L&&me.push(J.source);return me}function dt(L,me){const J=Bt(L);let fe=Po[J];if(fe&&me.has(L))return fe.circular=!0,fe={id:-1,flowNode:L,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},_a.push(fe),fe;if(me.add(L),!fe)if(Po[J]=fe={id:J,flowNode:L,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},_a.push(fe),mt(L))for(const je of L.antecedents)j(fe,je,me);else pt(L)&&j(fe,L.antecedent,me);return me.delete(L),fe}function j(L,me,J){const fe=dt(me,J),je={source:L,target:fe};L.edges.push(je),fe.edges.push(je)}function ot(L){if(L.level!==-1)return L.level;let me=0;for(const J of Fe(L))me=Math.max(me,ot(J)+1);return L.level=me}function Dt(L){let me=0;for(const J of le(L))me=Math.max(me,Dt(J));return me+1}function Ye(L){const me=We(Array(L),0);for(const J of _a)me[J.level]=Math.max(me[J.level],J.text.length);return me}function _t(L,me){if(L.lane===-1){L.lane=me,L.endLane=me;const J=le(L);for(let fe=0;fe<J.length;fe++){fe>0&&me++;const je=J[fe];_t(je,me),je.endLane>L.endLane&&(me=je.endLane)}L.endLane=me}}function Gt(L){if(L&2)return"Start";if(L&4)return"Branch";if(L&8)return"Loop";if(L&16)return"Assignment";if(L&32)return"True";if(L&64)return"False";if(L&128)return"SwitchClause";if(L&256)return"ArrayMutation";if(L&512)return"Call";if(L&1024)return"ReduceLabel";if(L&1)return"Unreachable";throw new Error}function gn(L){const me=Jn(L);return W1(me,L,!1)}function hn(L,me){let J=Gt(L.flags);if(me&&(J=`${J}#${Bt(L)}`),Pt(L))L.node&&(J+=` (${gn(L.node)})`);else if(Je(L)){const fe=[];for(let je=L.clauseStart;je<L.clauseEnd;je++){const ke=L.switchStatement.caseBlock.clauses[je];OC(ke)?fe.push("default"):fe.push(gn(ke.expression))}J+=` (${fe.join(", ")})`}return me==="circularity"?`Circular(${J})`:J}function pn(){const L=On.length,me=_a.reduce((Tt,kt)=>Math.max(Tt,kt.lane),0)+1,J=We(Array(me),""),fe=On.map(()=>Array(me)),je=On.map(()=>We(Array(me),0));for(const Tt of _a){fe[Tt.level][Tt.lane]=Tt;const kt=le(Tt);for(let En=0;En<kt.length;En++){const or=kt[En];let pr=8;or.lane===Tt.lane&&(pr|=4),En>0&&(pr|=1),En<kt.length-1&&(pr|=2),je[Tt.level][or.lane]|=pr}kt.length===0&&(je[Tt.level][Tt.lane]|=16);const nn=Fe(Tt);for(let En=0;En<nn.length;En++){const or=nn[En];let pr=4;En>0&&(pr|=1),En<nn.length-1&&(pr|=2),je[Tt.level-1][or.lane]|=pr}}for(let Tt=0;Tt<L;Tt++)for(let kt=0;kt<me;kt++){const nn=Tt>0?je[Tt-1][kt]:0,En=kt>0?je[Tt][kt-1]:0;let or=je[Tt][kt];or||(nn&8&&(or|=12),En&2&&(or|=3),je[Tt][kt]=or)}for(let Tt=0;Tt<L;Tt++)for(let kt=0;kt<J.length;kt++){const nn=je[Tt][kt],En=nn&4?"\u2500":" ",or=fe[Tt][kt];or?(ke(kt,or.text),Tt<L-1&&(ke(kt," "),ke(kt,Lt(En,On[Tt]-or.text.length)))):Tt<L-1&&ke(kt,Lt(En,On[Tt]+1)),ke(kt,q(nn)),ke(kt,nn&8&&Tt<L-1&&!fe[Tt+1][kt]?"\u2500":" ")}return`
${J.join(`
`)}
`;function ke(Tt,kt){J[Tt]+=kt}}function q(L){switch(L){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function We(L,me){if(L.fill)L.fill(me);else for(let J=0;J<L.length;J++)L[J]=me;return L}function Lt(L,me){if(L.repeat)return me>0?L.repeat(me):"";let J="";for(;J.length<me;)J+=L;return J}}e.formatControlFlowGraph=Nr})(N||(N={}))}});function VEe(e){const t=UEe.exec(e);if(!t)return;const[,r,i="0",o="0",s="",l=""]=t;if(!(s&&!HEe.test(s))&&!(l&&!JEe.test(l)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:s,build:l}}function tBe(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;const r=Math.min(e.length,t.length);for(let i=0;i<r;i++){const o=e[i],s=t[i];if(o===s)continue;const l=are.test(o),u=are.test(s);if(l||u){if(l!==u)return l?-1:1;const p=al(+o,+s);if(p)return p}else{const p=Ju(o,s);if(p)return p}}return al(e.length,t.length)}function jEe(e){const t=[];for(let r of e.trim().split(XEe)){if(!r)continue;const i=[];r=r.trim();const o=QEe.exec(r);if(o){if(!nBe(o[1],o[2],i))return}else for(const s of r.split(YEe)){const l=ZEe.exec(s.trim());if(!l||!rBe(l[1],l[2],i))return}t.push(i)}return t}function ore(e){const t=$Ee.exec(e);if(!t)return;const[,r,i="*",o="*",s,l]=t;return{version:new Tm(em(r)?0:parseInt(r,10),em(r)||em(i)?0:parseInt(i,10),em(r)||em(i)||em(o)?0:parseInt(o,10),s,l),major:r,minor:i,patch:o}}function nBe(e,t,r){const i=ore(e);if(!i)return!1;const o=ore(t);return o?(em(i.major)||r.push(mh(">=",i.version)),em(o.major)||r.push(em(o.minor)?mh("<",o.version.increment("major")):em(o.patch)?mh("<",o.version.increment("minor")):mh("<=",o.version)),!0):!1}function rBe(e,t,r){const i=ore(t);if(!i)return!1;const{version:o,major:s,minor:l,patch:u}=i;if(em(s))(e==="<"||e===">")&&r.push(mh("<",Tm.zero));else switch(e){case"~":r.push(mh(">=",o)),r.push(mh("<",o.increment(em(l)?"major":"minor")));break;case"^":r.push(mh(">=",o)),r.push(mh("<",o.increment(o.major>0||em(l)?"major":o.minor>0||em(u)?"minor":"patch")));break;case"<":case">=":r.push(em(l)||em(u)?mh(e,o.with({prerelease:"0"})):mh(e,o));break;case"<=":case">":r.push(em(l)?mh(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):em(u)?mh(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):mh(e,o));break;case"=":case void 0:em(l)||em(u)?(r.push(mh(">=",o.with({prerelease:"0"}))),r.push(mh("<",o.increment(em(l)?"major":"minor").with({prerelease:"0"})))):r.push(mh("=",o));break;default:return!1}return!0}function em(e){return e==="*"||e==="x"||e==="X"}function mh(e,t){return{operator:e,operand:t}}function iBe(e,t){if(t.length===0)return!0;for(const r of t)if(oBe(e,r))return!0;return!1}function oBe(e,t){for(const r of t)if(!aBe(e,r.operator,r.operand))return!1;return!0}function aBe(e,t,r){const i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return N.assertNever(t)}}function sBe(e){return Wt(e,lBe).join(" || ")||"*"}function lBe(e){return Wt(e,cBe).join(" ")}function cBe(e){return`${e.operator}${e.operand}`}var UEe,HEe,qEe,JEe,KEe,are,zG,Tm,tL,XEe,YEe,$Ee,QEe,ZEe,uBe=S({"src/compiler/semver.ts"(){ia(),UEe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,HEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,qEe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,JEe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,KEe=/^[a-z0-9-]+$/i,are=/^(0|[1-9]\d*)$/,zG=class N8{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=N.checkDefined(VEe(t),"Invalid version")),N.assert(t>=0,"Invalid argument: major"),N.assert(r>=0,"Invalid argument: minor"),N.assert(i>=0,"Invalid argument: patch");const l=o?Do(o)?o:o.split("."):et,u=s?Do(s)?s:s.split("."):et;N.assert(Bn(l,p=>qEe.test(p)),"Invalid argument: prerelease"),N.assert(Bn(u,p=>KEe.test(p)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=u}static tryParse(t){const r=VEe(t);if(!r)return;const{major:i,minor:o,patch:s,prerelease:l,build:u}=r;return new N8(i,o,s,l,u)}compareTo(t){return this===t?0:t===void 0?1:al(this.major,t.major)||al(this.minor,t.minor)||al(this.patch,t.patch)||tBe(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new N8(this.major+1,0,0);case"minor":return new N8(this.major,this.minor+1,0);case"patch":return new N8(this.major,this.minor,this.patch+1);default:return N.assertNever(t)}}with(t){const{major:r=this.major,minor:i=this.minor,patch:o=this.patch,prerelease:s=this.prerelease,build:l=this.build}=t;return new N8(r,i,o,s,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return St(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),St(this.build)&&(t+=`+${this.build.join(".")}`),t}},zG.zero=new zG(0,0,0,["0"]),Tm=zG,tL=class GWe{constructor(t){this._alternatives=t?N.checkDefined(jEe(t),"Invalid range spec."):et}static tryParse(t){const r=jEe(t);if(r){const i=new GWe("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new Tm(t)),iBe(t,this._alternatives)}toString(){return sBe(this._alternatives)}},XEe=/\|\|/g,YEe=/\s+/g,$Ee=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,QEe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,ZEe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function eSe(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 dBe(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&eSe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function pBe(){if(kG())try{const{performance:e,PerformanceObserver:t}=I1("perf_hooks");if(eSe(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function sre(){return BG}var BG,lre,Qs,fBe=S({"src/compiler/performanceCore.ts"(){ia(),BG=dBe()||pBe(),lre=BG==null?void 0:BG.performance,Qs=lre?()=>lre.now():Date.now?Date.now:()=>+new Date}}),i6,sd,mBe=S({"src/compiler/perfLogger.ts"(){var e;try{const t=(e=process.env.TS_ETW_MODULE_PATH)!=null?e:"./node_modules/@microsoft/typescript-etw";i6=I1(t)}catch{i6=void 0}sd=i6!=null&&i6.logEvent?i6:void 0}});function tSe(e,t,r,i){return e?GG(t,r,i):VG}function GG(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&sl(t)}function s(){--i===0?(sl(r),ef(e,t,r)):i<0&&N.fail("enter/exit count does not match.")}}function sl(e){var t;if(Jx){const r=(t=dN.get(e))!=null?t:0;dN.set(e,r+1),Kx.set(e,Qs()),pS==null||pS.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function ef(e,t,r){var i,o;if(Jx){const s=(i=r!==void 0?Kx.get(r):void 0)!=null?i:Qs(),l=(o=t!==void 0?Kx.get(t):void 0)!=null?o:cre,u=Xx.get(e)||0;Xx.set(e,u+(s-l)),pS==null||pS.measure(e,t,r)}}function _Be(e){return dN.get(e)||0}function hBe(e){return Xx.get(e)||0}function gBe(e){Xx.forEach((t,r)=>e(r,t))}function vBe(e){Kx.forEach((t,r)=>e(r))}function yBe(e){e!==void 0?Xx.delete(e):Xx.clear(),pS==null||pS.clearMeasures(e)}function bBe(e){e!==void 0?(dN.delete(e),Kx.delete(e)):(dN.clear(),Kx.clear()),pS==null||pS.clearMarks(e)}function EBe(){return Jx}function SBe(e=bu){var t;return Jx||(Jx=!0,nL||(nL=sre()),nL&&(cre=nL.performance.timeOrigin,(nL.shouldWriteNativeEvents||((t=e==null?void 0:e.cpuProfilingEnabled)==null?void 0:t.call(e))||(e==null?void 0:e.debugMode))&&(pS=nL.performance))),!0}function TBe(){Jx&&(Kx.clear(),dN.clear(),Xx.clear(),pS=void 0,Jx=!1)}var nL,pS,VG,Jx,cre,Kx,dN,Xx,ABe=S({"src/compiler/performance.ts"(){ia(),VG={enter:is,exit:is},Jx=!1,cre=Qs(),Kx=new Map,dN=new Map,Xx=new Map}}),ure={};H(ure,{clearMarks:()=>bBe,clearMeasures:()=>yBe,createTimer:()=>GG,createTimerIf:()=>tSe,disable:()=>TBe,enable:()=>SBe,forEachMark:()=>vBe,forEachMeasure:()=>gBe,getCount:()=>_Be,getDuration:()=>hBe,isEnabled:()=>EBe,mark:()=>sl,measure:()=>ef,nullTimer:()=>VG});var fS=S({"src/compiler/_namespaces/ts.performance.ts"(){ABe()}}),ur,rL,dre,pre,IBe=S({"src/compiler/tracing.ts"(){ia(),fS(),(e=>{let t,r=0,i=0,o;const s=[];let l;const u=[];function p(se,G,re){if(N.assert(!ur,"Tracing already started"),t===void 0)try{t=I1("fs")}catch(oe){throw new Error(`tracing requires having fs
(original error: ${oe.message||oe})`)}o=se,s.length=0,l===void 0&&(l=$r(G,"legend.json")),t.existsSync(G)||t.mkdirSync(G,{recursive:!0});const _e=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",ye=$r(G,`trace${_e}.json`),Q=$r(G,`types${_e}.json`);u.push({configFilePath:re,tracePath:ye,typesPath:Q}),i=t.openSync(ye,"w"),ur=e;const Y={cat:"__metadata",ph:"M",ts:1e3*Qs(),pid:1,tid:1};t.writeSync(i,`[
`+[{name:"process_name",args:{name:"tsc"},...Y},{name:"thread_name",args:{name:"Main"},...Y},{name:"TracingStartedInBrowser",...Y,cat:"disabled-by-default-devtools.timeline"}].map(oe=>JSON.stringify(oe)).join(`,
`))}e.startTracing=p;function v(){N.assert(ur,"Tracing is not in progress"),N.assert(!!s.length==(o!=="server")),t.writeSync(i,`
]
`),t.closeSync(i),ur=void 0,s.length?ee(s):u[u.length-1].typesPath=void 0}e.stopTracing=v;function f(se){o!=="server"&&s.push(se)}e.recordType=f,(se=>{se.Parse="parse",se.Program="program",se.Bind="bind",se.Check="check",se.CheckTypes="checkTypes",se.Emit="emit",se.Session="session"})(e.Phase||(e.Phase={}));function b(se,G,re){U("I",se,G,re,'"s":"g"')}e.instant=b;const A=[];function I(se,G,re,_e=!1){_e&&U("B",se,G,re),A.push({phase:se,name:G,args:re,time:1e3*Qs(),separateBeginAndEnd:_e})}e.push=I;function R(se){N.assert(A.length>0),W(A.length-1,1e3*Qs(),se),A.length--}e.pop=R;function M(){const se=1e3*Qs();for(let G=A.length-1;G>=0;G--)W(G,se);A.length=0}e.popAll=M;const C=1e3*10;function W(se,G,re){const{phase:_e,name:ye,args:Q,time:Y,separateBeginAndEnd:oe}=A[se];oe?(N.assert(!re,"`results` are not supported for events with `separateBeginAndEnd`"),U("E",_e,ye,Q,void 0,G)):C-Y%C<=G-Y&&U("X",_e,ye,{...Q,results:re},`"dur":${G-Y}`,Y)}function U(se,G,re,_e,ye,Q=1e3*Qs()){o==="server"&&G==="checkTypes"||(sl("beginTracing"),t.writeSync(i,`,
{"pid":1,"tid":1,"ph":"${se}","cat":"${G}","ts":${Q},"name":"${re}"`),ye&&t.writeSync(i,`,${ye}`),_e&&t.writeSync(i,`,"args":${JSON.stringify(_e)}`),t.writeSync(i,"}"),sl("endTracing"),ef("Tracing","beginTracing","endTracing"))}function X(se){const G=Jn(se);return G?{path:G.path,start:re(Rs(G,se.pos)),end:re(Rs(G,se.end))}:void 0;function re(_e){return{line:_e.line+1,character:_e.character+1}}}function ee(se){var yt,Ze,It;var G,re,_e,ye,Q,Y,oe,he,Ie,de,ie,ge,Ce,qe,Se,Le,Ne,Oe,At;sl("beginDumpTypes");const be=u[u.length-1].typesPath,He=t.openSync(be,"w"),it=new Map;t.writeSync(He,"[");const Ft=se.length;for(let on=0;on<Ft;on++){const Yt=se[on],Nn=Yt.objectFlags,Xn=(yt=Yt.aliasSymbol)!=null?yt:Yt.symbol;let yn;if(Nn&16|Yt.flags&2944)try{yn=(G=Yt.checker)==null?void 0:G.typeToString(Yt)}catch{yn=void 0}let tn={};if(Yt.flags&8388608){const Kt=Yt;tn={indexedAccessObjectType:(re=Kt.objectType)==null?void 0:re.id,indexedAccessIndexType:(_e=Kt.indexType)==null?void 0:_e.id}}let en={};if(Nn&4){const Kt=Yt;en={instantiatedType:(ye=Kt.target)==null?void 0:ye.id,typeArguments:(Q=Kt.resolvedTypeArguments)==null?void 0:Q.map(nt=>nt.id),referenceLocation:X(Kt.node)}}let gi={};if(Yt.flags&16777216){const Kt=Yt;gi={conditionalCheckType:(Y=Kt.checkType)==null?void 0:Y.id,conditionalExtendsType:(oe=Kt.extendsType)==null?void 0:oe.id,conditionalTrueType:(Ze=(he=Kt.resolvedTrueType)==null?void 0:he.id)!=null?Ze:-1,conditionalFalseType:(It=(Ie=Kt.resolvedFalseType)==null?void 0:Ie.id)!=null?It:-1}}let bo={};if(Yt.flags&33554432){const Kt=Yt;bo={substitutionBaseType:(de=Kt.baseType)==null?void 0:de.id,constraintType:(ie=Kt.constraint)==null?void 0:ie.id}}let Ui={};if(Nn&1024){const Kt=Yt;Ui={reverseMappedSourceType:(ge=Kt.source)==null?void 0:ge.id,reverseMappedMappedType:(Ce=Kt.mappedType)==null?void 0:Ce.id,reverseMappedConstraintType:(qe=Kt.constraintType)==null?void 0:qe.id}}let Co={};if(Nn&256){const Kt=Yt;Co={evolvingArrayElementType:Kt.elementType.id,evolvingArrayFinalType:(Se=Kt.finalArrayType)==null?void 0:Se.id}}let tr;const Ci=Yt.checker.getRecursionIdentity(Yt);Ci&&(tr=it.get(Ci),tr||(tr=it.size,it.set(Ci,tr)));const Nr={id:Yt.id,intrinsicName:Yt.intrinsicName,symbolName:(Xn==null?void 0:Xn.escapedName)&&Ki(Xn.escapedName),recursionId:tr,isTuple:Nn&8?!0:void 0,unionTypes:Yt.flags&1048576?(Le=Yt.types)==null?void 0:Le.map(Kt=>Kt.id):void 0,intersectionTypes:Yt.flags&2097152?Yt.types.map(Kt=>Kt.id):void 0,aliasTypeArguments:(Ne=Yt.aliasTypeArguments)==null?void 0:Ne.map(Kt=>Kt.id),keyofType:Yt.flags&4194304?(Oe=Yt.type)==null?void 0:Oe.id:void 0,...tn,...en,...gi,...bo,...Ui,...Co,destructuringPattern:X(Yt.pattern),firstDeclaration:X((At=Xn==null?void 0:Xn.declarations)==null?void 0:At[0]),flags:N.formatTypeFlags(Yt.flags).split("|"),display:yn};t.writeSync(He,JSON.stringify(Nr)),on<Ft-1&&t.writeSync(He,`,
`)}t.writeSync(He,`]
`),t.closeSync(He),sl("endDumpTypes"),ef("Dump types","beginDumpTypes","endDumpTypes")}function V(){!l||t.writeFileSync(l,JSON.stringify(u))}e.dumpLegend=V})(rL||(rL={})),dre=rL.startTracing,pre=rL.dumpLegend}});function mS(e,t=!0){const r=oL[e.category];return t?r.toLowerCase():r}var o6,a6,s6,jG,l6,c6,UG,iL,HG,Yx,u6,qG,JG,d6,KG,XG,YG,$G,QG,ZG,eV,tV,nV,rV,iV,p6,oV,aV,sV,lV,f6,m6,cV,uV,dV,pV,fV,mV,_6,_V,hV,gV,vV,yV,bV,oL,$x,EV,SV,TV,AV,pN,IV,xV,RV,h6,DV,NV,CV,PV,MV,g6,v6,y6,LV,kV,wV,OV,WV,FV,zV,BV,aL,GV,nSe=S({"src/compiler/types.ts"(){o6=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(o6||{}),a6=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(a6||{}),s6=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(s6||{}),jG=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(jG||{}),l6=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(l6||{}),c6=(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))(c6||{}),UG=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(UG||{}),iL=(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))(iL||{}),HG=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(HG||{}),Yx=class{},u6=(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))(u6||{}),qG=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(qG||{}),JG=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(JG||{}),d6=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(d6||{}),KG=(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))(KG||{}),XG=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(XG||{}),YG=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(YG||{}),$G=(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))($G||{}),QG=(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))(QG||{}),ZG=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(ZG||{}),eV=(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))(eV||{}),tV=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(tV||{}),nV=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(nV||{}),rV=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(rV||{}),iV=(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))(iV||{}),p6=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(p6||{}),oV=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(oV||{}),aV=(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))(aV||{}),sV=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(sV||{}),lV=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(lV||{}),f6=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(f6||{}),m6=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(m6||{}),cV=(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))(cV||{}),uV=(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))(uV||{}),dV=(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))(dV||{}),pV=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(pV||{}),fV=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(fV||{}),mV=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(mV||{}),_6=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(_6||{}),_V=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(_V||{}),hV=(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))(hV||{}),gV=(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))(gV||{}),vV=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(vV||{}),yV=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(yV||{}),bV=(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))(bV||{}),oL=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(oL||{}),$x=(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))($x||{}),EV=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(EV||{}),SV=(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))(SV||{}),TV=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(TV||{}),AV=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(AV||{}),pN=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.false=2]="false",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(pN||{}),IV=(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))(IV||{}),xV=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(xV||{}),RV=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(RV||{}),h6=(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))(h6||{}),DV=(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))(DV||{}),NV=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(NV||{}),CV=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(CV||{}),PV=(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))(PV||{}),MV=(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))(MV||{}),g6=(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))(g6||{}),v6=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(v6||{}),y6=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(y6||{}),LV=(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))(LV||{}),kV=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(kV||{}),wV=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(wV||{}),OV=(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))(OV||{}),WV=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(WV||{}),FV=(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))(FV||{}),zV=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(zV||{}),BV=(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))(BV||{}),aL={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}},GV=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(GV||{})}});function fN(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}function rSe(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function CA(e,t){return e.getModifiedTime(t)||Wp}function fre(e){return{[250]:e.Low,[500]:e.Medium,[2e3]:e.High}}function xBe(e){if(!e.getEnvironmentVariable)return;const t=o("TSC_WATCH_POLLINGINTERVAL",b6);S6=s("TSC_WATCH_POLLINGCHUNKSIZE",E6)||S6,lL=s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",E6)||lL;function r(l,u){return e.getEnvironmentVariable(`${l}_${u.toUpperCase()}`)}function i(l){let u;return p("Low"),p("Medium"),p("High"),u;function p(v){const f=r(l,v);f&&((u||(u={}))[v]=Number(f))}}function o(l,u){const p=i(l);if(p)return v("Low"),v("Medium"),v("High"),!0;return!1;function v(f){u[f]=p[f]||u[f]}}function s(l,u){const p=i(l);return(t||p)&&fre(p?{...u,...p}:u)}}function iSe(e,t,r,i,o){let s=r;for(let u=t.length;i&&u;l(),u--){const p=t[r];if(p){if(p.isClosed){t[r]=void 0;continue}}else continue;i--;const v=CBe(p,CA(e,p.fileName));if(p.isClosed){t[r]=void 0;continue}o==null||o(p,r,v),t[r]&&(s<r&&(t[s]=p,t[r]=void 0),s++)}return r;function l(){r++,r===t.length&&(s<r&&(t.length=s),r=0,s=0)}}function RBe(e){const t=[],r=[],i=u(250),o=u(500),s=u(2e3);return l;function l(C,W,U){const X={fileName:C,callback:W,unchangedPolls:0,mtime:CA(e,C)};return t.push(X),A(X,U),{close:()=>{X.isClosed=!0,DA(t,X)}}}function u(C){const W=[];return W.pollingInterval=C,W.pollIndex=0,W.pollScheduled=!1,W}function p(C,W){W.pollIndex=f(W,W.pollingInterval,W.pollIndex,S6[W.pollingInterval]),W.length?M(W.pollingInterval):(N.assert(W.pollIndex===0),W.pollScheduled=!1)}function v(C,W){f(r,250,0,r.length),p(C,W),!W.pollScheduled&&r.length&&M(250)}function f(C,W,U,X){return iSe(e,C,U,X,ee);function ee(V,se,G){G?(V.unchangedPolls=0,C!==r&&(C[se]=void 0,I(V))):V.unchangedPolls!==lL[W]?V.unchangedPolls++:C===r?(V.unchangedPolls=1,C[se]=void 0,A(V,250)):W!==2e3&&(V.unchangedPolls++,C[se]=void 0,A(V,W===250?500:2e3))}}function b(C){switch(C){case 250:return i;case 500:return o;case 2e3:return s}}function A(C,W){b(W).push(C),R(W)}function I(C){r.push(C),R(250)}function R(C){b(C).pollScheduled||M(C)}function M(C){b(C).pollScheduled=e.setTimeout(C===250?v:p,C,C===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",b(C))}}function DBe(e,t,r,i){const o=Zp(),s=i?new Map:void 0,l=new Map,u=ku(t);return p;function p(f,b,A,I){const R=u(f);o.add(R,b).length===1&&s&&s.set(R,r(f)||Wp);const M=ii(R)||".",C=l.get(M)||v(ii(f)||".",M,I);return C.referenceCount++,{close:()=>{C.referenceCount===1?(C.close(),l.delete(M)):C.referenceCount--,o.remove(R,b)}}}function v(f,b,A){const I=e(f,1,(R,M)=>{if(!wo(M))return;const C=To(M,f),W=u(C),U=C&&o.get(W);if(U){let X,ee=1;if(s){const V=s.get(W);if(R==="change"&&(X=r(C)||Wp,X.getTime()===V.getTime()))return;X||(X=r(C)||Wp),s.set(W,X),V===Wp?ee=0:X===Wp&&(ee=2)}for(const V of U)V(C,ee,X)}},!1,500,A);return I.referenceCount=0,l.set(b,I),I}}function NBe(e){const t=[];let r=0,i;return o;function o(u,p){const v={fileName:u,callback:p,mtime:CA(e,u)};return t.push(v),l(),{close:()=>{v.isClosed=!0,DA(t,v)}}}function s(){i=void 0,r=iSe(e,t,r,S6[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function oSe(e,t,r,i,o){const l=ku(t)(r),u=e.get(l);return u?u.callbacks.push(i):e.set(l,{watcher:o((p,v,f)=>{var b;return(b=e.get(l))==null?void 0:b.callbacks.slice().forEach(A=>A(p,v,f))}),callbacks:[i]}),{close:()=>{const p=e.get(l);!p||!qx(p.callbacks,i)||p.callbacks.length||(e.delete(l),Mf(p))}}}function CBe(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,VV(r,i),t),!0):!1}function VV(e,t){return e===0?0:t===0?2:1}function sL(e){return gre(e)}function mre(e){gre=e}function PBe({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:u}){const p=new Map,v=Zp(),f=new Map;let b;const A=Ux(!t),I=ku(t);return(G,re,_e,ye)=>_e?R(G,ye,re):e(G,re,_e,ye);function R(G,re,_e){const ye=I(G);let Q=p.get(ye);Q?Q.refCount++:(Q={watcher:e(G,oe=>{V(oe,re)||(re!=null&&re.synchronousWatchDirectory?(M(ye,oe),ee(G,ye,re)):C(G,ye,oe,re))},!1,re),refCount:1,childWatches:et},p.set(ye,Q),ee(G,ye,re));const Y=_e&&{dirName:G,callback:_e};return Y&&v.add(ye,Y),{dirName:G,close:()=>{const oe=N.checkDefined(p.get(ye));Y&&v.remove(ye,Y),oe.refCount--,!oe.refCount&&(p.delete(ye),Mf(oe),oe.childWatches.forEach(Zm))}}}function M(G,re,_e){let ye,Q;wo(re)?ye=re:Q=re,v.forEach((Y,oe)=>{if(!(Q&&Q.get(oe)===!0)&&(oe===G||ho(G,oe)&&G[oe.length]===cl))if(Q)if(_e){const he=Q.get(oe);he?he.push(..._e):Q.set(oe,_e.slice())}else Q.set(oe,!0);else Y.forEach(({callback:he})=>he(ye))})}function C(G,re,_e,ye){const Q=p.get(re);if(Q&&o(G,1)){W(G,re,_e,ye);return}M(re,_e),X(Q)}function W(G,re,_e,ye){const Q=f.get(re);Q?Q.fileNames.push(_e):f.set(re,{dirName:G,options:ye,fileNames:[_e]}),b&&(u(b),b=void 0),b=l(U,1e3,"timerToUpdateChildWatches")}function U(){b=void 0,sL(`sysLog:: onTimerToUpdateChildWatches:: ${f.size}`);const G=Qs(),re=new Map;for(;!b&&f.size;){const ye=f.entries().next();N.assert(!ye.done);const{value:[Q,{dirName:Y,options:oe,fileNames:he}]}=ye;f.delete(Q);const Ie=ee(Y,Q,oe);M(Q,re,Ie?void 0:he)}sL(`sysLog:: invokingWatchers:: Elapsed:: ${Qs()-G}ms:: ${f.size}`),v.forEach((ye,Q)=>{const Y=re.get(Q);Y&&ye.forEach(({callback:oe,dirName:he})=>{Do(Y)?Y.forEach(oe):oe(he)})});const _e=Qs()-G;sL(`sysLog:: Elapsed:: ${_e}ms:: onTimerToUpdateChildWatches:: ${f.size} ${b}`)}function X(G){if(!G)return;const re=G.childWatches;G.childWatches=et;for(const _e of re)_e.close(),X(p.get(I(_e.dirName)))}function ee(G,re,_e){const ye=p.get(re);if(!ye)return!1;let Q;const Y=t6(o(G,1)?Vi(i(G),Ie=>{const de=To(Ie,G);return!V(de,_e)&&A(de,va(s(de)))===0?de:void 0}):et,ye.childWatches,(Ie,de)=>A(Ie,de.dirName),oe,Zm,he);return ye.childWatches=Q||et,Y;function oe(Ie){const de=R(Ie,_e);he(de)}function he(Ie){(Q||(Q=[])).push(Ie)}}function V(G,re){return St(cL,_e=>se(G,_e))||aSe(G,re,t,r)}function se(G,re){return G.includes(re)?!0:t?!1:I(G).includes(re)}}function MBe(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function LBe(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||Wp),t(e,s!==Wp?0:2,s)):t(e,1,s)}}function aSe(e,t,r,i){return((t==null?void 0:t.excludeDirectories)||(t==null?void 0:t.excludeFiles))&&(B5(e,t==null?void 0:t.excludeFiles,r,i())||B5(e,t==null?void 0:t.excludeDirectories,r,i()))}function sSe(e,t,r,i,o){return(s,l)=>{if(s==="rename"){const u=l?va($r(e,l)):e;(!l||!aSe(u,r,i,o))&&t(u)}}}function _re({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:v,realpath:f,tscWatchFile:b,useNonPollingWatchers:A,tscWatchDirectory:I,inodeWatching:R,fsWatchWithTimestamp:M,sysLog:C}){const W=new Map,U=new Map,X=new Map;let ee,V,se,G,re=!1;return{watchFile:_e,watchDirectory:he};function _e(Se,Le,Ne,Oe){Oe=Y(Oe,A);const At=N.checkDefined(Oe.watchFile);switch(At){case 0:return ie(Se,Le,250,void 0);case 1:return ie(Se,Le,Ne,void 0);case 2:return ye()(Se,Le,Ne,void 0);case 3:return Q()(Se,Le,void 0,void 0);case 4:return ge(Se,0,LBe(Se,Le,t),!1,Ne,iO(Oe));case 5:return se||(se=DBe(ge,l,t,M)),se(Se,Le,Ne,iO(Oe));default:N.assertNever(At)}}function ye(){return ee||(ee=RBe({getModifiedTime:t,setTimeout:r}))}function Q(){return V||(V=NBe({getModifiedTime:t,setTimeout:r}))}function Y(Se,Le){if(Se&&Se.watchFile!==void 0)return Se;switch(b){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return oe(4,1,Se);case"UseFsEventsWithFallbackDynamicPolling":return oe(4,2,Se);case"UseFsEventsOnParentDirectory":Le=!0;default:return Le?oe(5,1,Se):{watchFile:4}}}function oe(Se,Le,Ne){const Oe=Ne==null?void 0:Ne.fallbackPolling;return{watchFile:Se,fallbackPolling:Oe===void 0?Le:Oe}}function he(Se,Le,Ne,Oe){return p?ge(Se,1,sSe(Se,Le,Oe,l,u),Ne,500,iO(Oe)):(G||(G=PBe({useCaseSensitiveFileNames:l,getCurrentDirectory:u,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:v,watchDirectory:Ie,realpath:f,setTimeout:r,clearTimeout:i})),G(Se,Le,Ne,Oe))}function Ie(Se,Le,Ne,Oe){N.assert(!Ne);const At=de(Oe),be=N.checkDefined(At.watchDirectory);switch(be){case 1:return ie(Se,()=>Le(Se),500,void 0);case 2:return ye()(Se,()=>Le(Se),500,void 0);case 3:return Q()(Se,()=>Le(Se),void 0,void 0);case 0:return ge(Se,1,sSe(Se,Le,Oe,l,u),Ne,500,iO(At));default:N.assertNever(be)}}function de(Se){if(Se&&Se.watchDirectory!==void 0)return Se;switch(I){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const Le=Se==null?void 0:Se.fallbackPolling;return{watchDirectory:0,fallbackPolling:Le!==void 0?Le:void 0}}}function ie(Se,Le,Ne,Oe){return oSe(W,l,Se,Le,At=>e(Se,At,Ne,Oe))}function ge(Se,Le,Ne,Oe,At,be){return oSe(Oe?X:U,l,Se,Ne,He=>Ce(Se,Le,He,Oe,At,be))}function Ce(Se,Le,Ne,Oe,At,be){let He,it;R&&(He=Se.substring(Se.lastIndexOf(cl)),it=He.slice(cl.length));let Ft=s(Se,Le)?Ze():Yt();return{close:()=>{Ft&&(Ft.close(),Ft=void 0)}};function yt(Nn){Ft&&(C(`sysLog:: ${Se}:: Changing watcher to ${Nn===Ze?"Present":"Missing"}FileSystemEntryWatcher`),Ft.close(),Ft=Nn())}function Ze(){if(re)return C(`sysLog:: ${Se}:: Defaulting to watchFile`),on();try{const Nn=(Le===1||!M?o:qe)(Se,Oe,R?It:Ne);return Nn.on("error",()=>{Ne("rename",""),yt(Yt)}),Nn}catch(Nn){return re||(re=Nn.code==="ENOSPC"),C(`sysLog:: ${Se}:: Changing to watchFile`),on()}}function It(Nn,Xn){let yn;if(Xn&&Dl(Xn,"~")&&(yn=Xn,Xn=Xn.slice(0,Xn.length-1)),Nn==="rename"&&(!Xn||Xn===it||Dl(Xn,He))){const tn=t(Se)||Wp;yn&&Ne(Nn,yn,tn),Ne(Nn,Xn,tn),R?yt(tn===Wp?Yt:Ze):tn===Wp&&yt(Yt)}else yn&&Ne(Nn,yn),Ne(Nn,Xn)}function on(){return _e(Se,MBe(Ne),At,be)}function Yt(){return _e(Se,(Nn,Xn,yn)=>{Xn===0&&(yn||(yn=t(Se)||Wp),yn!==Wp&&(Ne("rename","",yn),yt(Ze)))},At,be)}}function qe(Se,Le,Ne){let Oe=t(Se)||Wp;return o(Se,Le,(At,be,He)=>{At==="change"&&(He||(He=t(Se)||Wp),He.getTime()===Oe.getTime())||(Oe=He||t(Se)||Wp,Ne(At,be,Oe))})}}function hre(e){const t=e.writeFile;e.writeFile=(r,i,o)=>IU(r,i,!!o,(s,l,u)=>t.call(e,s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s))}function lSe(e){bu=e}var jV,b6,Wp,E6,S6,lL,cL,gre,UV,bu,kBe=S({"src/compiler/sys.ts"(){ia(),jV=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(jV||{}),b6=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(b6||{}),Wp=new Date(0),E6={Low:32,Medium:64,High:256},S6=fre(E6),lL=fre(E6),cL=["/node_modules/.","/.git","/.#"],gre=is,UV=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(UV||{}),bu=(()=>{const e="\uFEFF";function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=I1("fs"),s=I1("path"),l=I1("os");let u;try{u=I1("crypto")}catch{u=void 0}let p,v="./profile.cpuprofile";const f=I1("buffer").Buffer,b=process.platform==="darwin",A=process.platform==="linux"||b,I=l.platform(),R=Q(),M=o.realpathSync.native?process.platform==="win32"?Oe:o.realpathSync.native:o.realpathSync,C=__filename.endsWith("sys.js")?s.join(s.dirname(__dirname),"__fake__.js"):__filename,W=process.platform==="win32"||b,U=Td(()=>process.cwd()),{watchFile:X,watchDirectory:ee}=_re({pollingWatchFileWorker:oe,getModifiedTime:be,setTimeout,clearTimeout,fsWatchWorker:he,useCaseSensitiveFileNames:R,getCurrentDirectory:U,fileSystemEntryExists:qe,fsSupportsRecursiveFsWatch:W,getAccessibleSortedChildDirectories:yt=>ge(yt).directories,realpath:At,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:A,fsWatchWithTimestamp:b,sysLog:sL}),V={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:R,write(yt){process.stdout.write(yt)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:de,writeFile:ie,watchFile:X,watchDirectory:ee,resolvePath:yt=>s.resolve(yt),fileExists:Se,directoryExists:Le,getAccessibleFileSystemEntries:ge,createDirectory(yt){if(!V.directoryExists(yt))try{o.mkdirSync(yt)}catch(Ze){if(Ze.code!=="EEXIST")throw Ze}},getExecutingFilePath(){return C},getCurrentDirectory:U,getDirectories:Ne,getEnvironmentVariable(yt){return process.env[yt]||""},readDirectory:Ce,getModifiedTime:be,setModifiedTime:He,deleteFile:it,createHash:u?Ft:fN,createSHA256Hash:u?Ft:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(yt){try{const Ze=se(yt);if(Ze!=null&&Ze.isFile())return Ze.size}catch{}return 0},exit(yt){_e(()=>process.exit(yt))},enableCPUProfiler:G,disableCPUProfiler:_e,cpuProfilingEnabled:()=>!!p||Mn(process.execArgv,"--cpu-prof")||Mn(process.execArgv,"--prof"),realpath:At,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||St(process.execArgv,yt=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(yt))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{I1("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var yt;const Ze=(yt=process.stdout)==null?void 0:yt._handle;Ze&&Ze.setBlocking&&Ze.setBlocking(!0)},bufferFrom:ye,base64decode:yt=>ye(yt,"base64").toString("utf8"),base64encode:yt=>ye(yt).toString("base64"),require:(yt,Ze)=>{try{const It=dle(Ze,yt,V);return{module:I1(It),modulePath:It,error:void 0}}catch(It){return{module:void 0,modulePath:void 0,error:It}}}};return V;function se(yt){return o.statSync(yt,{throwIfNoEntry:!1})}function G(yt,Ze){if(p)return Ze(),!1;const It=I1("inspector");if(!It||!It.Session)return Ze(),!1;const on=new It.Session;return on.connect(),on.post("Profiler.enable",()=>{on.post("Profiler.start",()=>{p=on,v=yt,Ze()})}),!0}function re(yt){let Ze=0;const It=new Map,on=wu(s.dirname(C)),Yt=`file://${_h(on)===1?"":"/"}${on}`;for(const Nn of yt.nodes)if(Nn.callFrame.url){const Xn=wu(Nn.callFrame.url);Am(Yt,Xn,R)?Nn.callFrame.url=MA(Yt,Xn,Yt,ku(R),!0):i.test(Xn)||(Nn.callFrame.url=(It.has(Xn)?It:It.set(Xn,`external${Ze}.js`)).get(Xn),Ze++)}return yt}function _e(yt){if(p&&p!=="stopping"){const Ze=p;return p.post("Profiler.stop",(It,{profile:on})=>{var Yt;if(!It){try{(Yt=se(v))!=null&&Yt.isDirectory()&&(v=s.join(v,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{o.mkdirSync(s.dirname(v),{recursive:!0})}catch{}o.writeFileSync(v,JSON.stringify(re(on)))}p=void 0,Ze.disconnect(),yt()}),p="stopping",!0}else return yt(),!1}function ye(yt,Ze){return f.from&&f.from!==Int8Array.from?f.from(yt,Ze):new f(yt,Ze)}function Q(){return I==="win32"||I==="win64"?!1:!Se(Y(__filename))}function Y(yt){return yt.replace(/\w/g,Ze=>{const It=Ze.toUpperCase();return Ze===It?Ze.toLowerCase():It})}function oe(yt,Ze,It){o.watchFile(yt,{persistent:!0,interval:It},Yt);let on;return{close:()=>o.unwatchFile(yt,Yt)};function Yt(Nn,Xn){const yn=+Xn.mtime==0||on===2;if(+Nn.mtime==0){if(yn)return;on=2}else if(yn)on=0;else{if(+Nn.mtime==+Xn.mtime)return;on=1}Ze(yt,on,Nn.mtime)}}function he(yt,Ze,It){return o.watch(yt,W?{persistent:!0,recursive:!!Ze}:{persistent:!0},It)}function Ie(yt,Ze){let It;try{It=o.readFileSync(yt)}catch{return}let on=It.length;if(on>=2&&It[0]===254&&It[1]===255){on&=-2;for(let Yt=0;Yt<on;Yt+=2){const Nn=It[Yt];It[Yt]=It[Yt+1],It[Yt+1]=Nn}return It.toString("utf16le",2)}return on>=2&&It[0]===255&&It[1]===254?It.toString("utf16le",2):on>=3&&It[0]===239&&It[1]===187&&It[2]===191?It.toString("utf8",3):It.toString("utf8")}function de(yt,Ze){var It,on;(It=sd)==null||It.logStartReadFile(yt);const Yt=Ie(yt);return(on=sd)==null||on.logStopReadFile(),Yt}function ie(yt,Ze,It){var on;(on=sd)==null||on.logEvent("WriteFile: "+yt),It&&(Ze=e+Ze);let Yt;try{Yt=o.openSync(yt,"w"),o.writeSync(Yt,Ze,void 0,"utf8")}finally{Yt!==void 0&&o.closeSync(Yt)}}function ge(yt){var Ze;(Ze=sd)==null||Ze.logEvent("ReadDir: "+(yt||"."));try{const It=o.readdirSync(yt||".",{withFileTypes:!0}),on=[],Yt=[];for(const Nn of It){const Xn=typeof Nn=="string"?Nn:Nn.name;if(Xn==="."||Xn==="..")continue;let yn;if(typeof Nn=="string"||Nn.isSymbolicLink()){const tn=$r(yt,Xn);try{if(yn=se(tn),!yn)continue}catch{continue}}else yn=Nn;yn.isFile()?on.push(Xn):yn.isDirectory()&&Yt.push(Xn)}return on.sort(),Yt.sort(),{files:on,directories:Yt}}catch{return C7}}function Ce(yt,Ze,It,on,Yt){return KU(yt,Ze,It,on,R,process.cwd(),Yt,ge,At)}function qe(yt,Ze){const It=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const on=se(yt);if(!on)return!1;switch(Ze){case 0:return on.isFile();case 1:return on.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=It}}function Se(yt){return qe(yt,0)}function Le(yt){return qe(yt,1)}function Ne(yt){return ge(yt).directories.slice()}function Oe(yt){return yt.length<260?o.realpathSync.native(yt):o.realpathSync(yt)}function At(yt){try{return M(yt)}catch{return yt}}function be(yt){var Ze;const It=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Ze=se(yt))==null?void 0:Ze.mtime}catch{return}finally{Error.stackTraceLimit=It}}function He(yt,Ze){try{o.utimesSync(yt,Ze,Ze)}catch{return}}function it(yt){try{return o.unlinkSync(yt)}catch{return}}function Ft(yt){const Ze=u.createHash("sha256");return Ze.update(yt),Ze.digest("hex")}}let r;return kG()&&(r=t()),r&&hre(r),r})(),bu&&bu.getEnvironmentVariable&&(xBe(bu),N.setAssertionLevel(/^development$/i.test(bu.getEnvironmentVariable("NODE_ENV"))?1:0)),bu&&bu.debugMode&&(N.isDebugging=!0)}});function HV(e){return e===47||e===92}function vre(e){return T6(e)<0}function hp(e){return T6(e)>0}function qV(e){const t=T6(e);return t>0&&t===e.length}function mN(e){return T6(e)!==0}function Fp(e){return/^\.\.?($|[\\/])/.test(e)}function JV(e){return!mN(e)&&!Fp(e)}function PA(e){return dc(e).includes(".")}function Nl(e,t){return e.length>t.length&&Dl(e,t)}function Rc(e,t){for(const r of t)if(Nl(e,r))return!0;return!1}function kv(e){return e.length>0&&HV(e.charCodeAt(e.length-1))}function cSe(e){return e>=97&&e<=122||e>=65&&e<=90}function wBe(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 T6(e){if(!e)return 0;const t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;const i=e.indexOf(t===47?cl:fL,2);return i<0?e.length:i+1}if(cSe(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(Ere);if(r!==-1){const i=r+Ere.length,o=e.indexOf(cl,i);if(o!==-1){const s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&cSe(e.charCodeAt(o+1))){const u=wBe(e,o+2);if(u!==-1){if(e.charCodeAt(u)===47)return~(u+1);if(u===e.length)return~u}}return~(o+1)}return~e.length}return 0}function _h(e){const t=T6(e);return t<0?~t:t}function ii(e){e=wu(e);const t=_h(e);return t===e.length?e:(e=o0(e),e.slice(0,Math.max(t,e.lastIndexOf(cl))))}function dc(e,t,r){if(e=wu(e),_h(e)===e.length)return"";e=o0(e);const o=e.slice(Math.max(_h(e),e.lastIndexOf(cl)+1)),s=t!==void 0&&r!==void 0?Qx(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function uSe(e,t,r){if(ho(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 OBe(e,t,r){if(typeof t=="string")return uSe(e,t,r)||"";for(const i of t){const o=uSe(e,i,r);if(o)return o}return""}function Qx(e,t,r){if(t)return OBe(o0(e),t,r?i0:dS);const i=dc(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function WBe(e,t){const r=e.substring(0,t),i=e.substring(t).split(cl);return i.length&&!il(i)&&i.pop(),[r,...i]}function Uc(e,t=""){return e=$r(t,e),WBe(e,_h(e))}function Dy(e,t){return e.length===0?"":(e[0]&&Hc(e[0]))+e.slice(1,t).join(cl)}function wu(e){return e.includes("\\")?e.replace(fSe,cl):e}function _S(e){if(!St(e))return[];const t=[e[0]];for(let r=1;r<e.length;r++){const i=e[r];if(!!i&&i!=="."){if(i===".."){if(t.length>1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function $r(e,...t){e&&(e=wu(e));for(let r of t)!r||(r=wu(r),!e||_h(r)!==0?e=r:e=Hc(e)+r);return e}function Ny(e,...t){return va(St(t)?$r(e,...t):wu(e))}function uL(e,t){return _S(Uc(e,t))}function To(e,t){return Dy(uL(e,t))}function va(e){if(e=wu(e),!I6.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!I6.test(e)))return e;const r=Dy(_S(Uc(e)));return r&&kv(e)?Hc(r):r}function FBe(e){return e.length===0?"":e.slice(1).join(cl)}function KV(e,t){return FBe(uL(e,t))}function ll(e,t,r){const i=hp(e)?va(e):To(e,t);return r(i)}function o0(e){return kv(e)?e.substr(0,e.length-1):e}function Hc(e){return kv(e)?e:e+cl}function P1(e){return!mN(e)&&!Fp(e)?"./"+e:e}function dL(e,t,r,i){const o=r!==void 0&&i!==void 0?Qx(e,r,i):Qx(e);return o?e.slice(0,e.length-o.length)+(ho(t,".")?t:"."+t):e}function yre(e,t){const r=_q(e);return r?e.slice(0,e.length-r.length)+(ho(t,".")?t:"."+t):dL(e,t)}function bre(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,_h(e)),o=t.substring(0,_h(t)),s=$8(i,o);if(s!==0)return s;const l=e.substring(i.length),u=t.substring(o.length);if(!I6.test(l)&&!I6.test(u))return r(l,u);const p=_S(Uc(e)),v=_S(Uc(t)),f=Math.min(p.length,v.length);for(let b=1;b<f;b++){const A=r(p[b],v[b]);if(A!==0)return A}return al(p.length,v.length)}function dSe(e,t){return bre(e,t,Ju)}function pSe(e,t){return bre(e,t,$8)}function kg(e,t,r,i){return typeof r=="string"?(e=$r(r,e),t=$r(r,t)):typeof r=="boolean"&&(i=r),bre(e,t,Ux(i))}function Am(e,t,r,i){if(typeof r=="string"?(e=$r(r,e),t=$r(r,t)):typeof r=="boolean"&&(i=r),e===void 0||t===void 0)return!1;if(e===t)return!0;const o=_S(Uc(e)),s=_S(Uc(t));if(s.length<o.length)return!1;const l=i?i0:dS;for(let u=0;u<o.length;u++)if(!(u===0?i0:l)(o[u],s[u]))return!1;return!0}function XV(e,t,r){const i=r(e),o=r(t);return ho(i,o+"/")||ho(i,o+"\\")}function YV(e,t,r,i){const o=_S(Uc(e)),s=_S(Uc(t));let l;for(l=0;l<o.length&&l<s.length;l++){const v=i(o[l]),f=i(s[l]);if(!(l===0?i0:r)(v,f))break}if(l===0)return s;const u=s.slice(l),p=[];for(;l<o.length;l++)p.push("..");return["",...p,...u]}function Im(e,t,r){N.assert(_h(e)>0==_h(t)>0,"Paths must either both be absolute or both be relative");const s=YV(e,t,(typeof r=="boolean"?r:!1)?i0:dS,typeof r=="function"?r:ol);return Dy(s)}function _N(e,t,r){return hp(e)?MA(t,e,t,r,!1):e}function pL(e,t,r){return P1(Im(ii(e),t,r))}function MA(e,t,r,i,o){const s=YV(Ny(r,e),Ny(r,t),dS,i),l=s[0];if(o&&hp(l)){const u=l.charAt(0)===cl?"file://":"file:///";s[0]=u+l}return Dy(s)}function xm(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=ii(e);if(i===e)return;e=i}}function A6(e){return Dl(e,"/node_modules")}var cl,fL,Ere,fSe,I6,zBe=S({"src/compiler/path.ts"(){ia(),cl="/",fL="\\",Ere="://",fSe=/\\/g,I6=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function T(e,t,r,i,o,s,l){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:l}}var m,BBe=S({"src/compiler/diagnosticInformationMap.generated.ts"(){nSe(),m={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}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:T(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:T(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:T(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:T(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:T(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:T(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:T(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:T(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:T(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:T(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:T(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:T(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:T(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:T(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:T(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:T(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:T(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:T(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:T(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:T(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:T(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:T(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:T(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:T(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:T(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:T(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:T(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:T(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:T(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:T(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:T(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:T(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:T(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:T(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:T(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:T(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:T(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:T(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:T(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:T(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:T(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:T(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:T(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:T(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:T(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:T(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:T(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:T(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:T(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:T(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:T(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:T(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:T(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:T(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:T(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:T(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:T(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:T(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:T(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:T(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:T(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:T(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:T(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:T(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:T(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:T(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:T(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:T(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:T(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:T(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:T(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:T(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:T(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:T(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:T(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:T(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:T(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:T(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:T(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:T(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:T(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:T(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:T(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:T(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:T(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:T(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:T(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:T(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:T(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:T(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:T(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:T(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:T(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:T(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:T(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:T(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:T(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:T(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:T(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:T(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:T(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:T(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:T(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:T(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:T(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:T(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:T(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:T(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:T(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:T(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:T(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:T(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:T(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:T(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:T(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:T(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:T(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:T(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:T(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:T(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:T(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:T(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:T(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:T(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:T(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:T(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:T(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:T(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:T(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:T(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:T(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:T(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:T(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:T(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:T(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:T(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:T(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:T(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:T(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:T(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:T(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:T(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:T(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:T(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:T(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:T(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:T(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:T(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:T(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:T(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:T(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:T(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:T(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:T(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:T(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:T(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:T(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:T(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:T(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:T(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:T(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:T(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:T(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:T(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:T(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:T(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:T(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:T(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:T(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:T(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:T(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:T(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:T(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:T(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:T(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:T(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:T(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:T(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:T(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:T(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:T(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:T(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:T(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:T(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:T(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:T(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:T(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:T(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:T(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block:T(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:T(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:T(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:T(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:T(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:T(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:T(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:T(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:T(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:T(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:T(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:T(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:T(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:T(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:T(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:T(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:T(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:T(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:T(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:T(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:T(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:T(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:T(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:T(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:T(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:T(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:T(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:T(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:T(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:T(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:T(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:T(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:T(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:T(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:T(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:T(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:T(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:T(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:T(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:T(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:T(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:T(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:T(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:T(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:T(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:T(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:T(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:T(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:T(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:T(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:T(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:T(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:T(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:T(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:T(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:T(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:T(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:T(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:T(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:T(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:T(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:T(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:T(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:T(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:T(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:T(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:T(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:T(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:T(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:T(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:T(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:T(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:T(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:T(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:T(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:T(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:T(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:T(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:T(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:T(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:T(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:T(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:T(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:T(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:T(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:T(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:T(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:T(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:T(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:T(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:T(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:T(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:T(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:T(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:T(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:T(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:T(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:T(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:T(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:T(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:T(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:T(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:T(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:T(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:T(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:T(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:T(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:T(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:T(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:T(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:T(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:T(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:T(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:T(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:T(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:T(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:T(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:T(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:T(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:T(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:T(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:T(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:T(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:T(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:T(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:T(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:T(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:T(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:T(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:T(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:T(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:T(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:T(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:T(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:T(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:T(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:T(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:T(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:T(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:T(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:T(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:T(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:T(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:T(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:T(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:T(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:T(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:T(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:T(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:T(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:T(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:T(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:T(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:T(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:T(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:T(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:T(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:T(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:T(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:T(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:T(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:T(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:T(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:T(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:T(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:T(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:T(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:T(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:T(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:T(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:T(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:T(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:T(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:T(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:T(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:T(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:T(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:T(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:T(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:T(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:T(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:T(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:T(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:T(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:T(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:T(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:T(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:T(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:T(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:T(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:T(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:T(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:T(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:T(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:T(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:T(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:T(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:T(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:T(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:T(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:T(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:T(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:T(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:T(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:T(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:T(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:T(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:T(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:T(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:T(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:T(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:T(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:T(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:T(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:T(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:T(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:T(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:T(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:T(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:T(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:T(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:T(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:T(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:T(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:T(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:T(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:T(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:T(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:T(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:T(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:T(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:T(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:T(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:T(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:T(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:T(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:T(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:T(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:T(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:T(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:T(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:T(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:T(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:T(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:T(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:T(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:T(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:T(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:T(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:T(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:T(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:T(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:T(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:T(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:T(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:T(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:T(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:T(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:T(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:T(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:T(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:T(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:T(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:T(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:T(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:T(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:T(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:T(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:T(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:T(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:T(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:T(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:T(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:T(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:T(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:T(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:T(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:T(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:T(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:T(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:T(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:T(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:T(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:T(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:T(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:T(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:T(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:T(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:T(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:T(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:T(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:T(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:T(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:T(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:T(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:T(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:T(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:T(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:T(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:T(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:T(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:T(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:T(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:T(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:T(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:T(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:T(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:T(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:T(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:T(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:T(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:T(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:T(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:T(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:T(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:T(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:T(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:T(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:T(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:T(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:T(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:T(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:T(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:T(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:T(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:T(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:T(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:T(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:T(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:T(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An false module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:T(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:T(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:T(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:T(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:T(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:T(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:T(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:T(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:T(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:T(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:T(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:T(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:T(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:T(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:T(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:T(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:T(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:T(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:T(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:T(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:T(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:T(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:T(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:T(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:T(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:T(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:T(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:T(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:T(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:T(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:T(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:T(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:T(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:T(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:T(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:T(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:T(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:T(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:T(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:T(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:T(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:T(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:T(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:T(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:T(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:T(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:T(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:T(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:T(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:T(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:T(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:T(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:T(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:T(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:T(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:T(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:T(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:T(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:T(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:T(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:T(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:T(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:T(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:T(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:T(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:T(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:T(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:T(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:T(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:T(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:T(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:T(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:T(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:T(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:T(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:T(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:T(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:T(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:T(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:T(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:T(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:T(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:T(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:T(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:T(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:T(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:T(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:T(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:T(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:T(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:T(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:T(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:T(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:T(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:T(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:T(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:T(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:T(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:T(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:T(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:T(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:T(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:T(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:T(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:T(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:T(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:T(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:T(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:T(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:T(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:T(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:T(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:T(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:T(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:T(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:T(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:T(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:T(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:T(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:T(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:T(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:T(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:T(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:T(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:T(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:T(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:T(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:T(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:T(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:T(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:T(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:T(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:T(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:T(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:T(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:T(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:T(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:T(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:T(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:T(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:T(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:T(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:T(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:T(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:T(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:T(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:T(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:T(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:T(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:T(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:T(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:T(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:T(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:T(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:T(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:T(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:T(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:T(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:T(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:T(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:T(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:T(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:T(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:T(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:T(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:T(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:T(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:T(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:T(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:T(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:T(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:T(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:T(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:T(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:T(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:T(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:T(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:T(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:T(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:T(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:T(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:T(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:T(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:T(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:T(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:T(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:T(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:T(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:T(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:T(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:T(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:T(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:T(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:T(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:T(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:T(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:T(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:T(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:T(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:T(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:T(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:T(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:T(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:T(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:T(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:T(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:T(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:T(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:T(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:T(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:T(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:T(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:T(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:T(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:T(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:T(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:T(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:T(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:T(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:T(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:T(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:T(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:T(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:T(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:T(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:T(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:T(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:T(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:T(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:T(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:T(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:T(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:T(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:T(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:T(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:T(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:T(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:T(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:T(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:T(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:T(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:T(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:T(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:T(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:T(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:T(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:T(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:T(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:T(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:T(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:T(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:T(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:T(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:T(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:T(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:T(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:T(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:T(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:T(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:T(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:T(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:T(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:T(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:T(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:T(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:T(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:T(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:T(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:T(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:T(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:T(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:T(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:T(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:T(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:T(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:T(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:T(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:T(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:T(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:T(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:T(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:T(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:T(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:T(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:T(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:T(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:T(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:T(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:T(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:T(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:T(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:T(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:T(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:T(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:T(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:T(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:T(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:T(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:T(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:T(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:T(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:T(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:T(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:T(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:T(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:T(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:T(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:T(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:T(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:T(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:T(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:T(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:T(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:T(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:T(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:T(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:T(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:T(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:T(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:T(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:T(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:T(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:T(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:T(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:T(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:T(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:T(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:T(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:T(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:T(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:T(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:T(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:T(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:T(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:T(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:T(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:T(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:T(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:T(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:T(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:T(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:T(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:T(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:T(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:T(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:T(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:T(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:T(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:T(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:T(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:T(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:T(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:T(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:T(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:T(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:T(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:T(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:T(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:T(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:T(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:T(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1:T(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:T(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:T(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:T(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:T(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:T(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:T(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:T(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:T(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:T(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:T(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:T(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:T(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:T(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:T(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:T(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:T(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:T(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:T(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:T(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:T(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:T(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:T(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:T(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:T(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:T(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:T(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:T(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:T(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:T(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:T(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:T(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:T(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:T(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:T(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:T(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:T(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:T(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:T(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:T(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:T(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:T(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:T(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:T(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:T(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:T(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:T(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:T(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:T(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:T(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:T(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:T(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:T(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:T(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:T(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:T(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:T(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:T(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:T(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:T(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:T(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:T(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:T(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:T(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:T(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:T(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:T(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:T(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:T(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:T(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:T(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:T(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:T(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:T(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:T(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:T(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:T(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:T(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:T(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:T(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:T(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:T(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:T(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:T(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:T(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:T(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:T(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:T(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:T(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:T(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:T(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:T(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:T(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:T(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:T(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:T(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:T(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:T(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:T(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:T(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:T(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:T(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:T(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:T(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:T(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:T(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:T(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:T(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:T(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:T(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:T(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:T(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:T(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:T(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:T(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:T(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:T(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:T(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:T(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:T(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:T(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:T(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:T(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:T(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:T(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:T(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:T(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:T(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:T(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:T(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:T(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:T(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:T(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:T(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:T(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:T(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:T(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:T(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:T(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:T(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:T(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:T(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:T(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'false', or 'System'."),Use_0_instead:T(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:T(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:T(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:T(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:T(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:T(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:T(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:T(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:T(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:T(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:T(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:T(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:T(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:T(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:T(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:T(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:T(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:T(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:T(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:T(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:T(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:T(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:T(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:T(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:T(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:T(6024,3,"options_6024","options"),file:T(6025,3,"file_6025","file"),Examples_Colon_0:T(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:T(6027,3,"Options_Colon_6027","Options:"),Version_0:T(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:T(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:T(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:T(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:T(6034,3,"KIND_6034","KIND"),FILE:T(6035,3,"FILE_6035","FILE"),VERSION:T(6036,3,"VERSION_6036","VERSION"),LOCATION:T(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:T(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:T(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:T(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:T(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:T(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:T(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:T(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:T(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:T(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <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."),Only_amd_and_system_modules_are_supported_alongside_0:T(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:T(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:T(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:T(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:T(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:T(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:T(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:T(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:T(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:T(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:T(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:T(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:T(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:T(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:T(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:T(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:T(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:T(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:T(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:T(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:T(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:T(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:T(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:T(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:T(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:T(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:T(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:T(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:T(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:T(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:T(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:T(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:T(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:T(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:T(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:T(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:T(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:T(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:T(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:T(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:T(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:T(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:T(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:T(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:T(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:T(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:T(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:T(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:T(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:T(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:T(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:T(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:T(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:T(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:T(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:T(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:T(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:T(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:T(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:T(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:T(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:T(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:T(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:T(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:T(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:T(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:T(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:T(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:T(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:T(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:T(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:T(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:T(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:T(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:T(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:T(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:T(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:T(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:T(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:T(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:T(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:T(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:T(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:T(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:T(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:T(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:T(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:T(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:T(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:T(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:T(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:T(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:T(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:T(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:T(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:T(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:T(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:T(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:T(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:T(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:T(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:T(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:T(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:T(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:T(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:T(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:T(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:T(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:T(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:T(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:T(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:T(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:T(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:T(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:T(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:T(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:T(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:T(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:T(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:T(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:T(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:T(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:T(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:T(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:T(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:T(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:T(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:T(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:T(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:T(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:T(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:T(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:T(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:T(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:T(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:T(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:T(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:T(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:T(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:T(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:T(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:T(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:T(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:T(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:T(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:T(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:T(6244,3,"Modules_6244","Modules"),File_Management:T(6245,3,"File_Management_6245","File Management"),Emit:T(6246,3,"Emit_6246","Emit"),JavaScript_Support:T(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:T(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:T(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:T(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:T(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:T(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:T(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:T(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:T(6255,3,"Projects_6255","Projects"),Output_Formatting:T(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:T(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:T(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:T(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:T(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:T(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:T(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:T(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:T(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:T(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:T(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:T(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:T(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:T(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:T(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:T(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:T(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:T(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:T(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:T(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:T(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:T(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),Enable_project_compilation:T(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:T(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:T(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:T(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:T(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:T(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:T(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:T(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:T(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:T(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:T(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:T(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:T(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:T(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:T(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:T(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:T(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:T(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:T(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:T(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:T(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:T(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:T(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:T(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:T(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:T(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:T(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:T(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:T(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:T(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:T(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:T(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:T(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:T(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:T(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:T(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:T(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:T(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:T(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:T(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:T(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:T(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:T(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:T(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:T(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:T(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:T(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:T(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:T(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:T(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:T(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:T(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:T(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:T(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:T(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:T(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:T(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:T(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:T(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:T(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:T(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:T(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:T(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:T(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:T(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:T(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:T(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:T(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:T(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:T(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:T(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:T(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:T(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:T(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:T(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:T(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:T(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:T(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:T(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:T(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:T(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:T(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:T(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:T(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:T(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:T(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:T(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:T(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:T(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:T(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:T(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:T(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:T(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:T(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:T(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:T(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:T(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:T(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:T(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:T(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:T(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:T(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:T(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:T(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:T(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:T(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:T(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:T(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:T(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:T(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:T(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:T(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:T(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:T(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:T(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:T(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:T(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:T(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:T(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:T(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:T(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:T(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:T(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:T(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:T(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:T(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:T(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:T(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:T(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:T(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:T(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:T(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:T(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:T(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:T(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:T(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:T(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:T(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:T(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:T(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:T(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:T(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:T(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:T(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:T(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:T(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:T(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:T(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:T(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:T(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:T(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<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 === `false` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:T(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:T(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:T(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:T(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:T(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:T(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:T(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:T(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:T(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:T(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:T(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:T(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:T(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:T(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:T(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:T(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:T(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:T(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:T(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:T(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:T(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:T(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:T(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:T(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:T(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:T(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:T(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:T(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:T(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:T(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:T(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:T(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:T(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:T(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:T(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:T(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:T(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:T(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:T(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:T(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:T(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:T(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:T(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:T(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:T(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:T(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:T(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:T(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:T(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:T(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:T(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:T(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:T(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:T(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:T(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:T(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:T(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:T(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:T(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:T(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:T(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:T(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:T(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:T(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:T(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:T(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:T(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:T(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:T(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:T(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:T(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:T(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:T(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:T(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:T(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:T(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:T(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:T(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:T(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:T(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:T(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:T(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:T(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:T(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:T(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:T(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:T(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:T(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:T(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:T(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:T(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:T(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:T(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:T(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:T(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:T(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:T(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:T(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:T(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:T(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:T(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:T(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:T(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:T(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:T(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:T(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:T(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:T(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:T(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:T(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:T(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:T(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:T(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:T(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:T(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:T(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:T(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:T(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:T(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:T(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:T(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:T(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:T(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:T(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:T(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:T(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:T(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:T(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:T(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:T(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:T(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:T(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:T(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:T(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:T(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:T(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:T(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:T(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:T(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:T(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:T(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:T(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:T(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:T(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:T(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:T(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:T(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:T(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:T(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:T(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:T(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:T(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:T(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:T(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:T(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:T(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:T(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:T(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:T(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:T(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:T(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:T(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:T(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:T(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:T(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:T(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:T(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:T(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:T(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:T(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:T(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:T(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:T(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:T(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:T(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:T(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:T(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:T(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:T(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:T(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:T(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:T(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:T(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:T(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:T(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:T(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:T(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:T(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:T(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:T(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:T(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:T(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:T(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:T(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:T(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:T(95005,3,"Extract_function_95005","Extract function"),Extract_constant:T(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:T(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:T(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:T(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:T(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:T(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:T(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:T(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:T(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:T(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:T(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:T(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:T(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:T(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:T(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:T(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:T(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:T(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:T(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:T(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:T(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:T(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:T(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:T(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:T(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:T(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:T(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:T(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:T(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:T(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:T(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:T(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:T(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:T(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:T(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:T(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:T(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:T(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:T(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:T(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:T(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:T(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:T(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:T(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:T(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:T(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:T(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:T(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:T(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:T(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:T(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:T(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:T(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:T(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:T(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:T(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:T(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:T(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:T(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:T(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:T(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:T(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:T(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:T(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:T(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:T(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:T(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:T(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:T(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:T(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:T(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:T(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:T(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:T(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:T(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:T(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:T(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:T(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:T(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:T(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:T(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:T(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:T(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:T(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:T(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:T(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:T(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:T(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:T(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:T(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:T(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:T(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:T(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:T(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:T(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:T(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:T(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:T(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:T(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:T(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:T(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:T(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:T(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:T(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:T(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:T(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:T(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:T(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:T(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:T(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:T(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:T(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:T(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:T(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:T(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:T(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:T(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:T(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:T(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:T(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:T(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:T(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:T(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:T(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:T(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:T(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:T(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:T(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:T(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:T(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:T(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:T(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:T(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:T(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:T(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:T(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:T(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:T(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:T(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:T(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:T(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:T(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:T(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:T(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:T(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:T(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:T(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:T(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:T(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:T(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:T(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:T(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:T(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:T(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:T(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:T(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:T(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:T(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:T(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:T(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:T(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:T(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:T(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:T(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:T(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:T(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:T(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:T(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:T(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:T(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:T(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:T(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:T(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:T(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:T(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:T(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:T(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:T(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:T(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:T(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:T(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:T(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:T(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:T(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:T(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:T(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:T(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:T(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:T(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:T(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:T(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:T(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:T(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:T(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:T(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:T(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:T(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:T(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:T(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:T(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:T(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:T(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:T(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:T(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:T(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:T(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:T(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:T(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:T(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:T(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:T(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:T(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:T(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:T(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:T(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:T(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:T(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:T(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:T(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:T(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:T(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:T(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:T(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:T(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:T(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:T(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:T(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function ld(e){return e>=80}function Sre(e){return e===32||ld(e)}function mL(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 x6(e,t){return t>=2?mL(e,ESe):t===1?mL(e,ySe):mL(e,gSe)}function GBe(e,t){return t>=2?mL(e,SSe):t===1?mL(e,bSe):mL(e,vSe)}function VBe(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}function ma(e){return xSe[e]}function M1(e){return xre.get(e)}function LA(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&&Ku(o)&&(t.push(i),i=r);break}}return t.push(i),t}function _L(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):R6(wg(e),t,r,e.text,i)}function R6(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:N.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Ni(e,LA(i)):"unknown"}`));const s=e[t]+r;return o?s>e[t+1]?e[t+1]:typeof i=="string"&&s>i.length?i.length:s:(t<e.length-1?N.assert(s<e[t+1]):i!==void 0&&N.assert(s<=i.length),s)}function wg(e){return e.lineMap||(e.lineMap=LA(e.text))}function Zx(e,t){const r=hN(e,t);return{line:r,character:t-e[r]}}function hN(e,t,r){let i=Nv(e,t,ol,al,r);return i<0&&(i=~i-1,N.assert(i!==-1,"position cannot precede the beginning of the file")),i}function gN(e,t,r){if(t===r)return 0;const i=wg(e),o=Math.min(t,r),s=o===r,l=s?t:r,u=hN(i,o),p=hN(i,l,u);return s?u-p:p-u}function Rs(e,t){return Zx(wg(e),t)}function Og(e){return A_(e)||Ku(e)}function A_(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 Ku(e){return e===10||e===13||e===8232||e===8233}function vN(e){return e>=48&&e<=57}function mSe(e){return vN(e)||e>=65&&e<=70||e>=97&&e<=102}function jBe(e){return e<=1114111}function D6(e){return e>=48&&e<=55}function Tre(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 Wa(e,t,r,i,o){if(e_(t))return t;let s=!1;for(;;){const l=e.charCodeAt(t);switch(l){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;s=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&!Ku(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(yN(e,t)){t=hL(e,t),s=!1;continue}break;case 35:if(t===0&&$V(e,t)){t=QV(e,t),s=!1;continue}break;case 42:if(s){t++,s=!1;continue}break;default:if(l>127&&Og(l)){t++;continue}break}return t}}function yN(e,t){if(N.assert(t>=0),t===0||Ku(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+C6<e.length){for(let i=0;i<C6;i++)if(e.charCodeAt(t+i)!==r)return!1;return r===61||e.charCodeAt(t+C6)===32}}return!1}function hL(e,t,r){r&&r(m.Merge_conflict_marker_encountered,t,C6);const i=e.charCodeAt(t),o=e.length;if(i===60||i===62)for(;t<o&&!Ku(e.charCodeAt(t));)t++;else for(N.assert(i===124||i===61);t<o;){const s=e.charCodeAt(t);if((s===61||s===62)&&s!==i&&yN(e,t))break;t++}return t}function $V(e,t){return N.assert(t===0),ej.test(e)}function QV(e,t){const r=ej.exec(e)[0];return t=t+r.length,t}function ZV(e,t,r,i,o,s,l){let u,p,v,f,b=!1,A=i,I=l;if(r===0){A=!0;const R=N6(t);R&&(r=R.length)}e:for(;r>=0&&r<t.length;){const R=t.charCodeAt(r);switch(R){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,i)break e;A=!0,b&&(f=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:const M=t.charCodeAt(r+1);let C=!1;if(M===47||M===42){const W=M===47?2:3,U=r;if(r+=2,M===47)for(;r<t.length;){if(Ku(t.charCodeAt(r))){C=!0;break}r++}else for(;r<t.length;){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}if(A){if(b&&(I=o(u,p,v,f,s,I),!e&&I))return I;u=U,p=r,v=W,f=C,b=!0}continue}break e;default:if(R>127&&Og(R)){b&&Ku(R)&&(f=!0),r++;continue}break e}}return b&&(I=o(u,p,v,f,s,I)),I}function gL(e,t,r,i){return ZV(!1,e,t,!1,r,i)}function vL(e,t,r,i){return ZV(!1,e,t,!0,r,i)}function Are(e,t,r,i,o){return ZV(!0,e,t,!1,r,i,o)}function Ire(e,t,r,i,o){return ZV(!0,e,t,!0,r,i,o)}function _Se(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function $h(e,t){return Are(e,t,_Se,void 0,void 0)}function a0(e,t){return Ire(e,t,_Se,void 0,void 0)}function N6(e){const t=ej.exec(e);if(t)return t[0]}function Qh(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&x6(e,t)}function s0(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&&GBe(e,t)}function tf(e,t,r){let i=Cy(e,0);if(!Qh(i,t))return!1;for(let o=l0(i);o<e.length;o+=l0(i))if(!s0(i=Cy(e,o),t,r))return!1;return!0}function wv(e,t,r=0,i,o,s,l){var u=i,p,v,f,b,A,I,R,M,C=0,W=0,U=0;Bt(u,s,l);var X={getTokenFullStart:()=>f,getStartPos:()=>f,getTokenEnd:()=>p,getTextPos:()=>p,getToken:()=>A,getTokenStart:()=>b,getTokenPos:()=>b,getTokenText:()=>u.substring(b,p),getTokenValue:()=>I,hasUnicodeEscape:()=>(R&1024)!==0,hasExtendedUnicodeEscape:()=>(R&8)!==0,hasPrecedingLineBreak:()=>(R&1)!==0,hasPrecedingJSDocComment:()=>(R&2)!==0,isIdentifier:()=>A===80||A>118,isReservedWord:()=>A>=83&&A<=118,isUnterminated:()=>(R&4)!==0,getCommentDirectives:()=>M,getNumericLiteralFlags:()=>R&25584,getTokenFlags:()=>R,reScanGreaterToken:be,reScanAsteriskEqualsToken:He,reScanSlashToken:it,reScanTemplateToken:Ze,reScanTemplateHeadOrNoSubstitutionTemplate:It,scanJsxIdentifier:tn,scanJsxAttributeValue:en,reScanJsxAttributeValue:gi,reScanJsxToken:on,reScanLessThanToken:Yt,reScanHashToken:Nn,reScanQuestionToken:Xn,reScanInvalidIdentifier:Oe,scanJsxToken:yn,scanJsDocToken:Ui,scanJSDocCommentTextToken:bo,scan:Le,getText:Kt,clearCommentDirectives:nt,setText:Bt,setScriptTarget:si,setLanguageVariant:yi,setScriptKind:oo,setJSDocParsingMode:Po,setOnError:Dn,resetTokenState:_a,setTextPos:_a,setInJSDocType:Ba,tryScan:Nr,lookAhead:Ci,scanRange:tr};return N.isDebugging&&Object.defineProperty(X,"__debugShowCurrentPositionInText",{get:()=>{const Tn=X.getText();return Tn.slice(0,X.getTokenFullStart())+"\u2551"+Tn.slice(X.getTokenFullStart())}}),X;function ee(Tn,On=p,Je,mt){if(o){const pt=p;p=On,o(Tn,Je||0,mt),p=pt}}function V(){let Tn=p,On=!1,Je=!1,mt="";for(;;){const pt=u.charCodeAt(p);if(pt===95){R|=512,On?(On=!1,Je=!0,mt+=u.substring(Tn,p)):(R|=16384,ee(Je?m.Multiple_consecutive_numeric_separators_are_not_permitted:m.Numeric_separators_are_not_allowed_here,p,1)),p++,Tn=p;continue}if(vN(pt)){On=!0,Je=!1,p++;continue}break}return u.charCodeAt(p-1)===95&&(R|=16384,ee(m.Numeric_separators_are_not_allowed_here,p-1,1)),mt+u.substring(Tn,p)}function se(){let Tn=p,On;if(u.charCodeAt(p)===48)if(p++,u.charCodeAt(p)===95)R|=16896,ee(m.Numeric_separators_are_not_allowed_here,p,1),p--,On=V();else if(!re())R|=8192,On=""+ +I;else if(!I)On="0";else{I=""+parseInt(I,8),R|=32;const le=A===41,Fe=(le?"-":"")+"0o"+(+I).toString(8);return le&&Tn--,ee(m.Octal_literals_are_not_allowed_Use_the_syntax_0,Tn,p-Tn,Fe),9}else On=V();let Je,mt;u.charCodeAt(p)===46&&(p++,Je=V());let pt=p;if(u.charCodeAt(p)===69||u.charCodeAt(p)===101){p++,R|=16,(u.charCodeAt(p)===43||u.charCodeAt(p)===45)&&p++;const le=p,Fe=V();Fe?(mt=u.substring(pt,le)+Fe,pt=p):ee(m.Digit_expected)}let Pt;if(R&512?(Pt=On,Je&&(Pt+="."+Je),mt&&(Pt+=mt)):Pt=u.substring(Tn,pt),R&8192)return ee(m.Decimals_with_leading_zeros_are_not_allowed,Tn,pt-Tn),I=""+ +Pt,9;if(Je!==void 0||R&16)return G(Tn,Je===void 0&&!!(R&16)),I=""+ +Pt,9;{I=Pt;const le=Se();return G(Tn),le}}function G(Tn,On){if(!Qh(Cy(u,p),e))return;const Je=p,{length:mt}=ge();mt===1&&u[Je]==="n"?ee(On?m.A_bigint_literal_cannot_use_exponential_notation:m.A_bigint_literal_must_be_an_integer,Tn,Je-Tn+1):(ee(m.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Je,mt),p=Je)}function re(){const Tn=p;let On=!0;for(;vN(u.charCodeAt(p));)D6(u.charCodeAt(p))||(On=!1),p++;return I=u.substring(Tn,p),On}function _e(Tn,On){const Je=Q(Tn,!1,On);return Je?parseInt(Je,16):-1}function ye(Tn,On){return Q(Tn,!0,On)}function Q(Tn,On,Je){let mt=[],pt=!1,Pt=!1;for(;mt.length<Tn||On;){let le=u.charCodeAt(p);if(Je&&le===95){R|=512,pt?(pt=!1,Pt=!0):ee(Pt?m.Multiple_consecutive_numeric_separators_are_not_permitted:m.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(pt=Je,le>=65&&le<=70)le+=97-65;else if(!(le>=48&&le<=57||le>=97&&le<=102))break;mt.push(le),p++,Pt=!1}return mt.length<Tn&&(mt=[]),u.charCodeAt(p-1)===95&&ee(m.Numeric_separators_are_not_allowed_here,p-1,1),String.fromCharCode(...mt)}function Y(Tn=!1){const On=u.charCodeAt(p);p++;let Je="",mt=p;for(;;){if(p>=v){Je+=u.substring(mt,p),R|=4,ee(m.Unterminated_string_literal);break}const pt=u.charCodeAt(p);if(pt===On){Je+=u.substring(mt,p),p++;break}if(pt===92&&!Tn){Je+=u.substring(mt,p),Je+=he(!0),mt=p;continue}if((pt===10||pt===13)&&!Tn){Je+=u.substring(mt,p),R|=4,ee(m.Unterminated_string_literal);break}p++}return Je}function oe(Tn){const On=u.charCodeAt(p)===96;p++;let Je=p,mt="",pt;for(;;){if(p>=v){mt+=u.substring(Je,p),R|=4,ee(m.Unterminated_template_literal),pt=On?15:18;break}const Pt=u.charCodeAt(p);if(Pt===96){mt+=u.substring(Je,p),p++,pt=On?15:18;break}if(Pt===36&&p+1<v&&u.charCodeAt(p+1)===123){mt+=u.substring(Je,p),p+=2,pt=On?16:17;break}if(Pt===92){mt+=u.substring(Je,p),mt+=he(Tn),Je=p;continue}if(Pt===13){mt+=u.substring(Je,p),p++,p<v&&u.charCodeAt(p)===10&&p++,mt+=`
`,Je=p;continue}p++}return N.assert(pt!==void 0),I=mt,pt}function he(Tn){const On=p;if(p++,p>=v)return ee(m.Unexpected_end_of_text),"";const Je=u.charCodeAt(p);switch(p++,Je){case 48:if(p>=v||!vN(u.charCodeAt(p)))return"\0";case 49:case 50:case 51:p<v&&D6(u.charCodeAt(p))&&p++;case 52:case 53:case 54:case 55:if(p<v&&D6(u.charCodeAt(p))&&p++,R|=2048,Tn){const mt=parseInt(u.substring(On+1,p),8);return ee(m.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,On,p-On,"\\x"+mt.toString(16).padStart(2,"0")),String.fromCharCode(mt)}return u.substring(On,p);case 56:case 57:return R|=2048,Tn?(ee(m.Escape_sequence_0_is_not_allowed,On,p-On,u.substring(On,p)),String.fromCharCode(Je)):u.substring(On,p);case 98:return"\b";case 116:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(p<v&&u.charCodeAt(p)===123){p++;const mt=ye(1,!1),pt=mt?parseInt(mt,16):-1;return pt<0?(R|=2048,Tn&&ee(m.Hexadecimal_digit_expected),u.substring(On,p)):jBe(pt)?p>=v?(R|=2048,Tn&&ee(m.Unexpected_end_of_text),u.substring(On,p)):u.charCodeAt(p)!==125?(R|=2048,Tn&&ee(m.Unterminated_Unicode_escape_sequence),u.substring(On,p)):(p++,R|=8,e2(pt)):(R|=2048,Tn&&ee(m.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),u.substring(On,p))}for(;p<On+6;p++)if(!(p<v&&mSe(u.charCodeAt(p))))return R|=2048,Tn&&ee(m.Hexadecimal_digit_expected),u.substring(On,p);return R|=1024,String.fromCharCode(parseInt(u.substring(On+2,p),16));case 120:for(;p<On+4;p++)if(!(p<v&&mSe(u.charCodeAt(p))))return R|=2048,Tn&&ee(m.Hexadecimal_digit_expected),u.substring(On,p);return R|=4096,String.fromCharCode(parseInt(u.substring(On+2,p),16));case 13:p<v&&u.charCodeAt(p)===10&&p++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(Je)}}function Ie(){const Tn=ye(1,!1),On=Tn?parseInt(Tn,16):-1;let Je=!1;return On<0?(ee(m.Hexadecimal_digit_expected),Je=!0):On>1114111&&(ee(m.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Je=!0),p>=v?(ee(m.Unexpected_end_of_text),Je=!0):u.charCodeAt(p)===125?p++:(ee(m.Unterminated_Unicode_escape_sequence),Je=!0),Je?"":e2(On)}function de(){if(p+5<v&&u.charCodeAt(p+1)===117){const Tn=p;p+=2;const On=_e(4,!1);return p=Tn,On}return-1}function ie(){if(Cy(u,p+1)===117&&Cy(u,p+2)===123){const Tn=p;p+=3;const On=ye(1,!1),Je=On?parseInt(On,16):-1;return p=Tn,Je}return-1}function ge(){let Tn="",On=p;for(;p<v;){let Je=Cy(u,p);if(s0(Je,e))p+=l0(Je);else if(Je===92){if(Je=ie(),Je>=0&&s0(Je,e)){p+=3,R|=8,Tn+=Ie(),On=p;continue}if(Je=de(),!(Je>=0&&s0(Je,e)))break;R|=1024,Tn+=u.substring(On,p),Tn+=e2(Je),p+=6,On=p}else break}return Tn+=u.substring(On,p),Tn}function Ce(){const Tn=I.length;if(Tn>=2&&Tn<=12){const On=I.charCodeAt(0);if(On>=97&&On<=122){const Je=hSe.get(I);if(Je!==void 0)return A=Je}}return A=80}function qe(Tn){let On="",Je=!1,mt=!1;for(;;){const pt=u.charCodeAt(p);if(pt===95){R|=512,Je?(Je=!1,mt=!0):ee(mt?m.Multiple_consecutive_numeric_separators_are_not_permitted:m.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(Je=!0,!vN(pt)||pt-48>=Tn)break;On+=u[p],p++,mt=!1}return u.charCodeAt(p-1)===95&&ee(m.Numeric_separators_are_not_allowed_here,p-1,1),On}function Se(){return u.charCodeAt(p)===110?(I+="n",R&384&&(I=pC(I)+"n"),p++,10):(I=""+(R&128?parseInt(I.slice(2),2):R&256?parseInt(I.slice(2),8):+I),9)}function Le(){f=p,R=0;let Tn=!1;for(;;){if(b=p,p>=v)return A=1;const On=Cy(u,p);if(p===0){if(u.slice(0,256).includes("\uFFFD"))return ee(m.File_appears_to_be_binary),p=v,A=8;if(On===35&&$V(u,p)){if(p=QV(u,p),t)continue;return A=6}}switch(On){case 10:case 13:if(R|=1,t){p++;continue}else return On===13&&p+1<v&&u.charCodeAt(p+1)===10?p+=2:p++,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){p++;continue}else{for(;p<v&&A_(u.charCodeAt(p));)p++;return A=5}case 33:return u.charCodeAt(p+1)===61?u.charCodeAt(p+2)===61?(p+=3,A=38):(p+=2,A=36):(p++,A=54);case 34:case 39:return I=Y(),A=11;case 96:return A=oe(!1);case 37:return u.charCodeAt(p+1)===61?(p+=2,A=70):(p++,A=45);case 38:return u.charCodeAt(p+1)===38?u.charCodeAt(p+2)===61?(p+=3,A=77):(p+=2,A=56):u.charCodeAt(p+1)===61?(p+=2,A=74):(p++,A=51);case 40:return p++,A=21;case 41:return p++,A=22;case 42:if(u.charCodeAt(p+1)===61)return p+=2,A=67;if(u.charCodeAt(p+1)===42)return u.charCodeAt(p+2)===61?(p+=3,A=68):(p+=2,A=43);if(p++,C&&!Tn&&R&1){Tn=!0;continue}return A=42;case 43:return u.charCodeAt(p+1)===43?(p+=2,A=46):u.charCodeAt(p+1)===61?(p+=2,A=65):(p++,A=40);case 44:return p++,A=28;case 45:return u.charCodeAt(p+1)===45?(p+=2,A=47):u.charCodeAt(p+1)===61?(p+=2,A=66):(p++,A=41);case 46:return vN(u.charCodeAt(p+1))?(se(),A=9):u.charCodeAt(p+1)===46&&u.charCodeAt(p+2)===46?(p+=3,A=26):(p++,A=25);case 47:if(u.charCodeAt(p+1)===47){for(p+=2;p<v&&!Ku(u.charCodeAt(p));)p++;if(M=Ft(M,u.slice(b,p),TSe,b),t)continue;return A=2}if(u.charCodeAt(p+1)===42){p+=2;const Fe=u.charCodeAt(p)===42&&u.charCodeAt(p+1)!==47;let dt=!1,j=b;for(;p<v;){const ot=u.charCodeAt(p);if(ot===42&&u.charCodeAt(p+1)===47){p+=2,dt=!0;break}p++,Ku(ot)&&(j=p,R|=1)}if(Fe&&Ne()&&(R|=2),M=Ft(M,u.slice(j,p),ASe,j),dt||ee(m.Asterisk_Slash_expected),t)continue;return dt||(R|=4),A=3}return u.charCodeAt(p+1)===61?(p+=2,A=69):(p++,A=44);case 48:if(p+2<v&&(u.charCodeAt(p+1)===88||u.charCodeAt(p+1)===120))return p+=2,I=ye(1,!0),I||(ee(m.Hexadecimal_digit_expected),I="0"),I="0x"+I,R|=64,A=Se();if(p+2<v&&(u.charCodeAt(p+1)===66||u.charCodeAt(p+1)===98))return p+=2,I=qe(2),I||(ee(m.Binary_digit_expected),I="0"),I="0b"+I,R|=128,A=Se();if(p+2<v&&(u.charCodeAt(p+1)===79||u.charCodeAt(p+1)===111))return p+=2,I=qe(8),I||(ee(m.Octal_digit_expected),I="0"),I="0o"+I,R|=256,A=Se();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return A=se();case 58:return p++,A=59;case 59:return p++,A=27;case 60:if(yN(u,p)){if(p=hL(u,p,ee),t)continue;return A=7}return u.charCodeAt(p+1)===60?u.charCodeAt(p+2)===61?(p+=3,A=71):(p+=2,A=48):u.charCodeAt(p+1)===61?(p+=2,A=33):r===1&&u.charCodeAt(p+1)===47&&u.charCodeAt(p+2)!==42?(p+=2,A=31):(p++,A=30);case 61:if(yN(u,p)){if(p=hL(u,p,ee),t)continue;return A=7}return u.charCodeAt(p+1)===61?u.charCodeAt(p+2)===61?(p+=3,A=37):(p+=2,A=35):u.charCodeAt(p+1)===62?(p+=2,A=39):(p++,A=64);case 62:if(yN(u,p)){if(p=hL(u,p,ee),t)continue;return A=7}return p++,A=32;case 63:return u.charCodeAt(p+1)===46&&!vN(u.charCodeAt(p+2))?(p+=2,A=29):u.charCodeAt(p+1)===63?u.charCodeAt(p+2)===61?(p+=3,A=78):(p+=2,A=61):(p++,A=58);case 91:return p++,A=23;case 93:return p++,A=24;case 94:return u.charCodeAt(p+1)===61?(p+=2,A=79):(p++,A=53);case 123:return p++,A=19;case 124:if(yN(u,p)){if(p=hL(u,p,ee),t)continue;return A=7}return u.charCodeAt(p+1)===124?u.charCodeAt(p+2)===61?(p+=3,A=76):(p+=2,A=57):u.charCodeAt(p+1)===61?(p+=2,A=75):(p++,A=52);case 125:return p++,A=20;case 126:return p++,A=55;case 64:return p++,A=60;case 92:const Je=ie();if(Je>=0&&Qh(Je,e))return p+=3,R|=8,I=Ie()+ge(),A=Ce();const mt=de();return mt>=0&&Qh(mt,e)?(p+=6,R|=1024,I=String.fromCharCode(mt)+ge(),A=Ce()):(ee(m.Invalid_character),p++,A=0);case 35:if(p!==0&&u[p+1]==="!")return ee(m.can_only_be_used_at_the_start_of_a_file),p++,A=0;const pt=Cy(u,p+1);if(pt===92){p++;const Fe=ie();if(Fe>=0&&Qh(Fe,e))return p+=3,R|=8,I="#"+Ie()+ge(),A=81;const dt=de();if(dt>=0&&Qh(dt,e))return p+=6,R|=1024,I="#"+String.fromCharCode(dt)+ge(),A=81;p--}return Qh(pt,e)?(p++,At(pt,e)):(I="#",ee(m.Invalid_character,p++,l0(On))),A=81;default:const Pt=At(On,e);if(Pt)return A=Pt;if(A_(On)){p+=l0(On);continue}else if(Ku(On)){R|=1,p+=l0(On);continue}const le=l0(On);return ee(m.Invalid_character,p,le),p+=le,A=0}}}function Ne(){switch(U){case 0:return!0;case 1:return!1}return W!==3&&W!==4?!0:U===3?!1:ISe.test(u.slice(f,p))}function Oe(){N.assert(A===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=b=f,R=0;const Tn=Cy(u,p),On=At(Tn,99);return On?A=On:(p+=l0(Tn),A)}function At(Tn,On){let Je=Tn;if(Qh(Je,On)){for(p+=l0(Je);p<v&&s0(Je=Cy(u,p),On);)p+=l0(Je);return I=u.substring(b,p),Je===92&&(I+=ge()),Ce()}}function be(){if(A===32){if(u.charCodeAt(p)===62)return u.charCodeAt(p+1)===62?u.charCodeAt(p+2)===61?(p+=3,A=73):(p+=2,A=50):u.charCodeAt(p+1)===61?(p+=2,A=72):(p++,A=49);if(u.charCodeAt(p)===61)return p++,A=34}return A}function He(){return N.assert(A===67,"'reScanAsteriskEqualsToken' should only be called on a '*='"),p=b+1,A=64}function it(){if(A===44||A===69){let Tn=b+1,On=!1,Je=!1;for(;;){if(Tn>=v){R|=4,ee(m.Unterminated_regular_expression_literal);break}const mt=u.charCodeAt(Tn);if(Ku(mt)){R|=4,ee(m.Unterminated_regular_expression_literal);break}if(On)On=!1;else if(mt===47&&!Je){Tn++;break}else mt===91?Je=!0:mt===92?On=!0:mt===93&&(Je=!1);Tn++}for(;Tn<v&&s0(u.charCodeAt(Tn),e);)Tn++;p=Tn,I=u.substring(b,p),A=14}return A}function Ft(Tn,On,Je,mt){const pt=yt(On.trimStart(),Je);return pt===void 0?Tn:Rn(Tn,{range:{pos:mt,end:p},type:pt})}function yt(Tn,On){const Je=On.exec(Tn);if(!!Je)switch(Je[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function Ze(Tn){return p=b,A=oe(!Tn)}function It(){return p=b,A=oe(!0)}function on(Tn=!0){return p=b=f,A=yn(Tn)}function Yt(){return A===48?(p=b+1,A=30):A}function Nn(){return A===81?(p=b+1,A=63):A}function Xn(){return N.assert(A===61,"'reScanQuestionToken' should only be called on a '??'"),p=b+1,A=58}function yn(Tn=!0){if(f=b=p,p>=v)return A=1;let On=u.charCodeAt(p);if(On===60)return u.charCodeAt(p+1)===47?(p+=2,A=31):(p++,A=30);if(On===123)return p++,A=19;let Je=0;for(;p<v&&(On=u.charCodeAt(p),On!==123);){if(On===60){if(yN(u,p))return p=hL(u,p,ee),A=7;break}if(On===62&&ee(m.Unexpected_token_Did_you_mean_or_gt,p,1),On===125&&ee(m.Unexpected_token_Did_you_mean_or_rbrace,p,1),Ku(On)&&Je===0)Je=-1;else{if(!Tn&&Ku(On)&&Je>0)break;Og(On)||(Je=p)}p++}return I=u.substring(f,p),Je===-1?13:12}function tn(){if(ld(A)){for(;p<v;){if(u.charCodeAt(p)===45){I+="-",p++;continue}const On=p;if(I+=ge(),p===On)break}return Ce()}return A}function en(){switch(f=p,u.charCodeAt(p)){case 34:case 39:return I=Y(!0),A=11;default:return Le()}}function gi(){return p=b=f,en()}function bo(Tn){if(f=b=p,R=0,p>=v)return A=1;for(let On=u.charCodeAt(p);p<v&&!Ku(On)&&On!==96;On=Cy(u,++p))if(!Tn){if(On===123)break;if(On===64&&p-1>=0&&A_(u.charCodeAt(p-1))&&!(p+1<v&&Og(u.charCodeAt(p+1))))break}return p===b?Ui():(I=u.substring(b,p),A=82)}function Ui(){if(f=b=p,R=0,p>=v)return A=1;const Tn=Cy(u,p);switch(p+=l0(Tn),Tn){case 9:case 11:case 12:case 32:for(;p<v&&A_(u.charCodeAt(p));)p++;return A=5;case 64:return A=60;case 13:u.charCodeAt(p)===10&&p++;case 10:return R|=1,A=4;case 42:return A=42;case 123:return A=19;case 125:return A=20;case 91:return A=23;case 93:return A=24;case 60:return A=30;case 62:return A=32;case 61:return A=64;case 44:return A=28;case 46:return A=25;case 96:return A=62;case 35:return A=63;case 92:p--;const On=ie();if(On>=0&&Qh(On,e))return p+=3,R|=8,I=Ie()+ge(),A=Ce();const Je=de();return Je>=0&&Qh(Je,e)?(p+=6,R|=1024,I=String.fromCharCode(Je)+ge(),A=Ce()):(p++,A=0)}if(Qh(Tn,e)){let On=Tn;for(;p<v&&s0(On=Cy(u,p),e)||u.charCodeAt(p)===45;)p+=l0(On);return I=u.substring(b,p),On===92&&(I+=ge()),A=Ce()}else return A=0}function Co(Tn,On){const Je=p,mt=f,pt=b,Pt=A,le=I,Fe=R,dt=Tn();return(!dt||On)&&(p=Je,f=mt,b=pt,A=Pt,I=le,R=Fe),dt}function tr(Tn,On,Je){const mt=v,pt=p,Pt=f,le=b,Fe=A,dt=I,j=R,ot=M;Bt(u,Tn,On);const Dt=Je();return v=mt,p=pt,f=Pt,b=le,A=Fe,I=dt,R=j,M=ot,Dt}function Ci(Tn){return Co(Tn,!0)}function Nr(Tn){return Co(Tn,!1)}function Kt(){return u}function nt(){M=void 0}function Bt(Tn,On,Je){u=Tn||"",v=Je===void 0?u.length:On+Je,_a(On||0)}function Dn(Tn){o=Tn}function si(Tn){e=Tn}function yi(Tn){r=Tn}function oo(Tn){W=Tn}function Po(Tn){U=Tn}function _a(Tn){N.assert(Tn>=0),p=Tn,f=Tn,b=Tn,A=0,I=void 0,R=0}function Ba(Tn){C+=Tn?1:-1}}function Cy(e,t){return e.codePointAt(t)}function l0(e){return e>=65536?2:1}function UBe(e){if(N.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function e2(e){return RSe(e)}var yL,hSe,xre,gSe,vSe,ySe,bSe,ESe,SSe,TSe,ASe,ISe,xSe,C6,ej,RSe,HBe=S({"src/compiler/scanner.ts"(){ia(),yL={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},hSe=new Map(Object.entries(yL)),xre=new Map(Object.entries({...yL,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,"</":31,">>":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),gSe=[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],vSe=[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],ySe=[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],bSe=[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],ESe=[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],SSe=[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],TSe=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,ASe=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,ISe=/@(?:see|link)/i,xSe=VBe(xre),C6=7,ej=/^#!.*/,RSe=String.fromCodePoint?e=>String.fromCodePoint(e):UBe}});function tu(e){return Fp(e)||hp(e)}function t2(e){return aN(e,aC)}function bL(e){switch(ps(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 tc(e){return e.start+e.length}function Rre(e){return e.length===0}function tj(e,t){return t>=e.start&&t<tc(e)}function EL(e,t){return t>=e.pos&&t<=e.end}function Dre(e,t){return t.start>=e.start&&tc(t)<=tc(e)}function DSe(e,t){return Nre(e,t)!==void 0}function Nre(e,t){const r=Pre(e,t);return r&&r.length===0?void 0:r}function NSe(e,t){return SL(e.start,e.length,t.start,t.length)}function P6(e,t,r){return SL(e.start,e.length,t,r)}function SL(e,t,r,i){const o=e+t,s=r+i;return r<=o&&s>=e}function Cre(e,t){return t<=tc(e)&&t>=e.start}function Pre(e,t){const r=Math.max(e.start,t.start),i=Math.min(tc(e),tc(t));return r<=i?yc(r,i):void 0}function Eu(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function yc(e,t){return Eu(e,t-e)}function bN(e){return Eu(e.span.start,e.newLength)}function Mre(e){return Rre(e.span)&&e.newLength===0}function TL(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function Lre(e){if(e.length===0)return zL;if(e.length===1)return e[0];const t=e[0];let r=t.span.start,i=tc(t.span),o=r+t.newLength;for(let s=1;s<e.length;s++){const l=e[s],u=r,p=i,v=o,f=l.span.start,b=tc(l.span),A=f+l.newLength;r=Math.min(u,f),i=Math.max(p,p+(b-v)),o=Math.max(A,A+(v-b))}return TL(yc(r,i),o-r)}function CSe(e){if(e&&e.kind===168){for(let t=e;t;t=t.parent)if(ta(t)||di(t)||t.kind===264)return t}}function gp(e,t){return No(e)&&Qr(e,31)&&t.kind===176}function kre(e){return na(e)?Bn(e.elements,wre):!1}function wre(e){return Kc(e)?!0:kre(e.name)}function n2(e){let t=e.parent;for(;os(t.parent);)t=t.parent.parent;return t.parent}function Ore(e,t){os(e)&&(e=n2(e));let r=t(e);return e.kind===260&&(e=e.parent),e&&e.kind===261&&(r|=t(e),e=e.parent),e&&e.kind===243&&(r|=t(e)),r}function c0(e){return Ore(e,fd)}function nj(e){return Ore(e,Coe)}function Ov(e){return Ore(e,qBe)}function qBe(e){return e.flags}function PSe(e,t,r){const i=e.toLowerCase(),o=/^([a-z]+)([_-]([a-z]+))?$/.exec(i);if(!o){r&&r.push($l(m.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}const s=o[1],l=o[3];Mn(xj,i)&&!u(s,l,r)&&u(s,void 0,r),Xne(e);function u(p,v,f){const b=va(t.getExecutingFilePath()),A=ii(b);let I=$r(A,p);if(v&&(I=I+"-"+v),I=t.resolvePath($r(I,"diagnosticMessages.generated.json")),!t.fileExists(I))return!1;let R="";try{R=t.readFile(I)}catch{return f&&f.push($l(m.Unable_to_open_file_0,I)),!1}try{$oe(JSON.parse(R))}catch{return f&&f.push($l(m.Corrupted_locale_file_0,I)),!1}return!0}}function Ol(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function jn(e,t){for(;e;){const r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function EN(e){return(e.flags&16)===0}function Lo(e,t){if(e===void 0||EN(e))return e;for(e=e.original;e;){if(EN(e))return!t||t(e)?e:void 0;e=e.original}}function bl(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Ki(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 Rr(e){return Ki(e.escapedText)}function u0(e){const t=M1(e.escapedText);return t?ni(t,Gd):void 0}function Il(e){return e.valueDeclaration&&ud(e.valueDeclaration)?Rr(e.valueDeclaration.name):Ki(e.escapedName)}function MSe(e){const t=e.parent.parent;if(!!t){if(Yu(t))return rj(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return rj(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:const i=r.argumentExpression;if(Ue(i))return i}break;case 217:return rj(t.expression);case 256:{if(Yu(t.statement)||bt(t.statement))return rj(t.statement);break}}}}function rj(e){const t=Oo(e);return t&&Ue(t)?t:void 0}function AL(e,t){return!!(cd(e)&&Ue(e.name)&&Rr(e.name)===Rr(t)||Fl(e)&&St(e.declarationList.declarations,r=>AL(r,t)))}function Wre(e){return e.name||MSe(e)}function cd(e){return!!e.name}function M6(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{const r=e;switch(ql(r)){case 1:case 4:case 5:case 3:return D3(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return Wre(e);case 347:return MSe(e);case 277:{const{expression:r}=e;return Ue(r)?r:void 0}case 212:const t=e;if(R3(t))return t.argumentExpression}return e.name}function Oo(e){if(e!==void 0)return M6(e)||(Us(e)||Ks(e)||iu(e)?L6(e):void 0)}function L6(e){if(e.parent){if(Tc(e.parent)||os(e.parent))return e.parent.name;if(vr(e.parent)&&e===e.parent.right){if(Ue(e.parent.left))return e.parent.left;if(js(e.parent.left))return D3(e.parent.left)}else if(Wi(e.parent)&&Ue(e.parent.name))return e.parent.name}else return}function Py(e){if(If(e))return Vn(e.modifiers,Au)}function L1(e){if(Qr(e,98303))return Vn(e.modifiers,Ra)}function LSe(e,t){if(e.name)if(Ue(e.name)){const r=e.name.escapedText;return xL(e.parent,t).filter(i=>i_(i)&&Ue(i.name)&&i.name.escapedText===r)}else{const r=e.parent.parameters.indexOf(e);N.assert(r>-1,"Parameters should always be in their parents' parameter list");const i=xL(e.parent,t).filter(i_);if(r<i.length)return[i[r]]}return et}function r2(e){return LSe(e,!1)}function Fre(e){return LSe(e,!0)}function kSe(e,t){const r=e.name.escapedText;return xL(e.parent,t).filter(i=>fm(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function zre(e){return kSe(e,!1)}function Bre(e){return kSe(e,!0)}function Gre(e){return!!tm(e,i_)}function Vre(e){return tm(e,TI)}function jre(e){return w6(e,A5)}function ij(e){return tm(e,mse)}function wSe(e){return tm(e,XH)}function Ure(e){return tm(e,XH,!0)}function OSe(e){return tm(e,YH)}function Hre(e){return tm(e,YH,!0)}function WSe(e){return tm(e,$H)}function qre(e){return tm(e,$H,!0)}function FSe(e){return tm(e,QH)}function Jre(e){return tm(e,QH,!0)}function Kre(e){return tm(e,S5,!0)}function oj(e){return tm(e,ZH)}function Xre(e){return tm(e,ZH,!0)}function aj(e){return tm(e,mw)}function k6(e){return tm(e,eq)}function Yre(e){return tm(e,T5)}function zSe(e){return tm(e,fm)}function sj(e){return tm(e,I5)}function d0(e){const t=tm(e,FC);if(t&&t.typeExpression&&t.typeExpression.type)return t}function p0(e){let t=tm(e,FC);return!t&&No(e)&&(t=un(r2(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function IL(e){const t=Yre(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=d0(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(Ap(i)){const o=un(i.members,pI);return o&&o.type}if(Ah(i)||rR(i))return i.type}}function xL(e,t){var o;var r;if(!mk(e))return et;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){const s=rU(e,t);N.assert(s.length<2||s[0]!==s[1]),i=qi(s,l=>r_(l)?l.tags:l),t||((o=e.jsDoc)!=null||(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function f0(e){return xL(e,!1)}function BSe(e){return xL(e,!0)}function tm(e,t,r){return un(xL(e,r),t)}function w6(e,t){return f0(e).filter(t)}function GSe(e,t){return f0(e).filter(r=>r.kind===t)}function RL(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===328?t.text:JBe(t)).join("")}function JBe(e){const t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?vp(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function My(e){if(D0(e)){if(iR(e.parent)){const t=R2(e.parent);if(t&&Pe(t.tags))return qi(t.tags,r=>fm(r)?r.typeParameters:void 0)}return et}if(om(e))return N.assert(e.parent.kind===327),qi(e.parent.tags,t=>fm(t)?t.typeParameters:void 0);if(e.typeParameters||Ise(e)&&e.typeParameters)return e.typeParameters;if(dr(e)){const t=V3(e);if(t.length)return t;const r=p0(e);if(r&&Ah(r)&&r.typeParameters)return r.typeParameters}return et}function i2(e){return e.constraint?e.constraint:fm(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Zh(e){return e.kind===80||e.kind===81}function O6(e){return e.kind===178||e.kind===177}function W6(e){return Br(e)&&!!(e.flags&64)}function lj(e){return el(e)&&!!(e.flags&64)}function hS(e){return ca(e)&&!!(e.flags&64)}function Xu(e){const t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function SN(e){return Xu(e)&&!vI(e)&&!!e.questionDotToken}function F6(e){return SN(e.parent)&&e.parent.expression===e}function TN(e){return!Xu(e.parent)||SN(e.parent)||e!==e.parent.expression}function cj(e){return e.kind===226&&e.operatorToken.kind===61}function Wg(e){return Cf(e)&&Ue(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Rm(e){return ic(e,8)}function z6(e){return vI(e)&&!!(e.flags&64)}function AN(e){return e.kind===252||e.kind===251}function uj(e){return e.kind===280||e.kind===279}function $re(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function dj(e){return $re(e)||e.kind===307||e.kind===311}function IN(e){return e.kind===355||e.kind===348}function VSe(e){return DL(e.kind)}function DL(e){return e>=166}function pj(e){return e>=0&&e<=165}function kA(e){return pj(e.kind)}function k1(e){return Ls(e,"pos")&&Ls(e,"end")}function xN(e){return 9<=e&&e<=15}function w1(e){return xN(e.kind)}function fj(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Ly(e){return 15<=e&&e<=18}function Qre(e){return Ly(e.kind)}function B6(e){const t=e.kind;return t===17||t===18}function wA(e){return rp(e)||$u(e)}function NL(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function Zre(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function m0(e){return NL(e)||Zre(e)}function mj(e){return e.kind===11||Ly(e.kind)}function eie(e){return La(e)||Ue(e)}function ul(e){var t;return Ue(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function gS(e){var t;return Qi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function CL(e){const t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function ud(e){return(qo(e)||WA(e))&&Qi(e.name)}function o2(e){return Br(e)&&Qi(e.name)}function Wv(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function RN(e){return!!(XA(e)&31)}function _j(e){return RN(e)||e===126||e===164||e===129}function Ra(e){return Wv(e.kind)}function ep(e){const t=e.kind;return t===166||t===80}function pc(e){const t=e.kind;return t===80||t===81||t===11||t===9||t===167}function vS(e){const t=e.kind;return t===80||t===206||t===207}function ta(e){return!!e&&OA(e.kind)}function a2(e){return!!e&&(OA(e.kind)||Pl(e))}function Js(e){return e&&jSe(e.kind)}function DN(e){return e.kind===112||e.kind===97}function jSe(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function OA(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return jSe(e)}}function hj(e){return io(e)||O_(e)||Yo(e)&&ta(e.parent)}function nu(e){const t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function di(e){return e&&(e.kind===263||e.kind===231)}function ky(e){return e&&(e.kind===177||e.kind===178)}function Fd(e){return qo(e)&&P_(e)}function tie(e){return dr(e)&&E7(e)?(!j1(e)||!jy(e.expression))&&!NS(e,!0):e.parent&&di(e.parent)&&qo(e)&&!P_(e)}function WA(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function USe(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function dl(e){return Ra(e)||Au(e)}function yS(e){const t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function G6(e){return yS(e)||nu(e)}function Fg(e){const t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function Xi(e){return BU(e.kind)}function nie(e){switch(e.kind){case 184:case 185:return!0}return!1}function na(e){if(e){const t=e.kind;return t===207||t===206}return!1}function NN(e){const t=e.kind;return t===209||t===210}function V6(e){const t=e.kind;return t===208||t===232}function PL(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function rie(e){return Wi(e)||No(e)||LL(e)||kL(e)}function ML(e){return gj(e)||vj(e)}function gj(e){switch(e.kind){case 206:case 210:return!0}return!1}function LL(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function vj(e){switch(e.kind){case 207:case 209:return!0}return!1}function kL(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Wc(e,!0)}function iie(e){const t=e.kind;return t===211||t===166||t===205}function oie(e){const t=e.kind;return t===211||t===166}function yj(e){return O1(e)||Z1(e)}function O1(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function I_(e){return e.kind===213||e.kind===214}function FA(e){const t=e.kind;return t===228||t===15}function tp(e){return HSe(Rm(e).kind)}function HSe(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function bj(e){return qSe(Rm(e).kind)}function qSe(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return HSe(e)}}function aie(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function sie(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return w1(e)}}function bt(e){return KBe(Rm(e).kind)}function KBe(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return qSe(e)}}function bS(e){const t=e.kind;return t===216||t===234}function JSe(e){return HH(e)||v5(e)}function wy(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&wy(e.statement,t)}return!1}function lie(e){return zl(e)||rc(e)}function cie(e){return St(e,lie)}function j6(e){return!UL(e)&&!zl(e)&&!Qr(e,32)&&!Ou(e)}function wL(e){return UL(e)||zl(e)||Qr(e,32)}function s2(e){return e.kind===249||e.kind===250}function U6(e){return Yo(e)||bt(e)}function Ej(e){return Yo(e)}function Af(e){return Xc(e)||bt(e)}function uie(e){const t=e.kind;return t===268||t===267||t===80}function KSe(e){const t=e.kind;return t===268||t===267}function XSe(e){const t=e.kind;return t===80||t===267}function Sj(e){const t=e.kind;return t===275||t===274}function OL(e){return e.kind===267||e.kind===266}function x_(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function hh(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function XBe(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function die(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function pie(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function Yu(e){return e.kind===168?e.parent&&e.parent.kind!==352||dr(e):XBe(e.kind)}function fie(e){return die(e.kind)}function WL(e){return pie(e.kind)}function $i(e){const t=e.kind;return pie(t)||die(t)||YBe(e)}function YBe(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!G1(e)}function mie(e){const t=e.kind;return pie(t)||die(t)||t===241}function _ie(e){const t=e.kind;return t===283||t===166||t===80}function CN(e){const t=e.kind;return t===110||t===80||t===211||t===295}function FL(e){const t=e.kind;return t===284||t===294||t===285||t===12||t===288}function H6(e){const t=e.kind;return t===291||t===293}function hie(e){const t=e.kind;return t===11||t===294}function dd(e){const t=e.kind;return t===286||t===285}function q6(e){const t=e.kind;return t===296||t===297}function l2(e){return e.kind>=316&&e.kind<=357}function J6(e){return e.kind===327||e.kind===326||e.kind===328||zA(e)||c2(e)||XS(e)||D0(e)}function c2(e){return e.kind>=334&&e.kind<=357}function Fv(e){return e.kind===178}function Oy(e){return e.kind===177}function zp(e){if(!mk(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function K6(e){return!!e.type}function Wy(e){return!!e.initializer}function ES(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function Tj(e){return e.kind===291||e.kind===293||Fg(e)}function X6(e){return e.kind===183||e.kind===233}function gie(e){let t=vie;for(const r of e){if(!r.length)continue;let i=0;for(;i<r.length&&i<t&&Og(r.charCodeAt(i));i++);if(i<t&&(t=i),t===0)return 0}return t===vie?void 0:t}function hs(e){return e.kind===11||e.kind===15}function zA(e){return e.kind===331||e.kind===332||e.kind===333}function Aj(e){const t=il(e.parameters);return!!t&&eg(t)}function eg(e){const t=i_(e)?e.typeExpression&&e.typeExpression.type:e.type;return e.dotDotDotToken!==void 0||!!t&&t.kind===325}function YSe(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function Ij(e,t){t!=null||(t=Jn(e));const r=Lo(e);if(r&&r.kind===169){const o=r.parent.parameters.indexOf(r),s=o>0?r.parent.parameters[o-1]:void 0,l=t.text,u=s?Ro(a0(l,Wa(l,s.end+1,!1,!0)),$h(l,e.pos)):a0(l,Wa(l,e.pos,!1,!0));return St(u)&&YSe(rs(u),t)}const i=r&&Uj(r,t);return!!Ve(i,o=>YSe(o,t))}var zL,xj,vie,$Be=S({"src/compiler/utilitiesPublic.ts"(){ia(),zL=TL(Eu(0,0),0),xj=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],vie=1073741823}});function gl(e,t){const r=e.declarations;if(r){for(const i of r)if(i.kind===t)return i}}function yie(e,t){return Vn(e.declarations||et,r=>r.kind===t)}function pa(e){const t=new Map;if(e)for(const r of e)t.set(r.escapedName,r);return t}function gh(e){return(e.flags&33554432)!==0}function QBe(){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&&Og(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:is,decreaseIndent:is,clear:()=>e=""}}function Y6(e,t){return e.configFilePath!==t.configFilePath||bie(e,t)}function bie(e,t){return u2(e,t,V5)}function Eie(e,t){return u2(e,t,wq)}function u2(e,t,r){return e!==t&&r.some(i=>!_7(i7(e,i),i7(t,i)))}function Sie(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(io(e))return;e=e.parent}}function qc(e,t){const r=e.entries();for(const[i,o]of r){const s=t(o,i);if(s)return s}}function vh(e,t){const r=e.keys();for(const i of r){const o=t(i);if(o)return o}}function $6(e,t){e.forEach((r,i)=>{t.set(i,r)})}function PN(e){const t=Uk.getText();try{return e(Uk),Uk.getText()}finally{Uk.clear(),Uk.writeKeyword(t)}}function BL(e){return e.end-e.pos}function Rj(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Tie(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&&ZBe(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function Q6(e,t,r,i,o){var s;const l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,u=l&&(_d(t.getCompilerOptions())===2?[m.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[l]]:[m.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[l,l.includes(Nh+"@types/")?`@types/${gR(o)}`:o]]),p=u?jo(void 0,u[0],...u[1]):t.typesPackageExists(o)?jo(void 0,m.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o,gR(o)):t.packageBundlesTypes(o)?jo(void 0,m.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o,r):jo(void 0,m.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,gR(o));return p&&(p.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),p}function ZBe(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function Z6({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function Fy(e){return`${Z6(e)}@${e.version}`}function Aie(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 Dj(e,t,r,i){N.assert(e.length===t.length);for(let o=0;o<e.length;o++){const s=t[o],l=e[o],u=r(l);if(u?!s||!i(u,s):s)return!0}return!1}function d2(e){return eGe(e),(e.flags&1048576)!==0}function eGe(e){e.flags&2097152||(((e.flags&262144)!==0||Uo(e,d2))&&(e.flags|=1048576),e.flags|=2097152)}function Jn(e){for(;e&&e.kind!==312;)e=e.parent;return e}function e3(e){return Jn(e.valueDeclaration||Oj(e))}function GL(e,t){return!!e&&(e.scriptKind===1||e.scriptKind===2)&&!e.checkJsDirective&&t===void 0}function Iie(e){switch(e.kind){case 241:case 269:case 248:case 249:case 250:return!0}return!1}function zy(e,t){return N.assert(e>=0),wg(t)[e]}function $Se(e){const t=Jn(e),r=Rs(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function VL(e,t){N.assert(e>=0);const r=wg(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{const s=r[i];let l=r[i+1]-1;for(N.assert(Ku(o.charCodeAt(l)));s<=l&&Ku(o.charCodeAt(l));)l--;return l}}function t3(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function Hl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function nm(e){return!Hl(e)}function xie(e,t){return El(e)?t===e.expression:Pl(e)?t===e.modifiers:Sp(e)?t===e.initializer:qo(e)?t===e.questionToken&&Fd(e):Tc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||jL(e.modifiers,t,dl):ip(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||jL(e.modifiers,t,dl):Ql(e)?t===e.exclamationToken:Wl(e)?t===e.typeParameters||t===e.type||jL(e.typeParameters,t,El):rf(e)?t===e.typeParameters||jL(e.typeParameters,t,El):Tp(e)?t===e.typeParameters||t===e.type||jL(e.typeParameters,t,El):fw(e)?t===e.modifiers||jL(e.modifiers,t,dl):!1}function jL(e,t,r){return!e||Do(t)||!r(t)?!1:Mn(e,t)}function QSe(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 ZSe(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 eTe(e){return Nm(e)||!!(Ka(e)&2097152)}function tg(e,t){return QSe(e,t,Nm)}function Nj(e,t){return QSe(e,t,eTe)}function tTe(e,t){return ZSe(e,t,Nm)}function SS(e,t){return ZSe(e,t,eTe)}function Cj(e,t,r){if(e.charCodeAt(t+1)===47&&t+2<r&&e.charCodeAt(t+2)===47){const i=e.substring(t,r);return!!(aH.test(i)||sH.test(i)||VTe.test(i)||BTe.test(i)||GTe.test(i)||jTe.test(i))}return!1}function n3(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===33}function Rie(e,t){const r=new Map(t.map(l=>[`${Rs(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return Go(r.entries()).filter(([l,u])=>u.type===0&&!i.get(l)).map(([l,u])=>u)}function s(l){return r.has(`${l}`)?(i.set(`${l}`,!0),!0):!1}}function _0(e,t,r){return Hl(e)?e.pos:l2(e)||e.kind===12?Wa((t||Jn(e)).text,e.pos,!1,!0):r&&zp(e)?_0(e.jsDoc[0],t):e.kind===358&&e._children.length>0?_0(e._children[0],t,r):Wa((t||Jn(e)).text,e.pos,!1,!1,tk(e))}function Pj(e,t){const r=!Hl(e)&&km(e)?Mi(e.modifiers,Au):void 0;return r?Wa((t||Jn(e)).text,r.end):_0(e,t)}function W1(e,t,r=!1){return MN(e.text,t,r)}function tGe(e){return!!jn(e,pE)}function r3(e){return!!(rc(e)&&e.exportClause&&xh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function MN(e,t,r=!1){if(Hl(t))return"";let i=e.substring(r?t.pos:Wa(e,t.pos),t.end);return tGe(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(`
`)),i}function bc(e,t=!1){return W1(Jn(e),e,t)}function nGe(e){return e.pos}function p2(e,t){return Nv(e,t,nGe,al)}function Ka(e){const t=e.emitNode;return t&&t.flags||0}function Dm(e){const t=e.emitNode;return t&&t.internalFlags||0}function Die(e,t,r){var i;if(t&&rGe(e,r))return W1(t,e);switch(e.kind){case 11:{const o=r&2?EU:r&1||Ka(e)&16777216?ag:Ik;return e.singleQuote?"'"+o(e.text,39)+"'":'"'+o(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const o=r&1||Ka(e)&16777216?ag:Ik,s=(i=e.rawText)!=null?i:yU(o(e.text,96));switch(e.kind){case 15:return"`"+s+"`";case 16:return"`"+s+"${";case 17:return"}"+s+"${";case 18:return"}"+s+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return N.fail(`Literal kind '${e.kind}' not accounted for.`)}function rGe(e,t){if(Zs(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(Ep(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!c5(e)}function Nie(e){return wo(e)?'"'+Ik(e)+'"':""+e}function Cie(e){return dc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function Mj(e){return(Ov(e)&7)!==0||Lj(e)}function Lj(e){const t=C_(e);return t.kind===260&&t.parent.kind===299}function Ou(e){return nc(e)&&(e.name.kind===11||R_(e))}function i3(e){return nc(e)&&e.name.kind===11}function kj(e){return nc(e)&&La(e.name)}function Pie(e){return nc(e)||Ue(e)}function LN(e){return iGe(e.valueDeclaration)}function iGe(e){return!!e&&e.kind===267&&!e.body}function Mie(e){return e.kind===312||e.kind===267||a2(e)}function R_(e){return!!(e.flags&2048)}function F1(e){return Ou(e)&&wj(e)}function wj(e){switch(e.parent.kind){case 312:return mc(e.parent);case 268:return Ou(e.parent.parent)&&io(e.parent.parent.parent)&&!mc(e.parent.parent.parent)}return!1}function Oj(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!F1(r)&&!(nc(r)&&R_(r)))}function oGe(e){return e===1||e===100||e===199}function BA(e,t){return mc(e)||oGe(Wu(t))&&!!e.commonJsModuleIndicator}function Wj(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:md(t,"alwaysStrict")||Ese(e.statements)?!0:mc(e)||dm(t)?Wu(t)>=5?!0:!t.noImplicitUseStrict:!1}function Fj(e){return!!(e.flags&33554432)||Qr(e,128)}function zj(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!a2(t)}return!1}function Bj(e){switch(N.type(e),e.kind){case 345:case 353:case 330:return!0;default:return Gj(e)}}function Gj(e){switch(N.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function TS(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Lie(e){return TS(e)||V1(e)}function o3(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function kie(e){return UL(e)||nc(e)||dg(e)||Gp(e)}function UL(e){return TS(e)||rc(e)}function Vj(e){return jn(e.parent,t=>!!(eJ(t)&1))}function yh(e){return jn(e.parent,t=>zj(t,t.parent))}function wie(e,t){let r=yh(e);for(;r;)t(r),r=yh(r)}function ks(e){return!e||BL(e)===0?"(Missing)":bc(e)}function Oie(e){return e.declaration?ks(e.declaration.parameters[0].name):void 0}function HL(e){return e.kind===167&&!nf(e.expression)}function kN(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return bl(e.text);case 167:return nf(e.expression)?bl(e.expression.text):void 0;case 295:return tI(e);default:return N.assertNever(e)}}function f2(e){return N.checkDefined(kN(e))}function vp(e){switch(e.kind){case 110:return"this";case 81:case 80:return BL(e)===0?Rr(e):bc(e);case 166:return vp(e.left)+"."+vp(e.right);case 211:return Ue(e.name)||Qi(e.name)?vp(e.expression)+"."+vp(e.name):N.assertNever(e.name);case 318:return vp(e.left)+vp(e.right);case 295:return vp(e.namespace)+":"+vp(e.name);default:return N.assertNever(e)}}function Fr(e,t,...r){const i=Jn(e);return rm(i,e,t,...r)}function m2(e,t,r,...i){const o=Wa(e.text,t.pos);return ru(e,o,t.end-o,r,...i)}function rm(e,t,r,...i){const o=AS(e,t);return ru(e,o.start,o.length,r,...i)}function zg(e,t,r,i){const o=AS(e,t);return a3(e,o.start,o.length,r,i)}function qL(e,t,r,i){const o=Wa(e.text,t.pos);return a3(e,o,t.end-o,r,i)}function Wie(e,t,r){N.assertGreaterThanOrEqual(t,0),N.assertGreaterThanOrEqual(r,0),N.assertLessThanOrEqual(t,e.length),N.assertLessThanOrEqual(t+r,e.length)}function a3(e,t,r,i,o){return Wie(e.text,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o}}function jj(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 Fie(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function zie(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function bh(e,t){const r=wv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenStart();return yc(i,r.getTokenEnd())}function Bie(e,t){const r=wv(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function aGe(e,t){const r=Wa(e.text,t.pos);if(t.body&&t.body.kind===241){const{line:i}=Rs(e,t.body.pos),{line:o}=Rs(e,t.body.end);if(i<o)return Eu(r,VL(i,e)-r+1)}return yc(r,t.end)}function AS(e,t){let r=t;switch(t.kind){case 312:{const s=Wa(e.text,0,!1);return s===e.text.length?Eu(0,0):bh(e,s)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:r=t.name;break;case 219:return aGe(e,t);case 296:case 297:{const s=Wa(e.text,t.pos),l=t.statements.length>0?t.statements[0].pos:t.end;return yc(s,l)}case 253:case 229:{const s=Wa(e.text,t.pos);return bh(e,s)}case 238:{const s=Wa(e.text,t.expression.end);return bh(e,s)}case 357:{const s=Wa(e.text,t.tagName.pos);return bh(e,s)}}if(r===void 0)return bh(e,t.pos);N.assert(!r_(r));const i=Hl(r),o=i||sI(t)?r.pos:Wa(e.text,r.pos);return i?(N.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),N.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(N.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),N.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),yc(o,r.end)}function Bp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function im(e){return e.scriptKind===6}function z1(e){return!!(c0(e)&4096)}function s3(e){return!!(c0(e)&8&&!gp(e,e.parent))}function JL(e){return(Ov(e)&7)===6}function KL(e){return(Ov(e)&7)===4}function _2(e){return(Ov(e)&7)===2}function l3(e){return(Ov(e)&7)===1}function IS(e){return e.kind===213&&e.expression.kind===108}function Gp(e){return e.kind===213&&e.expression.kind===102}function h2(e){return CC(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function By(e){return dg(e)&&$y(e.argument)&&La(e.argument.literal)}function Nm(e){return e.kind===244&&e.expression.kind===11}function XL(e){return!!(Ka(e)&2097152)}function c3(e){return XL(e)&&Dc(e)}function sGe(e){return Ue(e.name)&&!e.initializer}function u3(e){return XL(e)&&Fl(e)&&Bn(e.declarationList.declarations,sGe)}function Uj(e,t){return e.kind!==12?$h(t.text,e.pos):void 0}function Hj(e,t){const r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Ro(a0(t,e.pos),$h(t,e.pos)):$h(t,e.pos);return Vn(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function ng(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return nTe(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),N.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return nTe(t);case 168:return e===t.constraint;case 352:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return Mn(t.typeArguments,e)}}}return!1}function nTe(e){return A5(e.parent)||TI(e.parent)||of(e.parent)&&!H3(e)}function rTe(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function B1(e,t){return r(e);function r(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return Uo(i,r)}}}function Gie(e,t){return r(e);function r(i){switch(i.kind){case 229:t(i);const o=i.expression;o&&r(o);return;case 266:case 264:case 267:case 265:return;default:if(ta(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else ng(i)||Uo(i,r)}}}function qj(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?uh(e.typeArguments):void 0}function Vie(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function g2(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function jie(e){return g2(e)||ky(e)}function wN(e){return e.parent.kind===261&&e.parent.parent.kind===243}function Uie(e){return dr(e)?za(e.parent)&&vr(e.parent.parent)&&ql(e.parent.parent)===2||d3(e.parent):!1}function d3(e){return dr(e)?vr(e)&&ql(e)===1:!1}function Hie(e){return(Wi(e)?_2(e)&&Ue(e.name)&&wN(e):qo(e)?$N(e)&&Ec(e):Sp(e)&&$N(e))||d3(e)}function qie(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function Jj(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function G1(e){return e&&e.kind===241&&ta(e.parent)}function Cm(e){return e&&e.kind===174&&e.parent.kind===210}function p3(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function Jie(e){return e&&e.kind===1}function iTe(e){return e&&e.kind===0}function v2(e,t,r,i){return Ve(e==null?void 0:e.properties,o=>{if(!Tc(o))return;const s=kN(o.name);return t===s||i&&i===s?r(o):void 0})}function Kie(e,t,r){return v2(e,t,i=>hd(i.initializer)?un(i.initializer.elements,o=>La(o)&&o.text===r):void 0)}function ON(e){if(e&&e.statements.length){const t=e.statements[0].expression;return ni(t,za)}}function f3(e,t,r){return YL(e,t,i=>hd(i.initializer)?un(i.initializer.elements,o=>La(o)&&o.text===r):void 0)}function YL(e,t,r){return v2(ON(e),t,r)}function Vp(e){return jn(e.parent,ta)}function Xie(e){return jn(e.parent,Js)}function du(e){return jn(e.parent,di)}function Yie(e){return jn(e.parent,t=>di(t)||ta(t)?"quit":Pl(t))}function m3(e){return jn(e.parent,a2)}function _3(e){const t=jn(e.parent,r=>di(r)?"quit":Au(r));return t&&di(t.parent)?du(t.parent):du(t!=null?t:e)}function zd(e,t,r){for(N.assert(e.kind!==312);;){if(e=e.parent,!e)return N.fail();switch(e.kind){case 167:if(r&&di(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&nu(e.parent.parent)?e=e.parent.parent:nu(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function $ie(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function h3(e){Ue(e)&&(Nc(e.parent)||Dc(e.parent))&&e.parent.name===e&&(e=e.parent);const t=zd(e,!0,!1);return io(t)}function Qie(e){const t=zd(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function $L(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&nu(e.parent.parent)?e=e.parent.parent:nu(e.parent)&&(e=e.parent);break}}}function xS(e){if(e.kind===218||e.kind===219){let t=e,r=e.parent;for(;r.kind===217;)t=r,r=r.parent;if(r.kind===213&&r.expression===t)return r}}function oTe(e){return e.kind===108||Bd(e)}function Bd(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function QL(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function g3(e){var t;return!!e&&Wi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function Zie(e){return!!e&&(ip(e)||Tc(e))&&vr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function ZL(e){switch(e.kind){case 183:return e.typeName;case 233:return Jl(e.expression)?e.expression:void 0;case 80:case 166:return e}}function v3(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function y3(e,t,r,i){if(e&&cd(t)&&Qi(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Nc(r):di(r)&&!Y1(t)&&!RU(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Nc(r):di(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&J1(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function y2(e,t,r,i){return If(t)&&y3(e,t,r,i)}function ek(e,t,r,i){return y2(e,t,r,i)||WN(e,t,r)}function WN(e,t,r){switch(t.kind){case 263:return St(t.members,i=>ek(e,i,t,r));case 231:return!e&&St(t.members,i=>ek(e,i,t,r));case 174:case 178:case 176:return St(t.parameters,i=>y2(e,i,t,r));default:return!1}}function zv(e,t){if(y2(e,t))return!0;const r=sg(t);return!!r&&WN(e,r,t)}function Kj(e,t,r){let i;if(ky(t)){const{firstAccessor:o,secondAccessor:s,setAccessor:l}=wS(r.members,t),u=If(o)?o:s&&If(s)?s:void 0;if(!u||t!==u)return!1;i=l==null?void 0:l.parameters}else Ql(t)&&(i=t.parameters);if(y2(e,t,r))return!0;if(i){for(const o of i)if(!K1(o)&&y2(e,o,t,r))return!0}return!1}function Xj(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Xj(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function b2(e){const{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function rg(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!of(e.parent)&&!TI(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||zA(e.parent)||WC(e.parent)||R0(e.parent)||b2(e);case 318:for(;R0(e.parent);)e=e.parent;return e.parent.kind===186||zA(e.parent)||WC(e.parent)||R0(e.parent)||b2(e);case 81:return vr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||zA(e.parent)||WC(e.parent)||R0(e.parent)||b2(e))return!0;case 9:case 10:case 11:case 15:case 110:return b3(e);default:return!1}}function b3(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:const i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!ng(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return rg(t)}}function E3(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function eoe(e){return xh(e)&&!!e.parent.moduleSpecifier}function h0(e){return e.kind===271&&e.moduleReference.kind===283}function FN(e){return N.assert(h0(e)),e.moduleReference.expression}function Yj(e){return V1(e)&&z2(e.initializer).arguments[0]}function E2(e){return e.kind===271&&e.moduleReference.kind!==283}function pd(e){return dr(e)}function aTe(e){return!dr(e)}function dr(e){return!!e&&!!(e.flags&524288)}function S3(e){return!!e&&!!(e.flags&134217728)}function $j(e){return!im(e)}function tk(e){return!!e&&!!(e.flags&16777216)}function T3(e){return Cf(e)&&Ue(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Ad(e,t){if(e.kind!==213)return!1;const{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;const o=i[0];return!t||hs(o)}function A3(e){return sTe(e,!1)}function V1(e){return sTe(e,!0)}function toe(e){return os(e)&&V1(e.parent.parent)}function sTe(e,t){return Wi(e)&&!!e.initializer&&Ad(t?z2(e.initializer):e.initializer,!0)}function Qj(e){return Fl(e)&&e.declarationList.declarations.length>0&&Bn(e.declarationList.declarations,t=>A3(t))}function nk(e){return e===39||e===34}function I3(e,t){return W1(t,e).charCodeAt(0)===34}function zN(e){return vr(e)||js(e)||Ue(e)||ca(e)}function rk(e){return dr(e)&&e.initializer&&vr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Jl(e.name)&&S2(e.name,e.initializer.left)?e.initializer.right:e.initializer}function ik(e){const t=rk(e);return t&&g0(t,jy(e.name))}function lGe(e,t){return Ve(e.properties,r=>Tc(r)&&Ue(r.name)&&r.name.escapedText==="value"&&r.initializer&&g0(r.initializer,t))}function GA(e){if(e&&e.parent&&vr(e.parent)&&e.parent.operatorToken.kind===64){const t=jy(e.parent.left);return g0(e.parent.right,t)||cGe(e.parent.left,e.parent.right,t)}if(e&&ca(e)&&DS(e)){const t=lGe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function g0(e,t){if(ca(e)){const r=Ss(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||za(e)&&(e.properties.length===0||t))return e}function cGe(e,t,r){const i=vr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&g0(t.right,r);if(i&&S2(e,t.left))return i}function noe(e){const t=Wi(e.parent)?e.parent.name:vr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&g0(e.right,jy(t))&&Jl(t)&&S2(t,e.left)}function Zj(e){if(vr(e.parent)){const t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&vr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Ue(t.left))return t.left}else if(Wi(e.parent))return e.parent.name}function S2(e,t){return N_(e)&&N_(t)?am(e)===am(t):Zh(e)&&x3(t)&&(t.expression.kind===110||Ue(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?S2(e,sk(t)):x3(e)&&x3(t)?Bg(e)===Bg(t)&&S2(e.expression,t.expression):!1}function ok(e){for(;Wc(e,!0);)e=e.right;return e}function RS(e){return Ue(e)&&e.escapedText==="exports"}function eU(e){return Ue(e)&&e.escapedText==="module"}function ig(e){return(Br(e)||ak(e))&&eU(e.expression)&&Bg(e)==="exports"}function ql(e){const t=uGe(e);return t===5||dr(e)?t:0}function DS(e){return Pe(e.arguments)===3&&Br(e.expression)&&Ue(e.expression.expression)&&Rr(e.expression.expression)==="Object"&&Rr(e.expression.name)==="defineProperty"&&nf(e.arguments[1])&&NS(e.arguments[0],!0)}function x3(e){return Br(e)||ak(e)}function ak(e){return el(e)&&nf(e.argumentExpression)}function j1(e,t){return Br(e)&&(!t&&e.expression.kind===110||Ue(e.name)&&NS(e.expression,!0))||R3(e,t)}function R3(e,t){return ak(e)&&(!t&&e.expression.kind===110||Jl(e.expression)||j1(e.expression,!0))}function NS(e,t){return Jl(e)||j1(e,t)}function sk(e){return Br(e)?e.name:e.argumentExpression}function uGe(e){if(ca(e)){if(!DS(e))return 0;const t=e.arguments[0];return RS(t)||ig(t)?8:j1(t)&&Bg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!js(e.left)||dGe(ok(e))?0:NS(e.left.expression,!0)&&Bg(e.left)==="prototype"&&za(tU(e))?6:lk(e.left)}function dGe(e){return gI(e)&&Ep(e.expression)&&e.expression.text==="0"}function D3(e){if(Br(e))return e.name;const t=Ss(e.argumentExpression);return Ep(t)||hs(t)?t:e}function Bg(e){const t=D3(e);if(t){if(Ue(t))return t.escapedText;if(hs(t)||Ep(t))return bl(t.text)}}function lk(e){if(e.expression.kind===110)return 4;if(ig(e))return 2;if(NS(e.expression,!0)){if(jy(e.expression))return 3;let t=e;for(;!Ue(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&Bg(t)==="exports")&&j1(e))return 1;if(NS(e,!0)||el(e)&&k3(e))return 5}return 0}function tU(e){for(;vr(e.right);)e=e.right;return e.right}function ck(e){return vr(e)&&ql(e)===3}function roe(e){return dr(e)&&e.parent&&e.parent.kind===244&&(!el(e)||ak(e))&&!!d0(e.parent)}function uk(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!dr(t)&&!(r.flags&33554432))&&zN(r)&&!zN(t)||r.kind!==t.kind&&Pie(r))&&(e.valueDeclaration=t)}function ioe(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===262||Wi(t)&&t.initializer&&ta(t.initializer)}function T2(e){var t,r;switch(e.kind){case 260:case 208:return(t=jn(e.initializer,i=>Ad(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return ni(e.moduleSpecifier,hs);case 271:return ni((r=ni(e.moduleReference,Rh))==null?void 0:r.expression,hs);case 273:case 280:return ni(e.parent.moduleSpecifier,hs);case 274:case 281:return ni(e.parent.parent.moduleSpecifier,hs);case 276:return ni(e.parent.parent.parent.moduleSpecifier,hs);case 205:return By(e)?e.argument.literal:void 0;default:N.assertNever(e)}}function BN(e){return dk(e)||N.failBadSyntaxKind(e.parent)}function dk(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return Gp(e.parent)||Ad(e.parent,!1)?e.parent:void 0;case 201:return N.assert(La(e)),ni(e.parent.parent,dg);default:return}}function A2(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return By(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return N.assertNever(e)}}function I2(e){switch(e.kind){case 272:return e.importClause&&ni(e.importClause.namedBindings,eb);case 271:return e;case 278:return e.exportClause&&ni(e.exportClause,xh);default:return N.assertNever(e)}}function VA(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function N3(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=eb(e.namedBindings)?t(e.namedBindings):Ve(e.namedBindings.elements,t);if(r)return r}}function jA(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function x2(e){const t=rR(e)?eu(e.parameters):void 0,r=ni(t&&t.name,Ue);return!!r&&r.escapedText==="new"}function om(e){return e.kind===353||e.kind===345||e.kind===347}function pk(e){return om(e)||Lm(e)}function pGe(e){return ou(e)&&vr(e.expression)&&e.expression.operatorToken.kind===64?ok(e.expression):void 0}function lTe(e){return ou(e)&&vr(e.expression)&&ql(e.expression)!==0&&vr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function nU(e){switch(e.kind){case 243:const t=UA(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function UA(e){return Fl(e)?eu(e.declarationList.declarations):void 0}function cTe(e){return nc(e)&&e.body&&e.body.kind===267?e.body:void 0}function fk(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function mk(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function rU(e,t){let r;g2(e)&&Wy(e)&&zp(e.initializer)&&(r=Hr(r,uTe(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(zp(i)&&(r=Hr(r,uTe(e,i.jsDoc))),i.kind===169){r=Hr(r,(t?Fre:r2)(i));break}if(i.kind===168){r=Hr(r,(t?Bre:zre)(i));break}i=iU(i)}return r||et}function uTe(e,t){const r=rs(t);return qi(t,i=>{if(i===r){const o=Vn(i.tags,s=>fGe(e,s));return i.tags===o?[i]:o}else return Vn(i.tags,iR)})}function fGe(e,t){return!(FC(t)||I5(t))||!t.parent||!r_(t.parent)||!Vd(t.parent.parent)||t.parent.parent===e}function iU(e){const t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||cTe(t)||Wc(e))return t;if(t.parent&&(UA(t.parent)===e||Wc(t)))return t.parent;if(t.parent&&t.parent.parent&&(UA(t.parent.parent)||nU(t.parent.parent)===e||lTe(t.parent.parent)))return t.parent.parent}function _k(e){if(e.symbol)return e.symbol;if(!Ue(e.name))return;const t=e.name.escapedText,r=v0(e);if(!r)return;const i=un(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function C3(e){if(r_(e.parent)&&e.parent.tags){const t=un(e.parent.tags,om);if(t)return t}return v0(e)}function oU(e){return w6(e,iR)}function v0(e){const t=y0(e);if(t)return Sp(t)&&t.type&&ta(t.type)?t.type:ta(t)?t:void 0}function y0(e){const t=CS(e);if(t)return lTe(t)||pGe(t)||nU(t)||UA(t)||cTe(t)||t}function CS(e){const t=R2(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===il(r.jsDoc))return r}function R2(e){return jn(e.parent,r_)}function ooe(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&un(r,i=>i.name.escapedText===t)}function dTe(e){return!!e.typeArguments}function aoe(e){let t=e.parent;for(;;){switch(t.kind){case 226:const r=t,i=r.operatorToken.kind;return Vv(i)&&r.left===e?r:void 0;case 224:case 225:const o=t,s=o.operator;return s===46||s===47?o:void 0;case 249:case 250:const l=t;return l.initializer===e?l:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function HA(e){const t=aoe(e);if(!t)return 0;switch(t.kind){case 226:const r=t.operatorToken.kind;return r===64||QN(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function og(e){return!!aoe(e)}function mGe(e){const t=Ss(e.right);return t.kind===226&&uq(t.operatorToken.kind)}function aU(e){const t=aoe(e);return!!t&&Wc(t,!0)&&mGe(t)}function soe(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function loe(e){return Us(e)||Ks(e)||WA(e)||Dc(e)||Wl(e)}function pTe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function hk(e){return pTe(e,196)}function Bv(e){return pTe(e,217)}function coe(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function gk(e){for(;GS(e);)e=e.type;return e}function Ss(e,t){return ic(e,t?17:1)}function sU(e){return e.kind!==211&&e.kind!==212?!1:(e=Bv(e.parent),e&&e.kind===220)}function U1(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Gg(e){return!io(e)&&!na(e)&&Yu(e.parent)&&e.parent.name===e}function GN(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(ss(t))return t.parent;case 80:if(Yu(t))return t.name===e?t:void 0;if(xd(t)){const r=t.parent;return i_(r)&&r.name===t?r:void 0}else{const r=t.parent;return vr(r)&&ql(r)!==0&&(r.left.symbol||r.symbol)&&Oo(r)===e?r:void 0}case 81:return Yu(t)&&t.name===e?t:void 0;default:return}}function vk(e){return nf(e)&&e.parent.kind===167&&Yu(e.parent.parent)}function uoe(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function fTe(e){return e.kind===271||e.kind===270||e.kind===273&&!!e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&D2(e)?!0:dr(e)&&(vr(e)&&ql(e)===2&&D2(e)||Br(e)&&vr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&yk(e.parent.right))}function lU(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return lU(e)}}function yk(e){return Jl(e)||iu(e)}function D2(e){const t=cU(e);return yk(t)}function cU(e){return zl(e)?e.expression:e.right}function doe(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function D_(e){const t=H1(e);if(t&&dr(e)){const r=Vre(e);if(r)return r.class}return t}function H1(e){const t=bk(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function N2(e){if(dr(e))return jre(e).map(t=>t.class);{const t=bk(e.heritageClauses,119);return t==null?void 0:t.types}}function VN(e){return gd(e)?jN(e)||et:di(e)&&Ro(NA(D_(e)),N2(e))||et}function jN(e){const t=bk(e.heritageClauses,96);return t?t.types:void 0}function bk(e,t){if(e){for(const r of e)if(r.token===t)return r}}function b0(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Gd(e){return 83<=e&&e<=165}function uU(e){return 19<=e&&e<=79}function P3(e){return Gd(e)||uU(e)}function M3(e){return 128<=e&&e<=165}function dU(e){return Gd(e)&&!M3(e)}function mTe(e){return 119<=e&&e<=127}function qA(e){const t=M1(e);return t!==void 0&&dU(t)}function _Te(e){const t=M1(e);return t!==void 0&&Gd(t)}function pU(e){const t=u0(e);return!!t&&!M3(t)}function C2(e){return 2<=e&&e<=7}function Jc(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Qr(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function UN(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&Qr(e,1024)}return!1}function nf(e){return hs(e)||Ep(e)}function L3(e){return Zy(e)&&(e.operator===40||e.operator===41)&&Ep(e.operand)}function Gy(e){const t=Oo(e);return!!t&&k3(t)}function k3(e){if(!(e.kind===167||e.kind===212))return!1;const t=el(e)?Ss(e.argumentExpression):e.expression;return!nf(t)&&!L3(t)}function PS(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return bl(e.text);case 167:const t=e.expression;return nf(t)?bl(t.text):L3(t)?t.operator===41?ma(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return tI(e);default:return N.assertNever(e)}}function N_(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function am(e){return Zh(e)?Rr(e):n_(e)?bC(e):e.text}function HN(e){return Zh(e)?e.escapedText:n_(e)?tI(e):bl(e.text)}function hTe(e){return`__@${Ia(e)}@${e.escapedName}`}function Ek(e,t){return`__#${Ia(e)}@${t}`}function Sk(e){return ho(e.escapedName,"__@")}function poe(e){return ho(e.escapedName,"__#")}function gTe(e){return e.kind===80&&e.escapedText==="Symbol"}function foe(e){return Ue(e)?Rr(e)==="__proto__":La(e)&&e.text==="__proto__"}function qN(e,t){switch(e=ic(e),e.kind){case 231:if(SJ(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function fU(e){switch(e.kind){case 303:return!foe(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Ue(e.name)&&!!e.initializer;case 169:return Ue(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Ue(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Ue(e.left)}break;case 277:return!0}return!1}function yp(e,t){if(!fU(e))return!1;switch(e.kind){case 303:return qN(e.initializer,t);case 304:return qN(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return qN(e.initializer,t);case 226:return qN(e.right,t);case 277:return qN(e.expression,t)}}function mU(e){return e.escapedText==="push"||e.escapedText==="unshift"}function q1(e){return C_(e).kind===169}function C_(e){for(;e.kind===208;)e=e.parent.parent;return e}function _U(e){const t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function Zs(e){return e_(e.pos)||e_(e.end)}function vTe(e){return Lo(e,io)||e}function hU(e){const t=vU(e),r=e.kind===214&&e.arguments!==void 0;return gU(e.kind,t,r)}function gU(e,t,r){switch(e){case 214:return r?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function JN(e){const t=vU(e),r=e.kind===214&&e.arguments!==void 0;return Tk(e.kind,t,r)}function vU(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function Tk(e,t,r){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return Ak(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return r?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function Ak(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function P2(e){return Vn(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function M2(){let e=[];const t=[],r=new Map;let i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:u};function o(p){let v;if(p.file?v=r.get(p.file.fileName):v=e,!v)return;const f=Nv(v,p,ol,t7);if(f>=0)return v[f]}function s(p){let v;p.file?(v=r.get(p.file.fileName),v||(v=[],r.set(p.file.fileName,v),Ay(t,p.file.fileName,Ju))):(i&&(i=!1,e=e.slice()),v=e),Ay(v,p,t7)}function l(){return i=!0,e}function u(p){if(p)return r.get(p)||[];const v=Zd(t,f=>r.get(f));return e.length&&v.unshift(...e),v}}function yU(e){return e.replace(UTe,"\\${")}function moe(e){return!!((e.templateFlags||0)&2048)}function bU(e){return e&&!!(lI(e)?moe(e):moe(e.head)||St(e.templateSpans,t=>moe(t.literal)))}function yTe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function _Ge(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return KTe.get(e)||yTe(e.charCodeAt(0))}function ag(e,t){const r=t===96?JTe:t===39?qTe:HTe;return e.replace(r,_Ge)}function Ik(e,t){return e=ag(e,t),Aae.test(e)?e.replace(Aae,r=>yTe(r.charCodeAt(0))):e}function hGe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function gGe(e){return e.charCodeAt(0)===0?"&#0;":$Te.get(e)||hGe(e.charCodeAt(0))}function EU(e,t){const r=t===39?YTe:XTe;return e.replace(r,gGe)}function sm(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&vGe(e.charCodeAt(0))?e.substring(1,t-1):e}function vGe(e){return e===39||e===34||e===96}function L2(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function w3(e){const t=EC[1];for(let r=EC.length;r<=e;r++)EC.push(EC[r-1]+t);return EC[e]}function k2(){return EC[1].length}function xk(e){var t,r,i,o,s,l=!1;function u(C){const W=LA(C);W.length>1?(o=o+W.length-1,s=t.length-C.length+rs(W),i=s-t.length===0):i=!1}function p(C){C&&C.length&&(i&&(C=w3(r)+C,i=!1),t+=C,u(C))}function v(C){C&&(l=!1),p(C)}function f(C){C&&(l=!0),p(C)}function b(){t="",r=0,i=!0,o=0,s=0,l=!1}function A(C){C!==void 0&&(t+=C,u(C),l=!1)}function I(C){C&&C.length&&v(C)}function R(C){(!i||C)&&(t+=e,o++,s=t.length,i=!0,l=!1)}function M(){return i?t.length:t.length+e.length}return b(),{write:v,rawWrite:A,writeLiteral:I,writeLine:R,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*k2():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&Og(t.charCodeAt(t.length-1)),clear:b,writeKeyword:v,writeOperator:v,writeParameter:v,writeProperty:v,writePunctuation:v,writeSpace:v,writeStringLiteral:v,writeSymbol:(C,W)=>v(C),writeTrailingSemicolon:v,writeComment:f,getTextPosWithWriteLine:M}}function SU(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 w2(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function Gv(e){return ku(w2(e))}function O3(e,t,r){return t.moduleName||TU(e,t.fileName,r&&r.fileName)}function bTe(e,t){return e.getCanonicalFileName(To(t,e.getCurrentDirectory()))}function _oe(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const o=A2(r);if(!(o&&hs(o)&&!Fp(o.text)&&!bTe(e,i.path).includes(bTe(e,Hc(e.getCommonSourceDirectory())))))return O3(e,i)}function TU(e,t,r){const i=p=>e.getCanonicalFileName(p),o=ll(r?ii(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=To(t,e.getCurrentDirectory()),l=MA(o,s,o,i,!1),u=Id(l);return r?P1(u):u}function hoe(e,t,r){const i=t.getCompilerOptions();let o;return i.outDir?o=Id(B3(e,t,i.outDir)):o=Id(e),o+r}function goe(e,t){return W3(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function W3(e,t,r,i,o){const s=t.declarationDir||t.outDir,l=s?G3(e,s,r,i,o):e,u=F3(l);return Id(l)+u}function F3(e){return Rc(e,[".mjs",".mts"])?".d.mts":Rc(e,[".cjs",".cts"])?".d.cts":Rc(e,[".json"])?".d.json.ts":".d.ts"}function voe(e){return Rc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Rc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Rc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Bs(e){return e.outFile||e.out}function z3(e,t){var i;var r;if(!!e.paths)return(i=e.baseUrl)!=null?i:N.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function AU(e,t,r){const i=e.getCompilerOptions();if(Bs(i)){const o=Wu(i),s=i.emitDeclarationOnly||o===2||o===4;return Vn(e.getSourceFiles(),l=>(s||!mc(l))&&MS(l,e,r))}else{const o=t===void 0?e.getSourceFiles():[t];return Vn(o,s=>MS(s,e,r))}}function MS(e,t,r){const i=t.getCompilerOptions();if(i.noEmitForJsFiles&&pd(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!im(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(Bs(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){const o=To(cP(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=G3(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(kg(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function B3(e,t,r){return G3(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function G3(e,t,r,i,o){let s=To(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,$r(t,s)}function KN(e,t,r,i,o,s,l){e.writeFile(r,i,o,u=>{t.add($l(m.Could_not_write_file_0_Colon_1,r,u))},s,l)}function ETe(e,t,r){if(e.length>_h(e)&&!r(e)){const i=ii(e);ETe(i,t,r),t(e)}}function IU(e,t,r,i,o,s){try{i(e,t,r)}catch{ETe(ii(va(e)),o,s),i(e,t,r)}}function XN(e,t){const r=wg(e);return hN(r,t)}function LS(e,t){return hN(e,t)}function sg(e){return un(e.members,t=>Wl(t)&&nm(t.body))}function YN(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&K1(e.parameters[0]);return e.parameters[t?1:0]}}function yoe(e){const t=YN(e);return t&&t.type}function J1(e){if(e.parameters.length&&!D0(e)){const t=e.parameters[0];if(K1(t))return t}}function K1(e){return X1(e.name)}function X1(e){return!!e&&e.kind===80&&xU(e)}function kS(e){return!!jn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function JA(e){if(!X1(e))return!1;for(;xd(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function xU(e){return e.escapedText==="this"}function wS(e,t){let r,i,o,s;return Gy(t)?(r=t,t.kind===177?o=t:t.kind===178?s=t:N.fail("Accessor has wrong kind")):Ve(e,l=>{if(ky(l)&&la(l)===la(t)){const u=PS(l.name),p=PS(t.name);u===p&&(r?i||(i=l):r=l,l.kind===177&&!o&&(o=l),l.kind===178&&!s&&(s=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function Su(e){if(!dr(e)&&Dc(e))return;const t=e.type;return t||!dr(e)?t:IN(e)?e.typeExpression&&e.typeExpression.type:p0(e)}function boe(e){return e.type}function lm(e){return D0(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(dr(e)?IL(e):void 0)}function V3(e){return qi(f0(e),t=>yGe(t)?t.typeParameters:void 0)}function yGe(e){return fm(e)&&!(e.parent.kind===327&&(e.parent.tags.some(om)||e.parent.tags.some(iR)))}function Eoe(e){const t=YN(e);return t&&Su(t)}function Soe(e,t,r,i){Toe(e,t,r.pos,i)}function Toe(e,t,r,i){i&&i.length&&r!==i[0].pos&&LS(e,r)!==LS(e,i[0].pos)&&t.writeLine()}function Aoe(e,t,r,i){r!==i&&LS(e,r)!==LS(e,i)&&t.writeLine()}function Ioe(e,t,r,i,o,s,l,u){if(i&&i.length>0){o&&r.writeSpace(" ");let p=!1;for(const v of i)p&&(r.writeSpace(" "),p=!1),u(e,t,r,v.pos,v.end,l),v.hasTrailingNewLine?r.writeLine():p=!0;p&&s&&r.writeSpace(" ")}}function xoe(e,t,r,i,o,s,l){let u,p;if(l?o.pos===0&&(u=Vn($h(e,o.pos),v)):u=$h(e,o.pos),u){const f=[];let b;for(const A of u){if(b){const I=LS(t,b.end);if(LS(t,A.pos)>=I+2)break}f.push(A),b=A}if(f.length){const A=LS(t,rs(f).end);LS(t,Wa(e,o.pos))>=A+2&&(Soe(t,r,o,u),Ioe(e,t,r,f,!1,!0,s,i),p={nodePos:o.pos,detachedCommentEndPos:rs(f).end})}}return p;function v(f){return n3(e,f.pos)}}function O2(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){const l=Zx(t,i),u=t.length;let p;for(let v=i,f=l.line;v<o;f++){const b=f+1===u?e.length+1:t[f+1];if(v!==i){p===void 0&&(p=STe(e,t[l.line],i));const I=r.getIndent()*k2()-p+STe(e,v,b);if(I>0){let R=I%k2();const M=w3((I-R)/k2());for(r.rawWrite(M);R;)r.rawWrite(" "),R--}else r.rawWrite("")}bGe(e,o,r,s,v,b),v=b}}else r.writeComment(e.substring(i,o))}function bGe(e,t,r,i,o,s){const l=Math.min(t,s-1),u=e.substring(o,l).trim();u?(r.writeComment(u),l!==t&&r.writeLine()):r.rawWrite(i)}function STe(e,t,r){let i=0;for(;t<r&&A_(e.charCodeAt(t));t++)e.charCodeAt(t)===9?i+=k2()-i%k2():i++;return i}function j3(e){return fd(e)!==0}function Roe(e){return Vy(e)!==0}function bp(e,t){return!!KA(e,t)}function Qr(e,t){return!!Doe(e,t)}function la(e){return nu(e)&&Ec(e)||Pl(e)}function Ec(e){return Qr(e,256)}function U3(e){return bp(e,16)}function Y1(e){return Qr(e,64)}function RU(e){return Qr(e,128)}function P_(e){return Qr(e,512)}function $N(e){return bp(e,8)}function If(e){return Qr(e,32768)}function KA(e,t){return fd(e)&t}function Doe(e,t){return Vy(e)&t}function Noe(e,t,r){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=DU(e)|536870912),r||t&&dr(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=TTe(e)|268435456),ATe(e.modifierFlagsCache)):EGe(e.modifierFlagsCache))}function fd(e){return Noe(e,!0)}function Coe(e){return Noe(e,!0,!0)}function Vy(e){return Noe(e,!1)}function TTe(e){let t=0;return!!e.parent&&!No(e)&&(dr(e)&&(Ure(e)&&(t|=8388608),Hre(e)&&(t|=16777216),qre(e)&&(t|=33554432),Jre(e)&&(t|=67108864),Kre(e)&&(t|=134217728)),Xre(e)&&(t|=65536)),t}function EGe(e){return e&65535}function ATe(e){return e&131071|(e&260046848)>>>23}function SGe(e){return ATe(TTe(e))}function Poe(e){return DU(e)|SGe(e)}function DU(e){let t=km(e)?M_(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function M_(e){let t=0;if(e)for(const r of e)t|=XA(r.kind);return t}function XA(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function ITe(e){return e===57||e===56}function Moe(e){return ITe(e)||e===54}function QN(e){return e===76||e===77||e===78}function NU(e){return vr(e)&&QN(e.operatorToken.kind)}function Rk(e){return ITe(e)||e===61}function Dk(e){return vr(e)&&Rk(e.operatorToken.kind)}function Vv(e){return e>=64&&e<=79}function CU(e){const t=PU(e);return t&&!t.isImplements?t.class:void 0}function PU(e){if(Kv(e)){if(of(e.parent)&&di(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(TI(e.parent)){const t=y0(e.parent);if(t&&di(t))return{class:t,isImplements:!1}}}}function Wc(e,t){return vr(e)&&(t?e.operatorToken.kind===64:Vv(e.operatorToken.kind))&&tp(e.left)}function xTe(e){return Wc(e.parent)&&e.parent.left===e}function jv(e){if(Wc(e,!0)){const t=e.left.kind;return t===210||t===209}return!1}function H3(e){return CU(e)!==void 0}function Jl(e){return e.kind===80||Nk(e)}function jp(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function ZN(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&ZN(e.expression)||e.kind===217&&ZN(e.expression)}function Nk(e){return Br(e)&&Ue(e.name)&&Jl(e.expression)}function Ck(e){if(Br(e)){const t=Ck(e.expression);if(t!==void 0)return t+"."+vp(e.name)}else if(el(e)){const t=Ck(e.expression);if(t!==void 0&&pc(e.argumentExpression))return t+"."+PS(e.argumentExpression)}else{if(Ue(e))return Ki(e.escapedText);if(n_(e))return bC(e)}}function jy(e){return j1(e)&&Bg(e)==="prototype"}function eC(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function MU(e){return!!e.parent&&(Br(e.parent)&&e.parent.name===e||el(e.parent)&&e.parent.argumentExpression===e)}function Loe(e){return xd(e.parent)&&e.parent.right===e||Br(e.parent)&&e.parent.name===e||R0(e.parent)&&e.parent.right===e}function q3(e){return vr(e)&&e.operatorToken.kind===104}function koe(e){return q3(e.parent)&&e===e.parent.right}function LU(e){return e.kind===210&&e.properties.length===0}function woe(e){return e.kind===209&&e.elements.length===0}function W2(e){if(!(!TGe(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function TGe(e){return e&&Pe(e.declarations)>0&&Qr(e.declarations[0],2048)}function J3(e){return un(nAe,t=>Nl(e,t))}function AGe(e){const t=[],r=e.length;for(let i=0;i<r;i++){const o=e.charCodeAt(i);o<128?t.push(o):o<2048?(t.push(o>>6|192),t.push(o&63|128)):o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(o&63|128)):o<131072?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(o&63|128)):N.assert(!1,"Unexpected code point")}return t}function Ooe(e){let t="";const r=AGe(e);let i=0;const o=r.length;let s,l,u,p;for(;i<o;)s=r[i]>>2,l=(r[i]&3)<<4|r[i+1]>>4,u=(r[i+1]&15)<<2|r[i+2]>>6,p=r[i+2]&63,i+1>=o?u=p=64:i+2>=o&&(p=64),t+=WS.charAt(s)+WS.charAt(l)+WS.charAt(u)+WS.charAt(p),i+=3;return t}function IGe(e){let t="",r=0;const i=e.length;for(;r<i;){const o=e[r];if(o<128)t+=String.fromCharCode(o),r++;else if((o&192)===192){let s=o&63;r++;let l=e[r];for(;(l&192)===128;)s=s<<6|l&63,r++,l=e[r];t+=String.fromCharCode(s)}else t+=String.fromCharCode(o),r++}return t}function Woe(e,t){return e&&e.base64encode?e.base64encode(t):Ooe(t)}function Foe(e,t){if(e&&e.base64decode)return e.base64decode(t);const r=t.length,i=[];let o=0;for(;o<r&&t.charCodeAt(o)!==WS.charCodeAt(64);){const s=WS.indexOf(t[o]),l=WS.indexOf(t[o+1]),u=WS.indexOf(t[o+2]),p=WS.indexOf(t[o+3]),v=(s&63)<<2|l>>4&3,f=(l&15)<<4|u>>2&15,b=(u&3)<<6|p&63;f===0&&u!==0?i.push(v):b===0&&p!==0?i.push(v,f):i.push(v,f,b),o+=4}return IGe(i)}function kU(e,t){const r=wo(t)?t:t.readFile(e);if(!r)return;const i=Tq(e,r);return i.error?void 0:i.config}function tC(e,t){return kU(e,t)||{}}function K3(e){try{return JSON.parse(e)}catch{return}}function Qm(e,t){return!t.directoryExists||t.directoryExists(e)}function Uv(e){switch(e.newLine){case 0:return QTe;case 1:case void 0:return ZTe}}function xf(e,t=e){return N.assert(t>=e||t===-1),{pos:e,end:t}}function X3(e,t){return xf(e.pos,t)}function E0(e,t){return xf(t,e.end)}function Vg(e){const t=km(e)?Mi(e.modifiers,Au):void 0;return t&&!e_(t.end)?E0(e,t.end):e}function L_(e){if(qo(e)||Ql(e))return E0(e,e.name.pos);const t=km(e)?il(e.modifiers):void 0;return t&&!e_(t.end)?E0(e,t.end):Vg(e)}function RTe(e){return e.pos===e.end}function wU(e,t){return xf(e,e+ma(t).length)}function OS(e,t){return Boe(e,e,t)}function Y3(e,t,r){return Rf(nC(e,r,!1),nC(t,r,!1),r)}function zoe(e,t,r){return Rf(e.end,t.end,r)}function Boe(e,t,r){return Rf(nC(e,r,!1),t.end,r)}function Pk(e,t,r){return Rf(e.end,nC(t,r,!1),r)}function OU(e,t,r,i){const o=nC(t,r,i);return gN(r,e.end,o)}function DTe(e,t,r){return gN(r,e.end,t.end)}function Goe(e,t){return!Rf(e.pos,e.end,t)}function Rf(e,t,r){return gN(r,e,t)===0}function nC(e,t,r){return e_(e.pos)?-1:Wa(t.text,e.pos,!1,r)}function Voe(e,t,r,i){const o=Wa(r.text,e,!1,i),s=xGe(o,t,r);return gN(r,s!=null?s:t,o)}function joe(e,t,r,i){const o=Wa(r.text,e,!1,i);return gN(r,e,Math.min(t,o))}function xGe(e,t=0,r){for(;e-- >t;)if(!Og(r.text.charCodeAt(e)))return e}function WU(e){const t=Lo(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function rC(e){return Vn(e.declarations,Mk)}function Mk(e){return Wi(e)&&e.initializer!==void 0}function NTe(e){return e.watch&&Ls(e,"watch")}function Zm(e){e.close()}function Cl(e){return e.flags&33554432?e.links.checkFlags:0}function Df(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&un(e.declarations,Tp)||e.flags&32768&&un(e.declarations,rf)||e.valueDeclaration,i=c0(r);return e.parent&&e.parent.flags&32?i:i&-8}if(Cl(e)&6){const r=e.links.checkFlags,i=r&1024?2:r&256?1:4,o=r&2048?256:0;return i|o}return e.flags&4194304?257:0}function Tu(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function F2(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function $3(e){return iC(e)===1}function YA(e){return iC(e)!==0}function iC(e){const{parent:t}=e;switch(t==null?void 0:t.kind){case 217:return iC(t);case 225:case 224:const{operator:r}=t;return r===46||r===47?2:0;case 226:const{left:i,operatorToken:o}=t;return i===e&&Vv(o.kind)?o.kind===64?1:2:0;case 211:return t.name!==e?0:iC(t);case 303:{const s=iC(t.parent);return e===t.name?RGe(s):s}case 304:return e===t.objectAssignmentInitializer?0:iC(t.parent);case 209:return iC(t);default:return 0}}function RGe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return N.assertNever(e)}}function FU(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(!FU(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function np(e,t){e.forEach(t),e.clear()}function lg(e,t,r){const{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{var u;t!=null&&t.has(l)?o&&o(s,(u=t.get)==null?void 0:u.call(t,l),l):(e.delete(l),i(s,l))})}function oC(e,t,r){lg(e,t,r);const{createNewValue:i}=r;t==null||t.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function Uoe(e){if(e.flags&32){const t=jg(e);return!!t&&Qr(t,64)}return!1}function jg(e){var t;return(t=e.declarations)==null?void 0:t.find(di)}function zr(e){return e.flags&3899393?e.objectFlags:0}function CTe(e,t){return!!xm(e,r=>t(r)?!0:void 0)}function Q3(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&fw(e.declarations[0])}function Hoe({moduleSpecifier:e}){return La(e)?e.text:bc(e)}function zU(e){let t;return Uo(e,r=>{nm(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(nm(r[i])){t=r[i];break}}),t}function Pm(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function $A(e){return di(e)||gd(e)||Ap(e)}function BU(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function js(e){return e.kind===211||e.kind===212}function GU(e){return e.kind===211?e.name:(N.assert(e.kind===212),e.argumentExpression)}function qoe(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function Z3(e){return e.kind===275||e.kind===279}function z2(e){for(;js(e);)e=e.expression;return e}function Joe(e,t){if(js(e.parent)&&MU(e))return r(e.parent);function r(i){if(i.kind===211){const o=t(i.name);if(o!==void 0)return o}else if(i.kind===212)if(Ue(i.argumentExpression)||hs(i.argumentExpression)){const o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(js(i.expression))return r(i.expression);if(Ue(i.expression))return t(i.expression)}}function B2(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function DGe(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function NGe(e,t){this.flags=t,(N.isDebugging||ur)&&(this.checker=e)}function CGe(e,t){this.flags=t,N.isDebugging&&(this.checker=e)}function Koe(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 PGe(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 MGe(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 LGe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function Xoe(e){Iae.push(e),e(pu)}function Yoe(e){Object.assign(pu,e),Ve(Iae,t=>t(pu))}function cg(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+N.checkDefined(t[+i]))}function $oe(e){x7=e}function Qoe(e){!x7&&e&&(x7=e())}function zo(e){return x7&&x7[e.key]||e.message}function G2(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),Wie(t,r,i);let l=zo(o);return St(s)&&(l=cg(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function kGe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function PTe(e,t){const r=t.fileName||"",i=t.text.length;N.assertEqual(e.fileName,r),N.assertLessThanOrEqual(e.start,i),N.assertLessThanOrEqual(e.start+e.length,i);const o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(const s of e.relatedInformation)kGe(s)&&s.fileName===r?(N.assertLessThanOrEqual(s.start,i),N.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(PTe(s,t))):o.relatedInformation.push(s)}return o}function QA(e,t){const r=[];for(const i of e)r.push(PTe(i,t));return r}function ru(e,t,r,i,...o){Wie(e.text,t,r);let s=zo(i);return St(o)&&(s=cg(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function VU(e,...t){let r=zo(e);return St(t)&&(r=cg(r,t)),r}function $l(e,...t){let r=zo(e);return St(t)&&(r=cg(r,t)),{file:void 0,start:void 0,length:void 0,messageText:r,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function e7(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 jo(e,t,...r){let i=zo(t);return St(r)&&(i=cg(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function Zoe(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function MTe(e){return e.file?e.file.path:void 0}function aC(e,t){return t7(e,t)||wGe(e,t)||0}function t7(e,t){return Ju(MTe(e),MTe(t))||al(e.start,t.start)||al(e.length,t.length)||al(e.code,t.code)||LTe(e.messageText,t.messageText)||0}function wGe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?al(e.relatedInformation.length,t.relatedInformation.length)||Ve(e.relatedInformation,(r,i)=>{const o=t.relatedInformation[i];return aC(r,o)})||0:e.relatedInformation?-1:1}function LTe(e,t){if(typeof e=="string"&&typeof t=="string")return Ju(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=Ju(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const i=Math.min(e.next.length,t.next.length);for(let o=0;o<i;o++)if(r=LTe(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 Lk(e){return e===4||e===2||e===1||e===6?1:0}function kTe(e){if(!!(e.transformFlags&2))return dd(e)||lE(e)?e:Uo(e,kTe)}function OGe(e){return e.isDeclarationFile?void 0:kTe(e)}function WGe(e){return(e.impliedNodeFormat===99||Rc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function kk(e){switch(pH(e)){case 3:return o=>{o.externalModuleIndicator=Aw(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=Aw(o)};case 2:const t=[Aw];(e.jsx===4||e.jsx===5)&&t.push(OGe),t.push(WGe);const r=$m(...t);return o=>void(o.externalModuleIndicator=r(o))}}function p0t(e){return e}function n7(e){return e>=5&&e<=99}function r7(e){switch(Wu(e)){case 0:case 4:case 3:return!1}return!0}function jU(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function eae(e){return e.allowUnreachableCode===!1}function tae(e){return e.allowUnusedLabels===!1}function ZA(e){return e>=3&&e<=99||e===100}function md(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function nae(e){return e.useDefineForClassFields!==!1&&ps(e)>=9}function rae(e,t){return u2(t,e,Mq)}function iae(e,t){return u2(t,e,Lq)}function oae(e,t){return u2(t,e,kq)}function i7(e,t){return t.strictFlag?md(e,t.name):t.allowJsFlag?Jy(e):e[t.name]}function o7(e){const t=e.jsx;return t===2||t===4||t===5}function a7(e,t){const r=t==null?void 0:t.pragmas.get("jsximportsource"),i=Do(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 s7(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function UU(e){let t=!1;for(let r=0;r<e.length;r++)if(e.charCodeAt(r)===42)if(!t)t=!0;else return!1;return!0}function HU(e,t){let r,i,o,s=!1;return{getSymlinkedFiles:()=>o,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(u,p)=>(o||(o=new Map)).set(u,p),setSymlinkedDirectory:(u,p)=>{let v=ll(u,e,t);_C(v)||(v=Hc(v),p!==!1&&!(r!=null&&r.has(v))&&(i||(i=Zp())).add(p.realPath,u),(r||(r=new Map)).set(v,p))},setSymlinksFromResolutions(u,p,v){N.assert(!s),s=!0,u(f=>l(this,f.resolvedModule)),p(f=>l(this,f.resolvedTypeReferenceDirective)),v.forEach(f=>l(this,f.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function l(u,p){if(!p||!p.originalPath||!p.resolvedFileName)return;const{resolvedFileName:v,originalPath:f}=p;u.setSymlinkedFile(ll(f,e,t),v);const[b,A]=FGe(v,f,e,t)||et;b&&A&&u.setSymlinkedDirectory(A,{real:Hc(b),realPath:Hc(ll(b,e,t))})}}function FGe(e,t,r,i){const o=Uc(To(e,r)),s=Uc(To(t,r));let l=!1;for(;o.length>=2&&s.length>=2&&!wTe(o[o.length-2],i)&&!wTe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[Dy(o),Dy(s)]:void 0}function wTe(e,t){return e!==void 0&&(t(e)==="node_modules"||ho(e,"@"))}function zGe(e){return HV(e.charCodeAt(0))?e.slice(1):void 0}function qU(e,t,r){const i=LG(e,t,r);return i===void 0?void 0:zGe(i)}function OTe(e){return e.replace(fH,BGe)}function BGe(e){return"\\"+e}function sC(e,t,r){const i=l7(e,t,r);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function l7(e,t,r){if(!(e===void 0||e.length===0))return qi(e,i=>i&&c7(i,t,r,hH[r]))}function JU(e){return!/[.*?]/.test(e)}function aae(e,t,r){const i=e&&c7(e,t,r,hH[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function c7(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=hH[r]){let l="",u=!1;const p=uL(e,t),v=rs(p);if(r!=="exclude"&&v==="**")return;p[0]=o0(p[0]),JU(v)&&p.push("**","*");let f=0;for(let b of p){if(b==="**")l+=o;else if(r==="directories"&&(l+="(",f++),u&&(l+=cl),r!=="exclude"){let A="";b.charCodeAt(0)===42?(A+="([^./]"+i+")?",b=b.substr(1)):b.charCodeAt(0)===63&&(A+="[^./]",b=b.substr(1)),A+=b.replace(fH,s),A!==b&&(l+=_H),l+=A}else l+=b.replace(fH,s);u=!0}for(;f>0;)l+=")?",f--;return l}function sae(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function u7(e,t,r,i,o){e=va(e),o=va(o);const s=$r(o,e);return{includeFilePatterns:Wt(l7(r,s,"files"),l=>`^${l}$`),includeFilePattern:sC(r,s,"files"),includeDirectoryPattern:sC(r,s,"directories"),excludePattern:sC(t,s,"exclude"),basePaths:GGe(e,r,i)}}function Uy(e,t){return new RegExp(e,t?"":"i")}function KU(e,t,r,i,o,s,l,u,p){e=va(e),s=va(s);const v=u7(e,r,i,o,s),f=v.includeFilePatterns&&v.includeFilePatterns.map(W=>Uy(W,o)),b=v.includeDirectoryPattern&&Uy(v.includeDirectoryPattern,o),A=v.excludePattern&&Uy(v.excludePattern,o),I=f?f.map(()=>[]):[[]],R=new Map,M=ku(o);for(const W of v.basePaths)C(W,$r(s,W),l);return Oa(I);function C(W,U,X){const ee=M(p(U));if(R.has(ee))return;R.set(ee,!0);const{files:V,directories:se}=u(W);for(const G of uS(V,Ju)){const re=$r(W,G),_e=$r(U,G);if(!(t&&!Rc(re,t))&&!(A&&A.test(_e)))if(!f)I[0].push(re);else{const ye=Ji(f,Q=>Q.test(_e));ye!==-1&&I[ye].push(re)}}if(!(X!==void 0&&(X--,X===0)))for(const G of uS(se,Ju)){const re=$r(W,G),_e=$r(U,G);(!b||b.test(_e))&&(!A||!A.test(_e))&&C(re,_e,X)}}}function GGe(e,t,r){const i=[e];if(t){const o=[];for(const s of t){const l=hp(s)?s:va($r(e,s));o.push(VGe(l))}o.sort(Ux(!r));for(const s of o)Bn(i,l=>!Am(l,s,e,!r))&&i.push(s)}return i}function VGe(e){const t=Mo(e,eAe);return t<0?PA(e)?o0(ii(e)):e:e.substring(0,e.lastIndexOf(cl,t))}function d7(e,t){return t||p7(e)||3}function p7(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 lC(e,t){const r=e&&Jy(e);if(!t||t.length===0)return r?N7:q2;const i=r?N7:q2,o=Oa(i);return[...i,...Vi(t,l=>l.scriptKind===7||r&&jGe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function wk(e,t){return!e||!A0(e)?t:t===N7?rAe:t===q2?tAe:[...t,[".json"]]}function jGe(e){return e===1||e===2}function $1(e){return St(J2,t=>Nl(e,t))}function eI(e){return St(gH,t=>Nl(e,t))}function lae({imports:e},t=$m($1,eI)){return $t(e,({text:r})=>Fp(r)&&!Rc(r,Kk)?t(r):void 0)||!1}function cae(e,t,r,i){const o=_d(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return vR(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!vR(r))return lae(i)?2:0;return l();function l(){let u=!1;const p=i.imports.length?i.imports:pd(i)?UGe(i).map(v=>v.arguments[0]):et;for(const v of p)if(Fp(v.text)){if(s&&t===1&&KJ(i,v,r)===99||Rc(v.text,Kk))continue;if(eI(v.text))return 3;$1(v.text)&&(u=!0)}return u?2:0}}function UGe(e){let t=0,r;for(const i of e.statements){if(t>3)break;Qj(i)?r=Ro(r,i.declarationList.declarations.map(o=>o.initializer)):ou(i)&&Ad(i.expression,!0)?r=Rn(r,i.expression):t++}return r||et}function uae(e,t,r){if(!e)return!1;const i=lC(t,r);for(const o of Oa(wk(t,i)))if(Nl(e,o))return!0;return!1}function WTe(e){const t=e.match(/\//g);return t?t.length:0}function Ok(e,t){return al(WTe(e),WTe(t))}function Id(e){for(const t of bH){const r=dae(e,t);if(r!==void 0)return r}return e}function dae(e,t){return Nl(e,t)?Wk(e,t):void 0}function Wk(e,t){return e.substring(0,e.length-t.length)}function S0(e,t){return dL(e,t,bH,!1)}function V2(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 f7(e){return Vi(Yh(e),t=>V2(t))}function e_(e){return!(e>=0)}function m7(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||ho(e,".d.")&&Dl(e,".ts")}function cC(e){return m7(e)||e===".json"}function uC(e){const t=Ug(e);return t!==void 0?t:N.fail(`File ${e} has unknown extension.`)}function FTe(e){return Ug(e)!==void 0}function Ug(e){return un(bH,t=>Nl(e,t))}function Fk(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function XU(e,t){const r=[];for(const i of e){if(i===t)return t;wo(i)||r.push(i)}return MG(r,i=>i,t)}function YU(e,t){const r=e.indexOf(t);return N.assert(r!==-1),e.slice(r)}function Fa(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),N.assert(e.relatedInformation!==et,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function pae(e,t){N.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;o<e.length;o++){const s=t(e[o]);s<r?r=s:s>i&&(i=s)}return{min:r,max:i}}function $U(e){return{pos:_0(e),end:e.end}}function QU(e,t){const r=t.pos-1,i=Math.min(e.text.length,Wa(e.text,t.end)+1);return{pos:r,end:i}}function dC(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function _7(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&jne(e,t,_7)}function pC(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 v=e.length-1;let f=0;for(;e.charCodeAt(f)===48;)f++;return e.slice(f,v)||"0"}const r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let v=i-1,f=0;v>=r;v--,f+=t){const b=f>>>4,A=e.charCodeAt(v),R=(A<=57?A-48:10+A-(A<=70?65:97))<<(f&15);s[b]|=R;const M=R>>>16;M&&(s[b+1]|=M)}let l="",u=s.length-1,p=!0;for(;p;){let v=0;p=!1;for(let f=u;f>=0;f--){const b=v<<16|s[f],A=b/10|0;s[f]=A,v=b-A*10,A&&!p&&(u=f,p=!0)}l=v+l}return l}function Q1({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function fae(e){if(!!h7(e,!1))return ZU(e)}function ZU(e){const t=e.startsWith("-"),r=pC(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function h7(e,t){if(e==="")return!1;const r=wv(99,!1);let i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan();const s=o===41;s&&(o=r.scan());const l=r.getTokenFlags();return i&&o===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===Q1({negative:s,base10Value:pC(r.getTokenValue())}))}function T0(e){return!!(e.flags&33554432)||E3(e)||JGe(e)||qGe(e)||!(rg(e)||HGe(e))}function HGe(e){return Ue(e)&&ip(e.parent)&&e.parent.name===e}function qGe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(Qr(e.parent,64))return!0;const t=e.parent.parent.kind;return t===264||t===187}function JGe(e){if(e.kind!==80)return!1;const t=jn(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(t==null?void 0:t.token)===119||(t==null?void 0:t.parent.kind)===264}function mae(e){return Cf(e)&&Ue(e.typeName)}function _ae(e,t=Mv){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 fC(e,t){return e.pos=t,e}function j2(e,t){return e.end=t,e}function Eh(e,t,r){return j2(fC(e,t),r)}function mC(e,t,r){return Eh(e,t,t+r)}function hae(e,t){return e&&(e.flags=t),e}function Qa(e,t){return e&&t&&(e.parent=t),e}function U2(e,t){if(e)for(const r of e)Qa(r,t);return e}function Hy(e,t){if(!e)return e;return VC(e,l2(e)?r:o),e;function r(s,l){if(t&&s.parent===l)return"skip";Qa(s,l)}function i(s){if(zp(s))for(const l of s.jsDoc)r(l,s),VC(l,r)}function o(s,l){return r(s,l)||i(s)}}function KGe(e){return!Kc(e)}function eH(e){return hd(e)&&Bn(e.elements,KGe)}function gae(e){for(N.assertIsDefined(e.parent);;){const t=e.parent;if(Vd(t)){e=t;continue}if(ou(t)||gI(t)||HS(t)&&(t.initializer===e||t.incrementor===e))return!0;if(PC(t)){if(e!==rs(t.elements))return!0;e=t;continue}if(vr(t)&&t.operatorToken.kind===28){if(e===t.left)return!0;e=t;continue}return!1}}function _C(e){return St(cL,t=>e.includes(t))}function vae(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{const{parent:i}=e;return QS(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(c2(e))return XS(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return yS(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return Xi(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return FL(e)?t.children:void 0;case 286:case 285:return Xi(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return nu(e)?t.members:void 0;case 266:return dE(e)?t.members:void 0;case 312:return t.statements}}function g7(e){if(!e.typeParameters){if(St(e.parameters,t=>!Su(t)))return!0;if(e.kind!==219){const t=eu(e.parameters);if(!(t&&K1(t)))return!0}}return!1}function hC(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function yae(e){return e.kind===260&&e.parent.kind===299}function Z1(e){return e.kind===218||e.kind===219}function eE(e){return e.replace(/\$/gm,()=>"\\$")}function ug(e){return(+e).toString()===e}function v7(e,t,r,i,o){const s=o&&e==="new";return!s&&tf(e,t)?O.createIdentifier(e):!i&&!s&&ug(e)&&+e>=0?O.createNumericLiteral(+e):O.createStringLiteral(e,!!r)}function gC(e){return!!(e.flags&262144&&e.isThisType)}function y7(e){let t=0,r=0,i=0,o=0,s;(v=>{v[v.BeforeNodeModules=0]="BeforeNodeModules",v[v.NodeModules=1]="NodeModules",v[v.Scope=2]="Scope",v[v.PackageContent=3]="PackageContent"})(s||(s={}));let l=0,u=0,p=0;for(;u>=0;)switch(l=u,u=e.indexOf("/",l+1),p){case 0:e.indexOf(Nh,l)===l&&(t=l,r=u,p=1);break;case 1:case 2:p===1&&e.charAt(l+1)==="@"?p=2:(i=u,p=3);break;case 3:e.indexOf(Nh,l)===l?p=1:p=3;break}return o=l,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function zTe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function H2(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function zk(e){return x0(e)||Fl(e)||Dc(e)||Nc(e)||gd(e)||H2(e)||nc(e)&&!F1(e)&&!R_(e)}function Bk(e){if(!IN(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function tH(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&Qh(e.charCodeAt(1),t):Qh(r,t)}function bae(e){var t;return((t=NH(e))==null?void 0:t.kind)===0}function Gk(e){return dr(e)&&(e.type&&e.type.kind===323||r2(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function vC(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||Gk(e);case 355:case 348:return Bk(e);default:return!1}}function Eae(e){const t=e.kind;return(t===211||t===212)&&vI(e.expression)}function nH(e){return dr(e)&&Vd(e)&&zp(e)&&!!sj(e)}function rH(e){return N.checkDefined(b7(e))}function b7(e){const t=sj(e);return t&&t.typeExpression&&t.typeExpression.type}function yC(e){return Ue(e)?e.escapedText:tI(e)}function Vk(e){return Ue(e)?Rr(e):bC(e)}function Sae(e){const t=e.kind;return t===80||t===295}function tI(e){return`${e.namespace.escapedText}:${Rr(e.name)}`}function bC(e){return`${Rr(e.namespace)}:${Rr(e.name)}`}function iH(e){return Ue(e)?Rr(e):bC(e)}function cm(e){return!!(e.flags&8576)}function um(e){return e.flags&8192?e.escapedName:e.flags&384?bl(""+e.value):N.fail()}function E7(e){return!!e&&(Br(e)||el(e)||vr(e))}function Tae(e){return e===void 0?!1:!!ER(e.attributes)}function nI(e,t){return iAe.call(e,"*",t)}function S7(e){return Ue(e.name)?e.name.escapedText:bl(e.name.text)}var T7,qy,jk,A7,Uk,I7,oH,aH,BTe,GTe,sH,VTe,jTe,lH,cH,uH,dH,UTe,HTe,qTe,JTe,KTe,Aae,XTe,YTe,$Te,EC,WS,QTe,ZTe,pu,Iae,x7,Sc,ps,Wu,_d,pH,dm,Sh,FS,R7,D7,A0,Nf,tE,SC,Hk,Jy,TC,fH,eAe,mH,_H,xae,Rae,Dae,hH,q2,gH,tAe,nAe,vH,J2,N7,rAe,qk,Jk,Kk,yH,bH,C7,iAe,XGe=S({"src/compiler/utilities.ts"(){ia(),T7=[],qy="tslib",jk=160,A7=1e6,Uk=QBe(),I7=Td(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:et})),AsyncIterator:new Map(Object.entries({es2015:et})),Atomics:new Map(Object.entries({es2017:et})),SharedArrayBuffer:new Map(Object.entries({es2017:et})),AsyncIterable:new Map(Object.entries({es2018:et})),AsyncIterableIterator:new Map(Object.entries({es2018:et})),AsyncGenerator:new Map(Object.entries({es2018:et})),AsyncGeneratorFunction:new Map(Object.entries({es2018:et})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:et,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:et})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:et,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:et,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),oH=(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))(oH||{}),aH=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,BTe=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,GTe=/^(\/\/\/\s*<reference\s+lib\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,sH=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,VTe=/^\/\/\/\s*<amd-module\s+.*?\/>/,jTe=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/,lH=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(lH||{}),cH=(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))(cH||{}),uH=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(uH||{}),dH=(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))(dH||{}),UTe=/\$\{/g,HTe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,qTe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,JTe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,KTe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),Aae=/[^\u0000-\u007F]/g,XTe=/["\u0000-\u001f\u2028\u2029\u0085]/g,YTe=/['\u0000-\u001f\u2028\u2029\u0085]/g,$Te=new Map(Object.entries({'"':"&quot;","'":"&apos;"})),EC=[""," "],WS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",QTe=`\r
`,ZTe=`
`,pu={getNodeConstructor:()=>Koe,getTokenConstructor:()=>PGe,getIdentifierConstructor:()=>MGe,getPrivateIdentifierConstructor:()=>Koe,getSourceFileConstructor:()=>Koe,getSymbolConstructor:()=>DGe,getTypeConstructor:()=>NGe,getSignatureConstructor:()=>CGe,getSourceMapSourceConstructor:()=>LGe},Iae=[],Sc={target:{dependencies:["module"],computeValue:e=>{var t;return(t=e.target)!=null?t:e.module===100&&9||e.module===199&&99||1}},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:Sc.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Sc.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(Sc.module.computeValue(e)===100||Sc.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Sc.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Sc.esModuleInterop.computeValue(e)||Sc.module.computeValue(e)===4||Sc.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=Sc.moduleResolution.computeValue(e);if(!ZA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=Sc.moduleResolution.computeValue(e);if(!ZA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:Sc.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Sc.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Sc.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?Sc.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>md(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>md(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>md(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>md(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>md(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>md(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>md(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>md(e,"useUnknownInCatchVariables")}},ps=Sc.target.computeValue,Wu=Sc.module.computeValue,_d=Sc.moduleResolution.computeValue,pH=Sc.moduleDetection.computeValue,dm=Sc.isolatedModules.computeValue,Sh=Sc.esModuleInterop.computeValue,FS=Sc.allowSyntheticDefaultImports.computeValue,R7=Sc.resolvePackageJsonExports.computeValue,D7=Sc.resolvePackageJsonImports.computeValue,A0=Sc.resolveJsonModule.computeValue,Nf=Sc.declaration.computeValue,tE=Sc.preserveConstEnums.computeValue,SC=Sc.incremental.computeValue,Hk=Sc.declarationMap.computeValue,Jy=Sc.allowJs.computeValue,TC=Sc.useDefineForClassFields.computeValue,fH=/[^\w\s/]/g,eAe=[42,63],mH=["node_modules","bower_components","jspm_packages"],_H=`(?!(${mH.join("|")})(/|$))`,xae={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${_H}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>sae(e,xae.singleAsteriskRegexFragment)},Rae={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${_H}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>sae(e,Rae.singleAsteriskRegexFragment)},Dae={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>sae(e,Dae.singleAsteriskRegexFragment)},hH={files:xae,directories:Rae,exclude:Dae},q2=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],gH=Oa(q2),tAe=[...q2,[".json"]],nAe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],vH=[[".js",".jsx"],[".mjs"],[".cjs"]],J2=Oa(vH),N7=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],rAe=[...N7,[".json"]],qk=[".d.ts",".d.cts",".d.mts"],Jk=[".ts",".cts",".mts",".tsx"],Kk=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],yH=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(yH||{}),bH=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],C7={files:et,directories:et},iAe=String.prototype.replace}});function Nae(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:u,createBaseTokenNode:p,createBaseNode:v};function s(f){return new(o||(o=pu.getSourceFileConstructor()))(f,-1,-1)}function l(f){return new(r||(r=pu.getIdentifierConstructor()))(f,-1,-1)}function u(f){return new(i||(i=pu.getPrivateIdentifierConstructor()))(f,-1,-1)}function p(f){return new(t||(t=pu.getTokenConstructor()))(f,-1,-1)}function v(f){return new(e||(e=pu.getNodeConstructor()))(f,-1,-1)}}var YGe=S({"src/compiler/factory/baseNodeFactory.ts"(){ia()}});function Cae(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:v,parenthesizeRightSideOfBinary:f,parenthesizeExpressionOfComputedPropertyName:b,parenthesizeConditionOfConditionalExpression:A,parenthesizeBranchOfConditionalExpression:I,parenthesizeExpressionOfExportDefault:R,parenthesizeExpressionOfNew:M,parenthesizeLeftSideOfAccess:C,parenthesizeOperandOfPostfixUnary:W,parenthesizeOperandOfPrefixUnary:U,parenthesizeExpressionsOfCommaDelimitedList:X,parenthesizeExpressionForDisallowedComma:ee,parenthesizeExpressionOfExpressionStatement:V,parenthesizeConciseBodyOfArrowFunction:se,parenthesizeCheckTypeOfConditionalType:G,parenthesizeExtendsTypeOfConditionalType:re,parenthesizeConstituentTypesOfUnionType:ye,parenthesizeConstituentTypeOfUnionType:_e,parenthesizeConstituentTypesOfIntersectionType:Y,parenthesizeConstituentTypeOfIntersectionType:Q,parenthesizeOperandOfTypeOperator:oe,parenthesizeOperandOfReadonlyTypeOperator:he,parenthesizeNonArrayTypeOfPostfixType:Ie,parenthesizeElementTypesOfTupleType:de,parenthesizeElementTypeOfTupleType:ie,parenthesizeTypeOfOptionalType:Ce,parenthesizeTypeArguments:Le,parenthesizeLeadingTypeArgument:qe};function i(Ne){t||(t=new Map);let Oe=t.get(Ne);return Oe||(Oe=At=>v(Ne,At),t.set(Ne,Oe)),Oe}function o(Ne){r||(r=new Map);let Oe=r.get(Ne);return Oe||(Oe=At=>f(Ne,void 0,At),r.set(Ne,Oe)),Oe}function s(Ne,Oe,At,be){const He=Tk(226,Ne),it=gU(226,Ne),Ft=Rm(Oe);if(!At&&Oe.kind===219&&He>3)return!0;const yt=JN(Ft);switch(al(yt,He)){case-1:return!(!At&&it===1&&Oe.kind===229);case 1:return!1;case 0:if(At)return it===1;if(vr(Ft)&&Ft.operatorToken.kind===Ne){if(l(Ne))return!1;if(Ne===40){const It=be?u(be):0;if(xN(It)&&It===u(Ft))return!1}}return hU(Ft)===0}}function l(Ne){return Ne===42||Ne===52||Ne===51||Ne===53||Ne===28}function u(Ne){if(Ne=Rm(Ne),xN(Ne.kind))return Ne.kind;if(Ne.kind===226&&Ne.operatorToken.kind===40){if(Ne.cachedLiteralKind!==void 0)return Ne.cachedLiteralKind;const Oe=u(Ne.left),At=xN(Oe)&&Oe===u(Ne.right)?Oe:0;return Ne.cachedLiteralKind=At,At}return 0}function p(Ne,Oe,At,be){return Rm(Oe).kind===217?Oe:s(Ne,Oe,At,be)?e.createParenthesizedExpression(Oe):Oe}function v(Ne,Oe){return p(Ne,Oe,!0)}function f(Ne,Oe,At){return p(Ne,At,!1,Oe)}function b(Ne){return zC(Ne)?e.createParenthesizedExpression(Ne):Ne}function A(Ne){const Oe=Tk(227,58),At=Rm(Ne),be=JN(At);return al(be,Oe)!==1?e.createParenthesizedExpression(Ne):Ne}function I(Ne){const Oe=Rm(Ne);return zC(Oe)?e.createParenthesizedExpression(Ne):Ne}function R(Ne){const Oe=Rm(Ne);let At=zC(Oe);if(!At)switch(B2(Oe,!1).kind){case 231:case 218:At=!0}return At?e.createParenthesizedExpression(Ne):Ne}function M(Ne){const Oe=B2(Ne,!0);switch(Oe.kind){case 213:return e.createParenthesizedExpression(Ne);case 214:return Oe.arguments?Ne:e.createParenthesizedExpression(Ne)}return C(Ne)}function C(Ne,Oe){const At=Rm(Ne);return tp(At)&&(At.kind!==214||At.arguments)&&(Oe||!Xu(At))?Ne:ut(e.createParenthesizedExpression(Ne),Ne)}function W(Ne){return tp(Ne)?Ne:ut(e.createParenthesizedExpression(Ne),Ne)}function U(Ne){return bj(Ne)?Ne:ut(e.createParenthesizedExpression(Ne),Ne)}function X(Ne){const Oe=mo(Ne,ee);return ut(e.createNodeArray(Oe,Ne.hasTrailingComma),Ne)}function ee(Ne){const Oe=Rm(Ne),At=JN(Oe),be=Tk(226,28);return At>be?Ne:ut(e.createParenthesizedExpression(Ne),Ne)}function V(Ne){const Oe=Rm(Ne);if(ca(Oe)){const be=Oe.expression,He=Rm(be).kind;if(He===218||He===219){const it=e.updateCallExpression(Oe,ut(e.createParenthesizedExpression(be),be),Oe.typeArguments,Oe.arguments);return e.restoreOuterExpressions(Ne,it,8)}}const At=B2(Oe,!1).kind;return At===210||At===218?ut(e.createParenthesizedExpression(Ne),Ne):Ne}function se(Ne){return!Yo(Ne)&&(zC(Ne)||B2(Ne,!1).kind===210)?ut(e.createParenthesizedExpression(Ne),Ne):Ne}function G(Ne){switch(Ne.kind){case 184:case 185:case 194:return e.createParenthesizedType(Ne)}return Ne}function re(Ne){switch(Ne.kind){case 194:return e.createParenthesizedType(Ne)}return Ne}function _e(Ne){switch(Ne.kind){case 192:case 193:return e.createParenthesizedType(Ne)}return G(Ne)}function ye(Ne){return e.createNodeArray(mo(Ne,_e))}function Q(Ne){switch(Ne.kind){case 192:case 193:return e.createParenthesizedType(Ne)}return _e(Ne)}function Y(Ne){return e.createNodeArray(mo(Ne,Q))}function oe(Ne){switch(Ne.kind){case 193:return e.createParenthesizedType(Ne)}return Q(Ne)}function he(Ne){switch(Ne.kind){case 198:return e.createParenthesizedType(Ne)}return oe(Ne)}function Ie(Ne){switch(Ne.kind){case 195:case 198:case 186:return e.createParenthesizedType(Ne)}return oe(Ne)}function de(Ne){return e.createNodeArray(mo(Ne,ie))}function ie(Ne){return ge(Ne)?e.createParenthesizedType(Ne):Ne}function ge(Ne){return nR(Ne)?Ne.postfix:$2(Ne)||Ah(Ne)||Y2(Ne)||VS(Ne)?ge(Ne.type):hI(Ne)?ge(Ne.falseType):Yy(Ne)||_I(Ne)?ge(rs(Ne.types)):BS(Ne)?!!Ne.typeParameter.constraint&&ge(Ne.typeParameter.constraint):!1}function Ce(Ne){return ge(Ne)?e.createParenthesizedType(Ne):Ie(Ne)}function qe(Ne){return nie(Ne)&&Ne.typeParameters?e.createParenthesizedType(Ne):Ne}function Se(Ne,Oe){return Oe===0?qe(Ne):Ne}function Le(Ne){if(St(Ne))return e.createNodeArray(mo(Ne,Se))}}var EH,$Ge=S({"src/compiler/factory/parenthesizerRules.ts"(){ia(),EH={getParenthesizeLeftSideOfBinaryForOperator:e=>ol,getParenthesizeRightSideOfBinaryForOperator:e=>ol,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:ol,parenthesizeConditionOfConditionalExpression:ol,parenthesizeBranchOfConditionalExpression:ol,parenthesizeExpressionOfExportDefault:ol,parenthesizeExpressionOfNew:e=>sa(e,tp),parenthesizeLeftSideOfAccess:e=>sa(e,tp),parenthesizeOperandOfPostfixUnary:e=>sa(e,tp),parenthesizeOperandOfPrefixUnary:e=>sa(e,bj),parenthesizeExpressionsOfCommaDelimitedList:e=>sa(e,k1),parenthesizeExpressionForDisallowedComma:ol,parenthesizeExpressionOfExpressionStatement:ol,parenthesizeConciseBodyOfArrowFunction:ol,parenthesizeCheckTypeOfConditionalType:ol,parenthesizeExtendsTypeOfConditionalType:ol,parenthesizeConstituentTypesOfUnionType:e=>sa(e,k1),parenthesizeConstituentTypeOfUnionType:ol,parenthesizeConstituentTypesOfIntersectionType:e=>sa(e,k1),parenthesizeConstituentTypeOfIntersectionType:ol,parenthesizeOperandOfTypeOperator:ol,parenthesizeOperandOfReadonlyTypeOperator:ol,parenthesizeNonArrayTypeOfPostfixType:ol,parenthesizeElementTypesOfTupleType:e=>sa(e,k1),parenthesizeElementTypeOfTupleType:ol,parenthesizeTypeOfOptionalType:ol,parenthesizeTypeArguments:e=>e&&sa(e,k1),parenthesizeLeadingTypeArgument:ol}}});function Pae(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:p,convertToAssignmentElementTarget:v};function t(f,b){if(Yo(f))return f;const A=e.createReturnStatement(f);ut(A,f);const I=e.createBlock([A],b);return ut(I,f),I}function r(f){var b;if(!f.body)return N.fail("Cannot convert a FunctionDeclaration without a body");const A=e.createFunctionExpression((b=L1(f))==null?void 0:b.filter(I=>!uI(I)&&!f5(I)),f.asteriskToken,f.name,f.typeParameters,f.parameters,f.type,f.body);return kr(A,f),ut(A,f),AC(f)&&L7(A,!0),A}function i(f){var b;const A=e.createClassExpression((b=f.modifiers)==null?void 0:b.filter(I=>!uI(I)&&!f5(I)),f.name,f.typeParameters,f.heritageClauses,f.members);return kr(A,f),ut(A,f),AC(f)&&L7(A,!0),A}function o(f){if(os(f)){if(f.dotDotDotToken)return N.assertNode(f.name,Ue),kr(ut(e.createSpreadElement(f.name),f),f);const b=v(f.name);return f.initializer?kr(ut(e.createAssignment(b,f.initializer),f),f):b}return sa(f,bt)}function s(f){if(os(f)){if(f.dotDotDotToken)return N.assertNode(f.name,Ue),kr(ut(e.createSpreadAssignment(f.name),f),f);if(f.propertyName){const b=v(f.name);return kr(ut(e.createPropertyAssignment(f.propertyName,f.initializer?e.createAssignment(b,f.initializer):b),f),f)}return N.assertNode(f.name,Ue),kr(ut(e.createShorthandPropertyAssignment(f.name,f.initializer),f),f)}return sa(f,Fg)}function l(f){switch(f.kind){case 207:case 209:return p(f);case 206:case 210:return u(f)}}function u(f){return pm(f)?kr(ut(e.createObjectLiteralExpression(Wt(f.elements,s)),f),f):sa(f,za)}function p(f){return rE(f)?kr(ut(e.createArrayLiteralExpression(Wt(f.elements,o)),f),f):sa(f,hd)}function v(f){return na(f)?l(f):sa(f,bt)}}var SH,QGe=S({"src/compiler/factory/nodeConverters.ts"(){ia(),SH={convertToFunctionBlock:Ko,convertToFunctionExpression:Ko,convertToClassExpression:Ko,convertToArrayAssignmentElement:Ko,convertToObjectAssignmentElement:Ko,convertToAssignmentPattern:Ko,convertToObjectAssignmentPattern:Ko,convertToArrayAssignmentPattern:Ko,convertToAssignmentElementTarget:Ko}}});function oAe(e){Lae.push(e)}function Xk(e,t){const r=e&8?ol:kr,i=Td(()=>e&1?EH:Cae(W)),o=Td(()=>e&2?SH:Pae(W)),s=fh(E=>(P,B)=>De(P,E,B)),l=fh(E=>P=>lt(E,P)),u=fh(E=>P=>qt(P,E)),p=fh(E=>()=>dD(E)),v=fh(E=>P=>IT(E,P)),f=fh(E=>(P,B)=>ME(E,P,B)),b=fh(E=>(P,B)=>pD(E,P,B)),A=fh(E=>(P,B)=>tl(E,P,B)),I=fh(E=>(P,B)=>Z0(E,P,B)),R=fh(E=>(P,B,ce)=>Gf(E,P,B,ce)),M=fh(E=>(P,B,ce)=>Sb(E,P,B,ce)),C=fh(E=>(P,B,ce,$e)=>Tb(E,P,B,ce,$e)),W={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:U,createNumericLiteral:se,createBigIntLiteral:G,createStringLiteral:_e,createStringLiteralFromNode:ye,createRegularExpressionLiteral:Q,createLiteralLikeNode:Y,createIdentifier:Ie,createTempVariable:de,createLoopVariable:ie,createUniqueName:ge,getGeneratedNameForNode:Ce,createPrivateIdentifier:Se,createUniquePrivateName:Ne,getGeneratedPrivateNameForNode:Oe,createToken:be,createSuper:He,createThis:it,createNull:Ft,createTrue:yt,createFalse:Ze,createModifier:It,createModifiersFromModifierFlags:on,createQualifiedName:Yt,updateQualifiedName:Nn,createComputedPropertyName:Xn,updateComputedPropertyName:yn,createTypeParameterDeclaration:tn,updateTypeParameterDeclaration:en,createParameterDeclaration:gi,updateParameterDeclaration:bo,createDecorator:Ui,updateDecorator:Co,createPropertySignature:tr,updatePropertySignature:Ci,createPropertyDeclaration:Kt,updatePropertyDeclaration:nt,createMethodSignature:Bt,updateMethodSignature:Dn,createMethodDeclaration:si,updateMethodDeclaration:yi,createConstructorDeclaration:Tn,updateConstructorDeclaration:On,createGetAccessorDeclaration:mt,updateGetAccessorDeclaration:pt,createSetAccessorDeclaration:le,updateSetAccessorDeclaration:Fe,createCallSignature:j,updateCallSignature:ot,createConstructSignature:Dt,updateConstructSignature:Ye,createIndexSignature:_t,updateIndexSignature:Gt,createClassStaticBlockDeclaration:Po,updateClassStaticBlockDeclaration:_a,createTemplateLiteralTypeSpan:gn,updateTemplateLiteralTypeSpan:hn,createKeywordTypeNode:pn,createTypePredicateNode:q,updateTypePredicateNode:We,createTypeReferenceNode:Lt,updateTypeReferenceNode:L,createFunctionTypeNode:me,updateFunctionTypeNode:J,createConstructorTypeNode:je,updateConstructorTypeNode:kt,createTypeQueryNode:or,updateTypeQueryNode:pr,createTypeLiteralNode:ai,updateTypeLiteralNode:li,createArrayTypeNode:Qn,updateArrayTypeNode:qr,createTupleTypeNode:Ao,updateTupleTypeNode:Fi,createNamedTupleMember:vi,updateNamedTupleMember:ya,createOptionalTypeNode:Xa,updateOptionalTypeNode:Qt,createRestTypeNode:ba,updateRestTypeNode:Gl,createUnionTypeNode:ka,updateUnionTypeNode:Ts,createIntersectionTypeNode:oc,updateIntersectionTypeNode:co,createConditionalTypeNode:da,updateConditionalTypeNode:mu,createInferTypeNode:Ps,updateInferTypeNode:wa,createImportTypeNode:_c,updateImportTypeNode:Ll,createParenthesizedType:fl,updateParenthesizedType:Wo,createThisTypeNode:an,createTypeOperatorNode:Xs,updateTypeOperatorNode:su,createIndexedAccessTypeNode:_u,updateIndexedAccessTypeNode:Dp,createMappedTypeNode:Gs,updateMappedTypeNode:Pc,createLiteralTypeNode:pe,updateLiteralTypeNode:Z,createTemplateLiteralType:yl,updateTemplateLiteralType:wf,createObjectBindingPattern:we,updateObjectBindingPattern:gt,createArrayBindingPattern:fn,updateArrayBindingPattern:Er,createBindingElement:Ar,updateBindingElement:Jr,createArrayLiteralExpression:Di,updateArrayLiteralExpression:br,createObjectLiteralExpression:Jo,updateObjectLiteralExpression:kl,createPropertyAccessExpression:e&4?(E,P)=>hr(xl(E,P),262144):xl,updatePropertyAccessExpression:Zl,createPropertyAccessChain:e&4?(E,P,B)=>hr(Ns(E,P,B),262144):Ns,updatePropertyAccessChain:ac,createElementAccessExpression:sp,updateElementAccessExpression:Yc,createElementAccessChain:Cd,updateElementAccessChain:Me,createCallExpression:Yn,updateCallExpression:Io,createCallChain:Qo,updateCallChain:ra,createNewExpression:sc,updateNewExpression:Ic,createTaggedTemplateExpression:ml,updateTaggedTemplateExpression:Sl,createTypeAssertion:Kl,updateTypeAssertion:lc,createParenthesizedExpression:$c,updateParenthesizedExpression:ff,createFunctionExpression:Ud,updateFunctionExpression:Pd,createArrowFunction:Of,updateArrowFunction:H_,createDeleteExpression:Mh,updateDeleteExpression:Qg,createTypeOfExpression:Vu,updateTypeOfExpression:Zg,createVoidExpression:Np,updateVoidExpression:hg,createAwaitExpression:Hd,updateAwaitExpression:te,createPrefixUnaryExpression:lt,updatePrefixUnaryExpression:zt,createPostfixUnaryExpression:qt,updatePostfixUnaryExpression:F,createBinaryExpression:De,updateBinaryExpression:Vt,createConditionalExpression:lr,updateConditionalExpression:ri,createTemplateExpression:Yr,updateTemplateExpression:uo,createTemplateHead:Cp,createTemplateMiddle:qd,createTemplateTail:ub,createNoSubstitutionTemplateLiteral:gs,createTemplateLiteralLikeNode:Mc,createYieldExpression:Wf,updateYieldExpression:Ff,createSpreadElement:Hi,updateSpreadElement:Lh,createClassExpression:gg,updateClassExpression:zf,createOmittedExpression:db,createExpressionWithTypeArguments:pb,updateExpressionWithTypeArguments:mf,createAsExpression:q_,updateAsExpression:_f,createNonNullExpression:ev,updateNonNullExpression:ze,createSatisfiesExpression:Qe,updateSatisfiesExpression:Ct,createNonNullChain:jt,updateNonNullChain:vn,createMetaProperty:$n,updateMetaProperty:bn,createTemplateSpan:er,updateTemplateSpan:mi,createSemicolonClassElement:fr,createBlock:ti,updateBlock:gr,createVariableStatement:Zo,updateVariableStatement:es,createEmptyStatement:nd,createExpressionStatement:gu,updateExpressionStatement:tv,createIfStatement:j0,updateIfStatement:QI,createDoStatement:U0,updateDoStatement:rD,createWhileStatement:iD,updateWhileStatement:oD,createForStatement:hT,updateForStatement:RE,createForInStatement:ZI,updateForInStatement:aD,createForOfStatement:ex,updateForOfStatement:tx,createContinueStatement:nx,updateContinueStatement:rx,createBreakStatement:gT,updateBreakStatement:ix,createReturnStatement:DE,updateReturnStatement:NE,createWithStatement:fb,updateWithStatement:mb,createSwitchStatement:vg,updateSwitchStatement:H0,createLabeledStatement:cs,updateLabeledStatement:vT,createThrowStatement:sD,updateThrowStatement:q0,createTryStatement:nv,updateTryStatement:kh,createDebuggerStatement:Bf,createVariableDeclaration:Jd,updateVariableDeclaration:Pp,createVariableDeclarationList:lp,updateVariableDeclarationList:ay,createFunctionDeclaration:yT,updateFunctionDeclaration:lD,createClassDeclaration:_b,updateClassDeclaration:J0,createInterfaceDeclaration:ax,updateInterfaceDeclaration:xc,createTypeAliasDeclaration:sy,updateTypeAliasDeclaration:sx,createEnumDeclaration:s_,updateEnumDeclaration:bT,createModuleDeclaration:Xe,updateModuleDeclaration:l_,createModuleBlock:vu,updateModuleBlock:K0,createCaseBlock:lx,updateCaseBlock:hb,createNamespaceExportDeclaration:ly,updateNamespaceExportDeclaration:cy,createImportEqualsDeclaration:ts,updateImportEqualsDeclaration:c_,createImportDeclaration:ET,updateImportDeclaration:ST,createImportClause:X0,updateImportClause:TT,createAssertClause:_m,updateAssertClause:hm,createAssertEntry:rv,updateAssertEntry:cx,createImportTypeAssertionContainer:u_,updateImportTypeAssertionContainer:cD,createImportAttributes:CE,updateImportAttributes:eo,createImportAttribute:Zr,updateImportAttribute:wh,createNamespaceImport:Kd,updateNamespaceImport:UP,createNamespaceExport:iv,updateNamespaceExport:HP,createNamedImports:gb,updateNamedImports:Tl,createImportSpecifier:Hp,updateImportSpecifier:yg,createExportAssignment:gm,updateExportAssignment:vb,createExportDeclaration:Fm,updateExportDeclaration:ov,createNamedExports:AT,updateNamedExports:bg,createExportSpecifier:ux,updateExportSpecifier:Eg,createMissingDeclaration:J_,createExternalModuleReference:uy,updateExternalModuleReference:uD,get createJSDocAllType(){return p(319)},get createJSDocUnknownType(){return p(320)},get createJSDocNonNullableType(){return b(322)},get updateJSDocNonNullableType(){return A(322)},get createJSDocNullableType(){return b(321)},get updateJSDocNullableType(){return A(321)},get createJSDocOptionalType(){return v(323)},get updateJSDocOptionalType(){return f(323)},get createJSDocVariadicType(){return v(325)},get updateJSDocVariadicType(){return f(325)},get createJSDocNamepathType(){return v(326)},get updateJSDocNamepathType(){return f(326)},createJSDocFunctionType:xT,updateJSDocFunctionType:zm,createJSDocTypeLiteral:yb,updateJSDocTypeLiteral:fD,createJSDocTypeExpression:RT,updateJSDocTypeExpression:qP,createJSDocSignature:Sr,updateJSDocSignature:lu,createJSDocTemplateTag:K_,updateJSDocTemplateTag:mr,createJSDocTypedefTag:DT,updateJSDocTypedefTag:Y0,createJSDocParameterTag:Qc,updateJSDocParameterTag:Oh,createJSDocPropertyTag:Bm,updateJSDocPropertyTag:LE,createJSDocCallbackTag:kE,updateJSDocCallbackTag:bb,createJSDocOverloadTag:av,updateJSDocOverloadTag:NT,createJSDocAugmentsTag:Gm,updateJSDocAugmentsTag:$0,createJSDocImplementsTag:Sg,updateJSDocImplementsTag:cp,createJSDocSeeTag:Eb,updateJSDocSeeTag:dx,createJSDocNameReference:Q0,updateJSDocNameReference:mD,createJSDocMemberName:wE,updateJSDocMemberName:CT,createJSDocLink:qp,updateJSDocLink:PT,createJSDocLinkCode:Xl,updateJSDocLinkCode:Vc,createJSDocLinkPlain:MT,updateJSDocLinkPlain:Ru,get createJSDocTypeTag(){return M(351)},get updateJSDocTypeTag(){return C(351)},get createJSDocReturnTag(){return M(349)},get updateJSDocReturnTag(){return C(349)},get createJSDocThisTag(){return M(350)},get updateJSDocThisTag(){return C(350)},get createJSDocAuthorTag(){return I(337)},get updateJSDocAuthorTag(){return R(337)},get createJSDocClassTag(){return I(339)},get updateJSDocClassTag(){return R(339)},get createJSDocPublicTag(){return I(340)},get updateJSDocPublicTag(){return R(340)},get createJSDocPrivateTag(){return I(341)},get updateJSDocPrivateTag(){return R(341)},get createJSDocProtectedTag(){return I(342)},get updateJSDocProtectedTag(){return R(342)},get createJSDocReadonlyTag(){return I(343)},get updateJSDocReadonlyTag(){return R(343)},get createJSDocOverrideTag(){return I(344)},get updateJSDocOverrideTag(){return R(344)},get createJSDocDeprecatedTag(){return I(338)},get updateJSDocDeprecatedTag(){return R(338)},get createJSDocThrowsTag(){return M(356)},get updateJSDocThrowsTag(){return C(356)},get createJSDocSatisfiesTag(){return M(357)},get updateJSDocSatisfiesTag(){return C(357)},createJSDocEnumTag:Jp,updateJSDocEnumTag:LT,createJSDocUnknownTag:cu,updateJSDocUnknownTag:px,createJSDocText:kT,updateJSDocText:Ys,createJSDocComment:_D,updateJSDocComment:e1,createJsxElement:OE,updateJsxElement:JP,createJsxSelfClosingElement:vd,updateJsxSelfClosingElement:sv,createJsxOpeningElement:X_,updateJsxOpeningElement:fx,createJsxClosingElement:Mp,updateJsxClosingElement:mx,createJsxFragment:up,createJsxText:py,updateJsxText:wT,createJsxOpeningFragment:hD,createJsxJsxClosingFragment:gD,updateJsxFragment:_x,createJsxAttribute:OT,updateJsxAttribute:vD,createJsxAttributes:Ab,updateJsxAttributes:Lp,createJsxSpreadAttribute:Wh,updateJsxSpreadAttribute:yD,createJsxExpression:WT,updateJsxExpression:ds,createJsxNamespacedName:Cr,updateJsxNamespacedName:gf,createCaseClause:Md,updateCaseClause:WE,createDefaultClause:bD,updateDefaultClause:t1,createHeritageClause:FE,updateHeritageClause:FT,createCatchClause:Tg,updateCatchClause:d_,createPropertyAssignment:vf,updatePropertyAssignment:Vm,createShorthandPropertyAssignment:Ag,updateShorthandPropertyAssignment:Ig,createSpreadAssignment:hc,updateSpreadAssignment:ED,createEnumMember:Vf,updateEnumMember:Fh,createSourceFile:yf,updateSourceFile:Vs,createRedirectedSourceFile:zE,createBundle:BE,updateBundle:GE,createUnparsedSource:cv,createUnparsedPrologue:r1,createUnparsedPrepend:D,createUnparsedTextLike:ae,createUnparsedSyntheticReference:ht,createInputFiles:ln,createSyntheticExpression:Or,createSyntaxList:Li,createNotEmittedStatement:bi,createPartiallyEmittedExpression:lo,updatePartiallyEmittedExpression:Ea,createCommaListExpression:Ld,updateCommaListExpression:jf,createSyntheticReferenceExpression:xb,updateSyntheticReferenceExpression:Ti,cloneNode:Db,get createComma(){return s(28)},get createAssignment(){return s(64)},get createLogicalOr(){return s(57)},get createLogicalAnd(){return s(56)},get createBitwiseOr(){return s(52)},get createBitwiseXor(){return s(53)},get createBitwiseAnd(){return s(51)},get createStrictEquality(){return s(37)},get createStrictInequality(){return s(38)},get createEquality(){return s(35)},get createInequality(){return s(36)},get createLessThan(){return s(30)},get createLessThanEquals(){return s(33)},get createGreaterThan(){return s(32)},get createGreaterThanEquals(){return s(34)},get createLeftShift(){return s(48)},get createRightShift(){return s(49)},get createUnsignedRightShift(){return s(50)},get createAdd(){return s(40)},get createSubtract(){return s(41)},get createMultiply(){return s(42)},get createDivide(){return s(44)},get createModulo(){return s(45)},get createExponent(){return s(43)},get createPrefixPlus(){return l(40)},get createPrefixMinus(){return l(41)},get createPrefixIncrement(){return l(46)},get createPrefixDecrement(){return l(47)},get createBitwiseNot(){return l(55)},get createLogicalNot(){return l(54)},get createPostfixIncrement(){return u(46)},get createPostfixDecrement(){return u(47)},createImmediatelyInvokedFunctionExpression:BT,createImmediatelyInvokedArrowFunction:VE,createVoidZero:Y_,createExportDefault:Bh,createExternalModuleExport:SD,createTypeCheck:GT,createIsNotTypeCheck:Tz,createMethodCall:Nb,createGlobalMethodCall:p_,createFunctionBindCall:W4,createFunctionCallCall:F4,createFunctionApplyCall:i1,createArraySliceCall:KP,createArrayConcatCall:Gh,createObjectDefinePropertyCall:yx,createObjectGetOwnPropertyDescriptorCall:z4,createReflectGetCall:$_,createReflectSetCall:$,createPropertyDescriptor:Ke,createCallBinding:Pi,createAssignmentTargetWrapper:_i,inlineExpressions:to,getInternalName:ws,getLocalName:ls,getExportName:Uf,getDeclarationName:Q_,getNamespaceMemberName:jm,getExternalModuleOrNamespaceExportName:uv,restoreOuterExpressions:Jt,restoreEnclosingLabel:Gr,createUseStrictPrologue:dp,copyPrologue:dv,copyStandardPrologue:VT,copyCustomPrologue:TD,ensureUseStrict:XP,liftToBlock:YP,mergeLexicalEnvironment:pv,replaceModifiers:Pb,replaceDecoratorsAndModifiers:AD,replacePropertyName:Kp};return Ve(Lae,E=>E(W)),W;function U(E,P){if(E===void 0||E===et)E=[];else if(k1(E)){if(P===void 0||E.hasTrailingComma===P)return E.transformFlags===void 0&&aAe(E),N.attachNodeArrayDebugInfo(E),E;const $e=E.slice();return $e.pos=E.pos,$e.end=E.end,$e.hasTrailingComma=P,$e.transformFlags=E.transformFlags,N.attachNodeArrayDebugInfo($e),$e}const B=E.length,ce=B>=1&&B<=4?E.slice():E;return ce.pos=-1,ce.end=-1,ce.hasTrailingComma=!!P,ce.transformFlags=0,aAe(ce),N.attachNodeArrayDebugInfo(ce),ce}function X(E){return t.createBaseNode(E)}function ee(E){const P=X(E);return P.symbol=void 0,P.localSymbol=void 0,P}function V(E,P){return E!==P&&(E.typeArguments=P.typeArguments),cr(E,P)}function se(E,P=0){const B=typeof E=="number"?E+"":E;N.assert(B.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");const ce=ee(9);return ce.text=B,ce.numericLiteralFlags=P,P&384&&(ce.transformFlags|=1024),ce}function G(E){const P=At(10);return P.text=typeof E=="string"?E:Q1(E)+"n",P.transformFlags|=32,P}function re(E,P){const B=ee(11);return B.text=E,B.singleQuote=P,B}function _e(E,P,B){const ce=re(E,P);return ce.hasExtendedUnicodeEscape=B,B&&(ce.transformFlags|=1024),ce}function ye(E){const P=re(am(E),void 0);return P.textSourceNode=E,P}function Q(E){const P=At(14);return P.text=E,P}function Y(E,P){switch(E){case 9:return se(P,0);case 10:return G(P);case 11:return _e(P,void 0);case 12:return py(P,!1);case 13:return py(P,!0);case 14:return Q(P);case 15:return Mc(E,P,void 0,0)}}function oe(E){const P=t.createBaseIdentifierNode(80);return P.escapedText=E,P.jsDoc=void 0,P.flowNode=void 0,P.symbol=void 0,P}function he(E,P,B,ce){const $e=oe(bl(E));return tw($e,{flags:P,id:M7,prefix:B,suffix:ce}),M7++,$e}function Ie(E,P,B){P===void 0&&E&&(P=M1(E)),P===80&&(P=void 0);const ce=oe(bl(E));return B&&(ce.flags|=256),ce.escapedText==="await"&&(ce.transformFlags|=67108864),ce.flags&256&&(ce.transformFlags|=1024),ce}function de(E,P,B,ce){let $e=1;P&&($e|=8);const Xt=he("",$e,B,ce);return E&&E(Xt),Xt}function ie(E){let P=2;return E&&(P|=8),he("",P,void 0,void 0)}function ge(E,P=0,B,ce){return N.assert(!(P&7),"Argument out of range: flags"),N.assert((P&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),he(E,3|P,B,ce)}function Ce(E,P=0,B,ce){N.assert(!(P&7),"Argument out of range: flags");const $e=E?Zh(E)?N0(!1,B,E,ce,Rr):`generated@${fs(E)}`:"";(B||ce)&&(P|=16);const Xt=he($e,4|P,B,ce);return Xt.original=E,Xt}function qe(E){const P=t.createBasePrivateIdentifierNode(81);return P.escapedText=E,P.transformFlags|=16777216,P}function Se(E){return ho(E,"#")||N.fail("First character of private identifier must be #: "+E),qe(bl(E))}function Le(E,P,B,ce){const $e=qe(bl(E));return tw($e,{flags:P,id:M7,prefix:B,suffix:ce}),M7++,$e}function Ne(E,P,B){E&&!ho(E,"#")&&N.fail("First character of private identifier must be #: "+E);const ce=8|(E?3:1);return Le(E!=null?E:"",ce,P,B)}function Oe(E,P,B){const ce=Zh(E)?N0(!0,P,E,B,Rr):`#generated@${fs(E)}`,Xt=Le(ce,4|(P||B?16:0),P,B);return Xt.original=E,Xt}function At(E){return t.createBaseTokenNode(E)}function be(E){N.assert(E>=0&&E<=165,"Invalid token"),N.assert(E<=15||E>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),N.assert(E<=9||E>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),N.assert(E!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const P=At(E);let B=0;switch(E){case 134:B=384;break;case 160:B=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:B=1;break;case 108:B=134218752,P.flowNode=void 0;break;case 126:B=1024;break;case 129:B=16777216;break;case 110:B=16384,P.flowNode=void 0;break}return B&&(P.transformFlags|=B),P}function He(){return be(108)}function it(){return be(110)}function Ft(){return be(106)}function yt(){return be(112)}function Ze(){return be(97)}function It(E){return be(E)}function on(E){const P=[];return E&32&&P.push(It(95)),E&128&&P.push(It(138)),E&2048&&P.push(It(90)),E&4096&&P.push(It(87)),E&1&&P.push(It(125)),E&2&&P.push(It(123)),E&4&&P.push(It(124)),E&64&&P.push(It(128)),E&256&&P.push(It(126)),E&16&&P.push(It(164)),E&8&&P.push(It(148)),E&512&&P.push(It(129)),E&1024&&P.push(It(134)),E&8192&&P.push(It(103)),E&16384&&P.push(It(147)),P.length?P:void 0}function Yt(E,P){const B=X(166);return B.left=E,B.right=gc(P),B.transformFlags|=Dr(B.left)|Yk(B.right),B.flowNode=void 0,B}function Nn(E,P,B){return E.left!==P||E.right!==B?cr(Yt(P,B),E):E}function Xn(E){const P=X(167);return P.expression=i().parenthesizeExpressionOfComputedPropertyName(E),P.transformFlags|=Dr(P.expression)|1024|131072,P}function yn(E,P){return E.expression!==P?cr(Xn(P),E):E}function tn(E,P,B,ce){const $e=ee(168);return $e.modifiers=Ya(E),$e.name=gc(P),$e.constraint=B,$e.default=ce,$e.transformFlags=1,$e.expression=void 0,$e.jsDoc=void 0,$e}function en(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.constraint!==ce||E.default!==$e?cr(tn(P,B,ce,$e),E):E}function gi(E,P,B,ce,$e,Xt){var no,Os;const Ir=ee(169);return Ir.modifiers=Ya(E),Ir.dotDotDotToken=P,Ir.name=gc(B),Ir.questionToken=ce,Ir.type=$e,Ir.initializer=bx(Xt),X1(Ir.name)?Ir.transformFlags=1:Ir.transformFlags=Za(Ir.modifiers)|Dr(Ir.dotDotDotToken)|Ky(Ir.name)|Dr(Ir.questionToken)|Dr(Ir.initializer)|(((no=Ir.questionToken)!=null?no:Ir.type)?1:0)|(((Os=Ir.dotDotDotToken)!=null?Os:Ir.initializer)?1024:0)|(M_(Ir.modifiers)&31?8192:0),Ir.jsDoc=void 0,Ir}function bo(E,P,B,ce,$e,Xt,Ir){return E.modifiers!==P||E.dotDotDotToken!==B||E.name!==ce||E.questionToken!==$e||E.type!==Xt||E.initializer!==Ir?cr(gi(P,B,ce,$e,Xt,Ir),E):E}function Ui(E){const P=X(170);return P.expression=i().parenthesizeLeftSideOfAccess(E,!1),P.transformFlags|=Dr(P.expression)|1|8192|33554432,P}function Co(E,P){return E.expression!==P?cr(Ui(P),E):E}function tr(E,P,B,ce){const $e=ee(171);return $e.modifiers=Ya(E),$e.name=gc(P),$e.type=ce,$e.questionToken=B,$e.transformFlags=1,$e.initializer=void 0,$e.jsDoc=void 0,$e}function Ci(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.questionToken!==ce||E.type!==$e?Nr(tr(P,B,ce,$e),E):E}function Nr(E,P){return E!==P&&(E.initializer=P.initializer),cr(E,P)}function Kt(E,P,B,ce,$e){const Xt=ee(172);Xt.modifiers=Ya(E),Xt.name=gc(P),Xt.questionToken=B&&Xy(B)?B:void 0,Xt.exclamationToken=B&&aw(B)?B:void 0,Xt.type=ce,Xt.initializer=bx($e);const Ir=Xt.flags&33554432||M_(Xt.modifiers)&128;return Xt.transformFlags=Za(Xt.modifiers)|Ky(Xt.name)|Dr(Xt.initializer)|(Ir||Xt.questionToken||Xt.exclamationToken||Xt.type?1:0)|(ss(Xt.name)||M_(Xt.modifiers)&256&&Xt.initializer?8192:0)|16777216,Xt.jsDoc=void 0,Xt}function nt(E,P,B,ce,$e,Xt){return E.modifiers!==P||E.name!==B||E.questionToken!==(ce!==void 0&&Xy(ce)?ce:void 0)||E.exclamationToken!==(ce!==void 0&&aw(ce)?ce:void 0)||E.type!==$e||E.initializer!==Xt?cr(Kt(P,B,ce,$e,Xt),E):E}function Bt(E,P,B,ce,$e,Xt){const Ir=ee(173);return Ir.modifiers=Ya(E),Ir.name=gc(P),Ir.questionToken=B,Ir.typeParameters=Ya(ce),Ir.parameters=Ya($e),Ir.type=Xt,Ir.transformFlags=1,Ir.jsDoc=void 0,Ir.locals=void 0,Ir.nextContainer=void 0,Ir.typeArguments=void 0,Ir}function Dn(E,P,B,ce,$e,Xt,Ir){return E.modifiers!==P||E.name!==B||E.questionToken!==ce||E.typeParameters!==$e||E.parameters!==Xt||E.type!==Ir?V(Bt(P,B,ce,$e,Xt,Ir),E):E}function si(E,P,B,ce,$e,Xt,Ir,no){const Os=ee(174);if(Os.modifiers=Ya(E),Os.asteriskToken=P,Os.name=gc(B),Os.questionToken=ce,Os.exclamationToken=void 0,Os.typeParameters=Ya($e),Os.parameters=U(Xt),Os.type=Ir,Os.body=no,!Os.body)Os.transformFlags=1;else{const f_=M_(Os.modifiers)&1024,Lb=!!Os.asteriskToken,Um=f_&&Lb;Os.transformFlags=Za(Os.modifiers)|Dr(Os.asteriskToken)|Ky(Os.name)|Dr(Os.questionToken)|Za(Os.typeParameters)|Za(Os.parameters)|Dr(Os.type)|Dr(Os.body)&-67108865|(Um?128:f_?256:Lb?2048:0)|(Os.questionToken||Os.typeParameters||Os.type?1:0)|1024}return Os.typeArguments=void 0,Os.jsDoc=void 0,Os.locals=void 0,Os.nextContainer=void 0,Os.flowNode=void 0,Os.endFlowNode=void 0,Os.returnFlowNode=void 0,Os}function yi(E,P,B,ce,$e,Xt,Ir,no,Os){return E.modifiers!==P||E.asteriskToken!==B||E.name!==ce||E.questionToken!==$e||E.typeParameters!==Xt||E.parameters!==Ir||E.type!==no||E.body!==Os?oo(si(P,B,ce,$e,Xt,Ir,no,Os),E):E}function oo(E,P){return E!==P&&(E.exclamationToken=P.exclamationToken),cr(E,P)}function Po(E){const P=ee(175);return P.body=E,P.transformFlags=Dr(E)|16777216,P.modifiers=void 0,P.jsDoc=void 0,P.locals=void 0,P.nextContainer=void 0,P.endFlowNode=void 0,P.returnFlowNode=void 0,P}function _a(E,P){return E.body!==P?Ba(Po(P),E):E}function Ba(E,P){return E!==P&&(E.modifiers=P.modifiers),cr(E,P)}function Tn(E,P,B){const ce=ee(176);return ce.modifiers=Ya(E),ce.parameters=U(P),ce.body=B,ce.transformFlags=Za(ce.modifiers)|Za(ce.parameters)|Dr(ce.body)&-67108865|1024,ce.typeParameters=void 0,ce.type=void 0,ce.typeArguments=void 0,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.endFlowNode=void 0,ce.returnFlowNode=void 0,ce}function On(E,P,B,ce){return E.modifiers!==P||E.parameters!==B||E.body!==ce?Je(Tn(P,B,ce),E):E}function Je(E,P){return E!==P&&(E.typeParameters=P.typeParameters,E.type=P.type),V(E,P)}function mt(E,P,B,ce,$e){const Xt=ee(177);return Xt.modifiers=Ya(E),Xt.name=gc(P),Xt.parameters=U(B),Xt.type=ce,Xt.body=$e,Xt.body?Xt.transformFlags=Za(Xt.modifiers)|Ky(Xt.name)|Za(Xt.parameters)|Dr(Xt.type)|Dr(Xt.body)&-67108865|(Xt.type?1:0):Xt.transformFlags=1,Xt.typeArguments=void 0,Xt.typeParameters=void 0,Xt.jsDoc=void 0,Xt.locals=void 0,Xt.nextContainer=void 0,Xt.flowNode=void 0,Xt.endFlowNode=void 0,Xt.returnFlowNode=void 0,Xt}function pt(E,P,B,ce,$e,Xt){return E.modifiers!==P||E.name!==B||E.parameters!==ce||E.type!==$e||E.body!==Xt?Pt(mt(P,B,ce,$e,Xt),E):E}function Pt(E,P){return E!==P&&(E.typeParameters=P.typeParameters),V(E,P)}function le(E,P,B,ce){const $e=ee(178);return $e.modifiers=Ya(E),$e.name=gc(P),$e.parameters=U(B),$e.body=ce,$e.body?$e.transformFlags=Za($e.modifiers)|Ky($e.name)|Za($e.parameters)|Dr($e.body)&-67108865|($e.type?1:0):$e.transformFlags=1,$e.typeArguments=void 0,$e.typeParameters=void 0,$e.type=void 0,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.flowNode=void 0,$e.endFlowNode=void 0,$e.returnFlowNode=void 0,$e}function Fe(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.parameters!==ce||E.body!==$e?dt(le(P,B,ce,$e),E):E}function dt(E,P){return E!==P&&(E.typeParameters=P.typeParameters,E.type=P.type),V(E,P)}function j(E,P,B){const ce=ee(179);return ce.typeParameters=Ya(E),ce.parameters=Ya(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function ot(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?V(j(P,B,ce),E):E}function Dt(E,P,B){const ce=ee(180);return ce.typeParameters=Ya(E),ce.parameters=Ya(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function Ye(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?V(Dt(P,B,ce),E):E}function _t(E,P,B){const ce=ee(181);return ce.modifiers=Ya(E),ce.parameters=Ya(P),ce.type=B,ce.transformFlags=1,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function Gt(E,P,B,ce){return E.parameters!==B||E.type!==ce||E.modifiers!==P?V(_t(P,B,ce),E):E}function gn(E,P){const B=X(204);return B.type=E,B.literal=P,B.transformFlags=1,B}function hn(E,P,B){return E.type!==P||E.literal!==B?cr(gn(P,B),E):E}function pn(E){return be(E)}function q(E,P,B){const ce=X(182);return ce.assertsModifier=E,ce.parameterName=gc(P),ce.type=B,ce.transformFlags=1,ce}function We(E,P,B,ce){return E.assertsModifier!==P||E.parameterName!==B||E.type!==ce?cr(q(P,B,ce),E):E}function Lt(E,P){const B=X(183);return B.typeName=gc(E),B.typeArguments=P&&i().parenthesizeTypeArguments(U(P)),B.transformFlags=1,B}function L(E,P,B){return E.typeName!==P||E.typeArguments!==B?cr(Lt(P,B),E):E}function me(E,P,B){const ce=ee(184);return ce.typeParameters=Ya(E),ce.parameters=Ya(P),ce.type=B,ce.transformFlags=1,ce.modifiers=void 0,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.typeArguments=void 0,ce}function J(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?fe(me(P,B,ce),E):E}function fe(E,P){return E!==P&&(E.modifiers=P.modifiers),V(E,P)}function je(...E){return E.length===4?ke(...E):E.length===3?Tt(...E):N.fail("Incorrect number of arguments specified.")}function ke(E,P,B,ce){const $e=ee(185);return $e.modifiers=Ya(E),$e.typeParameters=Ya(P),$e.parameters=Ya(B),$e.type=ce,$e.transformFlags=1,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.typeArguments=void 0,$e}function Tt(E,P,B){return ke(void 0,E,P,B)}function kt(...E){return E.length===5?nn(...E):E.length===4?En(...E):N.fail("Incorrect number of arguments specified.")}function nn(E,P,B,ce,$e){return E.modifiers!==P||E.typeParameters!==B||E.parameters!==ce||E.type!==$e?V(je(P,B,ce,$e),E):E}function En(E,P,B,ce){return nn(E,E.modifiers,P,B,ce)}function or(E,P){const B=X(186);return B.exprName=E,B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags=1,B}function pr(E,P,B){return E.exprName!==P||E.typeArguments!==B?cr(or(P,B),E):E}function ai(E){const P=ee(187);return P.members=U(E),P.transformFlags=1,P}function li(E,P){return E.members!==P?cr(ai(P),E):E}function Qn(E){const P=X(188);return P.elementType=i().parenthesizeNonArrayTypeOfPostfixType(E),P.transformFlags=1,P}function qr(E,P){return E.elementType!==P?cr(Qn(P),E):E}function Ao(E){const P=X(189);return P.elements=U(i().parenthesizeElementTypesOfTupleType(E)),P.transformFlags=1,P}function Fi(E,P){return E.elements!==P?cr(Ao(P),E):E}function vi(E,P,B,ce){const $e=ee(202);return $e.dotDotDotToken=E,$e.name=P,$e.questionToken=B,$e.type=ce,$e.transformFlags=1,$e.jsDoc=void 0,$e}function ya(E,P,B,ce,$e){return E.dotDotDotToken!==P||E.name!==B||E.questionToken!==ce||E.type!==$e?cr(vi(P,B,ce,$e),E):E}function Xa(E){const P=X(190);return P.type=i().parenthesizeTypeOfOptionalType(E),P.transformFlags=1,P}function Qt(E,P){return E.type!==P?cr(Xa(P),E):E}function ba(E){const P=X(191);return P.type=E,P.transformFlags=1,P}function Gl(E,P){return E.type!==P?cr(ba(P),E):E}function ao(E,P,B){const ce=X(E);return ce.types=W.createNodeArray(B(P)),ce.transformFlags=1,ce}function Ga(E,P,B){return E.types!==P?cr(ao(E.kind,P,B),E):E}function ka(E){return ao(192,E,i().parenthesizeConstituentTypesOfUnionType)}function Ts(E,P){return Ga(E,P,i().parenthesizeConstituentTypesOfUnionType)}function oc(E){return ao(193,E,i().parenthesizeConstituentTypesOfIntersectionType)}function co(E,P){return Ga(E,P,i().parenthesizeConstituentTypesOfIntersectionType)}function da(E,P,B,ce){const $e=X(194);return $e.checkType=i().parenthesizeCheckTypeOfConditionalType(E),$e.extendsType=i().parenthesizeExtendsTypeOfConditionalType(P),$e.trueType=B,$e.falseType=ce,$e.transformFlags=1,$e.locals=void 0,$e.nextContainer=void 0,$e}function mu(E,P,B,ce,$e){return E.checkType!==P||E.extendsType!==B||E.trueType!==ce||E.falseType!==$e?cr(da(P,B,ce,$e),E):E}function Ps(E){const P=X(195);return P.typeParameter=E,P.transformFlags=1,P}function wa(E,P){return E.typeParameter!==P?cr(Ps(P),E):E}function yl(E,P){const B=X(203);return B.head=E,B.templateSpans=U(P),B.transformFlags=1,B}function wf(E,P,B){return E.head!==P||E.templateSpans!==B?cr(yl(P,B),E):E}function _c(E,P,B,ce,$e=!1){const Xt=X(205);return Xt.argument=E,Xt.attributes=P,Xt.assertions&&Xt.assertions.assertClause&&Xt.attributes&&(Xt.assertions.assertClause=Xt.attributes),Xt.qualifier=B,Xt.typeArguments=ce&&i().parenthesizeTypeArguments(ce),Xt.isTypeOf=$e,Xt.transformFlags=1,Xt}function Ll(E,P,B,ce,$e,Xt=E.isTypeOf){return E.argument!==P||E.attributes!==B||E.qualifier!==ce||E.typeArguments!==$e||E.isTypeOf!==Xt?cr(_c(P,B,ce,$e,Xt),E):E}function fl(E){const P=X(196);return P.type=E,P.transformFlags=1,P}function Wo(E,P){return E.type!==P?cr(fl(P),E):E}function an(){const E=X(197);return E.transformFlags=1,E}function Xs(E,P){const B=X(198);return B.operator=E,B.type=E===148?i().parenthesizeOperandOfReadonlyTypeOperator(P):i().parenthesizeOperandOfTypeOperator(P),B.transformFlags=1,B}function su(E,P){return E.type!==P?cr(Xs(E.operator,P),E):E}function _u(E,P){const B=X(199);return B.objectType=i().parenthesizeNonArrayTypeOfPostfixType(E),B.indexType=P,B.transformFlags=1,B}function Dp(E,P,B){return E.objectType!==P||E.indexType!==B?cr(_u(P,B),E):E}function Gs(E,P,B,ce,$e,Xt){const Ir=ee(200);return Ir.readonlyToken=E,Ir.typeParameter=P,Ir.nameType=B,Ir.questionToken=ce,Ir.type=$e,Ir.members=Xt&&U(Xt),Ir.transformFlags=1,Ir.locals=void 0,Ir.nextContainer=void 0,Ir}function Pc(E,P,B,ce,$e,Xt,Ir){return E.readonlyToken!==P||E.typeParameter!==B||E.nameType!==ce||E.questionToken!==$e||E.type!==Xt||E.members!==Ir?cr(Gs(P,B,ce,$e,Xt,Ir),E):E}function pe(E){const P=X(201);return P.literal=E,P.transformFlags=1,P}function Z(E,P){return E.literal!==P?cr(pe(P),E):E}function we(E){const P=X(206);return P.elements=U(E),P.transformFlags|=Za(P.elements)|1024|524288,P.transformFlags&32768&&(P.transformFlags|=65664),P}function gt(E,P){return E.elements!==P?cr(we(P),E):E}function fn(E){const P=X(207);return P.elements=U(E),P.transformFlags|=Za(P.elements)|1024|524288,P}function Er(E,P){return E.elements!==P?cr(fn(P),E):E}function Ar(E,P,B,ce){const $e=ee(208);return $e.dotDotDotToken=E,$e.propertyName=gc(P),$e.name=gc(B),$e.initializer=bx(ce),$e.transformFlags|=Dr($e.dotDotDotToken)|Ky($e.propertyName)|Ky($e.name)|Dr($e.initializer)|($e.dotDotDotToken?32768:0)|1024,$e.flowNode=void 0,$e}function Jr(E,P,B,ce,$e){return E.propertyName!==B||E.dotDotDotToken!==P||E.name!==ce||E.initializer!==$e?cr(Ar(P,B,ce,$e),E):E}function Di(E,P){const B=X(209),ce=E&&il(E),$e=U(E,ce&&Kc(ce)?!0:void 0);return B.elements=i().parenthesizeExpressionsOfCommaDelimitedList($e),B.multiLine=P,B.transformFlags|=Za(B.elements),B}function br(E,P){return E.elements!==P?cr(Di(P,E.multiLine),E):E}function Jo(E,P){const B=ee(210);return B.properties=U(E),B.multiLine=P,B.transformFlags|=Za(B.properties),B.jsDoc=void 0,B}function kl(E,P){return E.properties!==P?cr(Jo(P,E.multiLine),E):E}function Gc(E,P,B){const ce=ee(211);return ce.expression=E,ce.questionDotToken=P,ce.name=B,ce.transformFlags=Dr(ce.expression)|Dr(ce.questionDotToken)|(Ue(ce.name)?Yk(ce.name):Dr(ce.name)|536870912),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function xl(E,P){const B=Gc(i().parenthesizeLeftSideOfAccess(E,!1),void 0,gc(P));return DC(E)&&(B.transformFlags|=384),B}function Zl(E,P,B){return W6(E)?ac(E,P,E.questionDotToken,sa(B,Ue)):E.expression!==P||E.name!==B?cr(xl(P,B),E):E}function Ns(E,P,B){const ce=Gc(i().parenthesizeLeftSideOfAccess(E,!0),P,gc(B));return ce.flags|=64,ce.transformFlags|=32,ce}function ac(E,P,B,ce){return N.assert(!!(E.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),E.expression!==P||E.questionDotToken!==B||E.name!==ce?cr(Ns(P,B,ce),E):E}function ap(E,P,B){const ce=ee(212);return ce.expression=E,ce.questionDotToken=P,ce.argumentExpression=B,ce.transformFlags|=Dr(ce.expression)|Dr(ce.questionDotToken)|Dr(ce.argumentExpression),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function sp(E,P){const B=ap(i().parenthesizeLeftSideOfAccess(E,!1),void 0,a1(P));return DC(E)&&(B.transformFlags|=384),B}function Yc(E,P,B){return lj(E)?Me(E,P,E.questionDotToken,B):E.expression!==P||E.argumentExpression!==B?cr(sp(P,B),E):E}function Cd(E,P,B){const ce=ap(i().parenthesizeLeftSideOfAccess(E,!0),P,a1(B));return ce.flags|=64,ce.transformFlags|=32,ce}function Me(E,P,B,ce){return N.assert(!!(E.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),E.expression!==P||E.questionDotToken!==B||E.argumentExpression!==ce?cr(Cd(P,B,ce),E):E}function Ot(E,P,B,ce){const $e=ee(213);return $e.expression=E,$e.questionDotToken=P,$e.typeArguments=B,$e.arguments=ce,$e.transformFlags|=Dr($e.expression)|Dr($e.questionDotToken)|Za($e.typeArguments)|Za($e.arguments),$e.typeArguments&&($e.transformFlags|=1),Bd($e.expression)&&($e.transformFlags|=16384),$e}function Yn(E,P,B){const ce=Ot(i().parenthesizeLeftSideOfAccess(E,!1),void 0,Ya(P),i().parenthesizeExpressionsOfCommaDelimitedList(U(B)));return NC(ce.expression)&&(ce.transformFlags|=8388608),ce}function Io(E,P,B,ce){return hS(E)?ra(E,P,E.questionDotToken,B,ce):E.expression!==P||E.typeArguments!==B||E.arguments!==ce?cr(Yn(P,B,ce),E):E}function Qo(E,P,B,ce){const $e=Ot(i().parenthesizeLeftSideOfAccess(E,!0),P,Ya(B),i().parenthesizeExpressionsOfCommaDelimitedList(U(ce)));return $e.flags|=64,$e.transformFlags|=32,$e}function ra(E,P,B,ce,$e){return N.assert(!!(E.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),E.expression!==P||E.questionDotToken!==B||E.typeArguments!==ce||E.arguments!==$e?cr(Qo(P,B,ce,$e),E):E}function sc(E,P,B){const ce=ee(214);return ce.expression=i().parenthesizeExpressionOfNew(E),ce.typeArguments=Ya(P),ce.arguments=B?i().parenthesizeExpressionsOfCommaDelimitedList(B):void 0,ce.transformFlags|=Dr(ce.expression)|Za(ce.typeArguments)|Za(ce.arguments)|32,ce.typeArguments&&(ce.transformFlags|=1),ce}function Ic(E,P,B,ce){return E.expression!==P||E.typeArguments!==B||E.arguments!==ce?cr(sc(P,B,ce),E):E}function ml(E,P,B){const ce=X(215);return ce.tag=i().parenthesizeLeftSideOfAccess(E,!1),ce.typeArguments=Ya(P),ce.template=B,ce.transformFlags|=Dr(ce.tag)|Za(ce.typeArguments)|Dr(ce.template)|1024,ce.typeArguments&&(ce.transformFlags|=1),bU(ce.template)&&(ce.transformFlags|=128),ce}function Sl(E,P,B,ce){return E.tag!==P||E.typeArguments!==B||E.template!==ce?cr(ml(P,B,ce),E):E}function Kl(E,P){const B=X(216);return B.expression=i().parenthesizeOperandOfPrefixUnary(P),B.type=E,B.transformFlags|=Dr(B.expression)|Dr(B.type)|1,B}function lc(E,P,B){return E.type!==P||E.expression!==B?cr(Kl(P,B),E):E}function $c(E){const P=X(217);return P.expression=E,P.transformFlags=Dr(P.expression),P.jsDoc=void 0,P}function ff(E,P){return E.expression!==P?cr($c(P),E):E}function Ud(E,P,B,ce,$e,Xt,Ir){const no=ee(218);no.modifiers=Ya(E),no.asteriskToken=P,no.name=gc(B),no.typeParameters=Ya(ce),no.parameters=U($e),no.type=Xt,no.body=Ir;const Os=M_(no.modifiers)&1024,f_=!!no.asteriskToken,Lb=Os&&f_;return no.transformFlags=Za(no.modifiers)|Dr(no.asteriskToken)|Ky(no.name)|Za(no.typeParameters)|Za(no.parameters)|Dr(no.type)|Dr(no.body)&-67108865|(Lb?128:Os?256:f_?2048:0)|(no.typeParameters||no.type?1:0)|4194304,no.typeArguments=void 0,no.jsDoc=void 0,no.locals=void 0,no.nextContainer=void 0,no.flowNode=void 0,no.endFlowNode=void 0,no.returnFlowNode=void 0,no}function Pd(E,P,B,ce,$e,Xt,Ir,no){return E.name!==ce||E.modifiers!==P||E.asteriskToken!==B||E.typeParameters!==$e||E.parameters!==Xt||E.type!==Ir||E.body!==no?V(Ud(P,B,ce,$e,Xt,Ir,no),E):E}function Of(E,P,B,ce,$e,Xt){const Ir=ee(219);Ir.modifiers=Ya(E),Ir.typeParameters=Ya(P),Ir.parameters=U(B),Ir.type=ce,Ir.equalsGreaterThanToken=$e!=null?$e:be(39),Ir.body=i().parenthesizeConciseBodyOfArrowFunction(Xt);const no=M_(Ir.modifiers)&1024;return Ir.transformFlags=Za(Ir.modifiers)|Za(Ir.typeParameters)|Za(Ir.parameters)|Dr(Ir.type)|Dr(Ir.equalsGreaterThanToken)|Dr(Ir.body)&-67108865|(Ir.typeParameters||Ir.type?1:0)|(no?16640:0)|1024,Ir.typeArguments=void 0,Ir.jsDoc=void 0,Ir.locals=void 0,Ir.nextContainer=void 0,Ir.flowNode=void 0,Ir.endFlowNode=void 0,Ir.returnFlowNode=void 0,Ir}function H_(E,P,B,ce,$e,Xt,Ir){return E.modifiers!==P||E.typeParameters!==B||E.parameters!==ce||E.type!==$e||E.equalsGreaterThanToken!==Xt||E.body!==Ir?V(Of(P,B,ce,$e,Xt,Ir),E):E}function Mh(E){const P=X(220);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Dr(P.expression),P}function Qg(E,P){return E.expression!==P?cr(Mh(P),E):E}function Vu(E){const P=X(221);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Dr(P.expression),P}function Zg(E,P){return E.expression!==P?cr(Vu(P),E):E}function Np(E){const P=X(222);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Dr(P.expression),P}function hg(E,P){return E.expression!==P?cr(Np(P),E):E}function Hd(E){const P=X(223);return P.expression=i().parenthesizeOperandOfPrefixUnary(E),P.transformFlags|=Dr(P.expression)|256|128|2097152,P}function te(E,P){return E.expression!==P?cr(Hd(P),E):E}function lt(E,P){const B=X(224);return B.operator=E,B.operand=i().parenthesizeOperandOfPrefixUnary(P),B.transformFlags|=Dr(B.operand),(E===46||E===47)&&Ue(B.operand)&&!ul(B.operand)&&!Jg(B.operand)&&(B.transformFlags|=268435456),B}function zt(E,P){return E.operand!==P?cr(lt(E.operator,P),E):E}function qt(E,P){const B=X(225);return B.operator=P,B.operand=i().parenthesizeOperandOfPostfixUnary(E),B.transformFlags|=Dr(B.operand),Ue(B.operand)&&!ul(B.operand)&&!Jg(B.operand)&&(B.transformFlags|=268435456),B}function F(E,P){return E.operand!==P?cr(qt(P,E.operator),E):E}function De(E,P,B){const ce=ee(226),$e=$P(P),Xt=$e.kind;return ce.left=i().parenthesizeLeftSideOfBinary(Xt,E),ce.operatorToken=$e,ce.right=i().parenthesizeRightSideOfBinary(Xt,ce.left,B),ce.transformFlags|=Dr(ce.left)|Dr(ce.operatorToken)|Dr(ce.right),Xt===61?ce.transformFlags|=32:Xt===64?za(ce.left)?ce.transformFlags|=5248|st(ce.left):hd(ce.left)&&(ce.transformFlags|=5120|st(ce.left)):Xt===43||Xt===68?ce.transformFlags|=512:QN(Xt)&&(ce.transformFlags|=16),Xt===103&&Qi(ce.left)&&(ce.transformFlags|=536870912),ce.jsDoc=void 0,ce}function st(E){return Tw(E)?65536:0}function Vt(E,P,B,ce){return E.left!==P||E.operatorToken!==B||E.right!==ce?cr(De(P,B,ce),E):E}function lr(E,P,B,ce,$e){const Xt=X(227);return Xt.condition=i().parenthesizeConditionOfConditionalExpression(E),Xt.questionToken=P!=null?P:be(58),Xt.whenTrue=i().parenthesizeBranchOfConditionalExpression(B),Xt.colonToken=ce!=null?ce:be(59),Xt.whenFalse=i().parenthesizeBranchOfConditionalExpression($e),Xt.transformFlags|=Dr(Xt.condition)|Dr(Xt.questionToken)|Dr(Xt.whenTrue)|Dr(Xt.colonToken)|Dr(Xt.whenFalse),Xt}function ri(E,P,B,ce,$e,Xt){return E.condition!==P||E.questionToken!==B||E.whenTrue!==ce||E.colonToken!==$e||E.whenFalse!==Xt?cr(lr(P,B,ce,$e,Xt),E):E}function Yr(E,P){const B=X(228);return B.head=E,B.templateSpans=U(P),B.transformFlags|=Dr(B.head)|Za(B.templateSpans)|1024,B}function uo(E,P,B){return E.head!==P||E.templateSpans!==B?cr(Yr(P,B),E):E}function Va(E,P,B,ce=0){N.assert(!(ce&-7177),"Unsupported template flags.");let $e;if(B!==void 0&&B!==P&&($e=ZGe(E,B),typeof $e=="object"))return N.fail("Invalid raw text");if(P===void 0){if($e===void 0)return N.fail("Arguments 'text' and 'rawText' may not both be undefined.");P=$e}else $e!==void 0&&N.assert(P===$e,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return P}function ja(E){let P=1024;return E&&(P|=128),P}function Vl(E,P,B,ce){const $e=At(E);return $e.text=P,$e.rawText=B,$e.templateFlags=ce&7176,$e.transformFlags=ja($e.templateFlags),$e}function hu(E,P,B,ce){const $e=ee(E);return $e.text=P,$e.rawText=B,$e.templateFlags=ce&7176,$e.transformFlags=ja($e.templateFlags),$e}function Mc(E,P,B,ce){return E===15?hu(E,P,B,ce):Vl(E,P,B,ce)}function Cp(E,P,B){return E=Va(16,E,P,B),Mc(16,E,P,B)}function qd(E,P,B){return E=Va(16,E,P,B),Mc(17,E,P,B)}function ub(E,P,B){return E=Va(16,E,P,B),Mc(18,E,P,B)}function gs(E,P,B){return E=Va(16,E,P,B),hu(15,E,P,B)}function Wf(E,P){N.assert(!E||!!P,"A `YieldExpression` with an asteriskToken must have an expression.");const B=X(229);return B.expression=P&&i().parenthesizeExpressionForDisallowedComma(P),B.asteriskToken=E,B.transformFlags|=Dr(B.expression)|Dr(B.asteriskToken)|1024|128|1048576,B}function Ff(E,P,B){return E.expression!==B||E.asteriskToken!==P?cr(Wf(P,B),E):E}function Hi(E){const P=X(230);return P.expression=i().parenthesizeExpressionForDisallowedComma(E),P.transformFlags|=Dr(P.expression)|1024|32768,P}function Lh(E,P){return E.expression!==P?cr(Hi(P),E):E}function gg(E,P,B,ce,$e){const Xt=ee(231);return Xt.modifiers=Ya(E),Xt.name=gc(P),Xt.typeParameters=Ya(B),Xt.heritageClauses=Ya(ce),Xt.members=U($e),Xt.transformFlags|=Za(Xt.modifiers)|Ky(Xt.name)|Za(Xt.typeParameters)|Za(Xt.heritageClauses)|Za(Xt.members)|(Xt.typeParameters?1:0)|1024,Xt.jsDoc=void 0,Xt}function zf(E,P,B,ce,$e,Xt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==$e||E.members!==Xt?cr(gg(P,B,ce,$e,Xt),E):E}function db(){return X(232)}function pb(E,P){const B=X(233);return B.expression=i().parenthesizeLeftSideOfAccess(E,!1),B.typeArguments=P&&i().parenthesizeTypeArguments(P),B.transformFlags|=Dr(B.expression)|Za(B.typeArguments)|1024,B}function mf(E,P,B){return E.expression!==P||E.typeArguments!==B?cr(pb(P,B),E):E}function q_(E,P){const B=X(234);return B.expression=E,B.type=P,B.transformFlags|=Dr(B.expression)|Dr(B.type)|1,B}function _f(E,P,B){return E.expression!==P||E.type!==B?cr(q_(P,B),E):E}function ev(E){const P=X(235);return P.expression=i().parenthesizeLeftSideOfAccess(E,!1),P.transformFlags|=Dr(P.expression)|1,P}function ze(E,P){return z6(E)?vn(E,P):E.expression!==P?cr(ev(P),E):E}function Qe(E,P){const B=X(238);return B.expression=E,B.type=P,B.transformFlags|=Dr(B.expression)|Dr(B.type)|1,B}function Ct(E,P,B){return E.expression!==P||E.type!==B?cr(Qe(P,B),E):E}function jt(E){const P=X(235);return P.flags|=64,P.expression=i().parenthesizeLeftSideOfAccess(E,!0),P.transformFlags|=Dr(P.expression)|1,P}function vn(E,P){return N.assert(!!(E.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),E.expression!==P?cr(jt(P),E):E}function $n(E,P){const B=X(236);switch(B.keywordToken=E,B.name=P,B.transformFlags|=Dr(B.name),E){case 105:B.transformFlags|=1024;break;case 102:B.transformFlags|=32;break;default:return N.assertNever(E)}return B.flowNode=void 0,B}function bn(E,P){return E.name!==P?cr($n(E.keywordToken,P),E):E}function er(E,P){const B=X(239);return B.expression=E,B.literal=P,B.transformFlags|=Dr(B.expression)|Dr(B.literal)|1024,B}function mi(E,P,B){return E.expression!==P||E.literal!==B?cr(er(P,B),E):E}function fr(){const E=X(240);return E.transformFlags|=1024,E}function ti(E,P){const B=X(241);return B.statements=U(E),B.multiLine=P,B.transformFlags|=Za(B.statements),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B}function gr(E,P){return E.statements!==P?cr(ti(P,E.multiLine),E):E}function Zo(E,P){const B=X(243);return B.modifiers=Ya(E),B.declarationList=Do(P)?lp(P):P,B.transformFlags|=Za(B.modifiers)|Dr(B.declarationList),M_(B.modifiers)&128&&(B.transformFlags=1),B.jsDoc=void 0,B.flowNode=void 0,B}function es(E,P,B){return E.modifiers!==P||E.declarationList!==B?cr(Zo(P,B),E):E}function nd(){const E=X(242);return E.jsDoc=void 0,E}function gu(E){const P=X(244);return P.expression=i().parenthesizeExpressionOfExpressionStatement(E),P.transformFlags|=Dr(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function tv(E,P){return E.expression!==P?cr(gu(P),E):E}function j0(E,P,B){const ce=X(245);return ce.expression=E,ce.thenStatement=Mb(P),ce.elseStatement=Mb(B),ce.transformFlags|=Dr(ce.expression)|Dr(ce.thenStatement)|Dr(ce.elseStatement),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function QI(E,P,B,ce){return E.expression!==P||E.thenStatement!==B||E.elseStatement!==ce?cr(j0(P,B,ce),E):E}function U0(E,P){const B=X(246);return B.statement=Mb(E),B.expression=P,B.transformFlags|=Dr(B.statement)|Dr(B.expression),B.jsDoc=void 0,B.flowNode=void 0,B}function rD(E,P,B){return E.statement!==P||E.expression!==B?cr(U0(P,B),E):E}function iD(E,P){const B=X(247);return B.expression=E,B.statement=Mb(P),B.transformFlags|=Dr(B.expression)|Dr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function oD(E,P,B){return E.expression!==P||E.statement!==B?cr(iD(P,B),E):E}function hT(E,P,B,ce){const $e=X(248);return $e.initializer=E,$e.condition=P,$e.incrementor=B,$e.statement=Mb(ce),$e.transformFlags|=Dr($e.initializer)|Dr($e.condition)|Dr($e.incrementor)|Dr($e.statement),$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.flowNode=void 0,$e}function RE(E,P,B,ce,$e){return E.initializer!==P||E.condition!==B||E.incrementor!==ce||E.statement!==$e?cr(hT(P,B,ce,$e),E):E}function ZI(E,P,B){const ce=X(249);return ce.initializer=E,ce.expression=P,ce.statement=Mb(B),ce.transformFlags|=Dr(ce.initializer)|Dr(ce.expression)|Dr(ce.statement),ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce.flowNode=void 0,ce}function aD(E,P,B,ce){return E.initializer!==P||E.expression!==B||E.statement!==ce?cr(ZI(P,B,ce),E):E}function ex(E,P,B,ce){const $e=X(250);return $e.awaitModifier=E,$e.initializer=P,$e.expression=i().parenthesizeExpressionForDisallowedComma(B),$e.statement=Mb(ce),$e.transformFlags|=Dr($e.awaitModifier)|Dr($e.initializer)|Dr($e.expression)|Dr($e.statement)|1024,E&&($e.transformFlags|=128),$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e.flowNode=void 0,$e}function tx(E,P,B,ce,$e){return E.awaitModifier!==P||E.initializer!==B||E.expression!==ce||E.statement!==$e?cr(ex(P,B,ce,$e),E):E}function nx(E){const P=X(251);return P.label=gc(E),P.transformFlags|=Dr(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function rx(E,P){return E.label!==P?cr(nx(P),E):E}function gT(E){const P=X(252);return P.label=gc(E),P.transformFlags|=Dr(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function ix(E,P){return E.label!==P?cr(gT(P),E):E}function DE(E){const P=X(253);return P.expression=E,P.transformFlags|=Dr(P.expression)|128|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function NE(E,P){return E.expression!==P?cr(DE(P),E):E}function fb(E,P){const B=X(254);return B.expression=E,B.statement=Mb(P),B.transformFlags|=Dr(B.expression)|Dr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function mb(E,P,B){return E.expression!==P||E.statement!==B?cr(fb(P,B),E):E}function vg(E,P){const B=X(255);return B.expression=i().parenthesizeExpressionForDisallowedComma(E),B.caseBlock=P,B.transformFlags|=Dr(B.expression)|Dr(B.caseBlock),B.jsDoc=void 0,B.flowNode=void 0,B.possiblyExhaustive=!1,B}function H0(E,P,B){return E.expression!==P||E.caseBlock!==B?cr(vg(P,B),E):E}function cs(E,P){const B=X(256);return B.label=gc(E),B.statement=Mb(P),B.transformFlags|=Dr(B.label)|Dr(B.statement),B.jsDoc=void 0,B.flowNode=void 0,B}function vT(E,P,B){return E.label!==P||E.statement!==B?cr(cs(P,B),E):E}function sD(E){const P=X(257);return P.expression=E,P.transformFlags|=Dr(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function q0(E,P){return E.expression!==P?cr(sD(P),E):E}function nv(E,P,B){const ce=X(258);return ce.tryBlock=E,ce.catchClause=P,ce.finallyBlock=B,ce.transformFlags|=Dr(ce.tryBlock)|Dr(ce.catchClause)|Dr(ce.finallyBlock),ce.jsDoc=void 0,ce.flowNode=void 0,ce}function kh(E,P,B,ce){return E.tryBlock!==P||E.catchClause!==B||E.finallyBlock!==ce?cr(nv(P,B,ce),E):E}function Bf(){const E=X(259);return E.jsDoc=void 0,E.flowNode=void 0,E}function Jd(E,P,B,ce){var Xt;const $e=ee(260);return $e.name=gc(E),$e.exclamationToken=P,$e.type=B,$e.initializer=bx(ce),$e.transformFlags|=Ky($e.name)|Dr($e.initializer)|(((Xt=$e.exclamationToken)!=null?Xt:$e.type)?1:0),$e.jsDoc=void 0,$e}function Pp(E,P,B,ce,$e){return E.name!==P||E.type!==ce||E.exclamationToken!==B||E.initializer!==$e?cr(Jd(P,B,ce,$e),E):E}function lp(E,P=0){const B=X(261);return B.flags|=P&7,B.declarations=U(E),B.transformFlags|=Za(B.declarations)|4194304,P&7&&(B.transformFlags|=263168),P&4&&(B.transformFlags|=4),B}function ay(E,P){return E.declarations!==P?cr(lp(P,E.flags),E):E}function yT(E,P,B,ce,$e,Xt,Ir){const no=ee(262);if(no.modifiers=Ya(E),no.asteriskToken=P,no.name=gc(B),no.typeParameters=Ya(ce),no.parameters=U($e),no.type=Xt,no.body=Ir,!no.body||M_(no.modifiers)&128)no.transformFlags=1;else{const Os=M_(no.modifiers)&1024,f_=!!no.asteriskToken,Lb=Os&&f_;no.transformFlags=Za(no.modifiers)|Dr(no.asteriskToken)|Ky(no.name)|Za(no.typeParameters)|Za(no.parameters)|Dr(no.type)|Dr(no.body)&-67108865|(Lb?128:Os?256:f_?2048:0)|(no.typeParameters||no.type?1:0)|4194304}return no.typeArguments=void 0,no.jsDoc=void 0,no.locals=void 0,no.nextContainer=void 0,no.endFlowNode=void 0,no.returnFlowNode=void 0,no}function lD(E,P,B,ce,$e,Xt,Ir,no){return E.modifiers!==P||E.asteriskToken!==B||E.name!==ce||E.typeParameters!==$e||E.parameters!==Xt||E.type!==Ir||E.body!==no?ox(yT(P,B,ce,$e,Xt,Ir,no),E):E}function ox(E,P){return E!==P&&E.modifiers===P.modifiers&&(E.modifiers=P.modifiers),V(E,P)}function _b(E,P,B,ce,$e){const Xt=ee(263);return Xt.modifiers=Ya(E),Xt.name=gc(P),Xt.typeParameters=Ya(B),Xt.heritageClauses=Ya(ce),Xt.members=U($e),M_(Xt.modifiers)&128?Xt.transformFlags=1:(Xt.transformFlags|=Za(Xt.modifiers)|Ky(Xt.name)|Za(Xt.typeParameters)|Za(Xt.heritageClauses)|Za(Xt.members)|(Xt.typeParameters?1:0)|1024,Xt.transformFlags&8192&&(Xt.transformFlags|=1)),Xt.jsDoc=void 0,Xt}function J0(E,P,B,ce,$e,Xt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==$e||E.members!==Xt?cr(_b(P,B,ce,$e,Xt),E):E}function ax(E,P,B,ce,$e){const Xt=ee(264);return Xt.modifiers=Ya(E),Xt.name=gc(P),Xt.typeParameters=Ya(B),Xt.heritageClauses=Ya(ce),Xt.members=U($e),Xt.transformFlags=1,Xt.jsDoc=void 0,Xt}function xc(E,P,B,ce,$e,Xt){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.heritageClauses!==$e||E.members!==Xt?cr(ax(P,B,ce,$e,Xt),E):E}function sy(E,P,B,ce){const $e=ee(265);return $e.modifiers=Ya(E),$e.name=gc(P),$e.typeParameters=Ya(B),$e.type=ce,$e.transformFlags=1,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e}function sx(E,P,B,ce,$e){return E.modifiers!==P||E.name!==B||E.typeParameters!==ce||E.type!==$e?cr(sy(P,B,ce,$e),E):E}function s_(E,P,B){const ce=ee(266);return ce.modifiers=Ya(E),ce.name=gc(P),ce.members=U(B),ce.transformFlags|=Za(ce.modifiers)|Dr(ce.name)|Za(ce.members)|1,ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function bT(E,P,B,ce){return E.modifiers!==P||E.name!==B||E.members!==ce?cr(s_(P,B,ce),E):E}function Xe(E,P,B,ce=0){const $e=ee(267);return $e.modifiers=Ya(E),$e.flags|=ce&2088,$e.name=P,$e.body=B,M_($e.modifiers)&128?$e.transformFlags=1:$e.transformFlags|=Za($e.modifiers)|Dr($e.name)|Dr($e.body)|1,$e.transformFlags&=-67108865,$e.jsDoc=void 0,$e.locals=void 0,$e.nextContainer=void 0,$e}function l_(E,P,B,ce){return E.modifiers!==P||E.name!==B||E.body!==ce?cr(Xe(P,B,ce,E.flags),E):E}function vu(E){const P=X(268);return P.statements=U(E),P.transformFlags|=Za(P.statements),P.jsDoc=void 0,P}function K0(E,P){return E.statements!==P?cr(vu(P),E):E}function lx(E){const P=X(269);return P.clauses=U(E),P.transformFlags|=Za(P.clauses),P.locals=void 0,P.nextContainer=void 0,P}function hb(E,P){return E.clauses!==P?cr(lx(P),E):E}function ly(E){const P=ee(270);return P.name=gc(E),P.transformFlags|=Yk(P.name)|1,P.modifiers=void 0,P.jsDoc=void 0,P}function cy(E,P){return E.name!==P?jP(ly(P),E):E}function jP(E,P){return E!==P&&(E.modifiers=P.modifiers),cr(E,P)}function ts(E,P,B,ce){const $e=ee(271);return $e.modifiers=Ya(E),$e.name=gc(B),$e.isTypeOnly=P,$e.moduleReference=ce,$e.transformFlags|=Za($e.modifiers)|Yk($e.name)|Dr($e.moduleReference),Rh($e.moduleReference)||($e.transformFlags|=1),$e.transformFlags&=-67108865,$e.jsDoc=void 0,$e}function c_(E,P,B,ce,$e){return E.modifiers!==P||E.isTypeOnly!==B||E.name!==ce||E.moduleReference!==$e?cr(ts(P,B,ce,$e),E):E}function ET(E,P,B,ce){const $e=X(272);return $e.modifiers=Ya(E),$e.importClause=P,$e.moduleSpecifier=B,$e.attributes=$e.assertClause=ce,$e.transformFlags|=Dr($e.importClause)|Dr($e.moduleSpecifier),$e.transformFlags&=-67108865,$e.jsDoc=void 0,$e}function ST(E,P,B,ce,$e){return E.modifiers!==P||E.importClause!==B||E.moduleSpecifier!==ce||E.attributes!==$e?cr(ET(P,B,ce,$e),E):E}function X0(E,P,B){const ce=ee(273);return ce.isTypeOnly=E,ce.name=P,ce.namedBindings=B,ce.transformFlags|=Dr(ce.name)|Dr(ce.namedBindings),E&&(ce.transformFlags|=1),ce.transformFlags&=-67108865,ce}function TT(E,P,B,ce){return E.isTypeOnly!==P||E.name!==B||E.namedBindings!==ce?cr(X0(P,B,ce),E):E}function _m(E,P){const B=X(300);return B.elements=U(E),B.multiLine=P,B.token=132,B.transformFlags|=4,B}function hm(E,P,B){return E.elements!==P||E.multiLine!==B?cr(_m(P,B),E):E}function rv(E,P){const B=X(301);return B.name=E,B.value=P,B.transformFlags|=4,B}function cx(E,P,B){return E.name!==P||E.value!==B?cr(rv(P,B),E):E}function u_(E,P){const B=X(302);return B.assertClause=E,B.multiLine=P,B}function cD(E,P,B){return E.assertClause!==P||E.multiLine!==B?cr(u_(P,B),E):E}function CE(E,P,B){const ce=X(300);return ce.token=B!=null?B:118,ce.elements=U(E),ce.multiLine=P,ce.transformFlags|=4,ce}function eo(E,P,B){return E.elements!==P||E.multiLine!==B?cr(CE(P,B,E.token),E):E}function Zr(E,P){const B=X(301);return B.name=E,B.value=P,B.transformFlags|=4,B}function wh(E,P,B){return E.name!==P||E.value!==B?cr(Zr(P,B),E):E}function Kd(E){const P=ee(274);return P.name=E,P.transformFlags|=Dr(P.name),P.transformFlags&=-67108865,P}function UP(E,P){return E.name!==P?cr(Kd(P),E):E}function iv(E){const P=ee(280);return P.name=E,P.transformFlags|=Dr(P.name)|32,P.transformFlags&=-67108865,P}function HP(E,P){return E.name!==P?cr(iv(P),E):E}function gb(E){const P=X(275);return P.elements=U(E),P.transformFlags|=Za(P.elements),P.transformFlags&=-67108865,P}function Tl(E,P){return E.elements!==P?cr(gb(P),E):E}function Hp(E,P,B){const ce=ee(276);return ce.isTypeOnly=E,ce.propertyName=P,ce.name=B,ce.transformFlags|=Dr(ce.propertyName)|Dr(ce.name),ce.transformFlags&=-67108865,ce}function yg(E,P,B,ce){return E.isTypeOnly!==P||E.propertyName!==B||E.name!==ce?cr(Hp(P,B,ce),E):E}function gm(E,P,B){const ce=ee(277);return ce.modifiers=Ya(E),ce.isExportEquals=P,ce.expression=P?i().parenthesizeRightSideOfBinary(64,void 0,B):i().parenthesizeExpressionOfExportDefault(B),ce.transformFlags|=Za(ce.modifiers)|Dr(ce.expression),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function vb(E,P,B){return E.modifiers!==P||E.expression!==B?cr(gm(P,E.isExportEquals,B),E):E}function Fm(E,P,B,ce,$e){const Xt=ee(278);return Xt.modifiers=Ya(E),Xt.isTypeOnly=P,Xt.exportClause=B,Xt.moduleSpecifier=ce,Xt.attributes=Xt.assertClause=$e,Xt.transformFlags|=Za(Xt.modifiers)|Dr(Xt.exportClause)|Dr(Xt.moduleSpecifier),Xt.transformFlags&=-67108865,Xt.jsDoc=void 0,Xt}function ov(E,P,B,ce,$e,Xt){return E.modifiers!==P||E.isTypeOnly!==B||E.exportClause!==ce||E.moduleSpecifier!==$e||E.attributes!==Xt?PE(Fm(P,B,ce,$e,Xt),E):E}function PE(E,P){return E!==P&&E.modifiers===P.modifiers&&(E.modifiers=P.modifiers),cr(E,P)}function AT(E){const P=X(279);return P.elements=U(E),P.transformFlags|=Za(P.elements),P.transformFlags&=-67108865,P}function bg(E,P){return E.elements!==P?cr(AT(P),E):E}function ux(E,P,B){const ce=X(281);return ce.isTypeOnly=E,ce.propertyName=gc(P),ce.name=gc(B),ce.transformFlags|=Dr(ce.propertyName)|Dr(ce.name),ce.transformFlags&=-67108865,ce.jsDoc=void 0,ce}function Eg(E,P,B,ce){return E.isTypeOnly!==P||E.propertyName!==B||E.name!==ce?cr(ux(P,B,ce),E):E}function J_(){const E=ee(282);return E.jsDoc=void 0,E}function uy(E){const P=X(283);return P.expression=E,P.transformFlags|=Dr(P.expression),P.transformFlags&=-67108865,P}function uD(E,P){return E.expression!==P?cr(uy(P),E):E}function dD(E){return X(E)}function pD(E,P,B=!1){const ce=IT(E,B?P&&i().parenthesizeNonArrayTypeOfPostfixType(P):P);return ce.postfix=B,ce}function IT(E,P){const B=X(E);return B.type=P,B}function tl(E,P,B){return P.type!==B?cr(pD(E,B,P.postfix),P):P}function ME(E,P,B){return P.type!==B?cr(IT(E,B),P):P}function xT(E,P){const B=ee(324);return B.parameters=Ya(E),B.type=P,B.transformFlags=Za(B.parameters)|(B.type?1:0),B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B.typeArguments=void 0,B}function zm(E,P,B){return E.parameters!==P||E.type!==B?cr(xT(P,B),E):E}function yb(E,P=!1){const B=ee(329);return B.jsDocPropertyTags=Ya(E),B.isArrayType=P,B}function fD(E,P,B){return E.jsDocPropertyTags!==P||E.isArrayType!==B?cr(yb(P,B),E):E}function RT(E){const P=X(316);return P.type=E,P}function qP(E,P){return E.type!==P?cr(RT(P),E):E}function Sr(E,P,B){const ce=ee(330);return ce.typeParameters=Ya(E),ce.parameters=U(P),ce.type=B,ce.jsDoc=void 0,ce.locals=void 0,ce.nextContainer=void 0,ce}function lu(E,P,B,ce){return E.typeParameters!==P||E.parameters!==B||E.type!==ce?cr(Sr(P,B,ce),E):E}function so(E){const P=TH(E.kind);return E.tagName.escapedText===bl(P)?E.tagName:Ie(P)}function hf(E,P,B){const ce=X(E);return ce.tagName=P,ce.comment=B,ce}function dy(E,P,B){const ce=ee(E);return ce.tagName=P,ce.comment=B,ce}function K_(E,P,B,ce){const $e=hf(352,E!=null?E:Ie("template"),ce);return $e.constraint=P,$e.typeParameters=U(B),$e}function mr(E,P=so(E),B,ce,$e){return E.tagName!==P||E.constraint!==B||E.typeParameters!==ce||E.comment!==$e?cr(K_(P,B,ce,$e),E):E}function DT(E,P,B,ce){const $e=dy(353,E!=null?E:Ie("typedef"),ce);return $e.typeExpression=P,$e.fullName=B,$e.name=lq(B),$e.locals=void 0,$e.nextContainer=void 0,$e}function Y0(E,P=so(E),B,ce,$e){return E.tagName!==P||E.typeExpression!==B||E.fullName!==ce||E.comment!==$e?cr(DT(P,B,ce,$e),E):E}function Qc(E,P,B,ce,$e,Xt){const Ir=dy(348,E!=null?E:Ie("param"),Xt);return Ir.typeExpression=ce,Ir.name=P,Ir.isNameFirst=!!$e,Ir.isBracketed=B,Ir}function Oh(E,P=so(E),B,ce,$e,Xt,Ir){return E.tagName!==P||E.name!==B||E.isBracketed!==ce||E.typeExpression!==$e||E.isNameFirst!==Xt||E.comment!==Ir?cr(Qc(P,B,ce,$e,Xt,Ir),E):E}function Bm(E,P,B,ce,$e,Xt){const Ir=dy(355,E!=null?E:Ie("prop"),Xt);return Ir.typeExpression=ce,Ir.name=P,Ir.isNameFirst=!!$e,Ir.isBracketed=B,Ir}function LE(E,P=so(E),B,ce,$e,Xt,Ir){return E.tagName!==P||E.name!==B||E.isBracketed!==ce||E.typeExpression!==$e||E.isNameFirst!==Xt||E.comment!==Ir?cr(Bm(P,B,ce,$e,Xt,Ir),E):E}function kE(E,P,B,ce){const $e=dy(345,E!=null?E:Ie("callback"),ce);return $e.typeExpression=P,$e.fullName=B,$e.name=lq(B),$e.locals=void 0,$e.nextContainer=void 0,$e}function bb(E,P=so(E),B,ce,$e){return E.tagName!==P||E.typeExpression!==B||E.fullName!==ce||E.comment!==$e?cr(kE(P,B,ce,$e),E):E}function av(E,P,B){const ce=hf(346,E!=null?E:Ie("overload"),B);return ce.typeExpression=P,ce}function NT(E,P=so(E),B,ce){return E.tagName!==P||E.typeExpression!==B||E.comment!==ce?cr(av(P,B,ce),E):E}function Gm(E,P,B){const ce=hf(335,E!=null?E:Ie("augments"),B);return ce.class=P,ce}function $0(E,P=so(E),B,ce){return E.tagName!==P||E.class!==B||E.comment!==ce?cr(Gm(P,B,ce),E):E}function Sg(E,P,B){const ce=hf(336,E!=null?E:Ie("implements"),B);return ce.class=P,ce}function Eb(E,P,B){const ce=hf(354,E!=null?E:Ie("see"),B);return ce.name=P,ce}function dx(E,P,B,ce){return E.tagName!==P||E.name!==B||E.comment!==ce?cr(Eb(P,B,ce),E):E}function Q0(E){const P=X(317);return P.name=E,P}function mD(E,P){return E.name!==P?cr(Q0(P),E):E}function wE(E,P){const B=X(318);return B.left=E,B.right=P,B.transformFlags|=Dr(B.left)|Dr(B.right),B}function CT(E,P,B){return E.left!==P||E.right!==B?cr(wE(P,B),E):E}function qp(E,P){const B=X(331);return B.name=E,B.text=P,B}function PT(E,P,B){return E.name!==P?cr(qp(P,B),E):E}function Xl(E,P){const B=X(332);return B.name=E,B.text=P,B}function Vc(E,P,B){return E.name!==P?cr(Xl(P,B),E):E}function MT(E,P){const B=X(333);return B.name=E,B.text=P,B}function Ru(E,P,B){return E.name!==P?cr(MT(P,B),E):E}function cp(E,P=so(E),B,ce){return E.tagName!==P||E.class!==B||E.comment!==ce?cr(Sg(P,B,ce),E):E}function Z0(E,P,B){return hf(E,P!=null?P:Ie(TH(E)),B)}function Gf(E,P,B=so(P),ce){return P.tagName!==B||P.comment!==ce?cr(Z0(E,B,ce),P):P}function Sb(E,P,B,ce){const $e=hf(E,P!=null?P:Ie(TH(E)),ce);return $e.typeExpression=B,$e}function Tb(E,P,B=so(P),ce,$e){return P.tagName!==B||P.typeExpression!==ce||P.comment!==$e?cr(Sb(E,B,ce,$e),P):P}function cu(E,P){return hf(334,E,P)}function px(E,P,B){return E.tagName!==P||E.comment!==B?cr(cu(P,B),E):E}function Jp(E,P,B){const ce=dy(347,E!=null?E:Ie(TH(347)),B);return ce.typeExpression=P,ce.locals=void 0,ce.nextContainer=void 0,ce}function LT(E,P=so(E),B,ce){return E.tagName!==P||E.typeExpression!==B||E.comment!==ce?cr(Jp(P,B,ce),E):E}function kT(E){const P=X(328);return P.text=E,P}function Ys(E,P){return E.text!==P?cr(kT(P),E):E}function _D(E,P){const B=X(327);return B.comment=E,B.tags=Ya(P),B}function e1(E,P,B){return E.comment!==P||E.tags!==B?cr(_D(P,B),E):E}function OE(E,P,B){const ce=X(284);return ce.openingElement=E,ce.children=U(P),ce.closingElement=B,ce.transformFlags|=Dr(ce.openingElement)|Za(ce.children)|Dr(ce.closingElement)|2,ce}function JP(E,P,B,ce){return E.openingElement!==P||E.children!==B||E.closingElement!==ce?cr(OE(P,B,ce),E):E}function vd(E,P,B){const ce=X(285);return ce.tagName=E,ce.typeArguments=Ya(P),ce.attributes=B,ce.transformFlags|=Dr(ce.tagName)|Za(ce.typeArguments)|Dr(ce.attributes)|2,ce.typeArguments&&(ce.transformFlags|=1),ce}function sv(E,P,B,ce){return E.tagName!==P||E.typeArguments!==B||E.attributes!==ce?cr(vd(P,B,ce),E):E}function X_(E,P,B){const ce=X(286);return ce.tagName=E,ce.typeArguments=Ya(P),ce.attributes=B,ce.transformFlags|=Dr(ce.tagName)|Za(ce.typeArguments)|Dr(ce.attributes)|2,P&&(ce.transformFlags|=1),ce}function fx(E,P,B,ce){return E.tagName!==P||E.typeArguments!==B||E.attributes!==ce?cr(X_(P,B,ce),E):E}function Mp(E){const P=X(287);return P.tagName=E,P.transformFlags|=Dr(P.tagName)|2,P}function mx(E,P){return E.tagName!==P?cr(Mp(P),E):E}function up(E,P,B){const ce=X(288);return ce.openingFragment=E,ce.children=U(P),ce.closingFragment=B,ce.transformFlags|=Dr(ce.openingFragment)|Za(ce.children)|Dr(ce.closingFragment)|2,ce}function _x(E,P,B,ce){return E.openingFragment!==P||E.children!==B||E.closingFragment!==ce?cr(up(P,B,ce),E):E}function py(E,P){const B=X(12);return B.text=E,B.containsOnlyTriviaWhiteSpaces=!!P,B.transformFlags|=2,B}function wT(E,P,B){return E.text!==P||E.containsOnlyTriviaWhiteSpaces!==B?cr(py(P,B),E):E}function hD(){const E=X(289);return E.transformFlags|=2,E}function gD(){const E=X(290);return E.transformFlags|=2,E}function OT(E,P){const B=ee(291);return B.name=E,B.initializer=P,B.transformFlags|=Dr(B.name)|Dr(B.initializer)|2,B}function vD(E,P,B){return E.name!==P||E.initializer!==B?cr(OT(P,B),E):E}function Ab(E){const P=ee(292);return P.properties=U(E),P.transformFlags|=Za(P.properties)|2,P}function Lp(E,P){return E.properties!==P?cr(Ab(P),E):E}function Wh(E){const P=X(293);return P.expression=E,P.transformFlags|=Dr(P.expression)|2,P}function yD(E,P){return E.expression!==P?cr(Wh(P),E):E}function WT(E,P){const B=X(294);return B.dotDotDotToken=E,B.expression=P,B.transformFlags|=Dr(B.dotDotDotToken)|Dr(B.expression)|2,B}function ds(E,P){return E.expression!==P?cr(WT(E.dotDotDotToken,P),E):E}function Cr(E,P){const B=X(295);return B.namespace=E,B.name=P,B.transformFlags|=Dr(B.namespace)|Dr(B.name)|2,B}function gf(E,P,B){return E.namespace!==P||E.name!==B?cr(Cr(P,B),E):E}function Md(E,P){const B=X(296);return B.expression=i().parenthesizeExpressionForDisallowedComma(E),B.statements=U(P),B.transformFlags|=Dr(B.expression)|Za(B.statements),B.jsDoc=void 0,B}function WE(E,P,B){return E.expression!==P||E.statements!==B?cr(Md(P,B),E):E}function bD(E){const P=X(297);return P.statements=U(E),P.transformFlags=Za(P.statements),P}function t1(E,P){return E.statements!==P?cr(bD(P),E):E}function FE(E,P){const B=X(298);switch(B.token=E,B.types=U(P),B.transformFlags|=Za(B.types),E){case 96:B.transformFlags|=1024;break;case 119:B.transformFlags|=1;break;default:return N.assertNever(E)}return B}function FT(E,P){return E.types!==P?cr(FE(E.token,P),E):E}function Tg(E,P){const B=X(299);return B.variableDeclaration=QP(E),B.block=P,B.transformFlags|=Dr(B.variableDeclaration)|Dr(B.block)|(E?0:64),B.locals=void 0,B.nextContainer=void 0,B}function d_(E,P,B){return E.variableDeclaration!==P||E.block!==B?cr(Tg(P,B),E):E}function vf(E,P){const B=ee(303);return B.name=gc(E),B.initializer=i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Ky(B.name)|Dr(B.initializer),B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function Vm(E,P,B){return E.name!==P||E.initializer!==B?lv(vf(P,B),E):E}function lv(E,P){return E!==P&&(E.modifiers=P.modifiers,E.questionToken=P.questionToken,E.exclamationToken=P.exclamationToken),cr(E,P)}function Ag(E,P){const B=ee(304);return B.name=gc(E),B.objectAssignmentInitializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Yk(B.name)|Dr(B.objectAssignmentInitializer)|1024,B.equalsToken=void 0,B.modifiers=void 0,B.questionToken=void 0,B.exclamationToken=void 0,B.jsDoc=void 0,B}function Ig(E,P,B){return E.name!==P||E.objectAssignmentInitializer!==B?hx(Ag(P,B),E):E}function hx(E,P){return E!==P&&(E.modifiers=P.modifiers,E.questionToken=P.questionToken,E.exclamationToken=P.exclamationToken,E.equalsToken=P.equalsToken),cr(E,P)}function hc(E){const P=ee(305);return P.expression=i().parenthesizeExpressionForDisallowedComma(E),P.transformFlags|=Dr(P.expression)|128|65536,P.jsDoc=void 0,P}function ED(E,P){return E.expression!==P?cr(hc(P),E):E}function Vf(E,P){const B=ee(306);return B.name=gc(E),B.initializer=P&&i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Dr(B.name)|Dr(B.initializer)|1,B.jsDoc=void 0,B}function Fh(E,P,B){return E.name!==P||E.initializer!==B?cr(Vf(P,B),E):E}function yf(E,P,B){const ce=t.createBaseSourceFileNode(312);return ce.statements=U(E),ce.endOfFileToken=P,ce.flags|=B,ce.text="",ce.fileName="",ce.path="",ce.resolvedPath="",ce.originalFileName="",ce.languageVersion=0,ce.languageVariant=0,ce.scriptKind=0,ce.isDeclarationFile=!1,ce.hasNoDefaultLib=!1,ce.transformFlags|=Za(ce.statements)|Dr(ce.endOfFileToken),ce.locals=void 0,ce.nextContainer=void 0,ce.endFlowNode=void 0,ce.nodeCount=0,ce.identifierCount=0,ce.symbolCount=0,ce.parseDiagnostics=void 0,ce.bindDiagnostics=void 0,ce.bindSuggestionDiagnostics=void 0,ce.lineMap=void 0,ce.externalModuleIndicator=void 0,ce.setExternalModuleIndicator=void 0,ce.pragmas=void 0,ce.checkJsDirective=void 0,ce.referencedFiles=void 0,ce.typeReferenceDirectives=void 0,ce.libReferenceDirectives=void 0,ce.amdDependencies=void 0,ce.commentDirectives=void 0,ce.identifiers=void 0,ce.packageJsonLocations=void 0,ce.packageJsonScope=void 0,ce.imports=void 0,ce.moduleAugmentations=void 0,ce.ambientModuleNames=void 0,ce.classifiableNames=void 0,ce.impliedNodeFormat=void 0,ce}function zE(E){const P=Object.create(E.redirectTarget);return Object.defineProperties(P,{id:{get(){return this.redirectInfo.redirectTarget.id},set(B){this.redirectInfo.redirectTarget.id=B}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(B){this.redirectInfo.redirectTarget.symbol=B}}}),P.redirectInfo=E,P}function n1(E){const P=zE(E.redirectInfo);return P.flags|=E.flags&-17,P.fileName=E.fileName,P.path=E.path,P.resolvedPath=E.resolvedPath,P.originalFileName=E.originalFileName,P.packageJsonLocations=E.packageJsonLocations,P.packageJsonScope=E.packageJsonScope,P.emitNode=void 0,P}function gx(E){const P=t.createBaseSourceFileNode(312);P.flags|=E.flags&-17;for(const B in E)if(!(Ls(P,B)||!Ls(E,B))){if(B==="emitNode"){P.emitNode=void 0;continue}P[B]=E[B]}return P}function zT(E){const P=E.redirectInfo?n1(E):gx(E);return r(P,E),P}function bf(E,P,B,ce,$e,Xt,Ir){const no=zT(E);return no.statements=U(P),no.isDeclarationFile=B,no.referencedFiles=ce,no.typeReferenceDirectives=$e,no.hasNoDefaultLib=Xt,no.libReferenceDirectives=Ir,no.transformFlags=Za(no.statements)|Dr(no.endOfFileToken),no}function Vs(E,P,B=E.isDeclarationFile,ce=E.referencedFiles,$e=E.typeReferenceDirectives,Xt=E.hasNoDefaultLib,Ir=E.libReferenceDirectives){return E.statements!==P||E.isDeclarationFile!==B||E.referencedFiles!==ce||E.typeReferenceDirectives!==$e||E.hasNoDefaultLib!==Xt||E.libReferenceDirectives!==Ir?cr(bf(E,P,B,ce,$e,Xt,Ir),E):E}function BE(E,P=et){const B=X(313);return B.prepends=P,B.sourceFiles=E,B.syntheticFileReferences=void 0,B.syntheticTypeReferences=void 0,B.syntheticLibReferences=void 0,B.hasNoDefaultLib=void 0,B}function GE(E,P,B=et){return E.sourceFiles!==P||E.prepends!==B?cr(BE(P,B),E):E}function cv(E,P,B){const ce=X(314);return ce.prologues=E,ce.syntheticReferences=P,ce.texts=B,ce.fileName="",ce.text="",ce.referencedFiles=et,ce.libReferenceDirectives=et,ce.getLineAndCharacterOfPosition=$e=>Rs(ce,$e),ce}function Ib(E,P){const B=X(E);return B.data=P,B}function r1(E){return Ib(307,E)}function D(E,P){const B=Ib(308,E);return B.texts=P,B}function ae(E,P){return Ib(P?310:309,E)}function ht(E){const P=X(311);return P.data=E.data,P.section=E,P}function ln(){const E=X(315);return E.javascriptText="",E.declarationText="",E}function Or(E,P=!1,B){const ce=X(237);return ce.type=E,ce.isSpread=P,ce.tupleNameSource=B,ce}function Li(E){const P=X(358);return P._children=E,P}function bi(E){const P=X(359);return P.original=E,ut(P,E),P}function lo(E,P){const B=X(360);return B.expression=E,B.original=P,B.transformFlags|=Dr(B.expression)|1,ut(B,P),B}function Ea(E,P){return E.expression!==P?cr(lo(P,E.original),E):E}function rd(E){if(Zs(E)&&!EN(E)&&!E.original&&!E.emitNode&&!E.id){if(PC(E))return E.elements;if(vr(E)&&qae(E.operatorToken))return[E.left,E.right]}return E}function Ld(E){const P=X(361);return P.elements=U(D1(E,rd)),P.transformFlags|=Za(P.elements),P}function jf(E,P){return E.elements!==P?cr(Ld(P),E):E}function xb(E,P){const B=X(362);return B.expression=E,B.thisArg=P,B.transformFlags|=Dr(B.expression)|Dr(B.thisArg),B}function Ti(E,P,B){return E.expression!==P||E.thisArg!==B?cr(xb(P,B),E):E}function zh(E){const P=oe(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),tw(P,{...E.emitNode.autoGenerate}),P}function Kn(E){const P=oe(E.escapedText);P.flags|=E.flags&-17,P.jsDoc=E.jsDoc,P.flowNode=E.flowNode,P.symbol=E.symbol,P.transformFlags=E.transformFlags,r(P,E);const B=zS(E);return B&&Jv(P,B),P}function vx(E){const P=qe(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),tw(P,{...E.emitNode.autoGenerate}),P}function Rb(E){const P=qe(E.escapedText);return P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E),P}function Db(E){if(E===void 0)return E;if(io(E))return zT(E);if(ul(E))return zh(E);if(Ue(E))return Kn(E);if(gS(E))return vx(E);if(Qi(E))return Rb(E);const P=DL(E.kind)?t.createBaseNode(E.kind):t.createBaseTokenNode(E.kind);P.flags|=E.flags&-17,P.transformFlags=E.transformFlags,r(P,E);for(const B in E)Ls(P,B)||!Ls(E,B)||(P[B]=E[B]);return P}function BT(E,P,B){return Yn(Ud(void 0,void 0,void 0,void 0,P?[P]:[],void 0,ti(E,!0)),void 0,B?[B]:[])}function VE(E,P,B){return Yn(Of(void 0,void 0,P?[P]:[],void 0,void 0,ti(E,!0)),void 0,B?[B]:[])}function Y_(){return Np(se("0"))}function Bh(E){return gm(void 0,!1,E)}function SD(E){return Fm(void 0,!1,AT([ux(!1,void 0,E)]))}function GT(E,P){return P==="null"?W.createStrictEquality(E,Ft()):P==="undefined"?W.createStrictEquality(E,Y_()):W.createStrictEquality(Vu(E),_e(P))}function Tz(E,P){return P==="null"?W.createStrictInequality(E,Ft()):P==="undefined"?W.createStrictInequality(E,Y_()):W.createStrictInequality(Vu(E),_e(P))}function Nb(E,P,B){return hS(E)?Qo(Ns(E,void 0,P),void 0,void 0,B):Yn(xl(E,P),void 0,B)}function W4(E,P,B){return Nb(E,"bind",[P,...B])}function F4(E,P,B){return Nb(E,"call",[P,...B])}function i1(E,P,B){return Nb(E,"apply",[P,B])}function p_(E,P,B){return Nb(Ie(E),P,B)}function KP(E,P){return Nb(E,"slice",P===void 0?[]:[a1(P)])}function Gh(E,P){return Nb(E,"concat",P)}function yx(E,P,B){return p_("Object","defineProperty",[E,a1(P),B])}function z4(E,P){return p_("Object","getOwnPropertyDescriptor",[E,a1(P)])}function $_(E,P,B){return p_("Reflect","get",B?[E,P,B]:[E,P])}function $(E,P,B,ce){return p_("Reflect","set",ce?[E,P,B,ce]:[E,P,B])}function Re(E,P,B){return B?(E.push(vf(P,B)),!0):!1}function Ke(E,P){const B=[];Re(B,"enumerable",a1(E.enumerable)),Re(B,"configurable",a1(E.configurable));let ce=Re(B,"writable",a1(E.writable));ce=Re(B,"value",E.value)||ce;let $e=Re(B,"get",E.get);return $e=Re(B,"set",E.set)||$e,N.assert(!(ce&&$e),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Jo(B,!P)}function Rt(E,P){switch(E.kind){case 217:return ff(E,P);case 216:return lc(E,E.type,P);case 234:return _f(E,P,E.type);case 238:return Ct(E,P,E.type);case 235:return ze(E,P);case 360:return Ea(E,P)}}function Nt(E){return Vd(E)&&Zs(E)&&Zs(qv(E))&&Zs(w_(E))&&!St(K2(E))&&!St(ew(E))}function Jt(E,P,B=15){return E&&N5(E,B)&&!Nt(E)?Rt(E,Jt(E.expression,P)):P}function Gr(E,P,B){if(!P)return E;const ce=vT(P,P.label,aE(P.statement)?Gr(E,P.statement):E);return B&&B(P),ce}function zi(E,P){const B=Ss(E);switch(B.kind){case 80:return P;case 110:case 9:case 10:case 11:return!1;case 209:return B.elements.length!==0;case 210:return B.properties.length>0;default:return!0}}function Pi(E,P,B,ce=!1){const $e=ic(E,15);let Xt,Ir;return Bd($e)?(Xt=it(),Ir=$e):DC($e)?(Xt=it(),Ir=B!==void 0&&B<2?ut(Ie("_super"),$e):$e):Ka($e)&8192?(Xt=Y_(),Ir=i().parenthesizeLeftSideOfAccess($e,!1)):Br($e)?zi($e.expression,ce)?(Xt=de(P),Ir=xl(ut(W.createAssignment(Xt,$e.expression),$e.expression),$e.name),ut(Ir,$e)):(Xt=$e.expression,Ir=$e):el($e)?zi($e.expression,ce)?(Xt=de(P),Ir=sp(ut(W.createAssignment(Xt,$e.expression),$e.expression),$e.argumentExpression),ut(Ir,$e)):(Xt=$e.expression,Ir=$e):(Xt=Y_(),Ir=i().parenthesizeLeftSideOfAccess(E,!1)),{target:Ir,thisArg:Xt}}function _i(E,P){return xl($c(Jo([le(void 0,"value",[gi(void 0,void 0,E,void 0,void 0,void 0)],ti([gu(P)]))])),"value")}function to(E){return E.length>10?Ld(E):ad(E,W.createComma)}function vs(E,P,B,ce=0,$e){const Xt=$e?E&&M6(E):Oo(E);if(Xt&&Ue(Xt)&&!ul(Xt)){const Ir=Qa(ut(Db(Xt),Xt),Xt.parent);return ce|=Ka(Xt),B||(ce|=96),P||(ce|=3072),ce&&hr(Ir,ce),Ir}return Ce(E)}function ws(E,P,B){return vs(E,P,B,98304)}function ls(E,P,B,ce){return vs(E,P,B,32768,ce)}function Uf(E,P,B){return vs(E,P,B,16384)}function Q_(E,P,B){return vs(E,P,B)}function jm(E,P,B,ce){const $e=xl(E,Zs(P)?P:Db(P));ut($e,P);let Xt=0;return ce||(Xt|=96),B||(Xt|=3072),Xt&&hr($e,Xt),$e}function uv(E,P,B,ce){return E&&Qr(P,32)?jm(E,vs(P),B,ce):Uf(P,B,ce)}function dv(E,P,B,ce){const $e=VT(E,P,0,B);return TD(E,P,$e,ce)}function Cb(E){return La(E.expression)&&E.expression.text==="use strict"}function dp(){return Qu(gu(_e("use strict")))}function VT(E,P,B=0,ce){N.assert(P.length===0,"Prologue directives should be at the first statement in the target statements array");let $e=!1;const Xt=E.length;for(;B<Xt;){const Ir=E[B];if(Nm(Ir))Cb(Ir)&&($e=!0),P.push(Ir);else break;B++}return ce&&!$e&&P.push(dp()),B}function TD(E,P,B,ce,$e=Pv){const Xt=E.length;for(;B!==void 0&&B<Xt;){const Ir=E[B];if(Ka(Ir)&2097152&&$e(Ir))Rn(P,ce?rt(Ir,ce,$i):Ir);else break;B++}return B}function XP(E){return oq(E)?E:ut(U([dp(),...E]),E)}function YP(E){return N.assert(Bn(E,mie),"Cannot lift nodes to a Block."),uh(E)||ti(E)}function o1(E,P,B){let ce=B;for(;ce<E.length&&P(E[ce]);)ce++;return ce}function pv(E,P){if(!St(P))return E;const B=o1(E,Nm,0),ce=o1(E,c3,B),$e=o1(E,u3,ce),Xt=o1(P,Nm,0),Ir=o1(P,c3,Xt),no=o1(P,u3,Ir),Os=o1(P,XL,no);N.assert(Os===P.length,"Expected declarations to be valid standard or custom prologues");const f_=k1(E)?E.slice():E;if(Os>no&&f_.splice($e,0,...P.slice(no,Os)),no>Ir&&f_.splice(ce,0,...P.slice(Ir,no)),Ir>Xt&&f_.splice(B,0,...P.slice(Xt,Ir)),Xt>0)if(B===0)f_.splice(0,0,...P.slice(0,Xt));else{const Lb=new Map;for(let Um=0;Um<B;Um++){const s1=E[Um];Lb.set(s1.expression.text,!0)}for(let Um=Xt-1;Um>=0;Um--){const s1=P[Um];Lb.has(s1.expression.text)||f_.unshift(s1)}}return k1(E)?ut(U(f_,E.hasTrailingComma),E):E}function Pb(E,P){var ce;let B;return typeof P=="number"?B=on(P):B=P,El(E)?en(E,B,E.name,E.constraint,E.default):No(E)?bo(E,B,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):Y2(E)?nn(E,B,E.typeParameters,E.parameters,E.type):Sp(E)?Ci(E,B,E.name,E.questionToken,E.type):qo(E)?nt(E,B,E.name,(ce=E.questionToken)!=null?ce:E.exclamationToken,E.type,E.initializer):Th(E)?Dn(E,B,E.name,E.questionToken,E.typeParameters,E.parameters,E.type):Ql(E)?yi(E,B,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):Wl(E)?On(E,B,E.parameters,E.body):rf(E)?pt(E,B,E.name,E.parameters,E.type,E.body):Tp(E)?Fe(E,B,E.name,E.parameters,E.body):nE(E)?Gt(E,B,E.parameters,E.type):Us(E)?Pd(E,B,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Ks(E)?H_(E,B,E.typeParameters,E.parameters,E.type,E.equalsGreaterThanToken,E.body):iu(E)?zf(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):Fl(E)?es(E,B,E.declarationList):Dc(E)?lD(E,B,E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body):Nc(E)?J0(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):gd(E)?xc(E,B,E.name,E.typeParameters,E.heritageClauses,E.members):Lm(E)?sx(E,B,E.name,E.typeParameters,E.type):x0(E)?bT(E,B,E.name,E.members):nc(E)?l_(E,B,E.name,E.body):au(E)?c_(E,B,E.isTypeOnly,E.name,E.moduleReference):Fc(E)?ST(E,B,E.importClause,E.moduleSpecifier,E.attributes):zl(E)?vb(E,B,E.expression):rc(E)?ov(E,B,E.isTypeOnly,E.exportClause,E.moduleSpecifier,E.attributes):N.assertNever(E)}function AD(E,P){var B;return No(E)?bo(E,P,E.dotDotDotToken,E.name,E.questionToken,E.type,E.initializer):qo(E)?nt(E,P,E.name,(B=E.questionToken)!=null?B:E.exclamationToken,E.type,E.initializer):Ql(E)?yi(E,P,E.asteriskToken,E.name,E.questionToken,E.typeParameters,E.parameters,E.type,E.body):rf(E)?pt(E,P,E.name,E.parameters,E.type,E.body):Tp(E)?Fe(E,P,E.name,E.parameters,E.body):iu(E)?zf(E,P,E.name,E.typeParameters,E.heritageClauses,E.members):Nc(E)?J0(E,P,E.name,E.typeParameters,E.heritageClauses,E.members):N.assertNever(E)}function Kp(E,P){var B;switch(E.kind){case 177:return pt(E,E.modifiers,P,E.parameters,E.type,E.body);case 178:return Fe(E,E.modifiers,P,E.parameters,E.body);case 174:return yi(E,E.modifiers,E.asteriskToken,P,E.questionToken,E.typeParameters,E.parameters,E.type,E.body);case 173:return Dn(E,E.modifiers,P,E.questionToken,E.typeParameters,E.parameters,E.type);case 172:return nt(E,E.modifiers,P,(B=E.questionToken)!=null?B:E.exclamationToken,E.type,E.initializer);case 171:return Ci(E,E.modifiers,P,E.questionToken,E.type);case 303:return Vm(E,P,E.initializer)}}function Ya(E){return E?U(E):void 0}function gc(E){return typeof E=="string"?Ie(E):E}function a1(E){return typeof E=="string"?_e(E):typeof E=="number"?se(E):typeof E=="boolean"?E?yt():Ze():E}function bx(E){return E&&i().parenthesizeExpressionForDisallowedComma(E)}function $P(E){return typeof E=="number"?be(E):E}function Mb(E){return E&&HH(E)?ut(r(nd(),E),E):E}function QP(E){return typeof E=="string"||E&&!Wi(E)?Jd(E,void 0,void 0,void 0):E}function cr(E,P){return E!==P&&(r(E,P),ut(E,P)),E}}function TH(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return N.fail(`Unsupported kind: ${N.formatSyntaxKind(e)}`)}}function ZGe(e,t){switch(Hv||(Hv=wv(99,!1,0)),e){case 15:Hv.setText("`"+t+"`");break;case 16:Hv.setText("`"+t+"${");break;case 17:Hv.setText("}"+t+"${");break;case 18:Hv.setText("}"+t+"`");break}let r=Hv.scan();if(r===20&&(r=Hv.reScanTemplateToken(!1)),Hv.isUnterminated())return Hv.setText(void 0),kae;let i;switch(r){case 15:case 16:case 17:case 18:i=Hv.getTokenValue();break}return i===void 0||Hv.scan()!==1?(Hv.setText(void 0),kae):(Hv.setText(void 0),i)}function Ky(e){return e&&Ue(e)?Yk(e):Dr(e)}function Yk(e){return Dr(e)&-67108865}function eVe(e,t){return t|e.transformFlags&134234112}function Dr(e){if(!e)return 0;const t=e.transformFlags&~Mae(e.kind);return cd(e)&&pc(e.name)?eVe(e.name,t):t}function Za(e){return e?e.transformFlags:0}function aAe(e){let t=0;for(const r of e)t|=Dr(r);e.transformFlags=t}function Mae(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function P7(e){return e.flags|=16,e}function AH(e,t,r){let i,o,s,l,u,p,v,f,b,A;wo(e)?(s="",l=e,u=e.length,p=t,v=r):(N.assert(t==="js"||t==="dts"),s=(t==="js"?e.javascriptPath:e.declarationPath)||"",p=t==="js"?e.javascriptMapPath:e.declarationMapPath,f=()=>t==="js"?e.javascriptText:e.declarationText,b=()=>t==="js"?e.javascriptMapText:e.declarationMapText,u=()=>f().length,e.buildInfo&&e.buildInfo.bundle&&(N.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,A=e.oldFileOfCurrentEmit));const I=A?nVe(N.checkDefined(o)):tVe(o,i,u);return I.fileName=s,I.sourceMapPath=p,I.oldFileOfCurrentEmit=A,f&&b?(Object.defineProperty(I,"text",{get:f}),Object.defineProperty(I,"sourceMapText",{get:b})):(N.assert(!A),I.text=l!=null?l:"",I.sourceMapText=v),I}function tVe(e,t,r){let i,o,s,l,u,p,v,f;for(const A of e?e.sections:et)switch(A.kind){case"prologue":i=Rn(i,ut(O.createUnparsedPrologue(A.data),A));break;case"emitHelpers":o=Rn(o,LH().get(A.data));break;case"no-default-lib":f=!0;break;case"reference":s=Rn(s,{pos:-1,end:-1,fileName:A.data});break;case"type":l=Rn(l,{pos:-1,end:-1,fileName:A.data});break;case"type-import":l=Rn(l,{pos:-1,end:-1,fileName:A.data,resolutionMode:99});break;case"type-require":l=Rn(l,{pos:-1,end:-1,fileName:A.data,resolutionMode:1});break;case"lib":u=Rn(u,{pos:-1,end:-1,fileName:A.data});break;case"prepend":let I;for(const R of A.texts)(!t||R.kind!=="internal")&&(I=Rn(I,ut(O.createUnparsedTextLike(R.data,R.kind==="internal"),R)));p=Hr(p,I),v=Rn(v,O.createUnparsedPrepend(A.data,I!=null?I:et));break;case"internal":if(t){v||(v=[]);break}case"text":v=Rn(v,ut(O.createUnparsedTextLike(A.data,A.kind==="internal"),A));break;default:N.assertNever(A)}if(!v){const A=O.createUnparsedTextLike(void 0,!1);mC(A,0,typeof r=="function"?r():r),v=[A]}const b=Dh.createUnparsedSource(i!=null?i:et,void 0,v);return U2(i,b),U2(v,b),U2(p,b),b.hasNoDefaultLib=f,b.helpers=o,b.referencedFiles=s||et,b.typeReferenceDirectives=l,b.libReferenceDirectives=u||et,b}function nVe(e){let t,r;for(const o of e.sections)switch(o.kind){case"internal":case"text":t=Rn(t,ut(O.createUnparsedTextLike(o.data,o.kind==="internal"),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=Rn(r,ut(O.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:N.assertNever(o)}const i=O.createUnparsedSource(et,r,t!=null?t:et);return U2(r,i),U2(t,i),i.helpers=Wt(e.sources&&e.sources.helpers,o=>LH().get(o)),i}function sAe(e,t,r,i,o,s){return wo(e)?xH(void 0,e,r,i,void 0,t,o,s):IH(e,t,r,i,o,s)}function IH(e,t,r,i,o,s,l,u){const p=Dh.createInputFiles();p.javascriptPath=t,p.javascriptMapPath=r,p.declarationPath=i,p.declarationMapPath=o,p.buildInfoPath=s;const v=new Map,f=R=>{if(R===void 0)return;let M=v.get(R);return M===void 0&&(M=e(R),v.set(R,M!==void 0?M:!1)),M!==!1?M:void 0},b=R=>{const M=f(R);return M!==void 0?M:`/* Input file ${R} was missing */\r
`};let A;return Object.defineProperties(p,{javascriptText:{get:()=>b(t)},javascriptMapText:{get:()=>f(r)},declarationText:{get:()=>b(N.checkDefined(i))},declarationMapText:{get:()=>f(o)},buildInfo:{get:()=>{var R,M;if(A===void 0&&s)if(l!=null&&l.getBuildInfo)A=(R=l.getBuildInfo(s,u.configFilePath))!=null?R:!1;else{const C=f(s);A=C!==void 0&&(M=RW(s,C))!=null?M:!1}return A||void 0}}}),p}function xH(e,t,r,i,o,s,l,u,p,v,f){const b=Dh.createInputFiles();return b.javascriptPath=e,b.javascriptText=t,b.javascriptMapPath=r,b.javascriptMapText=i,b.declarationPath=o,b.declarationText=s,b.declarationMapPath=l,b.declarationMapText=u,b.buildInfoPath=p,b.buildInfo=v,b.oldFileOfCurrentEmit=f,b}function lAe(e,t,r){return new(uAe||(uAe=pu.getSourceMapSourceConstructor()))(e,t,r)}function kr(e,t){if(e.original!==t&&(e.original=t,t)){const r=t.emitNode;r&&(e.emitNode=rVe(r,e.emitNode))}return e}function rVe(e,t){const{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:u,tokenSourceMapRanges:p,constantValue:v,helpers:f,startsOnNewLine:b,snippetElement:A,classThis:I,assignedName:R}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),o&&(t.leadingComments=Hr(o.slice(),t.leadingComments)),s&&(t.trailingComments=Hr(s.slice(),t.trailingComments)),l&&(t.commentRange=l),u&&(t.sourceMapRange=u),p&&(t.tokenSourceMapRanges=iVe(p,t.tokenSourceMapRanges)),v!==void 0&&(t.constantValue=v),f)for(const M of f)t.helpers=Lg(t.helpers,M);return b!==void 0&&(t.startsOnNewLine=b),A!==void 0&&(t.snippetElement=A),I&&(t.classThis=I),R&&(t.assignedName=R),t}function iVe(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}var M7,RH,Lae,Hv,kae,$k,cAe,O,uAe,oVe=S({"src/compiler/factory/nodeFactory.ts"(){ia(),M7=0,RH=(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))(RH||{}),Lae=[],kae={},$k=Nae(),cAe={createBaseSourceFileNode:e=>P7($k.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>P7($k.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>P7($k.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>P7($k.createBaseTokenNode(e)),createBaseNode:e=>P7($k.createBaseNode(e))},O=Xk(4,cAe)}});function Fu(e){var t;if(e.emitNode)N.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(EN(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};const r=(t=Jn(Lo(Jn(e))))!=null?t:N.fail("Could not determine parsed source file.");Fu(r).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function DH(e){var t,r;const i=(r=(t=Jn(Lo(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const o of i)o.emitNode=void 0}function Qk(e){const t=Fu(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function hr(e,t){return Fu(e).flags=t,e}function k_(e,t){const r=Fu(e);return r.flags=r.flags|t,e}function Zk(e,t){return Fu(e).internalFlags=t,e}function rI(e,t){const r=Fu(e);return r.internalFlags=r.internalFlags|t,e}function qv(e){var r;var t;return(r=(t=e.emitNode)==null?void 0:t.sourceMapRange)!=null?r:e}function Ma(e,t){return Fu(e).sourceMapRange=t,e}function dAe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function wae(e,t,r){var s;const i=Fu(e),o=(s=i.tokenSourceMapRanges)!=null?s:i.tokenSourceMapRanges=[];return o[t]=r,e}function AC(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function L7(e,t){return Fu(e).startsOnNewLine=t,e}function w_(e){var r;var t;return(r=(t=e.emitNode)==null?void 0:t.commentRange)!=null?r:e}function fc(e,t){return Fu(e).commentRange=t,e}function K2(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function I0(e,t){return Fu(e).leadingComments=t,e}function IC(e,t,r,i){return I0(e,Rn(K2(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function ew(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function iI(e,t){return Fu(e).trailingComments=t,e}function k7(e,t,r,i){return iI(e,Rn(ew(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Oae(e,t){I0(e,K2(t)),iI(e,ew(t));const r=Fu(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function Wae(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Fae(e,t){const r=Fu(e);return r.constantValue=t,e}function oI(e,t){const r=Fu(e);return r.helpers=Rn(r.helpers,t),e}function Hg(e,t){if(St(t)){const r=Fu(e);for(const i of t)r.helpers=Lg(r.helpers,i)}return e}function pAe(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?qx(i,t):!1}function w7(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function zae(e,t,r){const i=e.emitNode,o=i&&i.helpers;if(!St(o))return;const s=Fu(t);let l=0;for(let u=0;u<o.length;u++){const p=o[u];r(p)?(l++,s.helpers=Lg(s.helpers,p)):l>0&&(o[u-l]=p)}l>0&&(o.length-=l)}function NH(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function CH(e,t){const r=Fu(e);return r.snippetElement=t,e}function PH(e){return Fu(e).internalFlags|=4,e}function Bae(e,t){const r=Fu(e);return r.typeNode=t,e}function Gae(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function Jv(e,t){return Fu(e).identifierTypeArguments=t,e}function zS(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function tw(e,t){return Fu(e).autoGenerate=t,e}function fAe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function Vae(e,t){return Fu(e).generatedImportReference=t,e}function jae(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var aVe=S({"src/compiler/factory/emitNode.ts"(){ia()}});function Uae(e){const t=e.factory,r=Td(()=>Zk(t.createTrue(),8)),i=Td(()=>Zk(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:u,createESDecorateHelper:M,createRunInitializersHelper:C,createAssignHelper:W,createAwaitHelper:U,createAsyncGeneratorHelper:X,createAsyncDelegatorHelper:ee,createAsyncValuesHelper:V,createRestHelper:se,createAwaiterHelper:G,createExtendsHelper:re,createTemplateObjectHelper:_e,createSpreadArrayHelper:ye,createPropKeyHelper:Q,createSetFunctionNameHelper:Y,createValuesHelper:oe,createReadHelper:he,createGeneratorHelper:Ie,createCreateBindingHelper:de,createImportStarHelper:ie,createImportStarCallbackHelper:ge,createImportDefaultHelper:Ce,createExportStarHelper:qe,createClassPrivateFieldGetHelper:Se,createClassPrivateFieldSetHelper:Le,createClassPrivateFieldInHelper:Ne,createAddDisposableResourceHelper:Oe,createDisposeResourcesHelper:At};function o(be){return hr(t.createIdentifier(be),8196)}function s(be,He,it,Ft){e.requestEmitHelper(O7);const yt=[];return yt.push(t.createArrayLiteralExpression(be,!0)),yt.push(He),it&&(yt.push(it),Ft&&yt.push(Ft)),t.createCallExpression(o("__decorate"),void 0,yt)}function l(be,He){return e.requestEmitHelper(W7),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(be),He])}function u(be,He,it){return e.requestEmitHelper(F7),ut(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(He+""),be]),it)}function p(be){const He=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),be.name),t.createPropertyAssignment(t.createIdentifier("metadata"),be.metadata)];return t.createObjectLiteralExpression(He)}function v(be){const He=be.computed?t.createElementAccessExpression(t.createIdentifier("obj"),be.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),be.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,He))}function f(be){const He=be.computed?t.createElementAccessExpression(t.createIdentifier("obj"),be.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),be.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(He,t.createIdentifier("value")))])))}function b(be){const He=be.computed?be.name:Ue(be.name)?t.createStringLiteralFromNode(be.name):be.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(He,103,t.createIdentifier("obj"))))}function A(be,He){const it=[];return it.push(b(be)),He.get&&it.push(v(be)),He.set&&it.push(f(be)),t.createObjectLiteralExpression(it)}function I(be){const He=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(be.kind)),t.createPropertyAssignment(t.createIdentifier("name"),be.name.computed?be.name.name:t.createStringLiteralFromNode(be.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),be.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),be.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),A(be.name,be.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),be.metadata)];return t.createObjectLiteralExpression(He)}function R(be){return be.kind==="class"?p(be):I(be)}function M(be,He,it,Ft,yt,Ze){return e.requestEmitHelper(z7),t.createCallExpression(o("__esDecorate"),void 0,[be!=null?be:t.createNull(),He!=null?He:t.createNull(),it,R(Ft),yt,Ze])}function C(be,He,it){return e.requestEmitHelper(B7),t.createCallExpression(o("__runInitializers"),void 0,it?[be,He,it]:[be,He])}function W(be){return ps(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,be):(e.requestEmitHelper(G7),t.createCallExpression(o("__assign"),void 0,be))}function U(be){return e.requestEmitHelper(aI),t.createCallExpression(o("__await"),void 0,[be])}function X(be,He){return e.requestEmitHelper(aI),e.requestEmitHelper(V7),(be.emitNode||(be.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[He?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),be])}function ee(be){return e.requestEmitHelper(aI),e.requestEmitHelper(j7),t.createCallExpression(o("__asyncDelegator"),void 0,[be])}function V(be){return e.requestEmitHelper(U7),t.createCallExpression(o("__asyncValues"),void 0,[be])}function se(be,He,it,Ft){e.requestEmitHelper(H7);const yt=[];let Ze=0;for(let It=0;It<He.length-1;It++){const on=sq(He[It]);if(on)if(ss(on)){N.assertIsDefined(it,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const Yt=it[Ze];Ze++,yt.push(t.createConditionalExpression(t.createTypeCheck(Yt,"symbol"),void 0,Yt,void 0,t.createAdd(Yt,t.createStringLiteral(""))))}else yt.push(t.createStringLiteralFromNode(on))}return t.createCallExpression(o("__rest"),void 0,[be,ut(t.createArrayLiteralExpression(yt),Ft)])}function G(be,He,it,Ft,yt){e.requestEmitHelper(q7);const Ze=t.createFunctionExpression(void 0,t.createToken(42),void 0,void 0,Ft!=null?Ft:[],void 0,yt);return(Ze.emitNode||(Ze.emitNode={})).flags|=1572864,t.createCallExpression(o("__awaiter"),void 0,[be?t.createThis():t.createVoidZero(),He!=null?He:t.createVoidZero(),it?hw(t,it):t.createVoidZero(),Ze])}function re(be){return e.requestEmitHelper(J7),t.createCallExpression(o("__extends"),void 0,[be,t.createUniqueName("_super",48)])}function _e(be,He){return e.requestEmitHelper(K7),t.createCallExpression(o("__makeTemplateObject"),void 0,[be,He])}function ye(be,He,it){return e.requestEmitHelper(Y7),t.createCallExpression(o("__spreadArray"),void 0,[be,He,it?r():i()])}function Q(be){return e.requestEmitHelper($7),t.createCallExpression(o("__propKey"),void 0,[be])}function Y(be,He,it){return e.requestEmitHelper(Q7),e.factory.createCallExpression(o("__setFunctionName"),void 0,it?[be,He,e.factory.createStringLiteral(it)]:[be,He])}function oe(be){return e.requestEmitHelper(Z7),t.createCallExpression(o("__values"),void 0,[be])}function he(be,He){return e.requestEmitHelper(X7),t.createCallExpression(o("__read"),void 0,He!==void 0?[be,t.createNumericLiteral(He+"")]:[be])}function Ie(be){return e.requestEmitHelper(e5),t.createCallExpression(o("__generator"),void 0,[t.createThis(),be])}function de(be,He,it){return e.requestEmitHelper(X2),t.createCallExpression(o("__createBinding"),void 0,[t.createIdentifier("exports"),be,He,...it?[it]:[]])}function ie(be){return e.requestEmitHelper(nw),t.createCallExpression(o("__importStar"),void 0,[be])}function ge(){return e.requestEmitHelper(nw),o("__importStar")}function Ce(be){return e.requestEmitHelper(n5),t.createCallExpression(o("__importDefault"),void 0,[be])}function qe(be,He=t.createIdentifier("exports")){return e.requestEmitHelper(r5),e.requestEmitHelper(X2),t.createCallExpression(o("__exportStar"),void 0,[be,He])}function Se(be,He,it,Ft){e.requestEmitHelper(i5);let yt;return Ft?yt=[be,He,t.createStringLiteral(it),Ft]:yt=[be,He,t.createStringLiteral(it)],t.createCallExpression(o("__classPrivateFieldGet"),void 0,yt)}function Le(be,He,it,Ft,yt){e.requestEmitHelper(o5);let Ze;return yt?Ze=[be,He,it,t.createStringLiteral(Ft),yt]:Ze=[be,He,it,t.createStringLiteral(Ft)],t.createCallExpression(o("__classPrivateFieldSet"),void 0,Ze)}function Ne(be,He){return e.requestEmitHelper(a5),t.createCallExpression(o("__classPrivateFieldIn"),void 0,[be,He])}function Oe(be,He,it){return e.requestEmitHelper(s5),t.createCallExpression(o("__addDisposableResource"),void 0,[be,He,it?t.createTrue():t.createFalse()])}function At(be){return e.requestEmitHelper(l5),t.createCallExpression(o("__disposeResources"),void 0,[be])}}function Hae(e,t){return e===t||e.priority===t.priority?0:e.priority===void 0?1:t.priority===void 0?-1:al(e.priority,t.priority)}function MH(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 LH(){return mAe||(mAe=C1([O7,W7,F7,z7,B7,G7,aI,V7,j7,U7,H7,q7,J7,K7,Y7,Z7,X7,$7,Q7,e5,nw,n5,r5,i5,o5,a5,X2,t5,s5,l5],e=>e.name))}function xC(e,t){return ca(e)&&Ue(e.expression)&&(Ka(e.expression)&8192)!==0&&e.expression.escapedText===t}var kH,O7,W7,F7,z7,B7,G7,aI,V7,j7,U7,H7,q7,J7,K7,X7,Y7,$7,Q7,Z7,e5,X2,t5,nw,n5,r5,i5,o5,a5,s5,l5,mAe,rw,iw,sVe=S({"src/compiler/factory/emitHelpers.ts"(){ia(),kH=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(kH||{}),O7={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;
};`},W7={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);
};`},F7={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); }
};`},z7={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:`
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
var _, done = false;
for (var i = decorators.length - 1; i >= 0; i--) {
var context = {};
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
if (kind === "accessor") {
if (result === void 0) continue;
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
if (_ = accept(result.get)) descriptor.get = _;
if (_ = accept(result.set)) descriptor.set = _;
if (_ = accept(result.init)) initializers.unshift(_);
}
else if (_ = accept(result)) {
if (kind === "field") initializers.unshift(_);
else descriptor[key] = _;
}
}
if (target) Object.defineProperty(target, contextIn.name, descriptor);
done = true;
};`},B7={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;
};`},G7={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);
};`},aI={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); }`},V7={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[aI],text:`
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
};`},j7={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[aI],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; }
};`},U7={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); }
};`},H7={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;
};`},q7={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());
});
};`},J7={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 __());
};
})();`},K7={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;
};`},X7={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;
};`},Y7={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));
};`},$7={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 });
};`},Z7={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.");
};`},e5={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 };
}
};`},X2={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];
}));`},t5={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;
});`},nw={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[X2,t5],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;
};`},n5={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};`},r5={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[X2],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);
};`},i5={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);
};`},o5={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;
};`},a5={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);
};`},s5={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:`
var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
if (value !== null && value !== void 0) {
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
var dispose;
if (async) {
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
dispose = value[Symbol.asyncDispose];
}
if (dispose === void 0) {
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
dispose = value[Symbol.dispose];
}
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
env.stack.push({ value: value, dispose: dispose, async: async });
}
else if (async) {
env.stack.push({ async: true });
}
return value;
};`},l5={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:`
var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
return function (env) {
function fail(e) {
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
env.hasError = true;
}
function next() {
while (env.stack.length) {
var rec = env.stack.pop();
try {
var result = rec.dispose && rec.dispose.call(rec.value);
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
}
catch (e) {
fail(e);
}
}
if (env.hasError) throw env.error;
}
return next();
};
})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
var e = new Error(message);
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
});`},rw={name:"typescript:async-super",scoped:!0,text:MH`
const ${"_superIndex"} = name => super[name];`},iw={name:"typescript:advanced-async-super",scoped:!0,text:MH`
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 Ep(e){return e.kind===9}function c5(e){return e.kind===10}function La(e){return e.kind===11}function sI(e){return e.kind===12}function wH(e){return e.kind===14}function lI(e){return e.kind===15}function cI(e){return e.kind===16}function OH(e){return e.kind===17}function u5(e){return e.kind===18}function d5(e){return e.kind===26}function qae(e){return e.kind===28}function WH(e){return e.kind===40}function FH(e){return e.kind===41}function ow(e){return e.kind===42}function aw(e){return e.kind===54}function Xy(e){return e.kind===58}function Jae(e){return e.kind===59}function p5(e){return e.kind===29}function Kae(e){return e.kind===39}function Ue(e){return e.kind===80}function Qi(e){return e.kind===81}function uI(e){return e.kind===95}function f5(e){return e.kind===90}function RC(e){return e.kind===134}function Xae(e){return e.kind===131}function zH(e){return e.kind===135}function Yae(e){return e.kind===148}function dI(e){return e.kind===126}function $ae(e){return e.kind===128}function Qae(e){return e.kind===164}function Zae(e){return e.kind===129}function DC(e){return e.kind===108}function NC(e){return e.kind===102}function ese(e){return e.kind===84}function xd(e){return e.kind===166}function ss(e){return e.kind===167}function El(e){return e.kind===168}function No(e){return e.kind===169}function Au(e){return e.kind===170}function Sp(e){return e.kind===171}function qo(e){return e.kind===172}function Th(e){return e.kind===173}function Ql(e){return e.kind===174}function Pl(e){return e.kind===175}function Wl(e){return e.kind===176}function rf(e){return e.kind===177}function Tp(e){return e.kind===178}function pI(e){return e.kind===179}function sw(e){return e.kind===180}function nE(e){return e.kind===181}function lw(e){return e.kind===182}function Cf(e){return e.kind===183}function Ah(e){return e.kind===184}function Y2(e){return e.kind===185}function fI(e){return e.kind===186}function Ap(e){return e.kind===187}function cw(e){return e.kind===188}function mI(e){return e.kind===189}function $2(e){return e.kind===202}function m5(e){return e.kind===190}function _5(e){return e.kind===191}function Yy(e){return e.kind===192}function _I(e){return e.kind===193}function hI(e){return e.kind===194}function BS(e){return e.kind===195}function GS(e){return e.kind===196}function uw(e){return e.kind===197}function VS(e){return e.kind===198}function jS(e){return e.kind===199}function Q2(e){return e.kind===200}function $y(e){return e.kind===201}function dg(e){return e.kind===205}function BH(e){return e.kind===204}function tse(e){return e.kind===203}function pm(e){return e.kind===206}function rE(e){return e.kind===207}function os(e){return e.kind===208}function hd(e){return e.kind===209}function za(e){return e.kind===210}function Br(e){return e.kind===211}function el(e){return e.kind===212}function ca(e){return e.kind===213}function iE(e){return e.kind===214}function oE(e){return e.kind===215}function nse(e){return e.kind===216}function Vd(e){return e.kind===217}function Us(e){return e.kind===218}function Ks(e){return e.kind===219}function rse(e){return e.kind===220}function Z2(e){return e.kind===221}function gI(e){return e.kind===222}function Qy(e){return e.kind===223}function Zy(e){return e.kind===224}function GH(e){return e.kind===225}function vr(e){return e.kind===226}function eR(e){return e.kind===227}function h5(e){return e.kind===228}function g5(e){return e.kind===229}function t_(e){return e.kind===230}function iu(e){return e.kind===231}function Kc(e){return e.kind===232}function Kv(e){return e.kind===233}function dw(e){return e.kind===234}function VH(e){return e.kind===238}function vI(e){return e.kind===235}function CC(e){return e.kind===236}function _Ae(e){return e.kind===237}function v5(e){return e.kind===360}function PC(e){return e.kind===361}function MC(e){return e.kind===239}function ise(e){return e.kind===240}function Yo(e){return e.kind===241}function Fl(e){return e.kind===243}function jH(e){return e.kind===242}function ou(e){return e.kind===244}function US(e){return e.kind===245}function hAe(e){return e.kind===246}function gAe(e){return e.kind===247}function HS(e){return e.kind===248}function y5(e){return e.kind===249}function pw(e){return e.kind===250}function vAe(e){return e.kind===251}function yAe(e){return e.kind===252}function Mm(e){return e.kind===253}function ose(e){return e.kind===254}function LC(e){return e.kind===255}function aE(e){return e.kind===256}function UH(e){return e.kind===257}function qS(e){return e.kind===258}function bAe(e){return e.kind===259}function Wi(e){return e.kind===260}function Xc(e){return e.kind===261}function Dc(e){return e.kind===262}function Nc(e){return e.kind===263}function gd(e){return e.kind===264}function Lm(e){return e.kind===265}function x0(e){return e.kind===266}function nc(e){return e.kind===267}function O_(e){return e.kind===268}function kC(e){return e.kind===269}function fw(e){return e.kind===270}function au(e){return e.kind===271}function Fc(e){return e.kind===272}function Ih(e){return e.kind===273}function EAe(e){return e.kind===302}function ase(e){return e.kind===300}function SAe(e){return e.kind===301}function yI(e){return e.kind===300}function sse(e){return e.kind===301}function eb(e){return e.kind===274}function xh(e){return e.kind===280}function qg(e){return e.kind===275}function rp(e){return e.kind===276}function zl(e){return e.kind===277}function rc(e){return e.kind===278}function Pf(e){return e.kind===279}function $u(e){return e.kind===281}function TAe(e){return e.kind===282}function HH(e){return e.kind===359}function bI(e){return e.kind===362}function Rh(e){return e.kind===283}function pg(e){return e.kind===284}function JS(e){return e.kind===285}function W_(e){return e.kind===286}function sE(e){return e.kind===287}function lE(e){return e.kind===288}function EI(e){return e.kind===289}function lse(e){return e.kind===290}function F_(e){return e.kind===291}function cE(e){return e.kind===292}function SI(e){return e.kind===293}function wC(e){return e.kind===294}function n_(e){return e.kind===295}function tR(e){return e.kind===296}function OC(e){return e.kind===297}function of(e){return e.kind===298}function uE(e){return e.kind===299}function Tc(e){return e.kind===303}function ip(e){return e.kind===304}function Xv(e){return e.kind===305}function dE(e){return e.kind===306}function cse(e){return e.kind===308}function io(e){return e.kind===312}function qH(e){return e.kind===313}function KS(e){return e.kind===314}function pE(e){return e.kind===316}function WC(e){return e.kind===317}function R0(e){return e.kind===318}function use(e){return e.kind===331}function dse(e){return e.kind===332}function AAe(e){return e.kind===333}function pse(e){return e.kind===319}function fse(e){return e.kind===320}function nR(e){return e.kind===321}function b5(e){return e.kind===322}function JH(e){return e.kind===323}function rR(e){return e.kind===324}function E5(e){return e.kind===325}function IAe(e){return e.kind===326}function r_(e){return e.kind===327}function XS(e){return e.kind===329}function D0(e){return e.kind===330}function TI(e){return e.kind===335}function xAe(e){return e.kind===337}function mse(e){return e.kind===339}function KH(e){return e.kind===345}function XH(e){return e.kind===340}function YH(e){return e.kind===341}function $H(e){return e.kind===342}function QH(e){return e.kind===343}function S5(e){return e.kind===344}function iR(e){return e.kind===346}function ZH(e){return e.kind===338}function RAe(e){return e.kind===354}function mw(e){return e.kind===347}function i_(e){return e.kind===348}function T5(e){return e.kind===349}function eq(e){return e.kind===350}function FC(e){return e.kind===351}function fm(e){return e.kind===352}function YS(e){return e.kind===353}function DAe(e){return e.kind===334}function _se(e){return e.kind===355}function A5(e){return e.kind===336}function I5(e){return e.kind===357}function NAe(e){return e.kind===356}function oR(e){return e.kind===358}var lVe=S({"src/compiler/factory/nodeTests.ts"(){ia()}});function _w(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function $S(e,t,r,i){if(ss(r))return ut(e.createElementAccessExpression(t,r.expression),i);{const o=ut(Zh(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return k_(o,128),o}}function hse(e,t){const r=Dh.createIdentifier(e||"React");return Qa(r,Lo(t)),r}function gse(e,t,r){if(xd(t)){const i=gse(e,t.left,r),o=e.createIdentifier(Rr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return hse(Rr(t),r)}function tq(e,t,r,i){return t?gse(e,t,i):e.createPropertyAccessExpression(hse(r,i),"createElement")}function cVe(e,t,r,i){return t?gse(e,t,i):e.createPropertyAccessExpression(hse(r,i),"Fragment")}function vse(e,t,r,i,o,s){const l=[r];if(i&&l.push(i),o&&o.length>0)if(i||l.push(e.createNull()),o.length>1)for(const u of o)Qu(u),l.push(u);else l.push(o[0]);return ut(e.createCallExpression(t,void 0,l),s)}function yse(e,t,r,i,o,s,l){const p=[cVe(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(const v of o)Qu(v),p.push(v);else p.push(o[0]);return ut(e.createCallExpression(tq(e,t,i,s),void 0,p),l)}function nq(e,t,r){if(Xc(t)){const i=$a(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return ut(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{const i=ut(e.createAssignment(t,r),t);return ut(e.createExpressionStatement(i),t)}}function CAe(e,t,r){return Yo(t)?e.updateBlock(t,ut(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function hw(e,t){if(xd(t)){const r=hw(e,t.left),i=Qa(ut(e.cloneNode(t.right),t.right),t.right.parent);return ut(e.createPropertyAccessExpression(r,i),t)}else return Qa(ut(e.cloneNode(t),t),t.parent)}function rq(e,t){return Ue(t)?e.createStringLiteralFromNode(t):ss(t)?Qa(ut(e.cloneNode(t.expression),t.expression),t.expression.parent):Qa(ut(e.cloneNode(t),t),t.parent)}function uVe(e,t,r,i,o){const{firstAccessor:s,getAccessor:l,setAccessor:u}=wS(t,r);if(r===s)return ut(e.createObjectDefinePropertyCall(i,rq(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&ut(kr(e.createFunctionExpression(L1(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&ut(kr(e.createFunctionExpression(L1(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!o)),s)}function dVe(e,t,r){return kr(ut(e.createAssignment($S(e,r,t.name,t.name),t.initializer),t),t)}function pVe(e,t,r){return kr(ut(e.createAssignment($S(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function fVe(e,t,r){return kr(ut(e.createAssignment($S(e,r,t.name,t.name),kr(ut(e.createFunctionExpression(L1(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function bse(e,t,r,i){switch(r.name&&Qi(r.name)&&N.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return uVe(e,t.properties,r,i,!!t.multiLine);case 303:return dVe(e,r,i);case 304:return pVe(e,r,i);case 174:return fVe(e,r,i)}}function x5(e,t,r,i,o){const s=t.operator;N.assert(s===46||s===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const l=e.createTempVariable(i);r=e.createAssignment(l,r),ut(r,t.operand);let u=Zy(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return ut(u,t),o&&(u=e.createAssignment(o,u),ut(u,t)),r=e.createComma(r,u),ut(r,t),GH(t)&&(r=e.createComma(r,l),ut(r,t)),r}function iq(e){return(Ka(e)&65536)!==0}function Jg(e){return(Ka(e)&32768)!==0}function R5(e){return(Ka(e)&16384)!==0}function PAe(e){return La(e.expression)&&e.expression.text==="use strict"}function oq(e){for(const t of e)if(Nm(t)){if(PAe(t))return t}else break}function Ese(e){const t=eu(e);return t!==void 0&&Nm(t)&&PAe(t)}function gw(e){return e.kind===226&&e.operatorToken.kind===28}function zC(e){return gw(e)||PC(e)}function aR(e){return Vd(e)&&dr(e)&&!!d0(e)}function D5(e){const t=p0(e);return N.assertIsDefined(t),t}function N5(e,t=15){switch(e.kind){case 217:return t&16&&aR(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 360:return(t&8)!==0}return!1}function ic(e,t=15){for(;N5(e,t);)e=e.expression;return e}function Sse(e,t=15){let r=e.parent;for(;N5(r,t);)r=r.parent,N.assert(r);return r}function MAe(e){return ic(e,6)}function Qu(e){return L7(e,!0)}function vw(e){const t=Ol(e,io),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Tse(e){const t=Ol(e,io),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function aq(e,t,r,i,o,s,l){if(i.importHelpers&&BA(r,i)){let u;const p=Wu(i);if(p>=5&&p<=99||r.impliedNodeFormat===99){const v=w7(r);if(v){const f=[];for(const b of v)if(!b.scoped){const A=b.importName;A&&Tf(f,A)}if(St(f)){f.sort(Ju),u=e.createNamedImports(Wt(f,I=>t3(r,I)?e.createImportSpecifier(!1,void 0,e.createIdentifier(I)):e.createImportSpecifier(!1,e.createIdentifier(I),t.getUnscopedHelperName(I))));const b=Ol(r,io),A=Fu(b);A.externalHelpers=!0}}}else{const v=Ase(e,r,i,o,s||l);v&&(u=e.createNamespaceImport(v))}if(u){const v=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,u),e.createStringLiteral(qy),void 0);return rI(v,2),v}}}function Ase(e,t,r,i,o){if(r.importHelpers&&BA(t,r)){const s=vw(t);if(s)return s;const l=Wu(r);let u=(i||Sh(r)&&o)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!u){const p=w7(t);if(p){for(const v of p)if(!v.scoped){u=!0;break}}}if(u){const p=Ol(t,io),v=Fu(p);return v.externalHelpersModuleName||(v.externalHelpersModuleName=e.createUniqueName(qy))}}}function sR(e,t,r){const i=I2(t);if(i&&!VA(t)&&!r3(t)){const o=i.name;return ul(o)?o:e.createIdentifier(W1(r,o)||Rr(o))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function AI(e,t,r,i,o,s){const l=A2(t);if(l&&La(l))return _Ve(t,i,e,o,s)||mVe(e,l,r)||e.cloneNode(l)}function mVe(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function yw(e,t,r,i){if(!!t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Bs(i))return e.createStringLiteral(TU(r,t.fileName))}}function _Ve(e,t,r,i,o){return yw(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function bw(e){if(PL(e))return e.initializer;if(Tc(e)){const t=e.initializer;return Wc(t,!0)?t.right:void 0}if(ip(e))return e.objectAssignmentInitializer;if(Wc(e,!0))return e.right;if(t_(e))return bw(e.expression)}function tb(e){if(PL(e))return e.name;if(Fg(e)){switch(e.kind){case 303:return tb(e.initializer);case 304:return e.name;case 305:return tb(e.expression)}return}return Wc(e,!0)?tb(e.left):t_(e)?tb(e.expression):e}function C5(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function sq(e){const t=P5(e);return N.assert(!!t||Xv(e),"Invalid property name for binding element."),t}function P5(e){switch(e.kind){case 208:if(e.propertyName){const r=e.propertyName;return Qi(r)?N.failBadSyntaxKind(r):ss(r)&&LAe(r.expression)?r.expression:r}break;case 303:if(e.name){const r=e.name;return Qi(r)?N.failBadSyntaxKind(r):ss(r)&&LAe(r.expression)?r.expression:r}break;case 305:return e.name&&Qi(e.name)?N.failBadSyntaxKind(e.name):e.name}const t=tb(e);if(t&&pc(t))return t}function LAe(e){const t=e.kind;return t===11||t===9}function lR(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function lq(e){if(e){let t=e;for(;;){if(Ue(t)||!t.body)return Ue(t)?t:t.name;t=t.body}}}function kAe(e){const t=e.kind;return t===176||t===178}function Ise(e){const t=e.kind;return t===176||t===177||t===178}function cq(e){const t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function xse(e){const t=e.kind;return t===175||t===303||t===304||t===282||t===270}function Rse(e){return Xy(e)||aw(e)}function Dse(e){return Ue(e)||uw(e)}function Nse(e){return Yae(e)||WH(e)||FH(e)}function Cse(e){return Xy(e)||WH(e)||FH(e)}function Pse(e){return Ue(e)||La(e)}function wAe(e){const t=e.kind;return t===106||t===112||t===97||w1(e)||Zy(e)}function hVe(e){return e===43}function gVe(e){return e===42||e===44||e===45}function vVe(e){return hVe(e)||gVe(e)}function yVe(e){return e===40||e===41}function bVe(e){return yVe(e)||vVe(e)}function EVe(e){return e===48||e===49||e===50}function uq(e){return EVe(e)||bVe(e)}function SVe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function TVe(e){return SVe(e)||uq(e)}function AVe(e){return e===35||e===37||e===36||e===38}function IVe(e){return AVe(e)||TVe(e)}function xVe(e){return e===51||e===52||e===53}function RVe(e){return xVe(e)||IVe(e)}function DVe(e){return e===56||e===57}function NVe(e){return DVe(e)||RVe(e)}function CVe(e){return e===61||NVe(e)||Vv(e)}function PVe(e){return CVe(e)||e===28}function Mse(e){return PVe(e.kind)}function M5(e,t,r,i,o,s){const l=new FAe(e,t,r,i,o,s);return u;function u(p,v){const f={value:void 0},b=[pq.enter],A=[p],I=[void 0];let R=0;for(;b[R]!==pq.done;)R=b[R](l,R,b,A,I,f,v);return N.assertEqual(R,0),f.value}}function OAe(e){return e===95||e===90}function Ew(e){const t=e.kind;return OAe(t)}function WAe(e){const t=e.kind;return Wv(t)&&!OAe(t)}function Lse(e,t){if(t!==void 0)return t.length===0?t:ut(e.createNodeArray([],t.hasTrailingComma),t)}function Sw(e){var t;const r=e.emitNode.autoGenerate;if(r.flags&4){const i=r.id;let o=e,s=o.original;for(;s;){o=s;const l=(t=o.emitNode)==null?void 0:t.autoGenerate;if(Zh(o)&&(l===void 0||!!(l.flags&4)&&l.id!==i))break;s=o.original}return o}return e}function cR(e,t){return typeof e=="object"?N0(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function MVe(e,t){return typeof e=="string"?e:LVe(e,N.checkDefined(t))}function LVe(e,t){return gS(e)?t(e).slice(1):ul(e)?t(e):Qi(e)?e.escapedText.slice(1):Rr(e)}function N0(e,t,r,i,o){return t=cR(t,o),i=cR(i,o),r=MVe(r,o),`${e?"#":""}${t}${r}${i}`}function dq(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function kse(e,t,r,i,o=e.createThis()){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function wse(e,t,r,i,o=e.createThis()){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function L5(e){let t=e.expression;for(;;){if(t=ic(t),PC(t)){t=rs(t.elements);continue}if(gw(t)){t=t.right;continue}if(Wc(t,!0)&&ul(t.left))return t;break}}function kVe(e){return Vd(e)&&Zs(e)&&!e.emitNode}function k5(e,t){if(kVe(e))k5(e.expression,t);else if(gw(e))k5(e.left,t),k5(e.right,t);else if(PC(e))for(const r of e.elements)k5(r,t);else t.push(e)}function Ose(e){const t=[];return k5(e,t),t}function Tw(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of lR(e)){const r=tb(t);if(r&&NN(r)&&(r.transformFlags&65536||r.transformFlags&128&&Tw(r)))return!0}return!1}var pq,FAe,wVe=S({"src/compiler/factory/utilities.ts"(){ia(),(e=>{function t(f,b,A,I,R,M,C){const W=b>0?R[b-1]:void 0;return N.assertEqual(A[b],t),R[b]=f.onEnter(I[b],W,C),A[b]=u(f,t),b}e.enter=t;function r(f,b,A,I,R,M,C){N.assertEqual(A[b],r),N.assertIsDefined(f.onLeft),A[b]=u(f,r);const W=f.onLeft(I[b].left,R[b],I[b]);return W?(v(b,I,W),p(b,A,I,R,W)):b}e.left=r;function i(f,b,A,I,R,M,C){return N.assertEqual(A[b],i),N.assertIsDefined(f.onOperator),A[b]=u(f,i),f.onOperator(I[b].operatorToken,R[b],I[b]),b}e.operator=i;function o(f,b,A,I,R,M,C){N.assertEqual(A[b],o),N.assertIsDefined(f.onRight),A[b]=u(f,o);const W=f.onRight(I[b].right,R[b],I[b]);return W?(v(b,I,W),p(b,A,I,R,W)):b}e.right=o;function s(f,b,A,I,R,M,C){N.assertEqual(A[b],s),A[b]=u(f,s);const W=f.onExit(I[b],R[b]);if(b>0){if(b--,f.foldState){const U=A[b]===s?"right":"left";R[b]=f.foldState(R[b],W,U)}}else M.value=W;return b}e.exit=s;function l(f,b,A,I,R,M,C){return N.assertEqual(A[b],l),b}e.done=l;function u(f,b){switch(b){case t:if(f.onLeft)return r;case r:if(f.onOperator)return i;case i:if(f.onRight)return o;case o:return s;case s:return l;case l:return l;default:N.fail("Invalid state")}}e.nextState=u;function p(f,b,A,I,R){return f++,b[f]=t,A[f]=R,I[f]=void 0,f}function v(f,b,A){if(N.shouldAssert(2))for(;f>=0;)N.assert(b[f]!==A,"Circular traversal detected."),f--}})(pq||(pq={})),FAe=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 ut(e,t){return t?Eh(e,t.pos,t.end):e}function km(e){const t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function QS(e){const t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var OVe=S({"src/compiler/factory/utilitiesPublic.ts"(){ia()}});function Zt(e,t){return t&&e(t)}function ji(e,t,r){if(r){if(t)return t(r);for(const i of r){const o=e(i);if(o)return o}}}function fq(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function Aw(e){return Ve(e.statements,WVe)||FVe(e)}function WVe(e){return km(e)&&zVe(e,95)||au(e)&&Rh(e.moduleReference)||Fc(e)||zl(e)||rc(e)?e:void 0}function FVe(e){return e.flags&8388608?zAe(e):void 0}function zAe(e){return BVe(e)?e:Uo(e,zAe)}function zVe(e,t){return St(e.modifiers,r=>r.kind===t)}function BVe(e){return CC(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function BAe(e,t,r){return ji(t,r,e.typeParameters)||ji(t,r,e.parameters)||Zt(t,e.type)}function GAe(e,t,r){return ji(t,r,e.types)}function VAe(e,t,r){return Zt(t,e.type)}function jAe(e,t,r){return ji(t,r,e.elements)}function UAe(e,t,r){return Zt(t,e.expression)||Zt(t,e.questionDotToken)||ji(t,r,e.typeArguments)||ji(t,r,e.arguments)}function HAe(e,t,r){return ji(t,r,e.statements)}function qAe(e,t,r){return Zt(t,e.label)}function JAe(e,t,r){return ji(t,r,e.modifiers)||Zt(t,e.name)||ji(t,r,e.typeParameters)||ji(t,r,e.heritageClauses)||ji(t,r,e.members)}function KAe(e,t,r){return ji(t,r,e.elements)}function XAe(e,t,r){return Zt(t,e.propertyName)||Zt(t,e.name)}function YAe(e,t,r){return Zt(t,e.tagName)||ji(t,r,e.typeArguments)||Zt(t,e.attributes)}function BC(e,t,r){return Zt(t,e.type)}function $Ae(e,t,r){return Zt(t,e.tagName)||(e.isNameFirst?Zt(t,e.name)||Zt(t,e.typeExpression):Zt(t,e.typeExpression)||Zt(t,e.name))||(typeof e.comment=="string"?void 0:ji(t,r,e.comment))}function GC(e,t,r){return Zt(t,e.tagName)||Zt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:ji(t,r,e.comment))}function Wse(e,t,r){return Zt(t,e.name)}function uR(e,t,r){return Zt(t,e.tagName)||(typeof e.comment=="string"?void 0:ji(t,r,e.comment))}function GVe(e,t,r){return Zt(t,e.expression)}function Uo(e,t,r){if(e===void 0||e.kind<=165)return;const i=sIe[e.kind];return i===void 0?void 0:i(e,t,r)}function VC(e,t,r){const i=QAe(e),o=[];for(;o.length<i.length;)o.push(e);for(;i.length!==0;){const s=i.pop(),l=o.pop();if(Do(s)){if(r){const u=r(s,l);if(u){if(u==="skip")continue;return u}}for(let u=s.length-1;u>=0;--u)i.push(s[u]),o.push(l)}else{const u=t(s,l);if(u){if(u==="skip")continue;return u}if(s.kind>=166)for(const p of QAe(s))i.push(p),o.push(s)}}}function QAe(e){const t=[];return Uo(e,r,r),t;function r(i){t.unshift(i)}}function ZAe(e){e.externalModuleIndicator=Aw(e)}function Iw(e,t,r,i=!1,o){var s,l,u,p;(s=ur)==null||s.push(ur.Phase.Parse,"createSourceFile",{path:e},!0),sl("beforeParse");let v;(l=sd)==null||l.logStartParseSourceFile(e);const{languageVersion:f,setExternalModuleIndicator:b,impliedNodeFormat:A,jsDocParsingMode:I}=typeof r=="object"?r:{languageVersion:r};if(f===100)v=P0.parseSourceFile(e,t,f,void 0,i,6,is,I);else{const R=A===void 0?b:M=>(M.impliedNodeFormat=A,(b||ZAe)(M));v=P0.parseSourceFile(e,t,f,void 0,i,o,R,I)}return(u=sd)==null||u.logStopParseSourceFile(),sl("afterParse"),ef("Parse","beforeParse","afterParse"),(p=ur)==null||p.pop(),v}function II(e,t){return P0.parseIsolatedEntityName(e,t)}function xw(e,t){return P0.parseJsonText(e,t)}function mc(e){return e.externalModuleIndicator!==void 0}function mq(e,t,r,i=!1){const o=yq.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function Fse(e,t,r){const i=P0.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&P0.fixupParentReferences(i.jsDoc),i}function eIe(e,t,r){return P0.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function Iu(e){return _q(e)!==void 0}function _q(e){const t=Qx(e,qk,!1);if(t)return t;if(Nl(e,".ts")){const r=dc(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function VVe(e,t,r,i){if(!!e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,m.resolution_mode_should_be_either_require_or_import)}}function hq(e,t){const r=[];for(const i of $h(t,0)||et){const o=t.substring(i.pos,i.end);UVe(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 gq(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{const o=e.referencedFiles,s=e.typeReferenceDirectives,l=e.libReferenceDirectives;Ve(RA(r),u=>{const{types:p,lib:v,path:f,["resolution-mode"]:b}=u.arguments;if(u.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(p){const A=VVe(b,p.pos,p.end,t);s.push({pos:p.pos,end:p.end,fileName:p.value,...A?{resolutionMode:A}:{}})}else v?l.push({pos:v.pos,end:v.end,fileName:v.value}):f?o.push({pos:f.pos,end:f.end,fileName:f.value}):t(u.range.pos,u.range.end-u.range.pos,m.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Wt(RA(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,m.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":{Ve(RA(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:N.fail("Unhandled pragma kind")}})}function jVe(e){if(bq.has(e))return bq.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return bq.set(e,t),t}function UVe(e,t,r){const i=t.kind===2&&lIe.exec(r);if(i){const s=i[1].toLowerCase(),l=aL[s];if(!l||!(l.kind&1))return;if(l.args){const u={};for(const p of l.args){const f=jVe(p.name).exec(r);if(!f&&!p.optional)return;if(f){const b=f[2]||f[3];if(p.captureSpan){const A=t.pos+f.index+f[1].length+1;u[p.name]={value:b,pos:A,end:A+b.length}}else u[p.name]=b}}e.push({name:s,args:{arguments:u,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}const o=t.kind===2&&cIe.exec(r);if(o)return tIe(e,t,2,o);if(t.kind===3){const s=/@(\S+)(\s+.*)?$/gim;let l;for(;l=s.exec(r);)tIe(e,t,4,l)}}function tIe(e,t,r,i){if(!i)return;const o=i[1].toLowerCase(),s=aL[o];if(!s||!(s.kind&r))return;const l=i[2],u=HVe(s,l);u!=="fail"&&e.push({name:o,args:{arguments:u,range:t}})}function HVe(e,t){if(!t)return{};if(!e.args)return{};const r=t.trim().split(/\s+/),i={};for(let o=0;o<e.args.length;o++){const s=e.args[o];if(!r[o]&&!s.optional)return"fail";if(s.captureSpan)return N.fail("Capture spans not yet implemented for non-xml pragmas");i[s.name]=r[o]}return i}function C0(e,t){return e.kind!==t.kind?!1:e.kind===80?e.escapedText===t.escapedText:e.kind===110?!0:e.kind===295?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&C0(e.expression,t.expression)}var nIe,rIe,iIe,oIe,aIe,vq,Dh,sIe,P0,yq,bq,lIe,cIe,qVe=S({"src/compiler/parser.ts"(){ia(),fS(),vq={createBaseSourceFileNode:e=>new(aIe||(aIe=pu.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(iIe||(iIe=pu.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(oIe||(oIe=pu.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(rIe||(rIe=pu.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(nIe||(nIe=pu.getNodeConstructor()))(e,-1,-1)},Dh=Xk(1,vq),sIe={[166]:function(t,r,i){return Zt(r,t.left)||Zt(r,t.right)},[168]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.constraint)||Zt(r,t.default)||Zt(r,t.expression)},[304]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.questionToken)||Zt(r,t.exclamationToken)||Zt(r,t.equalsToken)||Zt(r,t.objectAssignmentInitializer)},[305]:function(t,r,i){return Zt(r,t.expression)},[169]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.dotDotDotToken)||Zt(r,t.name)||Zt(r,t.questionToken)||Zt(r,t.type)||Zt(r,t.initializer)},[172]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.questionToken)||Zt(r,t.exclamationToken)||Zt(r,t.type)||Zt(r,t.initializer)},[171]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.questionToken)||Zt(r,t.type)||Zt(r,t.initializer)},[303]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.questionToken)||Zt(r,t.exclamationToken)||Zt(r,t.initializer)},[260]:function(t,r,i){return Zt(r,t.name)||Zt(r,t.exclamationToken)||Zt(r,t.type)||Zt(r,t.initializer)},[208]:function(t,r,i){return Zt(r,t.dotDotDotToken)||Zt(r,t.propertyName)||Zt(r,t.name)||Zt(r,t.initializer)},[181]:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Zt(r,t.type)},[185]:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Zt(r,t.type)},[184]:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Zt(r,t.type)},[179]:BAe,[180]:BAe,[174]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.asteriskToken)||Zt(r,t.name)||Zt(r,t.questionToken)||Zt(r,t.exclamationToken)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Zt(r,t.type)||Zt(r,t.body)},[173]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.questionToken)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Zt(r,t.type)},[176]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Zt(r,t.type)||Zt(r,t.body)},[177]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Zt(r,t.type)||Zt(r,t.body)},[178]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Zt(r,t.type)||Zt(r,t.body)},[262]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.asteriskToken)||Zt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Zt(r,t.type)||Zt(r,t.body)},[218]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.asteriskToken)||Zt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Zt(r,t.type)||Zt(r,t.body)},[219]:function(t,r,i){return ji(r,i,t.modifiers)||ji(r,i,t.typeParameters)||ji(r,i,t.parameters)||Zt(r,t.type)||Zt(r,t.equalsGreaterThanToken)||Zt(r,t.body)},[175]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.body)},[183]:function(t,r,i){return Zt(r,t.typeName)||ji(r,i,t.typeArguments)},[182]:function(t,r,i){return Zt(r,t.assertsModifier)||Zt(r,t.parameterName)||Zt(r,t.type)},[186]:function(t,r,i){return Zt(r,t.exprName)||ji(r,i,t.typeArguments)},[187]:function(t,r,i){return ji(r,i,t.members)},[188]:function(t,r,i){return Zt(r,t.elementType)},[189]:function(t,r,i){return ji(r,i,t.elements)},[192]:GAe,[193]:GAe,[194]:function(t,r,i){return Zt(r,t.checkType)||Zt(r,t.extendsType)||Zt(r,t.trueType)||Zt(r,t.falseType)},[195]:function(t,r,i){return Zt(r,t.typeParameter)},[205]:function(t,r,i){return Zt(r,t.argument)||Zt(r,t.attributes)||Zt(r,t.qualifier)||ji(r,i,t.typeArguments)},[302]:function(t,r,i){return Zt(r,t.assertClause)},[196]:VAe,[198]:VAe,[199]:function(t,r,i){return Zt(r,t.objectType)||Zt(r,t.indexType)},[200]:function(t,r,i){return Zt(r,t.readonlyToken)||Zt(r,t.typeParameter)||Zt(r,t.nameType)||Zt(r,t.questionToken)||Zt(r,t.type)||ji(r,i,t.members)},[201]:function(t,r,i){return Zt(r,t.literal)},[202]:function(t,r,i){return Zt(r,t.dotDotDotToken)||Zt(r,t.name)||Zt(r,t.questionToken)||Zt(r,t.type)},[206]:jAe,[207]:jAe,[209]:function(t,r,i){return ji(r,i,t.elements)},[210]:function(t,r,i){return ji(r,i,t.properties)},[211]:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.questionDotToken)||Zt(r,t.name)},[212]:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.questionDotToken)||Zt(r,t.argumentExpression)},[213]:UAe,[214]:UAe,[215]:function(t,r,i){return Zt(r,t.tag)||Zt(r,t.questionDotToken)||ji(r,i,t.typeArguments)||Zt(r,t.template)},[216]:function(t,r,i){return Zt(r,t.type)||Zt(r,t.expression)},[217]:function(t,r,i){return Zt(r,t.expression)},[220]:function(t,r,i){return Zt(r,t.expression)},[221]:function(t,r,i){return Zt(r,t.expression)},[222]:function(t,r,i){return Zt(r,t.expression)},[224]:function(t,r,i){return Zt(r,t.operand)},[229]:function(t,r,i){return Zt(r,t.asteriskToken)||Zt(r,t.expression)},[223]:function(t,r,i){return Zt(r,t.expression)},[225]:function(t,r,i){return Zt(r,t.operand)},[226]:function(t,r,i){return Zt(r,t.left)||Zt(r,t.operatorToken)||Zt(r,t.right)},[234]:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.type)},[235]:function(t,r,i){return Zt(r,t.expression)},[238]:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.type)},[236]:function(t,r,i){return Zt(r,t.name)},[227]:function(t,r,i){return Zt(r,t.condition)||Zt(r,t.questionToken)||Zt(r,t.whenTrue)||Zt(r,t.colonToken)||Zt(r,t.whenFalse)},[230]:function(t,r,i){return Zt(r,t.expression)},[241]:HAe,[268]:HAe,[312]:function(t,r,i){return ji(r,i,t.statements)||Zt(r,t.endOfFileToken)},[243]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.declarationList)},[261]:function(t,r,i){return ji(r,i,t.declarations)},[244]:function(t,r,i){return Zt(r,t.expression)},[245]:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.thenStatement)||Zt(r,t.elseStatement)},[246]:function(t,r,i){return Zt(r,t.statement)||Zt(r,t.expression)},[247]:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.statement)},[248]:function(t,r,i){return Zt(r,t.initializer)||Zt(r,t.condition)||Zt(r,t.incrementor)||Zt(r,t.statement)},[249]:function(t,r,i){return Zt(r,t.initializer)||Zt(r,t.expression)||Zt(r,t.statement)},[250]:function(t,r,i){return Zt(r,t.awaitModifier)||Zt(r,t.initializer)||Zt(r,t.expression)||Zt(r,t.statement)},[251]:qAe,[252]:qAe,[253]:function(t,r,i){return Zt(r,t.expression)},[254]:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.statement)},[255]:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.caseBlock)},[269]:function(t,r,i){return ji(r,i,t.clauses)},[296]:function(t,r,i){return Zt(r,t.expression)||ji(r,i,t.statements)},[297]:function(t,r,i){return ji(r,i,t.statements)},[256]:function(t,r,i){return Zt(r,t.label)||Zt(r,t.statement)},[257]:function(t,r,i){return Zt(r,t.expression)},[258]:function(t,r,i){return Zt(r,t.tryBlock)||Zt(r,t.catchClause)||Zt(r,t.finallyBlock)},[299]:function(t,r,i){return Zt(r,t.variableDeclaration)||Zt(r,t.block)},[170]:function(t,r,i){return Zt(r,t.expression)},[263]:JAe,[231]:JAe,[264]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.name)||ji(r,i,t.typeParameters)||ji(r,i,t.heritageClauses)||ji(r,i,t.members)},[265]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.name)||ji(r,i,t.typeParameters)||Zt(r,t.type)},[266]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.name)||ji(r,i,t.members)},[306]:function(t,r,i){return Zt(r,t.name)||Zt(r,t.initializer)},[267]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.body)},[271]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.name)||Zt(r,t.moduleReference)},[272]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.importClause)||Zt(r,t.moduleSpecifier)||Zt(r,t.attributes)},[273]:function(t,r,i){return Zt(r,t.name)||Zt(r,t.namedBindings)},[300]:function(t,r,i){return ji(r,i,t.elements)},[301]:function(t,r,i){return Zt(r,t.name)||Zt(r,t.value)},[270]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.name)},[274]:function(t,r,i){return Zt(r,t.name)},[280]:function(t,r,i){return Zt(r,t.name)},[275]:KAe,[279]:KAe,[278]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.exportClause)||Zt(r,t.moduleSpecifier)||Zt(r,t.attributes)},[276]:XAe,[281]:XAe,[277]:function(t,r,i){return ji(r,i,t.modifiers)||Zt(r,t.expression)},[228]:function(t,r,i){return Zt(r,t.head)||ji(r,i,t.templateSpans)},[239]:function(t,r,i){return Zt(r,t.expression)||Zt(r,t.literal)},[203]:function(t,r,i){return Zt(r,t.head)||ji(r,i,t.templateSpans)},[204]:function(t,r,i){return Zt(r,t.type)||Zt(r,t.literal)},[167]:function(t,r,i){return Zt(r,t.expression)},[298]:function(t,r,i){return ji(r,i,t.types)},[233]:function(t,r,i){return Zt(r,t.expression)||ji(r,i,t.typeArguments)},[283]:function(t,r,i){return Zt(r,t.expression)},[282]:function(t,r,i){return ji(r,i,t.modifiers)},[361]:function(t,r,i){return ji(r,i,t.elements)},[284]:function(t,r,i){return Zt(r,t.openingElement)||ji(r,i,t.children)||Zt(r,t.closingElement)},[288]:function(t,r,i){return Zt(r,t.openingFragment)||ji(r,i,t.children)||Zt(r,t.closingFragment)},[285]:YAe,[286]:YAe,[292]:function(t,r,i){return ji(r,i,t.properties)},[291]:function(t,r,i){return Zt(r,t.name)||Zt(r,t.initializer)},[293]:function(t,r,i){return Zt(r,t.expression)},[294]:function(t,r,i){return Zt(r,t.dotDotDotToken)||Zt(r,t.expression)},[287]:function(t,r,i){return Zt(r,t.tagName)},[295]:function(t,r,i){return Zt(r,t.namespace)||Zt(r,t.name)},[190]:BC,[191]:BC,[316]:BC,[322]:BC,[321]:BC,[323]:BC,[325]:BC,[324]:function(t,r,i){return ji(r,i,t.parameters)||Zt(r,t.type)},[327]:function(t,r,i){return(typeof t.comment=="string"?void 0:ji(r,i,t.comment))||ji(r,i,t.tags)},[354]:function(t,r,i){return Zt(r,t.tagName)||Zt(r,t.name)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},[317]:function(t,r,i){return Zt(r,t.name)},[318]:function(t,r,i){return Zt(r,t.left)||Zt(r,t.right)},[348]:$Ae,[355]:$Ae,[337]:function(t,r,i){return Zt(r,t.tagName)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},[336]:function(t,r,i){return Zt(r,t.tagName)||Zt(r,t.class)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},[335]:function(t,r,i){return Zt(r,t.tagName)||Zt(r,t.class)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},[352]:function(t,r,i){return Zt(r,t.tagName)||Zt(r,t.constraint)||ji(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},[353]:function(t,r,i){return Zt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Zt(r,t.typeExpression)||Zt(r,t.fullName)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment)):Zt(r,t.fullName)||Zt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment)))},[345]:function(t,r,i){return Zt(r,t.tagName)||Zt(r,t.fullName)||Zt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:ji(r,i,t.comment))},[349]:GC,[351]:GC,[350]:GC,[347]:GC,[357]:GC,[356]:GC,[346]:GC,[330]:function(t,r,i){return Ve(t.typeParameters,r)||Ve(t.parameters,r)||Zt(r,t.type)},[331]:Wse,[332]:Wse,[333]:Wse,[329]:function(t,r,i){return Ve(t.jsDocPropertyTags,r)},[334]:uR,[339]:uR,[340]:uR,[341]:uR,[342]:uR,[343]:uR,[338]:uR,[344]:uR,[360]:GVe},(e=>{var t=wv(99,!0),r=40960,i,o,s,l,u;function p($){return Ze++,$}var v={createBaseSourceFileNode:$=>p(new u($,0,0)),createBaseIdentifierNode:$=>p(new s($,0,0)),createBasePrivateIdentifierNode:$=>p(new l($,0,0)),createBaseTokenNode:$=>p(new o($,0,0)),createBaseNode:$=>p(new i($,0,0))},f=Xk(11,v),{createNodeArray:b,createNumericLiteral:A,createStringLiteral:I,createLiteralLikeNode:R,createIdentifier:M,createPrivateIdentifier:C,createToken:W,createArrayLiteralExpression:U,createObjectLiteralExpression:X,createPropertyAccessExpression:ee,createPropertyAccessChain:V,createElementAccessExpression:se,createElementAccessChain:G,createCallExpression:re,createCallChain:_e,createNewExpression:ye,createParenthesizedExpression:Q,createBlock:Y,createVariableStatement:oe,createExpressionStatement:he,createIfStatement:Ie,createWhileStatement:de,createForStatement:ie,createForOfStatement:ge,createVariableDeclaration:Ce,createVariableDeclarationList:qe}=f,Se,Le,Ne,Oe,At,be,He,it,Ft,yt,Ze,It,on,Yt,Nn,Xn,yn=!0,tn=!1;function en($,Re,Ke,Rt,Nt=!1,Jt,Gr,zi=0){var Pi;if(Jt=d7($,Jt),Jt===6){const to=bo($,Re,Ke,Rt,Nt);return Nw(to,(Pi=to.statements[0])==null?void 0:Pi.expression,to.parseDiagnostics,!1,void 0),to.referencedFiles=et,to.typeReferenceDirectives=et,to.libReferenceDirectives=et,to.amdDependencies=et,to.hasNoDefaultLib=!1,to.pragmas=r6,to}Ui($,Re,Ke,Rt,Jt,zi);const _i=tr(Ke,Nt,Jt,Gr||ZAe,zi);return Co(),_i}e.parseSourceFile=en;function gi($,Re){Ui("",$,Re,void 0,1,0),ke();const Ke=te(!0),Rt=J()===1&&!He.length;return Co(),Rt?Ke:void 0}e.parseIsolatedEntityName=gi;function bo($,Re,Ke=2,Rt,Nt=!1){Ui($,Re,Ke,Rt,6,0),Le=Xn,ke();const Jt=L();let Gr,zi;if(J()===1)Gr=Wo([],Jt,Jt),zi=yl();else{let to;for(;J()!==1;){let ls;switch(J()){case 23:ls=kE();break;case 112:case 97:case 106:ls=yl();break;case 41:Fi(()=>ke()===9&&ke()!==59)?ls=Zr():ls=av();break;case 9:case 11:if(Fi(()=>ke()!==59)){ls=Yr();break}default:ls=av();break}to&&Do(to)?to.push(ls):to?to=[to,ls]:(to=ls,J()!==1&&hn(m.Unexpected_token))}const vs=Do(to)?an(U(to),Jt):N.checkDefined(to),ws=he(vs);an(ws,Jt),Gr=Wo([ws],Jt),zi=Ps(1,m.Unexpected_token)}const Pi=Bt($,2,6,!1,Gr,zi,Le,is);Nt&&nt(Pi),Pi.nodeCount=Ze,Pi.identifierCount=on,Pi.identifiers=It,Pi.parseDiagnostics=QA(He,Pi),it&&(Pi.jsDocDiagnostics=QA(it,Pi));const _i=Pi;return Co(),_i}e.parseJsonText=bo;function Ui($,Re,Ke,Rt,Nt,Jt){switch(i=pu.getNodeConstructor(),o=pu.getTokenConstructor(),s=pu.getIdentifierConstructor(),l=pu.getPrivateIdentifierConstructor(),u=pu.getSourceFileConstructor(),Se=va($),Ne=Re,Oe=Ke,Ft=Rt,At=Nt,be=Lk(Nt),He=[],Yt=0,It=new Map,on=0,Ze=0,Le=0,yn=!0,At){case 1:case 2:Xn=524288;break;case 6:Xn=134742016;break;default:Xn=0;break}tn=!1,t.setText(Ne),t.setOnError(Lt),t.setScriptTarget(Oe),t.setLanguageVariant(be),t.setScriptKind(At),t.setJSDocParsingMode(Jt)}function Co(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Ne=void 0,Oe=void 0,Ft=void 0,At=void 0,be=void 0,Le=0,He=void 0,it=void 0,Yt=0,It=void 0,Nn=void 0,yn=!0}function tr($,Re,Ke,Rt,Nt){const Jt=Iu(Se);Jt&&(Xn|=33554432),Le=Xn,ke();const Gr=ra(0,up);N.assert(J()===1);const zi=me(),Pi=Nr(yl(),zi),_i=Bt(Se,$,Ke,Jt,Gr,Pi,Le,Rt);return hq(_i,Ne),gq(_i,to),_i.commentDirectives=t.getCommentDirectives(),_i.nodeCount=Ze,_i.identifierCount=on,_i.identifiers=It,_i.parseDiagnostics=QA(He,_i),_i.jsDocParsingMode=Nt,it&&(_i.jsDocDiagnostics=QA(it,_i)),Re&&nt(_i),_i;function to(vs,ws,ls){He.push(G2(Se,Ne,vs,ws,ls))}}let Ci=!1;function Nr($,Re){if(!Re)return $;N.assert(!$.jsDoc);const Ke=Vi(Hj($,Ne),Rt=>$_.parseJSDocComment($,Rt.pos,Rt.end-Rt.pos));return Ke.length&&($.jsDoc=Ke),Ci&&(Ci=!1,$.flags|=536870912),$}function Kt($){const Re=Ft,Ke=yq.createSyntaxCursor($);Ft={currentNode:to};const Rt=[],Nt=He;He=[];let Jt=0,Gr=Pi($.statements,0);for(;Gr!==-1;){const vs=$.statements[Jt],ws=$.statements[Gr];Hr(Rt,$.statements,Jt,Gr),Jt=_i($.statements,Gr);const ls=Ji(Nt,Q_=>Q_.start>=vs.pos),Uf=ls>=0?Ji(Nt,Q_=>Q_.start>=ws.pos,ls):-1;ls>=0&&Hr(He,Nt,ls,Uf>=0?Uf:void 0),Ao(()=>{const Q_=Xn;for(Xn|=65536,t.resetTokenState(ws.pos),ke();J()!==1;){const jm=t.getTokenFullStart(),uv=sc(0,up);if(Rt.push(uv),jm===t.getTokenFullStart()&&ke(),Jt>=0){const dv=$.statements[Jt];if(uv.end===dv.pos)break;uv.end>dv.pos&&(Jt=_i($.statements,Jt+1))}}Xn=Q_},2),Gr=Jt>=0?Pi($.statements,Jt):-1}if(Jt>=0){const vs=$.statements[Jt];Hr(Rt,$.statements,Jt);const ws=Ji(Nt,ls=>ls.start>=vs.pos);ws>=0&&Hr(He,Nt,ws)}return Ft=Re,f.updateSourceFile($,ut(b(Rt),$.statements));function zi(vs){return!(vs.flags&65536)&&!!(vs.transformFlags&67108864)}function Pi(vs,ws){for(let ls=ws;ls<vs.length;ls++)if(zi(vs[ls]))return ls;return-1}function _i(vs,ws){for(let ls=ws;ls<vs.length;ls++)if(!zi(vs[ls]))return ls;return-1}function to(vs){const ws=Ke.currentNode(vs);return yn&&ws&&zi(ws)&&(ws.intersectsChange=!0),ws}}function nt($){Hy($,!0)}e.fixupParentReferences=nt;function Bt($,Re,Ke,Rt,Nt,Jt,Gr,zi){let Pi=f.createSourceFile(Nt,Jt,Gr);if(mC(Pi,0,Ne.length),_i(Pi),!Rt&&mc(Pi)&&Pi.transformFlags&67108864){const to=Pi;Pi=Kt(Pi),to!==Pi&&_i(Pi)}return Pi;function _i(to){to.text=Ne,to.bindDiagnostics=[],to.bindSuggestionDiagnostics=void 0,to.languageVersion=Re,to.fileName=$,to.languageVariant=Lk(Ke),to.isDeclarationFile=Rt,to.scriptKind=Ke,zi(to),to.setExternalModuleIndicator=zi}}function Dn($,Re){$?Xn|=Re:Xn&=~Re}function si($){Dn($,8192)}function yi($){Dn($,16384)}function oo($){Dn($,32768)}function Po($){Dn($,65536)}function _a($,Re){const Ke=$&Xn;if(Ke){Dn(!1,Ke);const Rt=Re();return Dn(!0,Ke),Rt}return Re()}function Ba($,Re){const Ke=$&~Xn;if(Ke){Dn(!0,Ke);const Rt=Re();return Dn(!1,Ke),Rt}return Re()}function Tn($){return _a(8192,$)}function On($){return Ba(8192,$)}function Je($){return _a(131072,$)}function mt($){return Ba(131072,$)}function pt($){return Ba(16384,$)}function Pt($){return Ba(32768,$)}function le($){return Ba(65536,$)}function Fe($){return _a(65536,$)}function dt($){return Ba(81920,$)}function j($){return _a(81920,$)}function ot($){return(Xn&$)!==0}function Dt(){return ot(16384)}function Ye(){return ot(8192)}function _t(){return ot(131072)}function Gt(){return ot(32768)}function gn(){return ot(65536)}function hn($,...Re){return q(t.getTokenStart(),t.getTokenEnd(),$,...Re)}function pn($,Re,Ke,...Rt){const Nt=il(He);let Jt;return(!Nt||$!==Nt.start)&&(Jt=G2(Se,Ne,$,Re,Ke,...Rt),He.push(Jt)),tn=!0,Jt}function q($,Re,Ke,...Rt){return pn($,Re-$,Ke,...Rt)}function We($,Re,...Ke){q($.pos,$.end,Re,...Ke)}function Lt($,Re,Ke){pn(t.getTokenEnd(),Re,$,Ke)}function L(){return t.getTokenFullStart()}function me(){return t.hasPrecedingJSDocComment()}function J(){return yt}function fe(){return yt=t.scan()}function je($){return ke(),$()}function ke(){return Gd(yt)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&q(t.getTokenStart(),t.getTokenEnd(),m.Keywords_cannot_contain_escape_characters),fe()}function Tt(){return yt=t.scanJsDocToken()}function kt($){return yt=t.scanJSDocCommentTextToken($)}function nn(){return yt=t.reScanGreaterToken()}function En(){return yt=t.reScanSlashToken()}function or($){return yt=t.reScanTemplateToken($)}function pr(){return yt=t.reScanLessThanToken()}function ai(){return yt=t.reScanHashToken()}function li(){return yt=t.scanJsxIdentifier()}function Qn(){return yt=t.scanJsxToken()}function qr(){return yt=t.scanJsxAttributeValue()}function Ao($,Re){const Ke=yt,Rt=He.length,Nt=tn,Jt=Xn,Gr=Re!==0?t.lookAhead($):t.tryScan($);return N.assert(Jt===Xn),(!Gr||Re!==0)&&(yt=Ke,Re!==2&&(He.length=Rt),tn=Nt),Gr}function Fi($){return Ao($,1)}function vi($){return Ao($,0)}function ya(){return J()===80?!0:J()>118}function Xa(){return J()===80?!0:J()===127&&Dt()||J()===135&&gn()?!1:J()>118}function Qt($,Re,Ke=!0){return J()===$?(Ke&&ke(),!0):(Re?hn(Re):hn(m._0_expected,ma($)),!1)}const ba=Object.keys(yL).filter($=>$.length>2);function Gl($){var Nt;if(oE($)){q(Wa(Ne,$.template.pos),$.template.end,m.Module_declaration_names_may_only_use_or_quoted_strings);return}const Re=Ue($)?Rr($):void 0;if(!Re||!tf(Re,Oe)){hn(m._0_expected,ma(27));return}const Ke=Wa(Ne,$.pos);switch(Re){case"const":case"let":case"var":q(Ke,$.end,m.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":ao(m.Interface_name_cannot_be_0,m.Interface_must_be_given_a_name,19);return;case"is":q(Ke,t.getTokenStart(),m.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":ao(m.Namespace_name_cannot_be_0,m.Namespace_must_be_given_a_name,19);return;case"type":ao(m.Type_alias_name_cannot_be_0,m.Type_alias_must_be_given_a_name,64);return}const Rt=(Nt=cN(Re,ba,Jt=>Jt))!=null?Nt:Ga(Re);if(Rt){q(Ke,$.end,m.Unknown_keyword_or_identifier_Did_you_mean_0,Rt);return}J()!==0&&q(Ke,$.end,m.Unexpected_keyword_or_identifier)}function ao($,Re,Ke){J()===Ke?hn(Re):hn($,t.getTokenValue())}function Ga($){for(const Re of ba)if($.length>Re.length+2&&ho($,Re))return`${Re} ${$.slice(Re.length)}`}function ka($,Re,Ke){if(J()===60&&!t.hasPrecedingLineBreak()){hn(m.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(J()===21){hn(m.Cannot_start_a_function_call_in_a_type_annotation),ke();return}if(Re&&!_c()){Ke?hn(m._0_expected,ma(27)):hn(m.Expected_for_property_initializer);return}if(!Ll()){if(Ke){hn(m._0_expected,ma(27));return}Gl($)}}function Ts($){return J()===$?(Tt(),!0):(N.assert(P3($)),hn(m._0_expected,ma($)),!1)}function oc($,Re,Ke,Rt){if(J()===Re){ke();return}const Nt=hn(m._0_expected,ma(Re));!Ke||Nt&&Fa(Nt,G2(Se,Ne,Rt,1,m.The_parser_expected_to_find_a_1_to_match_the_0_token_here,ma($),ma(Re)))}function co($){return J()===$?(ke(),!0):!1}function da($){if(J()===$)return yl()}function mu($){if(J()===$)return wf()}function Ps($,Re,Ke){return da($)||Xs($,!1,Re||m._0_expected,Ke||ma($))}function wa($){const Re=mu($);return Re||(N.assert(P3($)),Xs($,!1,m._0_expected,ma($)))}function yl(){const $=L(),Re=J();return ke(),an(W(Re),$)}function wf(){const $=L(),Re=J();return Tt(),an(W(Re),$)}function _c(){return J()===27?!0:J()===20||J()===1||t.hasPrecedingLineBreak()}function Ll(){return _c()?(J()===27&&ke(),!0):!1}function fl(){return Ll()||Qt(27)}function Wo($,Re,Ke,Rt){const Nt=b($,Rt);return Eh(Nt,Re,Ke!=null?Ke:t.getTokenFullStart()),Nt}function an($,Re,Ke){return Eh($,Re,Ke!=null?Ke:t.getTokenFullStart()),Xn&&($.flags|=Xn),tn&&(tn=!1,$.flags|=262144),$}function Xs($,Re,Ke,...Rt){Re?pn(t.getTokenFullStart(),0,Ke,...Rt):Ke&&hn(Ke,...Rt);const Nt=L(),Jt=$===80?M("",void 0):Ly($)?f.createTemplateLiteralLikeNode($,"","",void 0):$===9?A("",void 0):$===11?I("",void 0):$===282?f.createMissingDeclaration():W($);return an(Jt,Nt)}function su($){let Re=It.get($);return Re===void 0&&It.set($,Re=$),Re}function _u($,Re,Ke){if($){on++;const zi=L(),Pi=J(),_i=su(t.getTokenValue()),to=t.hasExtendedUnicodeEscape();return fe(),an(M(_i,Pi,to),zi)}if(J()===81)return hn(Ke||m.Private_identifiers_are_not_allowed_outside_class_bodies),_u(!0);if(J()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return _u(!0);on++;const Rt=J()===1,Nt=t.isReservedWord(),Jt=t.getTokenText(),Gr=Nt?m.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:m.Identifier_expected;return Xs(80,Rt,Re||Gr,Jt)}function Dp($){return _u(ya(),void 0,$)}function Gs($,Re){return _u(Xa(),$,Re)}function Pc($){return _u(ld(J()),$)}function pe(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&hn(m.Unicode_escape_sequence_cannot_appear_here),_u(ld(J()))}function Z(){return ld(J())||J()===11||J()===9}function we(){return ld(J())||J()===11}function gt($){if(J()===11||J()===9){const Re=Yr();return Re.text=su(Re.text),Re}return $&&J()===23?Er():J()===81?Ar():Pc()}function fn(){return gt(!0)}function Er(){const $=L();Qt(23);const Re=Tn(Xe);return Qt(24),an(f.createComputedPropertyName(Re),$)}function Ar(){const $=L(),Re=C(su(t.getTokenValue()));return ke(),an(Re,$)}function Jr($){return J()===$&&vi(br)}function Di(){return ke(),t.hasPrecedingLineBreak()?!1:xl()}function br(){switch(J()){case 87:return ke()===94;case 95:return ke(),J()===90?Fi(Zl):J()===156?Fi(kl):Jo();case 90:return Zl();case 126:case 139:case 153:return ke(),xl();default:return Di()}}function Jo(){return J()===60||J()!==42&&J()!==130&&J()!==19&&xl()}function kl(){return ke(),Jo()}function Gc(){return Wv(J())&&vi(br)}function xl(){return J()===23||J()===19||J()===42||J()===26||Z()}function Zl(){return ke(),J()===86||J()===100||J()===120||J()===60||J()===128&&Fi(LT)||J()===134&&Fi(kT)}function Ns($,Re){if(Ic($))return!0;switch($){case 0:case 1:case 3:return!(J()===27&&Re)&&OE();case 2:return J()===84||J()===90;case 4:return Fi(es);case 5:return Fi(Ag)||J()===27&&!Re;case 6:return J()===23||Z();case 12:switch(J()){case 23:case 42:case 26:case 25:return!0;default:return Z()}case 18:return Z();case 9:return J()===23||J()===26||Z();case 24:return we();case 7:return J()===19?Fi(ac):Re?Xa()&&!Cd():sx()&&!Cd();case 8:return ds();case 10:return J()===28||J()===26||ds();case 19:return J()===103||J()===87||Xa();case 15:switch(J()){case 28:case 25:return!0}case 11:return J()===26||s_();case 16:return q_(!1);case 17:return q_(!0);case 20:case 21:return J()===28||vg();case 22:return D();case 23:return J()===161&&Fi(gD)?!1:ld(J());case 13:return ld(J())||J()===19;case 14:return!0;case 25:return!0;case 26:return N.fail("ParsingContext.Count used as a context");default:N.assertNever($,"Non-exhaustive case in 'isListElement'.")}}function ac(){if(N.assert(J()===19),ke()===20){const $=ke();return $===28||$===19||$===96||$===119}return!0}function ap(){return ke(),Xa()}function sp(){return ke(),ld(J())}function Yc(){return ke(),Sre(J())}function Cd(){return J()===119||J()===96?Fi(Me):!1}function Me(){return ke(),s_()}function Ot(){return ke(),vg()}function Yn($){if(J()===1)return!0;switch($){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return J()===20;case 3:return J()===20||J()===84||J()===90;case 7:return J()===19||J()===96||J()===119;case 8:return Io();case 19:return J()===32||J()===21||J()===19||J()===96||J()===119;case 11:return J()===22||J()===27;case 15:case 21:case 10:return J()===24;case 17:case 16:case 18:return J()===22||J()===24;case 20:return J()!==28;case 22:return J()===19||J()===20;case 13:return J()===32||J()===44;case 14:return J()===30&&Fi(Ti);default:return!1}}function Io(){return!!(_c()||rv(J())||J()===39)}function Qo(){N.assert(Yt,"Missing parsing context");for(let $=0;$<26;$++)if(Yt&1<<$&&(Ns($,!0)||Yn($)))return!0;return!1}function ra($,Re){const Ke=Yt;Yt|=1<<$;const Rt=[],Nt=L();for(;!Yn($);){if(Ns($,!1)){Rt.push(sc($,Re));continue}if(Mh($))break}return Yt=Ke,Wo(Rt,Nt)}function sc($,Re){const Ke=Ic($);return Ke?ml(Ke):Re()}function Ic($,Re){var Ke;if(!Ft||!Sl($)||tn)return;const Rt=Ft.currentNode(Re!=null?Re:t.getTokenFullStart());if(!(Hl(Rt)||Rt.intersectsChange||d2(Rt)||(Rt.flags&101441536)!==Xn)&&!!Kl(Rt,$))return mk(Rt)&&((Ke=Rt.jsDoc)==null?void 0:Ke.jsDocCache)&&(Rt.jsDoc.jsDocCache=void 0),Rt}function ml($){return t.resetTokenState($.end),ke(),$}function Sl($){switch($){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function Kl($,Re){switch(Re){case 5:return lc($);case 2:return $c($);case 0:case 1:case 3:return ff($);case 6:return Ud($);case 4:return Pd($);case 8:return Of($);case 17:case 16:return H_($)}return!1}function lc($){if($)switch($.kind){case 176:case 181:case 177:case 178:case 172:case 240:return!0;case 174:const Re=$;return!(Re.name.kind===80&&Re.name.escapedText==="constructor")}return!1}function $c($){if($)switch($.kind){case 296:case 297:return!0}return!1}function ff($){if($)switch($.kind){case 262:case 243:case 241:case 245:case 244:case 257:case 253:case 255:case 252:case 251:case 249:case 250:case 248:case 247:case 254:case 242:case 258:case 256:case 246:case 259:case 272:case 271:case 278:case 277:case 267:case 263:case 264:case 266:case 265:return!0}return!1}function Ud($){return $.kind===306}function Pd($){if($)switch($.kind){case 180:case 173:case 181:case 171:case 179:return!0}return!1}function Of($){return $.kind!==260?!1:$.initializer===void 0}function H_($){return $.kind!==169?!1:$.initializer===void 0}function Mh($){return Qg($),Qo()?!0:(ke(),!1)}function Qg($){switch($){case 0:return J()===90?hn(m._0_expected,ma(95)):hn(m.Declaration_or_statement_expected);case 1:return hn(m.Declaration_or_statement_expected);case 2:return hn(m.case_or_default_expected);case 3:return hn(m.Statement_expected);case 18:case 4:return hn(m.Property_or_signature_expected);case 5:return hn(m.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return hn(m.Enum_member_expected);case 7:return hn(m.Expression_expected);case 8:return Gd(J())?hn(m._0_is_not_allowed_as_a_variable_declaration_name,ma(J())):hn(m.Variable_declaration_expected);case 9:return hn(m.Property_destructuring_pattern_expected);case 10:return hn(m.Array_element_destructuring_pattern_expected);case 11:return hn(m.Argument_expression_expected);case 12:return hn(m.Property_assignment_expected);case 15:return hn(m.Expression_or_comma_expected);case 17:return hn(m.Parameter_declaration_expected);case 16:return Gd(J())?hn(m._0_is_not_allowed_as_a_parameter_name,ma(J())):hn(m.Parameter_declaration_expected);case 19:return hn(m.Type_parameter_declaration_expected);case 20:return hn(m.Type_argument_expected);case 21:return hn(m.Type_expected);case 22:return hn(m.Unexpected_token_expected);case 23:return J()===161?hn(m._0_expected,"}"):hn(m.Identifier_expected);case 13:return hn(m.Identifier_expected);case 14:return hn(m.Identifier_expected);case 24:return hn(m.Identifier_or_string_literal_expected);case 25:return hn(m.Identifier_expected);case 26:return N.fail("ParsingContext.Count used as a context");default:N.assertNever($)}}function Vu($,Re,Ke){const Rt=Yt;Yt|=1<<$;const Nt=[],Jt=L();let Gr=-1;for(;;){if(Ns($,!1)){const zi=t.getTokenFullStart(),Pi=sc($,Re);if(!Pi){Yt=Rt;return}if(Nt.push(Pi),Gr=t.getTokenStart(),co(28))continue;if(Gr=-1,Yn($))break;Qt(28,Zg($)),Ke&&J()===27&&!t.hasPrecedingLineBreak()&&ke(),zi===t.getTokenFullStart()&&ke();continue}if(Yn($)||Mh($))break}return Yt=Rt,Wo(Nt,Jt,void 0,Gr>=0)}function Zg($){return $===6?m.An_enum_member_name_must_be_followed_by_a_or:void 0}function Np(){const $=Wo([],L());return $.isMissingList=!0,$}function hg($){return!!$.isMissingList}function Hd($,Re,Ke,Rt){if(Qt(Ke)){const Nt=Vu($,Re);return Qt(Rt),Nt}return Np()}function te($,Re){const Ke=L();let Rt=$?Pc(Re):Gs(Re);for(;co(25)&&J()!==30;)Rt=an(f.createQualifiedName(Rt,zt($,!1,!0)),Ke);return Rt}function lt($,Re){return an(f.createQualifiedName($,Re),$.pos)}function zt($,Re,Ke){if(t.hasPrecedingLineBreak()&&ld(J())&&Fi(Jp))return Xs(80,!0,m.Identifier_expected);if(J()===81){const Rt=Ar();return Re?Rt:Xs(80,!0,m.Identifier_expected)}return $?Ke?Pc():pe():Gs()}function qt($){const Re=L(),Ke=[];let Rt;do Rt=ri($),Ke.push(Rt);while(Rt.literal.kind===17);return Wo(Ke,Re)}function F($){const Re=L();return an(f.createTemplateExpression(uo($),qt($)),Re)}function De(){const $=L();return an(f.createTemplateLiteralType(uo(!1),st()),$)}function st(){const $=L(),Re=[];let Ke;do Ke=Vt(),Re.push(Ke);while(Ke.literal.kind===17);return Wo(Re,$)}function Vt(){const $=L();return an(f.createTemplateLiteralTypeSpan(xc(),lr(!1)),$)}function lr($){return J()===20?(or($),Va()):Ps(18,m._0_expected,ma(20))}function ri($){const Re=L();return an(f.createTemplateSpan(Tn(Xe),lr($)),Re)}function Yr(){return Vl(J())}function uo($){!$&&t.getTokenFlags()&26656&&or(!1);const Re=Vl(J());return N.assert(Re.kind===16,"Template head has wrong token kind"),Re}function Va(){const $=Vl(J());return N.assert($.kind===17||$.kind===18,"Template fragment has wrong token kind"),$}function ja($){const Re=$===15||$===18,Ke=t.getTokenText();return Ke.substring(1,Ke.length-(t.isUnterminated()?0:Re?1:2))}function Vl($){const Re=L(),Ke=Ly($)?f.createTemplateLiteralLikeNode($,t.getTokenValue(),ja($),t.getTokenFlags()&7176):$===9?A(t.getTokenValue(),t.getNumericLiteralFlags()):$===11?I(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):xN($)?R($,t.getTokenValue()):N.fail();return t.hasExtendedUnicodeEscape()&&(Ke.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Ke.isUnterminated=!0),ke(),an(Ke,Re)}function hu(){return te(!0,m.Type_expected)}function Mc(){if(!t.hasPrecedingLineBreak()&&pr()===30)return Hd(20,xc,30,32)}function Cp(){const $=L();return an(f.createTypeReferenceNode(hu(),Mc()),$)}function qd($){switch($.kind){case 183:return Hl($.typeName);case 184:case 185:{const{parameters:Re,type:Ke}=$;return hg(Re)||qd(Ke)}case 196:return qd($.type);default:return!1}}function ub($){return ke(),an(f.createTypePredicateNode(void 0,$,xc()),$.pos)}function gs(){const $=L();return ke(),an(f.createThisTypeNode(),$)}function Wf(){const $=L();return ke(),an(f.createJSDocAllType(),$)}function Ff(){const $=L();return ke(),an(f.createJSDocNonNullableType(mb(),!1),$)}function Hi(){const $=L();return ke(),J()===28||J()===20||J()===22||J()===32||J()===64||J()===52?an(f.createJSDocUnknownType(),$):an(f.createJSDocNullableType(xc(),!1),$)}function Lh(){const $=L(),Re=me();if(vi(jf)){const Ke=bn(36),Rt=jt(59,!1);return Nr(an(f.createJSDocFunctionType(Ke,Rt),$),Re)}return an(f.createTypeReferenceNode(Pc(),void 0),$)}function gg(){const $=L();let Re;return(J()===110||J()===105)&&(Re=Pc(),Qt(59)),an(f.createParameterDeclaration(void 0,void 0,Re,void 0,zf(),void 0),$)}function zf(){t.setInJSDocType(!0);const $=L();if(co(144)){const Rt=f.createJSDocNamepathType(void 0);e:for(;;)switch(J()){case 20:case 1:case 28:case 5:break e;default:Tt()}return t.setInJSDocType(!1),an(Rt,$)}const Re=co(26);let Ke=_b();return t.setInJSDocType(!1),Re&&(Ke=an(f.createJSDocVariadicType(Ke),$)),J()===64?(ke(),an(f.createJSDocOptionalType(Ke),$)):Ke}function db(){const $=L();Qt(114);const Re=te(!0),Ke=t.hasPrecedingLineBreak()?void 0:r1();return an(f.createTypeQueryNode(Re,Ke),$)}function pb(){const $=L(),Re=Fh(!1,!0),Ke=Gs();let Rt,Nt;co(96)&&(vg()||!s_()?Rt=xc():Nt=gb());const Jt=co(64)?xc():void 0,Gr=f.createTypeParameterDeclaration(Re,Ke,Rt,Jt);return Gr.expression=Nt,an(Gr,$)}function mf(){if(J()===30)return Hd(19,pb,30,32)}function q_($){return J()===26||ds()||Wv(J())||J()===60||vg(!$)}function _f($){const Re=Cr(m.Private_identifiers_cannot_be_used_as_parameters);return BL(Re)===0&&!St($)&&Wv(J())&&ke(),Re}function ev(){return ya()||J()===23||J()===19}function ze($){return Ct($)}function Qe($){return Ct($,!1)}function Ct($,Re=!0){const Ke=L(),Rt=me(),Nt=$?le(()=>Fh(!0)):Fe(()=>Fh(!0));if(J()===110){const Pi=f.createParameterDeclaration(Nt,void 0,_u(!0),void 0,sy(),void 0),_i=eu(Nt);return _i&&We(_i,m.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Nr(an(Pi,Ke),Rt)}const Jt=yn;yn=!1;const Gr=da(26);if(!Re&&!ev())return;const zi=Nr(an(f.createParameterDeclaration(Nt,Gr,_f(Nt),da(58),sy(),l_()),Ke),Rt);return yn=Jt,zi}function jt($,Re){if(vn($,Re))return Je(_b)}function vn($,Re){return $===39?(Qt($),!0):co(59)?!0:Re&&J()===39?(hn(m._0_expected,ma(59)),ke(),!0):!1}function $n($,Re){const Ke=Dt(),Rt=gn();yi(!!($&1)),Po(!!($&2));const Nt=$&32?Vu(17,gg):Vu(16,()=>Re?ze(Rt):Qe(Rt));return yi(Ke),Po(Rt),Nt}function bn($){if(!Qt(21))return Np();const Re=$n($,!0);return Qt(22),Re}function er(){co(28)||fl()}function mi($){const Re=L(),Ke=me();$===180&&Qt(105);const Rt=mf(),Nt=bn(4),Jt=jt(59,!0);er();const Gr=$===179?f.createCallSignature(Rt,Nt,Jt):f.createConstructSignature(Rt,Nt,Jt);return Nr(an(Gr,Re),Ke)}function fr(){return J()===23&&Fi(ti)}function ti(){if(ke(),J()===26||J()===24)return!0;if(Wv(J())){if(ke(),Xa())return!0}else if(Xa())ke();else return!1;return J()===59||J()===28?!0:J()!==58?!1:(ke(),J()===59||J()===28||J()===24)}function gr($,Re,Ke){const Rt=Hd(16,()=>ze(!1),23,24),Nt=sy();er();const Jt=f.createIndexSignature(Ke,Rt,Nt);return Nr(an(Jt,$),Re)}function Zo($,Re,Ke){const Rt=fn(),Nt=da(58);let Jt;if(J()===21||J()===30){const Gr=mf(),zi=bn(4),Pi=jt(59,!0);Jt=f.createMethodSignature(Ke,Rt,Nt,Gr,zi,Pi)}else{const Gr=sy();Jt=f.createPropertySignature(Ke,Rt,Nt,Gr),J()===64&&(Jt.initializer=l_())}return er(),Nr(an(Jt,$),Re)}function es(){if(J()===21||J()===30||J()===139||J()===153)return!0;let $=!1;for(;Wv(J());)$=!0,ke();return J()===23?!0:(Z()&&($=!0,ke()),$?J()===21||J()===30||J()===58||J()===59||J()===28||_c():!1)}function nd(){if(J()===21||J()===30)return mi(179);if(J()===105&&Fi(gu))return mi(180);const $=L(),Re=me(),Ke=Fh(!1);return Jr(139)?lv($,Re,Ke,177,4):Jr(153)?lv($,Re,Ke,178,4):fr()?gr($,Re,Ke):Zo($,Re,Ke)}function gu(){return ke(),J()===21||J()===30}function tv(){return ke()===25}function j0(){switch(ke()){case 21:case 30:case 25:return!0}return!1}function QI(){const $=L();return an(f.createTypeLiteralNode(U0()),$)}function U0(){let $;return Qt(19)?($=ra(4,nd),Qt(20)):$=Np(),$}function rD(){return ke(),J()===40||J()===41?ke()===148:(J()===148&&ke(),J()===23&&ap()&&ke()===103)}function iD(){const $=L(),Re=Pc();Qt(103);const Ke=xc();return an(f.createTypeParameterDeclaration(void 0,Re,Ke,void 0),$)}function oD(){const $=L();Qt(19);let Re;(J()===148||J()===40||J()===41)&&(Re=yl(),Re.kind!==148&&Qt(148)),Qt(23);const Ke=iD(),Rt=co(130)?xc():void 0;Qt(24);let Nt;(J()===58||J()===40||J()===41)&&(Nt=yl(),Nt.kind!==58&&Qt(58));const Jt=sy();fl();const Gr=ra(4,nd);return Qt(20),an(f.createMappedTypeNode(Re,Ke,Rt,Nt,Jt,Gr),$)}function hT(){const $=L();if(co(26))return an(f.createRestTypeNode(xc()),$);const Re=xc();if(nR(Re)&&Re.pos===Re.type.pos){const Ke=f.createOptionalTypeNode(Re.type);return ut(Ke,Re),Ke.flags=Re.flags,Ke}return Re}function RE(){return ke()===59||J()===58&&ke()===59}function ZI(){return J()===26?ld(ke())&&RE():ld(J())&&RE()}function aD(){if(Fi(ZI)){const $=L(),Re=me(),Ke=da(26),Rt=Pc(),Nt=da(58);Qt(59);const Jt=hT(),Gr=f.createNamedTupleMember(Ke,Rt,Nt,Jt);return Nr(an(Gr,$),Re)}return hT()}function ex(){const $=L();return an(f.createTupleTypeNode(Hd(21,aD,23,24)),$)}function tx(){const $=L();Qt(21);const Re=xc();return Qt(22),an(f.createParenthesizedType(Re),$)}function nx(){let $;if(J()===128){const Re=L();ke();const Ke=an(W(128),Re);$=Wo([Ke],Re)}return $}function rx(){const $=L(),Re=me(),Ke=nx(),Rt=co(105);N.assert(!Ke||Rt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Nt=mf(),Jt=bn(4),Gr=jt(39,!1),zi=Rt?f.createConstructorTypeNode(Ke,Nt,Jt,Gr):f.createFunctionTypeNode(Nt,Jt,Gr);return Nr(an(zi,$),Re)}function gT(){const $=yl();return J()===25?void 0:$}function ix($){const Re=L();$&&ke();let Ke=J()===112||J()===97||J()===106?yl():Vl(J());return $&&(Ke=an(f.createPrefixUnaryExpression(41,Ke),Re)),an(f.createLiteralTypeNode(Ke),Re)}function DE(){return ke(),J()===102}function NE(){Le|=4194304;const $=L(),Re=co(114);Qt(102),Qt(21);const Ke=xc();let Rt;if(co(28)){const Gr=t.getTokenStart();Qt(19);const zi=J();if(zi===118||zi===132?ke():hn(m._0_expected,ma(118)),Qt(59),Rt=Rb(zi,!0),!Qt(20)){const Pi=il(He);Pi&&Pi.code===m._0_expected.code&&Fa(Pi,G2(Se,Ne,Gr,1,m.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Qt(22);const Nt=co(25)?hu():void 0,Jt=Mc();return an(f.createImportTypeNode(Ke,Rt,Nt,Jt,Re),$)}function fb(){return ke(),J()===9||J()===10}function mb(){switch(J()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return vi(gT)||Cp();case 67:t.reScanAsteriskEqualsToken();case 42:return Wf();case 61:t.reScanQuestionToken();case 58:return Hi();case 100:return Lh();case 54:return Ff();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return ix();case 41:return Fi(fb)?ix(!0):Cp();case 116:return yl();case 110:{const $=gs();return J()===142&&!t.hasPrecedingLineBreak()?ub($):$}case 114:return Fi(DE)?NE():db();case 19:return Fi(rD)?oD():QI();case 23:return ex();case 21:return tx();case 102:return NE();case 131:return Fi(Jp)?ax():Cp();case 16:return De();default:return Cp()}}function vg($){switch(J()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!$;case 41:return!$&&Fi(fb);case 21:return!$&&Fi(H0);default:return Xa()}}function H0(){return ke(),J()===22||q_(!1)||vg()}function cs(){const $=L();let Re=mb();for(;!t.hasPrecedingLineBreak();)switch(J()){case 54:ke(),Re=an(f.createJSDocNonNullableType(Re,!0),$);break;case 58:if(Fi(Ot))return Re;ke(),Re=an(f.createJSDocNullableType(Re,!0),$);break;case 23:if(Qt(23),vg()){const Ke=xc();Qt(24),Re=an(f.createIndexedAccessTypeNode(Re,Ke),$)}else Qt(24),Re=an(f.createArrayTypeNode(Re),$);break;default:return Re}return Re}function vT($){const Re=L();return Qt($),an(f.createTypeOperatorNode($,kh()),Re)}function sD(){if(co(96)){const $=mt(xc);if(_t()||J()!==58)return $}}function q0(){const $=L(),Re=Gs(),Ke=vi(sD),Rt=f.createTypeParameterDeclaration(void 0,Re,Ke);return an(Rt,$)}function nv(){const $=L();return Qt(140),an(f.createInferTypeNode(q0()),$)}function kh(){const $=J();switch($){case 143:case 158:case 148:return vT($);case 140:return nv()}return Je(cs)}function Bf($){if(yT()){const Re=rx();let Ke;return Ah(Re)?Ke=$?m.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:m.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Ke=$?m.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:m.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,We(Re,Ke),Re}}function Jd($,Re,Ke){const Rt=L(),Nt=$===52,Jt=co($);let Gr=Jt&&Bf(Nt)||Re();if(J()===$||Jt){const zi=[Gr];for(;co($);)zi.push(Bf(Nt)||Re());Gr=an(Ke(Wo(zi,Rt)),Rt)}return Gr}function Pp(){return Jd(51,kh,f.createIntersectionTypeNode)}function lp(){return Jd(52,Pp,f.createUnionTypeNode)}function ay(){return ke(),J()===105}function yT(){return J()===30||J()===21&&Fi(ox)?!0:J()===105||J()===128&&Fi(ay)}function lD(){if(Wv(J())&&Fh(!1),Xa()||J()===110)return ke(),!0;if(J()===23||J()===19){const $=He.length;return Cr(),$===He.length}return!1}function ox(){return ke(),!!(J()===22||J()===26||lD()&&(J()===59||J()===28||J()===58||J()===64||J()===22&&(ke(),J()===39)))}function _b(){const $=L(),Re=Xa()&&vi(J0),Ke=xc();return Re?an(f.createTypePredicateNode(void 0,Re,Ke),$):Ke}function J0(){const $=Gs();if(J()===142&&!t.hasPrecedingLineBreak())return ke(),$}function ax(){const $=L(),Re=Ps(131),Ke=J()===110?gs():Gs(),Rt=co(142)?xc():void 0;return an(f.createTypePredicateNode(Re,Ke,Rt),$)}function xc(){if(Xn&81920)return _a(81920,xc);if(yT())return rx();const $=L(),Re=lp();if(!_t()&&!t.hasPrecedingLineBreak()&&co(96)){const Ke=mt(xc);Qt(58);const Rt=Je(xc);Qt(59);const Nt=Je(xc);return an(f.createConditionalTypeNode(Re,Ke,Rt,Nt),$)}return Re}function sy(){return co(59)?xc():void 0}function sx(){switch(J()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Fi(j0);default:return Xa()}}function s_(){if(sx())return!0;switch(J()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return u_()?!0:Xa()}}function bT(){return J()!==19&&J()!==100&&J()!==86&&J()!==60&&s_()}function Xe(){const $=Gt();$&&oo(!1);const Re=L();let Ke=vu(!0),Rt;for(;Rt=da(28);)Ke=CE(Ke,Rt,vu(!0),Re);return $&&oo(!0),Ke}function l_(){return co(64)?vu(!0):void 0}function vu($){if(K0())return hb();const Re=cy($)||ET($);if(Re)return Re;const Ke=L(),Rt=me(),Nt=hm(0);return Nt.kind===80&&J()===39?ly(Ke,Nt,$,Rt,void 0):tp(Nt)&&Vv(nn())?CE(Nt,yl(),vu($),Ke):_m(Nt,Ke,$)}function K0(){return J()===127?Dt()?!0:Fi(Ys):!1}function lx(){return ke(),!t.hasPrecedingLineBreak()&&Xa()}function hb(){const $=L();return ke(),!t.hasPrecedingLineBreak()&&(J()===42||s_())?an(f.createYieldExpression(da(42),vu(!0)),$):an(f.createYieldExpression(void 0,void 0),$)}function ly($,Re,Ke,Rt,Nt){N.assert(J()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Jt=f.createParameterDeclaration(void 0,void 0,Re,void 0,void 0,void 0);an(Jt,Re.pos);const Gr=Wo([Jt],Jt.pos,Jt.end),zi=Ps(39),Pi=TT(!!Nt,Ke),_i=f.createArrowFunction(Nt,void 0,Gr,void 0,zi,Pi);return Nr(an(_i,$),Rt)}function cy($){const Re=jP();if(Re!==0)return Re===1?X0(!0,!0):vi(()=>c_($))}function jP(){return J()===21||J()===30||J()===134?Fi(ts):J()===39?1:0}function ts(){if(J()===134&&(ke(),t.hasPrecedingLineBreak()||J()!==21&&J()!==30))return 0;const $=J(),Re=ke();if($===21){if(Re===22)switch(ke()){case 39:case 59:case 19:return 1;default:return 0}if(Re===23||Re===19)return 2;if(Re===26)return 1;if(Wv(Re)&&Re!==134&&Fi(ap))return ke()===130?0:1;if(!Xa()&&Re!==110)return 0;switch(ke()){case 59:return 1;case 58:return ke(),J()===59||J()===28||J()===64||J()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return N.assert($===30),!Xa()&&J()!==87?0:be===1?Fi(()=>{co(87);const Rt=ke();if(Rt===96)switch(ke()){case 64:case 32:case 44:return!1;default:return!0}else if(Rt===28||Rt===64)return!0;return!1})?1:0:2}function c_($){const Re=t.getTokenStart();if(Nn!=null&&Nn.has(Re))return;const Ke=X0(!1,$);return Ke||(Nn||(Nn=new Set)).add(Re),Ke}function ET($){if(J()===134&&Fi(ST)===1){const Re=L(),Ke=me(),Rt=yf(),Nt=hm(0);return ly(Re,Nt,$,Ke,Rt)}}function ST(){if(J()===134){if(ke(),t.hasPrecedingLineBreak()||J()===39)return 0;const $=hm(0);if(!t.hasPrecedingLineBreak()&&$.kind===80&&J()===39)return 1}return 0}function X0($,Re){const Ke=L(),Rt=me(),Nt=yf(),Jt=St(Nt,RC)?2:0,Gr=mf();let zi;if(Qt(21)){if($)zi=$n(Jt,$);else{const jm=$n(Jt,$);if(!jm)return;zi=jm}if(!Qt(22)&&!$)return}else{if(!$)return;zi=Np()}const Pi=J()===59,_i=jt(59,!1);if(_i&&!$&&qd(_i))return;let to=_i;for(;(to==null?void 0:to.kind)===196;)to=to.type;const vs=to&&rR(to);if(!$&&J()!==39&&(vs||J()!==19))return;const ws=J(),ls=Ps(39),Uf=ws===39||ws===19?TT(St(Nt,RC),Re):Gs();if(!Re&&Pi&&J()!==59)return;const Q_=f.createArrowFunction(Nt,Gr,zi,_i,ls,Uf);return Nr(an(Q_,Ke),Rt)}function TT($,Re){if(J()===19)return Eb($?2:0);if(J()!==27&&J()!==100&&J()!==86&&OE()&&!bT())return Eb(16|($?2:0));const Ke=yn;yn=!1;const Rt=$?le(()=>vu(Re)):Fe(()=>vu(Re));return yn=Ke,Rt}function _m($,Re,Ke){const Rt=da(58);if(!Rt)return $;let Nt;return an(f.createConditionalExpression($,Rt,_a(r,()=>vu(!1)),Nt=Ps(59),nm(Nt)?vu(Ke):Xs(80,!1,m._0_expected,ma(59))),Re)}function hm($){const Re=L(),Ke=gb();return cx($,Ke,Re)}function rv($){return $===103||$===165}function cx($,Re,Ke){for(;;){nn();const Rt=Ak(J());if(!(J()===43?Rt>=$:Rt>$)||J()===103&&Ye())break;if(J()===130||J()===152){if(t.hasPrecedingLineBreak())break;{const Jt=J();ke(),Re=Jt===152?cD(Re,xc()):eo(Re,xc())}}else Re=CE(Re,yl(),hm(Rt),Ke)}return Re}function u_(){return Ye()&&J()===103?!1:Ak(J())>0}function cD($,Re){return an(f.createSatisfiesExpression($,Re),$.pos)}function CE($,Re,Ke,Rt){return an(f.createBinaryExpression($,Re,Ke),Rt)}function eo($,Re){return an(f.createAsExpression($,Re),$.pos)}function Zr(){const $=L();return an(f.createPrefixUnaryExpression(J(),je(Tl)),$)}function wh(){const $=L();return an(f.createDeleteExpression(je(Tl)),$)}function Kd(){const $=L();return an(f.createTypeOfExpression(je(Tl)),$)}function UP(){const $=L();return an(f.createVoidExpression(je(Tl)),$)}function iv(){return J()===135?gn()?!0:Fi(Ys):!1}function HP(){const $=L();return an(f.createAwaitExpression(je(Tl)),$)}function gb(){if(Hp()){const Ke=L(),Rt=yg();return J()===43?cx(Ak(J()),Rt,Ke):Rt}const $=J(),Re=Tl();if(J()===43){const Ke=Wa(Ne,Re.pos),{end:Rt}=Re;Re.kind===216?q(Ke,Rt,m.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(N.assert(P3($)),q(Ke,Rt,m.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,ma($)))}return Re}function Tl(){switch(J()){case 40:case 41:case 55:case 54:return Zr();case 91:return wh();case 114:return Kd();case 116:return UP();case 30:return be===1?ov(!0,void 0,void 0,!0):zm();case 135:if(iv())return HP();default:return yg()}}function Hp(){switch(J()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(be!==1)return!1;default:return!0}}function yg(){if(J()===46||J()===47){const Re=L();return an(f.createPrefixUnaryExpression(J(),je(gm)),Re)}else if(be===1&&J()===30&&Fi(Yc))return ov(!0);const $=gm();if(N.assert(tp($)),(J()===46||J()===47)&&!t.hasPrecedingLineBreak()){const Re=J();return ke(),an(f.createPostfixUnaryExpression($,Re),$.pos)}return $}function gm(){const $=L();let Re;return J()===102?Fi(gu)?(Le|=4194304,Re=yl()):Fi(tv)?(ke(),ke(),Re=an(f.createMetaProperty(102,Pc()),$),Le|=8388608):Re=vb():Re=J()===108?Fm():vb(),dy($,Re)}function vb(){const $=L(),Re=Y0();return lu($,Re,!0)}function Fm(){const $=L();let Re=yl();if(J()===30){const Ke=L(),Rt=vi(mr);Rt!==void 0&&(q(Ke,L(),m.super_may_not_use_type_arguments),so()||(Re=f.createExpressionWithTypeArguments(Re,Rt)))}return J()===21||J()===25||J()===23?Re:(Ps(25,m.super_must_be_followed_by_an_argument_list_or_member_access),an(ee(Re,zt(!0,!0,!0)),$))}function ov($,Re,Ke,Rt=!1){const Nt=L(),Jt=Eg($);let Gr;if(Jt.kind===286){let zi=bg(Jt),Pi;const _i=zi[zi.length-1];if((_i==null?void 0:_i.kind)===284&&!C0(_i.openingElement.tagName,_i.closingElement.tagName)&&C0(Jt.tagName,_i.closingElement.tagName)){const to=_i.children.end,vs=an(f.createJsxElement(_i.openingElement,_i.children,an(f.createJsxClosingElement(an(M(""),to,to)),to,to)),_i.openingElement.pos,to);zi=Wo([...zi.slice(0,zi.length-1),vs],zi.pos,to),Pi=_i.closingElement}else Pi=ME(Jt,$),C0(Jt.tagName,Pi.tagName)||(Ke&&W_(Ke)&&C0(Pi.tagName,Ke.tagName)?We(Jt.tagName,m.JSX_element_0_has_no_corresponding_closing_tag,MN(Ne,Jt.tagName)):We(Pi.tagName,m.Expected_corresponding_JSX_closing_tag_for_0,MN(Ne,Jt.tagName)));Gr=an(f.createJsxElement(Jt,zi,Pi),Nt)}else Jt.kind===289?Gr=an(f.createJsxFragment(Jt,bg(Jt),xT($)),Nt):(N.assert(Jt.kind===285),Gr=Jt);if(!Rt&&$&&J()===30){const zi=typeof Re>"u"?Gr.pos:Re,Pi=vi(()=>ov(!0,zi));if(Pi){const _i=Xs(28,!1);return mC(_i,Pi.pos,0),q(Wa(Ne,zi),Pi.end,m.JSX_expressions_must_have_one_parent_element),an(f.createBinaryExpression(Gr,_i,Pi),Nt)}}return Gr}function PE(){const $=L(),Re=f.createJsxText(t.getTokenValue(),yt===13);return yt=t.scanJsxToken(),an(Re,$)}function AT($,Re){switch(Re){case 1:if(EI($))We($,m.JSX_fragment_has_no_corresponding_closing_tag);else{const Ke=$.tagName,Rt=Math.min(Wa(Ne,Ke.pos),Ke.end);q(Rt,Ke.end,m.JSX_element_0_has_no_corresponding_closing_tag,MN(Ne,$.tagName))}return;case 31:case 7:return;case 12:case 13:return PE();case 19:return uD(!1);case 30:return ov(!1,void 0,$);default:return N.assertNever(Re)}}function bg($){const Re=[],Ke=L(),Rt=Yt;for(Yt|=1<<14;;){const Nt=AT($,yt=t.reScanJsxToken());if(!Nt||(Re.push(Nt),W_($)&&(Nt==null?void 0:Nt.kind)===284&&!C0(Nt.openingElement.tagName,Nt.closingElement.tagName)&&C0($.tagName,Nt.closingElement.tagName)))break}return Yt=Rt,Wo(Re,Ke)}function ux(){const $=L();return an(f.createJsxAttributes(ra(13,dD)),$)}function Eg($){const Re=L();if(Qt(30),J()===32)return Qn(),an(f.createJsxOpeningFragment(),Re);const Ke=J_(),Rt=(Xn&524288)===0?r1():void 0,Nt=ux();let Jt;return J()===32?(Qn(),Jt=f.createJsxOpeningElement(Ke,Rt,Nt)):(Qt(44),Qt(32,void 0,!1)&&($?ke():Qn()),Jt=f.createJsxSelfClosingElement(Ke,Rt,Nt)),an(Jt,Re)}function J_(){const $=L(),Re=uy();if(n_(Re))return Re;let Ke=Re;for(;co(25);)Ke=an(ee(Ke,zt(!0,!1,!1)),$);return Ke}function uy(){const $=L();li();const Re=J()===110,Ke=pe();return co(59)?(li(),an(f.createJsxNamespacedName(Ke,pe()),$)):Re?an(f.createToken(110),$):Ke}function uD($){const Re=L();if(!Qt(19))return;let Ke,Rt;return J()!==20&&($||(Ke=da(26)),Rt=Xe()),$?Qt(20):Qt(20,void 0,!1)&&Qn(),an(f.createJsxExpression(Ke,Rt),Re)}function dD(){if(J()===19)return tl();const $=L();return an(f.createJsxAttribute(IT(),pD()),$)}function pD(){if(J()===64){if(qr()===11)return Yr();if(J()===19)return uD(!0);if(J()===30)return ov(!0);hn(m.or_JSX_element_expected)}}function IT(){const $=L();li();const Re=pe();return co(59)?(li(),an(f.createJsxNamespacedName(Re,pe()),$)):Re}function tl(){const $=L();Qt(19),Qt(26);const Re=Xe();return Qt(20),an(f.createJsxSpreadAttribute(Re),$)}function ME($,Re){const Ke=L();Qt(31);const Rt=J_();return Qt(32,void 0,!1)&&(Re||!C0($.tagName,Rt)?ke():Qn()),an(f.createJsxClosingElement(Rt),Ke)}function xT($){const Re=L();return Qt(31),Qt(32,m.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&($?ke():Qn()),an(f.createJsxJsxClosingFragment(),Re)}function zm(){N.assert(be!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const $=L();Qt(30);const Re=xc();Qt(32);const Ke=Tl();return an(f.createTypeAssertion(Re,Ke),$)}function yb(){return ke(),ld(J())||J()===23||so()}function fD(){return J()===29&&Fi(yb)}function RT($){if($.flags&64)return!0;if(vI($)){let Re=$.expression;for(;vI(Re)&&!(Re.flags&64);)Re=Re.expression;if(Re.flags&64){for(;vI($);)$.flags|=64,$=$.expression;return!0}}return!1}function qP($,Re,Ke){const Rt=zt(!0,!0,!0),Nt=Ke||RT(Re),Jt=Nt?V(Re,Ke,Rt):ee(Re,Rt);if(Nt&&Qi(Jt.name)&&We(Jt.name,m.An_optional_chain_cannot_contain_private_identifiers),Kv(Re)&&Re.typeArguments){const Gr=Re.typeArguments.pos-1,zi=Wa(Ne,Re.typeArguments.end)+1;q(Gr,zi,m.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return an(Jt,$)}function Sr($,Re,Ke){let Rt;if(J()===24)Rt=Xs(80,!0,m.An_element_access_expression_should_take_an_argument);else{const Jt=Tn(Xe);nf(Jt)&&(Jt.text=su(Jt.text)),Rt=Jt}Qt(24);const Nt=Ke||RT(Re)?G(Re,Ke,Rt):se(Re,Rt);return an(Nt,$)}function lu($,Re,Ke){for(;;){let Rt,Nt=!1;if(Ke&&fD()?(Rt=Ps(29),Nt=ld(J())):Nt=co(25),Nt){Re=qP($,Re,Rt);continue}if((Rt||!Gt())&&co(23)){Re=Sr($,Re,Rt);continue}if(so()){Re=!Rt&&Re.kind===233?hf($,Re.expression,Rt,Re.typeArguments):hf($,Re,Rt,void 0);continue}if(!Rt){if(J()===54&&!t.hasPrecedingLineBreak()){ke(),Re=an(f.createNonNullExpression(Re),$);continue}const Jt=vi(mr);if(Jt){Re=an(f.createExpressionWithTypeArguments(Re,Jt),$);continue}}return Re}}function so(){return J()===15||J()===16}function hf($,Re,Ke,Rt){const Nt=f.createTaggedTemplateExpression(Re,Rt,J()===15?(or(!0),Yr()):F(!0));return(Ke||Re.flags&64)&&(Nt.flags|=64),Nt.questionDotToken=Ke,an(Nt,$)}function dy($,Re){for(;;){Re=lu($,Re,!0);let Ke;const Rt=da(29);if(Rt&&(Ke=vi(mr),so())){Re=hf($,Re,Rt,Ke);continue}if(Ke||J()===21){!Rt&&Re.kind===233&&(Ke=Re.typeArguments,Re=Re.expression);const Nt=K_(),Jt=Rt||RT(Re)?_e(Re,Rt,Ke,Nt):re(Re,Ke,Nt);Re=an(Jt,$);continue}if(Rt){const Nt=Xs(80,!1,m.Identifier_expected);Re=an(V(Re,Rt,Nt),$)}break}return Re}function K_(){Qt(21);const $=Vu(11,LE);return Qt(22),$}function mr(){if((Xn&524288)!==0||pr()!==30)return;ke();const $=Vu(20,xc);if(nn()===32)return ke(),$&&DT()?$:void 0}function DT(){switch(J()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||u_()||!s_()}function Y0(){switch(J()){case 15:t.getTokenFlags()&26656&&or(!1);case 9:case 10:case 11:return Yr();case 110:case 108:case 106:case 112:case 97:return yl();case 21:return Qc();case 23:return kE();case 19:return av();case 134:if(!Fi(kT))break;return NT();case 60:return n1();case 86:return gx();case 100:return NT();case 105:return $0();case 44:case 69:if(En()===14)return Yr();break;case 16:return F(!1);case 81:return Ar()}return Gs(m.Expression_expected)}function Qc(){const $=L(),Re=me();Qt(21);const Ke=Tn(Xe);return Qt(22),Nr(an(Q(Ke),$),Re)}function Oh(){const $=L();Qt(26);const Re=vu(!0);return an(f.createSpreadElement(Re),$)}function Bm(){return J()===26?Oh():J()===28?an(f.createOmittedExpression(),L()):vu(!0)}function LE(){return _a(r,Bm)}function kE(){const $=L(),Re=t.getTokenStart(),Ke=Qt(23),Rt=t.hasPrecedingLineBreak(),Nt=Vu(15,Bm);return oc(23,24,Ke,Re),an(U(Nt,Rt),$)}function bb(){const $=L(),Re=me();if(da(26)){const to=vu(!0);return Nr(an(f.createSpreadAssignment(to),$),Re)}const Ke=Fh(!0);if(Jr(139))return lv($,Re,Ke,177,0);if(Jr(153))return lv($,Re,Ke,178,0);const Rt=da(42),Nt=Xa(),Jt=fn(),Gr=da(58),zi=da(54);if(Rt||J()===21||J()===30)return d_($,Re,Ke,Rt,Jt,Gr,zi);let Pi;if(Nt&&J()!==59){const to=da(64),vs=to?Tn(()=>vu(!0)):void 0;Pi=f.createShorthandPropertyAssignment(Jt,vs),Pi.equalsToken=to}else{Qt(59);const to=Tn(()=>vu(!0));Pi=f.createPropertyAssignment(Jt,to)}return Pi.modifiers=Ke,Pi.questionToken=Gr,Pi.exclamationToken=zi,Nr(an(Pi,$),Re)}function av(){const $=L(),Re=t.getTokenStart(),Ke=Qt(19),Rt=t.hasPrecedingLineBreak(),Nt=Vu(12,bb,!0);return oc(19,20,Ke,Re),an(X(Nt,Rt),$)}function NT(){const $=Gt();oo(!1);const Re=L(),Ke=me(),Rt=Fh(!1);Qt(100);const Nt=da(42),Jt=Nt?1:0,Gr=St(Rt,RC)?2:0,zi=Jt&&Gr?dt(Gm):Jt?pt(Gm):Gr?le(Gm):Gm(),Pi=mf(),_i=bn(Jt|Gr),to=jt(59,!1),vs=Eb(Jt|Gr);oo($);const ws=f.createFunctionExpression(Rt,Nt,zi,Pi,_i,to,vs);return Nr(an(ws,Re),Ke)}function Gm(){return ya()?Dp():void 0}function $0(){const $=L();if(Qt(105),co(25)){const Jt=Pc();return an(f.createMetaProperty(105,Jt),$)}const Re=L();let Ke=lu(Re,Y0(),!1),Rt;Ke.kind===233&&(Rt=Ke.typeArguments,Ke=Ke.expression),J()===29&&hn(m.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,MN(Ne,Ke));const Nt=J()===21?K_():void 0;return an(ye(Ke,Rt,Nt),$)}function Sg($,Re){const Ke=L(),Rt=me(),Nt=t.getTokenStart(),Jt=Qt(19,Re);if(Jt||$){const Gr=t.hasPrecedingLineBreak(),zi=ra(1,up);oc(19,20,Jt,Nt);const Pi=Nr(an(Y(zi,Gr),Ke),Rt);return J()===64&&(hn(m.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),ke()),Pi}else{const Gr=Np();return Nr(an(Y(Gr,void 0),Ke),Rt)}}function Eb($,Re){const Ke=Dt();yi(!!($&1));const Rt=gn();Po(!!($&2));const Nt=yn;yn=!1;const Jt=Gt();Jt&&oo(!1);const Gr=Sg(!!($&16),Re);return Jt&&oo(!0),yn=Nt,yi(Ke),Po(Rt),Gr}function dx(){const $=L(),Re=me();return Qt(27),Nr(an(f.createEmptyStatement(),$),Re)}function Q0(){const $=L(),Re=me();Qt(101);const Ke=t.getTokenStart(),Rt=Qt(21),Nt=Tn(Xe);oc(21,22,Rt,Ke);const Jt=up(),Gr=co(93)?up():void 0;return Nr(an(Ie(Nt,Jt,Gr),$),Re)}function mD(){const $=L(),Re=me();Qt(92);const Ke=up();Qt(117);const Rt=t.getTokenStart(),Nt=Qt(21),Jt=Tn(Xe);return oc(21,22,Nt,Rt),co(27),Nr(an(f.createDoStatement(Ke,Jt),$),Re)}function wE(){const $=L(),Re=me();Qt(117);const Ke=t.getTokenStart(),Rt=Qt(21),Nt=Tn(Xe);oc(21,22,Rt,Ke);const Jt=up();return Nr(an(de(Nt,Jt),$),Re)}function CT(){const $=L(),Re=me();Qt(99);const Ke=da(135);Qt(21);let Rt;J()!==27&&(J()===115||J()===121||J()===87||J()===160&&Fi(sv)||J()===135&&Fi(Mp)?Rt=WE(!0):Rt=On(Xe));let Nt;if(Ke?Qt(165):co(165)){const Jt=Tn(()=>vu(!0));Qt(22),Nt=ge(Ke,Rt,Jt,up())}else if(co(103)){const Jt=Tn(Xe);Qt(22),Nt=f.createForInStatement(Rt,Jt,up())}else{Qt(27);const Jt=J()!==27&&J()!==22?Tn(Xe):void 0;Qt(27);const Gr=J()!==22?Tn(Xe):void 0;Qt(22),Nt=ie(Rt,Jt,Gr,up())}return Nr(an(Nt,$),Re)}function qp($){const Re=L(),Ke=me();Qt($===252?83:88);const Rt=_c()?void 0:Gs();fl();const Nt=$===252?f.createBreakStatement(Rt):f.createContinueStatement(Rt);return Nr(an(Nt,Re),Ke)}function PT(){const $=L(),Re=me();Qt(107);const Ke=_c()?void 0:Tn(Xe);return fl(),Nr(an(f.createReturnStatement(Ke),$),Re)}function Xl(){const $=L(),Re=me();Qt(118);const Ke=t.getTokenStart(),Rt=Qt(21),Nt=Tn(Xe);oc(21,22,Rt,Ke);const Jt=Ba(67108864,up);return Nr(an(f.createWithStatement(Nt,Jt),$),Re)}function Vc(){const $=L(),Re=me();Qt(84);const Ke=Tn(Xe);Qt(59);const Rt=ra(3,up);return Nr(an(f.createCaseClause(Ke,Rt),$),Re)}function MT(){const $=L();Qt(90),Qt(59);const Re=ra(3,up);return an(f.createDefaultClause(Re),$)}function Ru(){return J()===84?Vc():MT()}function cp(){const $=L();Qt(19);const Re=ra(2,Ru);return Qt(20),an(f.createCaseBlock(Re),$)}function Z0(){const $=L(),Re=me();Qt(109),Qt(21);const Ke=Tn(Xe);Qt(22);const Rt=cp();return Nr(an(f.createSwitchStatement(Ke,Rt),$),Re)}function Gf(){const $=L(),Re=me();Qt(111);let Ke=t.hasPrecedingLineBreak()?void 0:Tn(Xe);return Ke===void 0&&(on++,Ke=an(M(""),L())),Ll()||Gl(Ke),Nr(an(f.createThrowStatement(Ke),$),Re)}function Sb(){const $=L(),Re=me();Qt(113);const Ke=Sg(!1),Rt=J()===85?Tb():void 0;let Nt;return(!Rt||J()===98)&&(Qt(98,m.catch_or_finally_expected),Nt=Sg(!1)),Nr(an(f.createTryStatement(Ke,Rt,Nt),$),Re)}function Tb(){const $=L();Qt(85);let Re;co(21)?(Re=Md(),Qt(22)):Re=void 0;const Ke=Sg(!1);return an(f.createCatchClause(Re,Ke),$)}function cu(){const $=L(),Re=me();return Qt(89),fl(),Nr(an(f.createDebuggerStatement(),$),Re)}function px(){const $=L();let Re=me(),Ke;const Rt=J()===21,Nt=Tn(Xe);return Ue(Nt)&&co(59)?Ke=f.createLabeledStatement(Nt,up()):(Ll()||Gl(Nt),Ke=he(Nt),Rt&&(Re=!1)),Nr(an(Ke,$),Re)}function Jp(){return ke(),ld(J())&&!t.hasPrecedingLineBreak()}function LT(){return ke(),J()===86&&!t.hasPrecedingLineBreak()}function kT(){return ke(),J()===100&&!t.hasPrecedingLineBreak()}function Ys(){return ke(),(ld(J())||J()===9||J()===10||J()===11)&&!t.hasPrecedingLineBreak()}function _D(){for(;;)switch(J()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return fx();case 135:return mx();case 120:case 156:return lx();case 144:case 145:return vD();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const $=J();if(ke(),t.hasPrecedingLineBreak())return!1;if($===138&&J()===156)return!0;continue;case 162:return ke(),J()===19||J()===80||J()===95;case 102:return ke(),J()===11||J()===42||J()===19||ld(J());case 95:let Re=ke();if(Re===156&&(Re=Fi(ke)),Re===64||Re===42||Re===19||Re===90||Re===130||Re===60)return!0;continue;case 126:ke();continue;default:return!1}}function e1(){return Fi(_D)}function OE(){switch(J()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return e1()||Fi(j0);case 87:case 95:return e1();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return e1()||!Fi(Jp);default:return s_()}}function JP(){return ke(),ya()||J()===19||J()===23}function vd(){return Fi(JP)}function sv(){return X_(!0)}function X_($){return ke(),$&&J()===165?!1:(ya()||J()===19)&&!t.hasPrecedingLineBreak()}function fx(){return Fi(X_)}function Mp($){return ke()===160?X_($):!1}function mx(){return Fi(Mp)}function up(){switch(J()){case 27:return dx();case 19:return Sg(!1);case 115:return t1(L(),me(),void 0);case 121:if(vd())return t1(L(),me(),void 0);break;case 135:if(mx())return t1(L(),me(),void 0);break;case 160:if(fx())return t1(L(),me(),void 0);break;case 100:return FE(L(),me(),void 0);case 86:return zT(L(),me(),void 0);case 101:return Q0();case 92:return mD();case 117:return wE();case 99:return CT();case 88:return qp(251);case 83:return qp(252);case 107:return PT();case 118:return Xl();case 109:return Z0();case 111:return Gf();case 113:case 85:case 98:return Sb();case 89:return cu();case 60:return py();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(e1())return py();break}return px()}function _x($){return $.kind===138}function py(){const $=L(),Re=me(),Ke=Fh(!0);if(St(Ke,_x)){const Nt=wT($);if(Nt)return Nt;for(const Jt of Ke)Jt.flags|=33554432;return Ba(33554432,()=>hD($,Re,Ke))}else return hD($,Re,Ke)}function wT($){return Ba(33554432,()=>{const Re=Ic(Yt,$);if(Re)return ml(Re)})}function hD($,Re,Ke){switch(J()){case 115:case 121:case 87:case 160:case 135:return t1($,Re,Ke);case 100:return FE($,Re,Ke);case 86:return zT($,Re,Ke);case 120:return ht($,Re,Ke);case 156:return ln($,Re,Ke);case 94:return Li($,Re,Ke);case 162:case 144:case 145:return rd($,Re,Ke);case 102:return Kn($,Re,Ke);case 95:switch(ke(),J()){case 90:case 64:return Gh($,Re,Ke);case 130:return zh($,Re,Ke);default:return KP($,Re,Ke)}default:if(Ke){const Rt=Xs(282,!0,m.Declaration_expected);return fC(Rt,$),Rt.modifiers=Ke,Rt}return}}function gD(){return ke()===11}function OT(){return ke(),J()===161||J()===64}function vD(){return ke(),!t.hasPrecedingLineBreak()&&(Xa()||J()===11)}function Ab($,Re){if(J()!==19){if($&4){er();return}if(_c()){fl();return}}return Eb($,Re)}function Lp(){const $=L();if(J()===28)return an(f.createOmittedExpression(),$);const Re=da(26),Ke=Cr(),Rt=l_();return an(f.createBindingElement(Re,void 0,Ke,Rt),$)}function Wh(){const $=L(),Re=da(26),Ke=ya();let Rt=fn(),Nt;Ke&&J()!==59?(Nt=Rt,Rt=void 0):(Qt(59),Nt=Cr());const Jt=l_();return an(f.createBindingElement(Re,Rt,Nt,Jt),$)}function yD(){const $=L();Qt(19);const Re=Tn(()=>Vu(9,Wh));return Qt(20),an(f.createObjectBindingPattern(Re),$)}function WT(){const $=L();Qt(23);const Re=Tn(()=>Vu(10,Lp));return Qt(24),an(f.createArrayBindingPattern(Re),$)}function ds(){return J()===19||J()===23||J()===81||ya()}function Cr($){return J()===23?WT():J()===19?yD():Dp($)}function gf(){return Md(!0)}function Md($){const Re=L(),Ke=me(),Rt=Cr(m.Private_identifiers_are_not_allowed_in_variable_declarations);let Nt;$&&Rt.kind===80&&J()===54&&!t.hasPrecedingLineBreak()&&(Nt=yl());const Jt=sy(),Gr=rv(J())?void 0:l_(),zi=Ce(Rt,Nt,Jt,Gr);return Nr(an(zi,Re),Ke)}function WE($){const Re=L();let Ke=0;switch(J()){case 115:break;case 121:Ke|=1;break;case 87:Ke|=2;break;case 160:Ke|=4;break;case 135:N.assert(mx()),Ke|=6,ke();break;default:N.fail()}ke();let Rt;if(J()===165&&Fi(bD))Rt=Np();else{const Nt=Ye();si($),Rt=Vu(8,$?Md:gf),si(Nt)}return an(qe(Rt,Ke),Re)}function bD(){return ap()&&ke()===22}function t1($,Re,Ke){const Rt=WE(!1);fl();const Nt=oe(Ke,Rt);return Nr(an(Nt,$),Re)}function FE($,Re,Ke){const Rt=gn(),Nt=M_(Ke);Qt(100);const Jt=da(42),Gr=Nt&2048?Gm():Dp(),zi=Jt?1:0,Pi=Nt&1024?2:0,_i=mf();Nt&32&&Po(!0);const to=bn(zi|Pi),vs=jt(59,!1),ws=Ab(zi|Pi,m.or_expected);Po(Rt);const ls=f.createFunctionDeclaration(Ke,Jt,Gr,_i,to,vs,ws);return Nr(an(ls,$),Re)}function FT(){if(J()===137)return Qt(137);if(J()===11&&Fi(ke)===21)return vi(()=>{const $=Yr();return $.text==="constructor"?$:void 0})}function Tg($,Re,Ke){return vi(()=>{if(FT()){const Rt=mf(),Nt=bn(0),Jt=jt(59,!1),Gr=Ab(0,m.or_expected),zi=f.createConstructorDeclaration(Ke,Nt,Gr);return zi.typeParameters=Rt,zi.type=Jt,Nr(an(zi,$),Re)}})}function d_($,Re,Ke,Rt,Nt,Jt,Gr,zi){const Pi=Rt?1:0,_i=St(Ke,RC)?2:0,to=mf(),vs=bn(Pi|_i),ws=jt(59,!1),ls=Ab(Pi|_i,zi),Uf=f.createMethodDeclaration(Ke,Rt,Nt,Jt,to,vs,ws,ls);return Uf.exclamationToken=Gr,Nr(an(Uf,$),Re)}function vf($,Re,Ke,Rt,Nt){const Jt=!Nt&&!t.hasPrecedingLineBreak()?da(54):void 0,Gr=sy(),zi=_a(90112,l_);ka(Rt,Gr,zi);const Pi=f.createPropertyDeclaration(Ke,Rt,Nt||Jt,Gr,zi);return Nr(an(Pi,$),Re)}function Vm($,Re,Ke){const Rt=da(42),Nt=fn(),Jt=da(58);return Rt||J()===21||J()===30?d_($,Re,Ke,Rt,Nt,Jt,void 0,m.or_expected):vf($,Re,Ke,Nt,Jt)}function lv($,Re,Ke,Rt,Nt){const Jt=fn(),Gr=mf(),zi=bn(0),Pi=jt(59,!1),_i=Ab(Nt),to=Rt===177?f.createGetAccessorDeclaration(Ke,Jt,zi,Pi,_i):f.createSetAccessorDeclaration(Ke,Jt,zi,_i);return to.typeParameters=Gr,Tp(to)&&(to.type=Pi),Nr(an(to,$),Re)}function Ag(){let $;if(J()===60)return!0;for(;Wv(J());){if($=J(),_j($))return!0;ke()}if(J()===42||(Z()&&($=J(),ke()),J()===23))return!0;if($!==void 0){if(!Gd($)||$===153||$===139)return!0;switch(J()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return _c()}}return!1}function Ig($,Re,Ke){Ps(126);const Rt=hx(),Nt=Nr(an(f.createClassStaticBlockDeclaration(Rt),$),Re);return Nt.modifiers=Ke,Nt}function hx(){const $=Dt(),Re=gn();yi(!1),Po(!0);const Ke=Sg(!1);return yi($),Po(Re),Ke}function hc(){if(gn()&&J()===135){const $=L(),Re=Gs(m.Expression_expected);ke();const Ke=lu($,Re,!0);return dy($,Ke)}return gm()}function ED(){const $=L();if(!co(60))return;const Re=Pt(hc);return an(f.createDecorator(Re),$)}function Vf($,Re,Ke){const Rt=L(),Nt=J();if(J()===87&&Re){if(!vi(Di))return}else{if(Ke&&J()===126&&Fi(xb))return;if($&&J()===126)return;if(!Gc())return}return an(W(Nt),Rt)}function Fh($,Re,Ke){const Rt=L();let Nt,Jt,Gr,zi=!1,Pi=!1,_i=!1;if($&&J()===60)for(;Jt=ED();)Nt=Rn(Nt,Jt);for(;Gr=Vf(zi,Re,Ke);)Gr.kind===126&&(zi=!0),Nt=Rn(Nt,Gr),Pi=!0;if(Pi&&$&&J()===60)for(;Jt=ED();)Nt=Rn(Nt,Jt),_i=!0;if(_i)for(;Gr=Vf(zi,Re,Ke);)Gr.kind===126&&(zi=!0),Nt=Rn(Nt,Gr);return Nt&&Wo(Nt,Rt)}function yf(){let $;if(J()===134){const Re=L();ke();const Ke=an(W(134),Re);$=Wo([Ke],Re)}return $}function zE(){const $=L(),Re=me();if(J()===27)return ke(),Nr(an(f.createSemicolonClassElement(),$),Re);const Ke=Fh(!0,!0,!0);if(J()===126&&Fi(xb))return Ig($,Re,Ke);if(Jr(139))return lv($,Re,Ke,177,0);if(Jr(153))return lv($,Re,Ke,178,0);if(J()===137||J()===11){const Rt=Tg($,Re,Ke);if(Rt)return Rt}if(fr())return gr($,Re,Ke);if(ld(J())||J()===11||J()===9||J()===42||J()===23)if(St(Ke,_x)){for(const Nt of Ke)Nt.flags|=33554432;return Ba(33554432,()=>Vm($,Re,Ke))}else return Vm($,Re,Ke);if(Ke){const Rt=Xs(80,!0,m.Declaration_expected);return vf($,Re,Ke,Rt,void 0)}return N.fail("Should not have attempted to parse class member declaration.")}function n1(){const $=L(),Re=me(),Ke=Fh(!0);if(J()===86)return bf($,Re,Ke,231);const Rt=Xs(282,!0,m.Expression_expected);return fC(Rt,$),Rt.modifiers=Ke,Rt}function gx(){return bf(L(),me(),void 0,231)}function zT($,Re,Ke){return bf($,Re,Ke,263)}function bf($,Re,Ke,Rt){const Nt=gn();Qt(86);const Jt=Vs(),Gr=mf();St(Ke,uI)&&Po(!0);const zi=GE();let Pi;Qt(19)?(Pi=ae(),Qt(20)):Pi=Np(),Po(Nt);const _i=Rt===263?f.createClassDeclaration(Ke,Jt,Gr,zi,Pi):f.createClassExpression(Ke,Jt,Gr,zi,Pi);return Nr(an(_i,$),Re)}function Vs(){return ya()&&!BE()?_u(ya()):void 0}function BE(){return J()===119&&Fi(sp)}function GE(){if(D())return ra(22,cv)}function cv(){const $=L(),Re=J();N.assert(Re===96||Re===119),ke();const Ke=Vu(7,Ib);return an(f.createHeritageClause(Re,Ke),$)}function Ib(){const $=L(),Re=gm();if(Re.kind===233)return Re;const Ke=r1();return an(f.createExpressionWithTypeArguments(Re,Ke),$)}function r1(){return J()===30?Hd(20,xc,30,32):void 0}function D(){return J()===96||J()===119}function ae(){return ra(5,zE)}function ht($,Re,Ke){Qt(120);const Rt=Gs(),Nt=mf(),Jt=GE(),Gr=U0(),zi=f.createInterfaceDeclaration(Ke,Rt,Nt,Jt,Gr);return Nr(an(zi,$),Re)}function ln($,Re,Ke){Qt(156),t.hasPrecedingLineBreak()&&hn(m.Line_break_not_permitted_here);const Rt=Gs(),Nt=mf();Qt(64);const Jt=J()===141&&vi(gT)||xc();fl();const Gr=f.createTypeAliasDeclaration(Ke,Rt,Nt,Jt);return Nr(an(Gr,$),Re)}function Or(){const $=L(),Re=me(),Ke=fn(),Rt=Tn(l_);return Nr(an(f.createEnumMember(Ke,Rt),$),Re)}function Li($,Re,Ke){Qt(94);const Rt=Gs();let Nt;Qt(19)?(Nt=j(()=>Vu(6,Or)),Qt(20)):Nt=Np();const Jt=f.createEnumDeclaration(Ke,Rt,Nt);return Nr(an(Jt,$),Re)}function bi(){const $=L();let Re;return Qt(19)?(Re=ra(1,up),Qt(20)):Re=Np(),an(f.createModuleBlock(Re),$)}function lo($,Re,Ke,Rt){const Nt=Rt&32,Jt=Rt&8?Pc():Gs(),Gr=co(25)?lo(L(),!1,void 0,8|Nt):bi(),zi=f.createModuleDeclaration(Ke,Jt,Gr,Rt);return Nr(an(zi,$),Re)}function Ea($,Re,Ke){let Rt=0,Nt;J()===162?(Nt=Gs(),Rt|=2048):(Nt=Yr(),Nt.text=su(Nt.text));let Jt;J()===19?Jt=bi():fl();const Gr=f.createModuleDeclaration(Ke,Nt,Jt,Rt);return Nr(an(Gr,$),Re)}function rd($,Re,Ke){let Rt=0;if(J()===162)return Ea($,Re,Ke);if(co(145))Rt|=32;else if(Qt(144),J()===11)return Ea($,Re,Ke);return lo($,Re,Ke,Rt)}function Ld(){return J()===149&&Fi(jf)}function jf(){return ke()===21}function xb(){return ke()===19}function Ti(){return ke()===44}function zh($,Re,Ke){Qt(130),Qt(145);const Rt=Gs();fl();const Nt=f.createNamespaceExportDeclaration(Rt);return Nt.modifiers=Ke,Nr(an(Nt,$),Re)}function Kn($,Re,Ke){Qt(102);const Rt=t.getTokenFullStart();let Nt;Xa()&&(Nt=Gs());let Jt=!1;if((Nt==null?void 0:Nt.escapedText)==="type"&&(J()!==161||Xa()&&Fi(OT))&&(Xa()||Db())&&(Jt=!0,Nt=Xa()?Gs():void 0),Nt&&!BT())return VE($,Re,Ke,Nt,Jt);let Gr;(Nt||J()===42||J()===19)&&(Gr=Y_(Nt,Rt,Jt),Qt(161));const zi=GT(),Pi=J();let _i;(Pi===118||Pi===132)&&!t.hasPrecedingLineBreak()&&(_i=Rb(Pi)),fl();const to=f.createImportDeclaration(Ke,Gr,zi,_i);return Nr(an(to,$),Re)}function vx(){const $=L(),Re=ld(J())?Pc():Vl(11);Qt(59);const Ke=vu(!0);return an(f.createImportAttribute(Re,Ke),$)}function Rb($,Re){const Ke=L();Re||Qt($);const Rt=t.getTokenStart();if(Qt(19)){const Nt=t.hasPrecedingLineBreak(),Jt=Vu(24,vx,!0);if(!Qt(20)){const Gr=il(He);Gr&&Gr.code===m._0_expected.code&&Fa(Gr,G2(Se,Ne,Rt,1,m.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return an(f.createImportAttributes(Jt,Nt,$),Ke)}else{const Nt=Wo([],L(),void 0,!1);return an(f.createImportAttributes(Nt,!1,$),Ke)}}function Db(){return J()===42||J()===19}function BT(){return J()===28||J()===161}function VE($,Re,Ke,Rt,Nt){Qt(64);const Jt=Bh();fl();const Gr=f.createImportEqualsDeclaration(Ke,Nt,Rt,Jt);return Nr(an(Gr,$),Re)}function Y_($,Re,Ke){let Rt;return(!$||co(28))&&(Rt=J()===42?Tz():Nb(275)),an(f.createImportClause(Ke,$,Rt),Re)}function Bh(){return Ld()?SD():te(!1)}function SD(){const $=L();Qt(149),Qt(21);const Re=GT();return Qt(22),an(f.createExternalModuleReference(Re),$)}function GT(){if(J()===11){const $=Yr();return $.text=su($.text),$}else return Xe()}function Tz(){const $=L();Qt(42),Qt(130);const Re=Gs();return an(f.createNamespaceImport(Re),$)}function Nb($){const Re=L(),Ke=$===275?f.createNamedImports(Hd(23,F4,19,20)):f.createNamedExports(Hd(23,W4,19,20));return an(Ke,Re)}function W4(){const $=me();return Nr(i1(281),$)}function F4(){return i1(276)}function i1($){const Re=L();let Ke=Gd(J())&&!Xa(),Rt=t.getTokenStart(),Nt=t.getTokenEnd(),Jt=!1,Gr,zi=!0,Pi=Pc();if(Pi.escapedText==="type")if(J()===130){const vs=Pc();if(J()===130){const ws=Pc();ld(J())?(Jt=!0,Gr=vs,Pi=to(),zi=!1):(Gr=Pi,Pi=ws,zi=!1)}else ld(J())?(Gr=Pi,zi=!1,Pi=to()):(Jt=!0,Pi=vs)}else ld(J())&&(Jt=!0,Pi=to());zi&&J()===130&&(Gr=Pi,Qt(130),Pi=to()),$===276&&Ke&&q(Rt,Nt,m.Identifier_expected);const _i=$===276?f.createImportSpecifier(Jt,Gr,Pi):f.createExportSpecifier(Jt,Gr,Pi);return an(_i,Re);function to(){return Ke=Gd(J())&&!Xa(),Rt=t.getTokenStart(),Nt=t.getTokenEnd(),Pc()}}function p_($){return an(f.createNamespaceExport(Pc()),$)}function KP($,Re,Ke){const Rt=gn();Po(!0);let Nt,Jt,Gr;const zi=co(156),Pi=L();co(42)?(co(130)&&(Nt=p_(Pi)),Qt(161),Jt=GT()):(Nt=Nb(279),(J()===161||J()===11&&!t.hasPrecedingLineBreak())&&(Qt(161),Jt=GT()));const _i=J();Jt&&(_i===118||_i===132)&&!t.hasPrecedingLineBreak()&&(Gr=Rb(_i)),fl(),Po(Rt);const to=f.createExportDeclaration(Ke,zi,Nt,Jt,Gr);return Nr(an(to,$),Re)}function Gh($,Re,Ke){const Rt=gn();Po(!0);let Nt;co(64)?Nt=!0:Qt(90);const Jt=vu(!0);fl(),Po(Rt);const Gr=f.createExportAssignment(Ke,Nt,Jt);return Nr(an(Gr,$),Re)}let yx;($=>{$[$.SourceElements=0]="SourceElements",$[$.BlockStatements=1]="BlockStatements",$[$.SwitchClauses=2]="SwitchClauses",$[$.SwitchClauseStatements=3]="SwitchClauseStatements",$[$.TypeMembers=4]="TypeMembers",$[$.ClassMembers=5]="ClassMembers",$[$.EnumMembers=6]="EnumMembers",$[$.HeritageClauseElement=7]="HeritageClauseElement",$[$.VariableDeclarations=8]="VariableDeclarations",$[$.ObjectBindingElements=9]="ObjectBindingElements",$[$.ArrayBindingElements=10]="ArrayBindingElements",$[$.ArgumentExpressions=11]="ArgumentExpressions",$[$.ObjectLiteralMembers=12]="ObjectLiteralMembers",$[$.JsxAttributes=13]="JsxAttributes",$[$.JsxChildren=14]="JsxChildren",$[$.ArrayLiteralMembers=15]="ArrayLiteralMembers",$[$.Parameters=16]="Parameters",$[$.JSDocParameters=17]="JSDocParameters",$[$.RestProperties=18]="RestProperties",$[$.TypeParameters=19]="TypeParameters",$[$.TypeArguments=20]="TypeArguments",$[$.TupleElementTypes=21]="TupleElementTypes",$[$.HeritageClauses=22]="HeritageClauses",$[$.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",$[$.ImportAttributes=24]="ImportAttributes",$[$.JSDocComment=25]="JSDocComment",$[$.Count=26]="Count"})(yx||(yx={}));let z4;($=>{$[$.False=0]="False",$[$.True=1]="True",$[$.Unknown=2]="Unknown"})(z4||(z4={}));let $_;($=>{function Re(_i,to,vs){Ui("file.js",_i,99,void 0,1,0),t.setText(_i,to,vs),yt=t.scan();const ws=Ke(),ls=Bt("file.js",99,1,!1,[],W(1),0,is),Uf=QA(He,ls);return it&&(ls.jsDocDiagnostics=QA(it,ls)),Co(),ws?{jsDocTypeExpression:ws,diagnostics:Uf}:void 0}$.parseJSDocTypeExpressionForTests=Re;function Ke(_i){const to=L(),vs=(_i?co:Qt)(19),ws=Ba(16777216,zf);(!_i||vs)&&Ts(20);const ls=f.createJSDocTypeExpression(ws);return nt(ls),an(ls,to)}$.parseJSDocTypeExpression=Ke;function Rt(){const _i=L(),to=co(19),vs=L();let ws=te(!1);for(;J()===81;)ai(),Tt(),ws=an(f.createJSDocMemberName(ws,Gs()),vs);to&&Ts(20);const ls=f.createJSDocNameReference(ws);return nt(ls),an(ls,_i)}$.parseJSDocNameReference=Rt;function Nt(_i,to,vs){Ui("",_i,99,void 0,1,0);const ws=Ba(16777216,()=>Pi(to,vs)),Uf=QA(He,{languageVariant:0,text:_i});return Co(),ws?{jsDoc:ws,diagnostics:Uf}:void 0}$.parseIsolatedJSDocComment=Nt;function Jt(_i,to,vs){const ws=yt,ls=He.length,Uf=tn,Q_=Ba(16777216,()=>Pi(to,vs));return Qa(Q_,_i),Xn&524288&&(it||(it=[]),Hr(it,He,ls)),yt=ws,He.length=ls,tn=Uf,Q_}$.parseJSDocComment=Jt;let Gr;(_i=>{_i[_i.BeginningOfLine=0]="BeginningOfLine",_i[_i.SawAsterisk=1]="SawAsterisk",_i[_i.SavingComments=2]="SavingComments",_i[_i.SavingBackticks=3]="SavingBackticks"})(Gr||(Gr={}));let zi;(_i=>{_i[_i.Property=1]="Property",_i[_i.Parameter=2]="Parameter",_i[_i.CallbackParameter=4]="CallbackParameter"})(zi||(zi={}));function Pi(_i=0,to){const vs=Ne,ws=to===void 0?vs.length:_i+to;if(to=ws-_i,N.assert(_i>=0),N.assert(_i<=ws),N.assert(ws<=vs.length),!fq(vs,_i))return;let ls,Uf,Q_,jm,uv,dv=[];const Cb=[],dp=Yt;Yt|=1<<25;const VT=t.scanRange(_i+3,to-5,TD);return Yt=dp,VT;function TD(){let Cn=1,Vr,Wr=_i-(vs.lastIndexOf(`
`,_i)+1)+4;function Bi(Ms){Vr||(Vr=Wr),dv.push(Ms),Wr+=Ms.length}for(Tt();fy(5););fy(4)&&(Cn=0,Wr=0);e:for(;;){switch(J()){case 60:YP(dv),uv||(uv=L()),QP(AD(Wr)),Cn=0,Vr=void 0;break;case 4:dv.push(t.getTokenText()),Cn=0,Wr=0;break;case 42:const Ms=t.getTokenText();Cn===1?(Cn=2,Bi(Ms)):(N.assert(Cn===0),Cn=1,Wr+=Ms.length);break;case 5:N.assert(Cn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const id=t.getTokenText();Vr!==void 0&&Wr+id.length>Vr&&dv.push(id.slice(Vr-Wr)),Wr+=id.length;break;case 1:break e;case 82:Cn=2,Bi(t.getTokenValue());break;case 19:Cn=2;const Vh=t.getTokenFullStart(),Hf=t.getTokenEnd()-1,Z_=gc(Hf);if(Z_){jm||XP(dv),Cb.push(an(f.createJSDocText(dv.join("")),jm!=null?jm:_i,Vh)),Cb.push(Z_),dv=[],jm=t.getTokenEnd();break}default:Cn=2,Bi(t.getTokenText());break}Cn===2?kt(!1):Tt()}const ki=dv.join("").trimEnd();Cb.length&&ki.length&&Cb.push(an(f.createJSDocText(ki),jm!=null?jm:_i,uv)),Cb.length&&ls&&N.assertIsDefined(uv,"having parsed tags implies that the end of the comment span should be set");const Ua=ls&&Wo(ls,Uf,Q_);return an(f.createJSDocComment(Cb.length?Wo(Cb,_i,uv):ki.length?ki:void 0,Ua),_i,ws)}function XP(Cn){for(;Cn.length&&(Cn[0]===`
`||Cn[0]==="\r");)Cn.shift()}function YP(Cn){for(;Cn.length;){const Vr=Cn[Cn.length-1].trimEnd();if(Vr==="")Cn.pop();else if(Vr.length<Cn[Cn.length-1].length){Cn[Cn.length-1]=Vr;break}else break}}function o1(){for(;;){if(Tt(),J()===1)return!0;if(!(J()===5||J()===4))return!1}}function pv(){if(!((J()===5||J()===4)&&Fi(o1)))for(;J()===5||J()===4;)Tt()}function Pb(){if((J()===5||J()===4)&&Fi(o1))return"";let Cn=t.hasPrecedingLineBreak(),Vr=!1,Wr="";for(;Cn&&J()===42||J()===5||J()===4;)Wr+=t.getTokenText(),J()===4?(Cn=!0,Vr=!0,Wr=""):J()===42&&(Cn=!1),Tt();return Vr?Wr:""}function AD(Cn){N.assert(J()===60);const Vr=t.getTokenStart();Tt();const Wr=c1(void 0),Bi=Pb();let ki;switch(Wr.escapedText){case"author":ki=Os(Vr,Wr,Cn,Bi);break;case"implements":ki=Lb(Vr,Wr,Cn,Bi);break;case"augments":case"extends":ki=Um(Vr,Wr,Cn,Bi);break;case"class":case"constructor":ki=l1(Vr,f.createJSDocClassTag,Wr,Cn,Bi);break;case"public":ki=l1(Vr,f.createJSDocPublicTag,Wr,Cn,Bi);break;case"private":ki=l1(Vr,f.createJSDocPrivateTag,Wr,Cn,Bi);break;case"protected":ki=l1(Vr,f.createJSDocProtectedTag,Wr,Cn,Bi);break;case"readonly":ki=l1(Vr,f.createJSDocReadonlyTag,Wr,Cn,Bi);break;case"override":ki=l1(Vr,f.createJSDocOverrideTag,Wr,Cn,Bi);break;case"deprecated":Ci=!0,ki=l1(Vr,f.createJSDocDeprecatedTag,Wr,Cn,Bi);break;case"this":ki=Az(Vr,Wr,Cn,Bi);break;case"enum":ki=XZ(Vr,Wr,Cn,Bi);break;case"arg":case"argument":case"param":return B(Vr,Wr,2,Cn);case"return":case"returns":ki=$e(Vr,Wr,Cn,Bi);break;case"template":ki=wb(Vr,Wr,Cn,Bi);break;case"type":ki=Xt(Vr,Wr,Cn,Bi);break;case"typedef":ki=ZP(Vr,Wr,Cn,Bi);break;case"callback":ki=Cge(Vr,Wr,Cn,Bi);break;case"overload":ki=Pge(Vr,Wr,Cn,Bi);break;case"satisfies":ki=s1(Vr,Wr,Cn,Bi);break;case"see":ki=Ir(Vr,Wr,Cn,Bi);break;case"exception":case"throws":ki=no(Vr,Wr,Cn,Bi);break;default:ki=Mb(Vr,Wr,Cn,Bi);break}return ki}function Kp(Cn,Vr,Wr,Bi){return Bi||(Wr+=Vr-Cn),Ya(Wr,Bi.slice(Wr))}function Ya(Cn,Vr){const Wr=L();let Bi=[];const ki=[];let Ua,Ms=0,id;function Vh(eh){id||(id=Cn),Bi.push(eh),Cn+=eh.length}Vr!==void 0&&(Vr!==""&&Vh(Vr),Ms=1);let Hf=J();e:for(;;){switch(Hf){case 4:Ms=0,Bi.push(t.getTokenText()),Cn=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:N.assert(Ms!==2&&Ms!==3,"whitespace shouldn't come from the scanner while saving comment text");const eh=t.getTokenText();id!==void 0&&Cn+eh.length>id&&(Bi.push(eh.slice(id-Cn)),Ms=2),Cn+=eh.length;break;case 19:Ms=2;const pp=t.getTokenFullStart(),B4=t.getTokenEnd()-1,Ex=gc(B4);Ex?(ki.push(an(f.createJSDocText(Bi.join("")),Ua!=null?Ua:Wr,pp)),ki.push(Ex),Bi=[],Ua=t.getTokenEnd()):Vh(t.getTokenText());break;case 62:Ms===3?Ms=2:Ms=3,Vh(t.getTokenText());break;case 82:Ms!==3&&(Ms=2),Vh(t.getTokenValue());break;case 42:if(Ms===0){Ms=1,Cn+=1;break}default:Ms!==3&&(Ms=2),Vh(t.getTokenText());break}Ms===2||Ms===3?Hf=kt(Ms===3):Hf=Tt()}XP(Bi);const Z_=Bi.join("").trimEnd();if(ki.length)return Z_.length&&ki.push(an(f.createJSDocText(Z_),Ua!=null?Ua:Wr)),Wo(ki,Wr,t.getTokenEnd());if(Z_.length)return Z_}function gc(Cn){const Vr=vi(bx);if(!Vr)return;Tt(),pv();const Wr=a1(),Bi=[];for(;J()!==20&&J()!==4&&J()!==1;)Bi.push(t.getTokenText()),Tt();const ki=Vr==="link"?f.createJSDocLink:Vr==="linkcode"?f.createJSDocLinkCode:f.createJSDocLinkPlain;return an(ki(Wr,Bi.join("")),Cn,t.getTokenEnd())}function a1(){if(ld(J())){const Cn=L();let Vr=Pc();for(;co(25);)Vr=an(f.createQualifiedName(Vr,J()===81?Xs(80,!1):Gs()),Cn);for(;J()===81;)ai(),Tt(),Vr=an(f.createJSDocMemberName(Vr,Gs()),Cn);return Vr}}function bx(){if(Pb(),J()===19&&Tt()===60&&ld(Tt())){const Cn=t.getTokenValue();if($P(Cn))return Cn}}function $P(Cn){return Cn==="link"||Cn==="linkcode"||Cn==="linkplain"}function Mb(Cn,Vr,Wr,Bi){return an(f.createJSDocUnknownTag(Vr,Kp(Cn,L(),Wr,Bi)),Cn)}function QP(Cn){!Cn||(ls?ls.push(Cn):(ls=[Cn],Uf=Cn.pos),Q_=Cn.end)}function cr(){return Pb(),J()===19?Ke():void 0}function E(){const Cn=fy(23);Cn&&pv();const Vr=fy(62),Wr=xD();return Vr&&wa(62),Cn&&(pv(),da(64)&&Xe(),Qt(24)),{name:Wr,isBracketed:Cn}}function P(Cn){switch(Cn.kind){case 151:return!0;case 188:return P(Cn.elementType);default:return Cf(Cn)&&Ue(Cn.typeName)&&Cn.typeName.escapedText==="Object"&&!Cn.typeArguments}}function B(Cn,Vr,Wr,Bi){let ki=cr(),Ua=!ki;Pb();const{name:Ms,isBracketed:id}=E(),Vh=Pb();Ua&&!Fi(bx)&&(ki=cr());const Hf=Kp(Cn,L(),Bi,Vh),Z_=ce(ki,Ms,Wr,Bi);Z_&&(ki=Z_,Ua=!0);const eh=Wr===1?f.createJSDocPropertyTag(Vr,Ms,id,ki,Ua,Hf):f.createJSDocParameterTag(Vr,Ms,id,ki,Ua,Hf);return an(eh,Cn)}function ce(Cn,Vr,Wr,Bi){if(Cn&&P(Cn.type)){const ki=L();let Ua,Ms;for(;Ua=vi(()=>xz(Wr,Bi,Vr));)Ua.kind===348||Ua.kind===355?Ms=Rn(Ms,Ua):Ua.kind===352&&We(Ua.tagName,m.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Ms){const id=an(f.createJSDocTypeLiteral(Ms,Cn.type.kind===188),ki);return an(f.createJSDocTypeExpression(id),ki)}}}function $e(Cn,Vr,Wr,Bi){St(ls,T5)&&q(Vr.pos,t.getTokenStart(),m._0_tag_already_specified,Ki(Vr.escapedText));const ki=cr();return an(f.createJSDocReturnTag(Vr,ki,Kp(Cn,L(),Wr,Bi)),Cn)}function Xt(Cn,Vr,Wr,Bi){St(ls,FC)&&q(Vr.pos,t.getTokenStart(),m._0_tag_already_specified,Ki(Vr.escapedText));const ki=Ke(!0),Ua=Wr!==void 0&&Bi!==void 0?Kp(Cn,L(),Wr,Bi):void 0;return an(f.createJSDocTypeTag(Vr,ki,Ua),Cn)}function Ir(Cn,Vr,Wr,Bi){const Ua=J()===23||Fi(()=>Tt()===60&&ld(Tt())&&$P(t.getTokenValue()))?void 0:Rt(),Ms=Wr!==void 0&&Bi!==void 0?Kp(Cn,L(),Wr,Bi):void 0;return an(f.createJSDocSeeTag(Vr,Ua,Ms),Cn)}function no(Cn,Vr,Wr,Bi){const ki=cr(),Ua=Kp(Cn,L(),Wr,Bi);return an(f.createJSDocThrowsTag(Vr,ki,Ua),Cn)}function Os(Cn,Vr,Wr,Bi){const ki=L(),Ua=f_();let Ms=t.getTokenFullStart();const id=Kp(Cn,Ms,Wr,Bi);id||(Ms=t.getTokenFullStart());const Vh=typeof id!="string"?Wo(Ro([an(Ua,ki,Ms)],id),ki):Ua.text+id;return an(f.createJSDocAuthorTag(Vr,Vh),Cn)}function f_(){const Cn=[];let Vr=!1,Wr=t.getToken();for(;Wr!==1&&Wr!==4;){if(Wr===30)Vr=!0;else{if(Wr===60&&!Vr)break;if(Wr===32&&Vr){Cn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Cn.push(t.getTokenText()),Wr=Tt()}return f.createJSDocText(Cn.join(""))}function Lb(Cn,Vr,Wr,Bi){const ki=KZ();return an(f.createJSDocImplementsTag(Vr,ki,Kp(Cn,L(),Wr,Bi)),Cn)}function Um(Cn,Vr,Wr,Bi){const ki=KZ();return an(f.createJSDocAugmentsTag(Vr,ki,Kp(Cn,L(),Wr,Bi)),Cn)}function s1(Cn,Vr,Wr,Bi){const ki=Ke(!1),Ua=Wr!==void 0&&Bi!==void 0?Kp(Cn,L(),Wr,Bi):void 0;return an(f.createJSDocSatisfiesTag(Vr,ki,Ua),Cn)}function KZ(){const Cn=co(19),Vr=L(),Wr=Nge();t.setInJSDocType(!0);const Bi=r1();t.setInJSDocType(!1);const ki=f.createExpressionWithTypeArguments(Wr,Bi),Ua=an(ki,Vr);return Cn&&Qt(20),Ua}function Nge(){const Cn=L();let Vr=c1();for(;co(25);){const Wr=c1();Vr=an(ee(Vr,Wr),Cn)}return Vr}function l1(Cn,Vr,Wr,Bi,ki){return an(Vr(Wr,Kp(Cn,L(),Bi,ki)),Cn)}function Az(Cn,Vr,Wr,Bi){const ki=Ke(!0);return pv(),an(f.createJSDocThisTag(Vr,ki,Kp(Cn,L(),Wr,Bi)),Cn)}function XZ(Cn,Vr,Wr,Bi){const ki=Ke(!0);return pv(),an(f.createJSDocEnumTag(Vr,ki,Kp(Cn,L(),Wr,Bi)),Cn)}function ZP(Cn,Vr,Wr,Bi){var Hf;let ki=cr();Pb();const Ua=Iz();pv();let Ms=Ya(Wr),id;if(!ki||P(ki.type)){let Z_,eh,pp,B4=!1;for(;(Z_=vi(()=>QZ(Wr)))&&Z_.kind!==352;)if(B4=!0,Z_.kind===351)if(eh){const Ex=hn(m.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Ex&&Fa(Ex,G2(Se,Ne,0,0,m.The_tag_was_first_specified_here));break}else eh=Z_;else pp=Rn(pp,Z_);if(B4){const Ex=ki&&ki.type.kind===188,Mge=f.createJSDocTypeLiteral(pp,Ex);ki=eh&&eh.typeExpression&&!P(eh.typeExpression.type)?eh.typeExpression:an(Mge,Cn),id=ki.end}}id=id||Ms!==void 0?L():((Hf=Ua!=null?Ua:ki)!=null?Hf:Vr).end,Ms||(Ms=Kp(Cn,id,Wr,Bi));const Vh=f.createJSDocTypedefTag(Vr,ki,Ua,Ms);return an(Vh,Cn,id)}function Iz(Cn){const Vr=t.getTokenStart();if(!ld(J()))return;const Wr=c1();if(co(25)){const Bi=Iz(!0),ki=f.createModuleDeclaration(void 0,Wr,Bi,Cn?8:void 0);return an(ki,Vr)}return Cn&&(Wr.flags|=4096),Wr}function YZ(Cn){const Vr=L();let Wr,Bi;for(;Wr=vi(()=>xz(4,Cn));){if(Wr.kind===352){We(Wr.tagName,m.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Bi=Rn(Bi,Wr)}return Wo(Bi||[],Vr)}function $Z(Cn,Vr){const Wr=YZ(Vr),Bi=vi(()=>{if(fy(60)){const ki=AD(Vr);if(ki&&ki.kind===349)return ki}});return an(f.createJSDocSignature(void 0,Wr,Bi),Cn)}function Cge(Cn,Vr,Wr,Bi){const ki=Iz();pv();let Ua=Ya(Wr);const Ms=$Z(Cn,Wr);Ua||(Ua=Kp(Cn,L(),Wr,Bi));const id=Ua!==void 0?L():Ms.end;return an(f.createJSDocCallbackTag(Vr,Ms,ki,Ua),Cn,id)}function Pge(Cn,Vr,Wr,Bi){pv();let ki=Ya(Wr);const Ua=$Z(Cn,Wr);ki||(ki=Kp(Cn,L(),Wr,Bi));const Ms=ki!==void 0?L():Ua.end;return an(f.createJSDocOverloadTag(Vr,Ua,ki),Cn,Ms)}function ID(Cn,Vr){for(;!Ue(Cn)||!Ue(Vr);)if(!Ue(Cn)&&!Ue(Vr)&&Cn.right.escapedText===Vr.right.escapedText)Cn=Cn.left,Vr=Vr.left;else return!1;return Cn.escapedText===Vr.escapedText}function QZ(Cn){return xz(1,Cn)}function xz(Cn,Vr,Wr){let Bi=!0,ki=!1;for(;;)switch(Tt()){case 60:if(Bi){const Ua=jE(Cn,Vr);return Ua&&(Ua.kind===348||Ua.kind===355)&&Wr&&(Ue(Ua.name)||!ID(Wr,Ua.name.left))?!1:Ua}ki=!1;break;case 4:Bi=!0,ki=!1;break;case 42:ki&&(Bi=!1),ki=!0;break;case 80:Bi=!1;break;case 1:return!1}}function jE(Cn,Vr){N.assert(J()===60);const Wr=t.getTokenFullStart();Tt();const Bi=c1(),ki=Pb();let Ua;switch(Bi.escapedText){case"type":return Cn===1&&Xt(Wr,Bi);case"prop":case"property":Ua=1;break;case"arg":case"argument":case"param":Ua=6;break;case"template":return wb(Wr,Bi,Vr,ki);case"this":return Az(Wr,Bi,Vr,ki);default:return!1}return Cn&Ua?B(Wr,Bi,Cn,Vr):!1}function _r(){const Cn=L(),Vr=fy(23);Vr&&pv();const Wr=Fh(!1,!0),Bi=c1(m.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let ki;if(Vr&&(pv(),Qt(64),ki=Ba(16777216,zf),Qt(24)),!Hl(Bi))return an(f.createTypeParameterDeclaration(Wr,Bi,void 0,ki),Cn)}function kb(){const Cn=L(),Vr=[];do{pv();const Wr=_r();Wr!==void 0&&Vr.push(Wr),Pb()}while(fy(28));return Wo(Vr,Cn)}function wb(Cn,Vr,Wr,Bi){const ki=J()===19?Ke():void 0,Ua=kb();return an(f.createJSDocTemplateTag(Vr,ki,Ua,Kp(Cn,L(),Wr,Bi)),Cn)}function fy(Cn){return J()===Cn?(Tt(),!0):!1}function xD(){let Cn=c1();for(co(23)&&Qt(24);co(25);){const Vr=c1();co(23)&&Qt(24),Cn=lt(Cn,Vr)}return Cn}function c1(Cn){if(!ld(J()))return Xs(80,!Cn,Cn||m.Identifier_expected);on++;const Vr=t.getTokenStart(),Wr=t.getTokenEnd(),Bi=J(),ki=su(t.getTokenValue()),Ua=an(M(ki,Bi),Vr,Wr);return Tt(),Ua}}})($_=e.JSDocParser||(e.JSDocParser={}))})(P0||(P0={})),(e=>{function t(I,R,M,C){if(C=C||N.shouldAssert(2),f(I,R,M,C),Mre(M))return I;if(I.statements.length===0)return P0.parseSourceFile(I.fileName,R,I.languageVersion,void 0,!0,I.scriptKind,I.setExternalModuleIndicator,I.jsDocParsingMode);const W=I;N.assert(!W.hasBeenIncrementallyParsed),W.hasBeenIncrementallyParsed=!0,P0.fixupParentReferences(W);const U=I.text,X=b(I),ee=p(I,M);f(I,R,ee,C),N.assert(ee.span.start<=M.span.start),N.assert(tc(ee.span)===tc(M.span)),N.assert(tc(bN(ee))===tc(bN(M)));const V=bN(ee).length-ee.span.length;u(W,ee.span.start,tc(ee.span),tc(bN(ee)),V,U,R,C);const se=P0.parseSourceFile(I.fileName,R,I.languageVersion,X,!0,I.scriptKind,I.setExternalModuleIndicator,I.jsDocParsingMode);return se.commentDirectives=r(I.commentDirectives,se.commentDirectives,ee.span.start,tc(ee.span),V,U,R,C),se.impliedNodeFormat=I.impliedNodeFormat,se}e.updateSourceFile=t;function r(I,R,M,C,W,U,X,ee){if(!I)return R;let V,se=!1;for(const re of I){const{range:_e,type:ye}=re;if(_e.end<M)V=Rn(V,re);else if(_e.pos>C){G();const Q={range:{pos:_e.pos+W,end:_e.end+W},type:ye};V=Rn(V,Q),ee&&N.assert(U.substring(_e.pos,_e.end)===X.substring(Q.range.pos,Q.range.end))}}return G(),V;function G(){se||(se=!0,V?R&&V.push(...R):V=R)}}function i(I,R,M,C,W,U){R?ee(I):X(I);return;function X(V){let se="";if(U&&o(V)&&(se=C.substring(V.pos,V.end)),V._children&&(V._children=void 0),Eh(V,V.pos+M,V.end+M),U&&o(V)&&N.assert(se===W.substring(V.pos,V.end)),Uo(V,X,ee),zp(V))for(const G of V.jsDoc)X(G);l(V,U)}function ee(V){V._children=void 0,Eh(V,V.pos+M,V.end+M);for(const se of V)X(se)}}function o(I){switch(I.kind){case 11:case 9:case 80:return!0}return!1}function s(I,R,M,C,W){N.assert(I.end>=R,"Adjusting an element that was entirely before the change range"),N.assert(I.pos<=M,"Adjusting an element that was entirely after the change range"),N.assert(I.pos<=I.end);const U=Math.min(I.pos,C),X=I.end>=M?I.end+W:Math.min(I.end,C);N.assert(U<=X),I.parent&&(N.assertGreaterThanOrEqual(U,I.parent.pos),N.assertLessThanOrEqual(X,I.parent.end)),Eh(I,U,X)}function l(I,R){if(R){let M=I.pos;const C=W=>{N.assert(W.pos>=M),M=W.end};if(zp(I))for(const W of I.jsDoc)C(W);Uo(I,C),N.assert(M<=I.end)}}function u(I,R,M,C,W,U,X,ee){V(I);return;function V(G){if(N.assert(G.pos<=G.end),G.pos>M){i(G,!1,W,U,X,ee);return}const re=G.end;if(re>=R){if(G.intersectsChange=!0,G._children=void 0,s(G,R,M,C,W),Uo(G,V,se),zp(G))for(const _e of G.jsDoc)V(_e);l(G,ee);return}N.assert(re<R)}function se(G){if(N.assert(G.pos<=G.end),G.pos>M){i(G,!0,W,U,X,ee);return}const re=G.end;if(re>=R){G.intersectsChange=!0,G._children=void 0,s(G,R,M,C,W);for(const _e of G)V(_e);return}N.assert(re<R)}}function p(I,R){let C=R.span.start;for(let X=0;C>0&&X<=1;X++){const ee=v(I,C);N.assert(ee.pos<=C);const V=ee.pos;C=Math.max(0,V-1)}const W=yc(C,tc(R.span)),U=R.newLength+(R.span.start-C);return TL(W,U)}function v(I,R){let M=I,C;if(Uo(I,U),C){const X=W(C);X.pos>M.pos&&(M=X)}return M;function W(X){for(;;){const ee=zU(X);if(ee)X=ee;else return X}}function U(X){if(!Hl(X))if(X.pos<=R){if(X.pos>=M.pos&&(M=X),R<X.end)return Uo(X,U),!0;N.assert(X.end<=R),C=X}else return N.assert(X.pos>R),!0}}function f(I,R,M,C){const W=I.text;if(M&&(N.assert(W.length-M.span.length+M.newLength===R.length),C||N.shouldAssert(3))){const U=W.substr(0,M.span.start),X=R.substr(0,M.span.start);N.assert(U===X);const ee=W.substring(tc(M.span),W.length),V=R.substring(tc(bN(M)),R.length);N.assert(ee===V)}}function b(I){let R=I.statements,M=0;N.assert(M<R.length);let C=R[M],W=-1;return{currentNode(X){return X!==W&&(C&&C.end===X&&M<R.length-1&&(M++,C=R[M]),(!C||C.pos!==X)&&U(X)),W=X,N.assert(!C||C.pos===X),C}};function U(X){R=void 0,M=-1,C=void 0,Uo(I,ee,V);return;function ee(se){return X>=se.pos&&X<se.end?(Uo(se,ee,V),!0):!1}function V(se){if(X>=se.pos&&X<se.end)for(let G=0;G<se.length;G++){const re=se[G];if(re){if(re.pos===X)return R=se,M=G,C=re,!0;if(re.pos<X&&X<re.end)return Uo(re,ee,V),!0}}return!1}}}e.createSyntaxCursor=b;let A;(I=>{I[I.Value=-1]="Value"})(A||(A={}))})(yq||(yq={})),bq=new Map,lIe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,cIe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function w5(e){const t=new Map,r=new Map;return Ve(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function dR(){return JIe||(JIe=w5(fg))}function zse(e){return uIe(e,$l)}function uIe(e,t){const r=Go(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(", ");return t(m.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function O5(e,t,r){return VIe(e,(t!=null?t:"").trim(),r)}function Bse(e,t="",r){if(t=t.trim(),ho(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return xI(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return Vi(i,o=>xI(e.element,parseInt(o),r));case"string":return Vi(i,o=>xI(e.element,o||"",r));case"boolean":case"object":return N.fail(`List of ${e.element.type} is not yet supported.`);default:return Vi(i,o=>O5(e.element,o,r))}}function dIe(e){return e.name}function Gse(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return M0(o,i,t.alternateMode.diagnostic,e);const l=cN(e,t.optionDeclarations,dIe);return l?M0(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):M0(o,i,t.unknownOptionDiagnostic,r||e)}function Eq(e,t,r){const i={};let o;const s=[],l=[];return u(t),{options:i,watchOptions:o,fileNames:s,errors:l};function u(v){let f=0;for(;f<v.length;){const b=v[f];if(f++,b.charCodeAt(0)===64)p(b.slice(1));else if(b.charCodeAt(0)===45){const A=b.slice(b.charCodeAt(1)===45?2:1),I=Vse(e.getOptionsNameMap,A,!0);if(I)f=pIe(v,f,e,I,i,l);else{const R=Vse(q5.getOptionsNameMap,A,!0);R?f=pIe(v,f,q5,R,o||(o={}),l):l.push(Gse(A,e,b))}}else s.push(b)}}function p(v){const f=jC(v,r||(I=>bu.readFile(I)));if(!wo(f)){l.push(f);return}const b=[];let A=0;for(;;){for(;A<f.length&&f.charCodeAt(A)<=32;)A++;if(A>=f.length)break;const I=A;if(f.charCodeAt(I)===34){for(A++;A<f.length&&f.charCodeAt(A)!==34;)A++;A<f.length?(b.push(f.substring(I+1,A)),A++):l.push($l(m.Unterminated_quoted_string_in_response_file_0,v))}else{for(;f.charCodeAt(A)>32;)A++;b.push(f.substring(I,A))}}u(b)}}function pIe(e,t,r,i,o,s){if(i.isTSConfigOnly){const l=e[t];l==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(o[i.name]=xI(i,!1,s),t++):(l==="true"&&t++,s.push($l(m.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push($l(m.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!ho(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push($l(r.optionTypeMismatchDiagnostic,i.name,Iq(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=xI(i,parseInt(e[t]),s),t++;break;case"boolean":const l=e[t];o[i.name]=xI(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=xI(i,e[t]||"",s),t++;break;case"list":const u=Bse(i,e[t],s);o[i.name]=u||[],u&&t++;break;case"listOrElement":N.fail("listOrElement not supported here");break;default:o[i.name]=O5(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function fIe(e,t){return Eq(Ww,e,t)}function Sq(e,t){return Vse(dR,e,t)}function Vse(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 mIe(){return XIe||(XIe=w5(U5))}function _Ie(e){const{options:t,watchOptions:r,fileNames:i,errors:o}=Eq($Ie,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push($l(m.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push($l(m.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push($l(m.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push($l(m.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function hIe(e,...t){return sa($l(e,...t).messageText,wo)}function Rw(e,t,r,i,o,s){const l=jC(e,v=>r.readFile(v));if(!wo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}const u=xw(e,l),p=r.getCurrentDirectory();return u.path=ll(e,p,ku(r.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,Cw(u,r,To(ii(e),p),t,To(e,p),void 0,s,i,o)}function Dw(e,t){const r=jC(e,t);return wo(r)?Tq(e,r):{config:{},error:r}}function Tq(e,t){const r=xw(e,t);return{config:EIe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function jse(e,t){const r=jC(e,t);return wo(r)?xw(e,r):{fileName:e,parseDiagnostics:[r]}}function jC(e,t){let r;try{r=t(e)}catch(i){return $l(m.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?$l(m.Cannot_read_file_0,e):r}function Aq(e){return C1(e,dIe)}function gIe(){return QIe||(QIe=w5(pR))}function vIe(){return ZIe||(ZIe=Aq(fg))}function yIe(){return exe||(exe=Aq(pR))}function bIe(){return txe||(txe=Aq(Ow))}function JVe(){return ile===void 0&&(ile={name:void 0,type:"object",elementOptions:Aq([tle,nle,rle,Fw,{name:"references",type:"list",element:{name:"references",type:"object"},category:m.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:m.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:m.File_Management,defaultValueDescription:m.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:m.File_Management,defaultValueDescription:m.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},Mw])}),ile}function EIe(e,t,r){var i;const o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(rm(e,o,m.The_root_value_of_a_0_file_must_be_an_object,dc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),hd(o)){const s=un(o.elements,za);if(s)return Nw(e,s,t,!0,r)}return{}}return Nw(e,o,t,!0,r)}function Use(e,t){var r;return Nw(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function Nw(e,t,r,i,o){if(!t)return i?{}:void 0;return u(t,o==null?void 0:o.rootOptions);function s(v,f){var b;const A=i?{}:void 0;for(const I of v.properties){if(I.kind!==303){r.push(rm(e,I,m.Property_assignment_expected));continue}I.questionToken&&r.push(rm(e,I.questionToken,m.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),p(I.name)||r.push(rm(e,I.name,m.String_literal_with_double_quotes_expected));const R=HL(I.name)?void 0:f2(I.name),M=R&&Ki(R),C=M?(b=f==null?void 0:f.elementOptions)==null?void 0:b.get(M):void 0,W=u(I.initializer,C);typeof M<"u"&&(i&&(A[M]=W),o==null||o.onPropertySet(M,W,I,f,C))}return A}function l(v,f){if(!i){v.forEach(b=>u(b,f));return}return Vn(v.map(b=>u(b,f)),b=>b!==void 0)}function u(v,f){switch(v.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(v)||r.push(rm(e,v,m.String_literal_with_double_quotes_expected)),v.text;case 9:return Number(v.text);case 224:if(v.operator!==41||v.operand.kind!==9)break;return-Number(v.operand.text);case 210:return s(v,f);case 209:return l(v.elements,f&&f.element)}f?r.push(rm(e,v,m.Compiler_option_0_requires_a_value_of_type_1,f.name,Iq(f))):r.push(rm(e,v,m.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(v){return La(v)&&I3(v,e)}}function Iq(e){return e.type==="listOrElement"?`${Iq(e.element)} or Array`:e.type==="list"?"Array":wo(e.type)?e.type:"string"}function SIe(e,t){if(e){if(Pw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return Do(t);if(e.type==="listOrElement")return Do(t)||SIe(e.element,t);const r=wo(e.type)?e.type:"string";return typeof t===r}return!1}function TIe(e,t,r){var i,o,s;const l=ku(r.useCaseSensitiveFileNames),u=Wt(Vn(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?XVe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Pv),R=>pL(To(t,r.getCurrentDirectory()),To(R,r.getCurrentDirectory()),l)),p={configFilePath:To(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},v=F5(e.options,p),f=e.watchOptions&&YVe(e.watchOptions),b={compilerOptions:{...W5(v),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:f&&W5(f),references:Wt(e.projectReferences,R=>({...R,path:R.originalPath?R.originalPath:"",originalPath:void 0})),files:Pe(u)?u:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:KVe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},A=new Set(v.keys()),I={};for(const R in Sc)if(!A.has(R)&&St(Sc[R].dependencies,M=>A.has(M))){const M=Sc[R].computeValue(e.options),C=Sc[R].computeValue({});M!==C&&(I[R]=Sc[R].computeValue(e.options))}return jx(b.compilerOptions,W5(F5(I,p))),b}function W5(e){return{...Go(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function KVe(e){if(!!Pe(e)){if(Pe(e)!==1)return e;if(e[0]!==J5)return e}}function XVe(e,t,r,i){if(!t)return Pv;const o=u7(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&Uy(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&Uy(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?u=>!(l.test(u)&&!s.test(u)):u=>!l.test(u):s?u=>s.test(u):Pv}function AIe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return AIe(e.element);default:return e.type}}function xq(e,t){return qc(t,(r,i)=>{if(r===e)return i})}function F5(e,t){return IIe(e,dR(),t)}function YVe(e){return IIe(e,gIe())}function IIe(e,{optionsNameMap:t},r){const i=new Map,o=r&&ku(r.useCaseSensitiveFileNames);for(const s in e)if(Ls(e,s)){if(t.has(s)&&(t.get(s).category===m.Command_line_Options||t.get(s).category===m.Output_Formatting))continue;const l=e[s],u=t.get(s.toLowerCase());if(u){N.assert(u.type!=="listOrElement");const p=AIe(u);p?u.type==="list"?i.set(s,l.map(v=>xq(v,p))):i.set(s,xq(l,p)):r&&u.isFilePath?i.set(s,pL(r.configFilePath,To(l,ii(r.configFilePath)),o)):i.set(s,l)}}return i}function xIe(e,t){const r=RIe(e);return o();function i(s){return Array(s+1).join(" ")}function o(){const s=[],l=i(2);return Pq.forEach(u=>{if(!r.has(u.name))return;const p=r.get(u.name),v=$se(u);p!==v?s.push(`${l}${u.name}: ${p}`):Ls(H5,u.name)&&s.push(`${l}${u.name}: ${v}`)}),s.join(t)+t}}function RIe(e){const t=X8(e,H5);return F5(t)}function DIe(e,t,r){const i=RIe(e);return l();function o(u){return Array(u+1).join(" ")}function s({category:u,name:p,isCommandLineOnly:v}){const f=[m.Command_line_Options,m.Editor_Support,m.Compiler_Diagnostics,m.Backwards_Compatibility,m.Watch_and_Build_Modes,m.Output_Formatting];return!v&&u!==void 0&&(!f.includes(u)||i.has(p))}function l(){const u=new Map;u.set(m.Projects,[]),u.set(m.Language_and_Environment,[]),u.set(m.Modules,[]),u.set(m.JavaScript_Support,[]),u.set(m.Emit,[]),u.set(m.Interop_Constraints,[]),u.set(m.Type_Checking,[]),u.set(m.Completeness,[]);for(const I of fg)if(s(I)){let R=u.get(I.category);R||u.set(I.category,R=[]),R.push(I)}let p=0,v=0;const f=[];u.forEach((I,R)=>{f.length!==0&&f.push({value:""}),f.push({value:`/* ${zo(R)} */`});for(const M of I){let C;i.has(M.name)?C=`"${M.name}": ${JSON.stringify(i.get(M.name))}${(v+=1)===i.size?"":","}`:C=`// "${M.name}": ${JSON.stringify($se(M))},`,f.push({value:C,description:`/* ${M.description&&zo(M.description)||M.name} */`}),p=Math.max(C.length,p)}});const b=o(2),A=[];A.push("{"),A.push(`${b}"compilerOptions": {`),A.push(`${b}${b}/* ${zo(m.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),A.push("");for(const I of f){const{value:R,description:M=""}=I;A.push(R&&`${b}${b}${R}${M&&o(p-R.length+2)+M}`)}if(t.length){A.push(`${b}},`),A.push(`${b}"files": [`);for(let I=0;I<t.length;I++)A.push(`${b}${b}${JSON.stringify(t[I])}${I===t.length-1?"":","}`);A.push(`${b}]`)}else A.push(`${b}}`);return A.push("}"),A.join(r)+r}}function Rq(e,t){const r={},i=dR().optionsNameMap;for(const o in e)Ls(e,o)&&(r[o]=$Ve(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function $Ve(e,t,r){if(e&&!Pw(t)){if(e.type==="list"){const i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);N.assert(e.type!=="listOrElement")}return t}function NIe(e,t,r,i,o,s,l,u,p){return PIe(e,void 0,t,r,i,p,o,s,l,u)}function Cw(e,t,r,i,o,s,l,u,p){var v,f;(v=ur)==null||v.push(ur.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const b=PIe(void 0,e,t,r,i,p,o,s,l,u);return(f=ur)==null||f.pop(),b}function Dq(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function Pw(e){return e==null}function CIe(e,t){return ii(To(e,t))}function PIe(e,t,r,i,o={},s,l,u=[],p=[],v){N.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);const f=[],b=kIe(e,t,r,i,l,u,f,v),{raw:A}=b,I=X8(o,b.options||{}),R=s&&b.watchOptions?X8(s,b.watchOptions):b.watchOptions||s;I.configFilePath=l&&wu(l);const M=W();t&&(t.configFileSpecs=M),Dq(I,t);const C=va(l?CIe(l,i):i);return{options:I,watchOptions:R,fileNames:U(C),projectReferences:X(C),typeAcquisition:b.typeAcquisition||Nq(),raw:A,errors:f,wildcardDirectories:aje(M,C,r.useCaseSensitiveFileNames),compileOnSave:!!A.compileOnSave};function W(){const re=se("references",de=>typeof de=="object","object"),_e=ee(V("files"));if(_e){const de=re==="no-prop"||Do(re)&&re.length===0,ie=Ls(A,"extends");if(_e.length===0&&de&&!ie)if(t){const ge=l||"tsconfig.json",Ce=m.The_files_list_in_config_file_0_is_empty,qe=YL(t,"files",Le=>Le.initializer),Se=M0(t,qe,Ce,ge);f.push(Se)}else G(m.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let ye=ee(V("include"));const Q=V("exclude");let Y=!1,oe=ee(Q);if(Q==="no-prop"&&A.compilerOptions){const de=A.compilerOptions.outDir,ie=A.compilerOptions.declarationDir;(de||ie)&&(oe=[de,ie].filter(ge=>!!ge))}_e===void 0&&ye===void 0&&(ye=[J5],Y=!0);let he,Ie;return ye&&(he=qIe(ye,f,!0,t,"include")),oe&&(Ie=qIe(oe,f,!1,t,"exclude")),{filesSpecs:_e,includeSpecs:ye,excludeSpecs:oe,validatedFilesSpec:Vn(_e,wo),validatedIncludeSpecs:he,validatedExcludeSpecs:Ie,pathPatterns:void 0,isDefaultIncludeSpec:Y}}function U(re){const _e=HC(M,re,I,r,p);return LIe(_e,UC(A),u)&&f.push(MIe(M,l)),_e}function X(re){let _e;const ye=se("references",Q=>typeof Q=="object","object");if(Do(ye))for(const Q of ye)typeof Q.path!="string"?G(m.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(_e||(_e=[])).push({path:To(Q.path,re),originalPath:Q.path,prepend:Q.prepend,circular:Q.circular});return _e}function ee(re){return Do(re)?re:void 0}function V(re){return se(re,wo,"string")}function se(re,_e,ye){if(Ls(A,re)&&!Pw(A[re]))if(Do(A[re])){const Q=A[re];return!t&&!Bn(Q,_e)&&f.push($l(m.Compiler_option_0_requires_a_value_of_type_1,re,ye)),Q}else return G(m.Compiler_option_0_requires_a_value_of_type_1,re,"Array"),"not-array";return"no-prop"}function G(re,..._e){t||f.push($l(re,..._e))}}function QVe(e){return e.code===m.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function MIe({includeSpecs:e,excludeSpecs:t},r){return $l(m.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function LIe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function UC(e){return!Ls(e,"files")&&!Ls(e,"references")}function z5(e,t,r,i,o){const s=i.length;return LIe(e,o)?i.push(MIe(r,t)):Si(i,l=>!QVe(l)),s!==i.length}function ZVe(e){return!!e.options}function kIe(e,t,r,i,o,s,l,u){var p;i=wu(i);const v=To(o||"",i);if(s.includes(v))return l.push($l(m.Circularity_detected_while_resolving_configuration_Colon_0,[...s,v].join(" -> "))),{raw:e||Use(t,l)};const f=e?eje(e,r,i,o,l):tje(t,r,i,o,l);if((p=f.options)!=null&&p.paths&&(f.options.pathsBasePath=i),f.extendedConfigPath){s=s.concat([v]);const A={options:{}};wo(f.extendedConfigPath)?b(A,f.extendedConfigPath):f.extendedConfigPath.forEach(I=>b(A,I)),!f.raw.include&&A.include&&(f.raw.include=A.include),!f.raw.exclude&&A.exclude&&(f.raw.exclude=A.exclude),!f.raw.files&&A.files&&(f.raw.files=A.files),f.raw.compileOnSave===void 0&&A.compileOnSave&&(f.raw.compileOnSave=A.compileOnSave),t&&A.extendedSourceFiles&&(t.extendedSourceFiles=Go(A.extendedSourceFiles.keys())),f.options=jx(A.options,f.options),f.watchOptions=f.watchOptions&&A.watchOptions?jx(A.watchOptions,f.watchOptions):f.watchOptions||A.watchOptions}return f;function b(A,I){const R=nje(t,I,r,s,l,u,A);if(R&&ZVe(R)){const M=R.raw;let C;const W=U=>{M[U]&&(A[U]=Wt(M[U],X=>hp(X)?X:$r(C||(C=_N(ii(I),i,ku(r.useCaseSensitiveFileNames))),X)))};W("include"),W("exclude"),W("files"),M.compileOnSave!==void 0&&(A.compileOnSave=M.compileOnSave),jx(A.options,R.options),A.watchOptions=A.watchOptions&&R.watchOptions?jx({},A.watchOptions,R.watchOptions):A.watchOptions||R.watchOptions}}}function eje(e,t,r,i,o){Ls(e,"excludes")&&o.push($l(m.Unknown_option_excludes_Did_you_mean_exclude));const s=BIe(e.compilerOptions,r,o,i),l=GIe(e.typeAcquisition,r,o,i),u=ije(e.watchOptions,r,o);e.compileOnSave=rje(e,r,o);const p=e.extends||e.extends===""?wIe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:p}}function wIe(e,t,r,i,o,s,l,u){let p;const v=i?CIe(i,r):r;if(wo(e))p=OIe(e,t,v,o,l,u);else if(Do(e)){p=[];for(let f=0;f<e.length;f++){const b=e[f];wo(b)?p=Rn(p,OIe(b,t,v,o,l==null?void 0:l.elements[f],u)):ZS(Fw.element,e,r,o,s,l==null?void 0:l.elements[f],u)}}else ZS(Fw,e,r,o,s,l,u);return p}function tje(e,t,r,i,o){const s=zIe(i);let l,u,p,v;const f=JVe(),b=EIe(e,o,{rootOptions:f,onPropertySet:A});return l||(l=Nq(i)),v&&b&&b.compilerOptions===void 0&&o.push(rm(e,v[0],m._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,f2(v[0]))),{raw:b,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:p};function A(I,R,M,C,W){if(W&&W!==Fw&&(R=ZS(W,R,r,o,M,M.initializer,e)),C!=null&&C.name)if(W){let U;C===tle?U=s:C===nle?U=u!=null?u:u={}:C===rle?U=l!=null?l:l=Nq(i):N.fail("Unknown option"),U[W.name]=R}else I&&(C==null?void 0:C.extraKeyDiagnostics)&&(C.elementOptions?o.push(Gse(I,C.extraKeyDiagnostics,void 0,M.name,e)):o.push(rm(e,M.name,C.extraKeyDiagnostics.unknownOptionDiagnostic,I)));else C===f&&(W===Fw?p=wIe(R,t,r,i,o,M,M.initializer,e):W||(I==="excludes"&&o.push(rm(e,M.name,m.Unknown_option_excludes_Did_you_mean_exclude)),un(Pq,U=>U.name===I)&&(v=Rn(v,M.name))))}}function OIe(e,t,r,i,o,s){if(e=wu(e),hp(e)||ho(e,"./")||ho(e,"../")){let u=To(e,r);if(!t.fileExists(u)&&!Dl(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(M0(s,o,m.File_0_not_found,e));return}return u}const l=mle(e,$r(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(M0(s,o,m.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(M0(s,o,m.File_0_not_found,e))}function nje(e,t,r,i,o,s,l){var b;const u=r.useCaseSensitiveFileNames?t:ph(t);let p,v,f;if(s&&(p=s.get(u))?{extendedResult:v,extendedConfig:f}=p:(v=jse(t,A=>r.readFile(A)),v.parseDiagnostics.length||(f=kIe(void 0,v,r,ii(t),dc(t),i,o,s)),s&&s.set(u,{extendedResult:v,extendedConfig:f})),e&&(((b=l.extendedSourceFiles)!=null?b:l.extendedSourceFiles=new Set).add(v.fileName),v.extendedSourceFiles))for(const A of v.extendedSourceFiles)l.extendedSourceFiles.add(A);if(v.parseDiagnostics.length){o.push(...v.parseDiagnostics);return}return f}function rje(e,t,r){if(!Ls(e,Mw.name))return!1;const i=ZS(Mw,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function WIe(e,t,r){const i=[];return{options:BIe(e,t,i,r),errors:i}}function FIe(e,t,r){const i=[];return{options:GIe(e,t,i,r),errors:i}}function zIe(e){return e&&dc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function BIe(e,t,r,i){const o=zIe(i);return Hse(vIe(),e,t,o,Ww,r),i&&(o.configFilePath=wu(i)),o}function Nq(e){return{enable:!!e&&dc(e)==="jsconfig.json",include:[],exclude:[]}}function GIe(e,t,r,i){const o=Nq(i);return Hse(bIe(),e,t,o,ele,r),o}function ije(e,t,r){return Hse(yIe(),e,t,void 0,q5,r)}function Hse(e,t,r,i,o,s){if(!!t){for(const l in t){const u=e.get(l);u?(i||(i={}))[u.name]=ZS(u,t[l],r,s):s.push(Gse(l,o))}return i}}function M0(e,t,r,...i){return e&&t?rm(e,t,r,...i):$l(r,...i)}function ZS(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(M0(l,o==null?void 0:o.name,m.Option_0_can_only_be_specified_on_command_line,e.name));return}if(SIe(e,t)){const u=e.type;if(u==="list"&&Do(t))return jIe(e,t,r,i,o,s,l);if(u==="listOrElement")return Do(t)?jIe(e,t,r,i,o,s,l):ZS(e.element,t,r,i,o,s,l);if(!wo(e.type))return VIe(e,t,i,s,l);const p=xI(e,t,i,s,l);return Pw(p)?p:oje(e,r,p)}else i.push(M0(l,s,m.Compiler_option_0_requires_a_value_of_type_1,e.name,Iq(e)))}function oje(e,t,r){return e.isFilePath&&(r=To(r,t),r===""&&(r=".")),r}function xI(e,t,r,i,o){var s;if(Pw(t))return;const l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(M0(o,i,...l))}function VIe(e,t,r,i,o){if(Pw(t))return;const s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return xI(e,l,r,i,o);r.push(uIe(e,(u,...p)=>M0(o,i,u,...p)))}function jIe(e,t,r,i,o,s,l){return Vn(Wt(t,(u,p)=>ZS(e.element,u,r,i,o,s==null?void 0:s.elements[p],l)),u=>e.listPreserveFalsyValues?!0:!!u)}function HC(e,t,r,i,o=et){t=va(t);const s=ku(i.useCaseSensitiveFileNames),l=new Map,u=new Map,p=new Map,{validatedFilesSpec:v,validatedIncludeSpecs:f,validatedExcludeSpecs:b}=e,A=lC(r,o),I=wk(r,A);if(v)for(const W of v){const U=To(W,t);l.set(s(U),U)}let R;if(f&&f.length>0)for(const W of i.readDirectory(t,Oa(I),b,f,void 0)){if(Nl(W,".json")){if(!R){const ee=f.filter(se=>Dl(se,".json")),V=Wt(l7(ee,t,"files"),se=>`^${se}$`);R=V?V.map(se=>Uy(se,i.useCaseSensitiveFileNames)):et}if(Ji(R,ee=>ee.test(W))!==-1){const ee=s(W);!l.has(ee)&&!p.has(ee)&&p.set(ee,W)}continue}if(lje(W,l,u,A,s))continue;cje(W,u,A,s);const U=s(W);!l.has(U)&&!u.has(U)&&u.set(U,W)}const M=Go(l.values()),C=Go(u.values());return M.concat(C,Go(p.values()))}function qse(e,t,r,i,o){const{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:u}=t;if(!Pe(l)||!Pe(u))return!1;r=va(r);const p=ku(i);if(s){for(const v of s)if(p(To(v,r))===e)return!1}return HIe(e,u,i,o,r)}function UIe(e){const t=ho(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Dl(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function B5(e,t,r,i){return HIe(e,Vn(t,o=>!UIe(o)),r,i)}function HIe(e,t,r,i,o){const s=sC(t,$r(va(i),o),"exclude"),l=s&&Uy(s,r);return l?l.test(e)?!0:!PA(e)&&l.test(Hc(e)):!1}function qIe(e,t,r,i,o){return e.filter(l=>{if(!wo(l))return!1;const u=Jse(l,r);return u!==void 0&&t.push(s(...u)),u===void 0});function s(l,u){const p=f3(i,o,u);return M0(i,p,l,u)}}function Jse(e,t){if(N.assert(typeof e=="string"),t&&nxe.test(e))return[m.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(UIe(e))return[m.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function aje({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const o=sC(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},u=new Map;if(e!==void 0){const p=[];for(const v of e){const f=va($r(r,v));if(s&&s.test(f))continue;const b=sje(f,i);if(b){const{key:A,path:I,flags:R}=b,M=u.get(A),C=M!==void 0?l[M]:void 0;(C===void 0||C<R)&&(l[M!==void 0?M:I]=R,M===void 0&&u.set(A,I),R===1&&p.push(A))}}for(const v in l)if(Ls(l,v))for(const f of p){const b=Kse(v,i);b!==f&&Am(f,b,r,!i)&&delete l[v]}}return l}function Kse(e,t){return t?e:ph(e)}function sje(e,t){const r=rxe.exec(e);if(r){const i=e.indexOf("?"),o=e.indexOf("*"),s=e.lastIndexOf(cl);return{key:Kse(r[0],t),path:r[0],flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(JU(e.substring(e.lastIndexOf(cl)+1))){const i=o0(e);return{key:Kse(i,t),path:i,flags:1}}}function lje(e,t,r,i,o){const s=Ve(i,l=>Rc(e,l)?l:void 0);if(!s)return!1;for(const l of s){if(Nl(e,l)&&(l!==".ts"||!Nl(e,".d.ts")))return!1;const u=o(S0(e,l));if(t.has(u)||r.has(u)){if(l===".d.ts"&&(Nl(e,".js")||Nl(e,".jsx")))continue;return!0}}return!1}function cje(e,t,r,i){const o=Ve(r,s=>Rc(e,s)?s:void 0);if(!!o)for(let s=o.length-1;s>=0;s--){const l=o[s];if(Nl(e,l))return;const u=i(S0(e,l));t.delete(u)}}function Xse(e){const t={};for(const r in e)if(Ls(e,r)){const i=Sq(r);i!==void 0&&(t[r]=Yse(e[r],i))}return t}function Yse(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!Do(e))return Yse(e,t.element);case"list":const r=t.element;return Do(e)?Vi(e,i=>Yse(i,r)):"";default:return qc(t.type,(i,o)=>{if(i===e)return o})}}function $se(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 $se(e.element);case"object":return{};default:const r=q8(e.type.keys());return r!==void 0?r:N.fail("Expected 'option.type' to have entries.")}}var Mw,Qse,qC,Zse,Lw,G5,pR,kw,ww,Cq,Pq,fg,Mq,Lq,kq,V5,j5,wq,Oq,Wq,U5,Ow,JIe,KIe,H5,Ww,XIe,YIe,$Ie,ele,QIe,q5,ZIe,exe,txe,Fw,tle,nle,rle,ile,J5,nxe,rxe,uje=S({"src/compiler/commandLineParser.ts"(){ia(),Mw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},Qse=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),qC=new Map(Xo(Qse.entries(),([e,t])=>[""+t,e])),Zse=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],Lw=Zse.map(e=>e[0]),G5=new Map(Zse),pR=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:m.Watch_and_Build_Modes,description:m.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:m.Watch_and_Build_Modes,description:m.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:m.Watch_and_Build_Modes,description:m.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:m.Watch_and_Build_Modes,description:m.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Jse},category:m.Watch_and_Build_Modes,description:m.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Jse},category:m.Watch_and_Build_Modes,description:m.Remove_a_list_of_files_from_the_watch_mode_s_processing}],kw=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:m.Command_line_Options,description:m.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:m.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:m.Command_line_Options,description:m.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:m.Output_Formatting,description:m.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:m.Compiler_Diagnostics,description:m.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:m.Compiler_Diagnostics,description:m.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:m.Compiler_Diagnostics,description:m.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:m.Output_Formatting,description:m.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:m.Compiler_Diagnostics,description:m.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:m.Compiler_Diagnostics,description:m.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:m.Compiler_Diagnostics,description:m.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:m.FILE_OR_DIRECTORY,category:m.Compiler_Diagnostics,description:m.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:m.DIRECTORY,category:m.Compiler_Diagnostics,description:m.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:m.Projects,description:m.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:m.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Emit,transpileOptionValue:void 0,description:m.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:m.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:m.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Emit,description:m.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Emit,defaultValueDescription:!1,description:m.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:m.Emit,description:m.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:m.Watch_and_Build_Modes,description:m.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:m.Command_line_Options,isCommandLineOnly:!0,description:m.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:m.Platform_specific}],ww={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:m.VERSION,showInSimplifiedHelpView:!0,category:m.Language_and_Environment,description:m.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},Cq={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:m.KIND,showInSimplifiedHelpView:!0,category:m.Modules,description:m.Specify_what_module_code_is_generated,defaultValueDescription:void 0},Pq=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:m.Command_line_Options,description:m.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:m.Command_line_Options,description:m.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:m.Command_line_Options,description:m.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:m.Command_line_Options,paramType:m.FILE_OR_DIRECTORY,description:m.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:m.Command_line_Options,description:m.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:m.Command_line_Options,isCommandLineOnly:!0,description:m.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:m.Command_line_Options,isCommandLineOnly:!0,description:m.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},ww,Cq,{name:"lib",type:"list",element:{name:"lib",type:G5,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:m.Language_and_Environment,description:m.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.JavaScript_Support,description:m.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.JavaScript_Support,description:m.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:Qse,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:m.KIND,showInSimplifiedHelpView:!0,category:m.Language_and_Environment,description:m.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:m.FILE,showInSimplifiedHelpView:!0,category:m.Emit,description:m.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:m.DIRECTORY,showInSimplifiedHelpView:!0,category:m.Emit,description:m.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:m.LOCATION,category:m.Modules,description:m.Specify_the_root_folder_within_your_source_files,defaultValueDescription:m.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:m.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:m.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:m.FILE,category:m.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:m.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Emit,defaultValueDescription:!1,description:m.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:m.Emit,description:m.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:m.Interop_Constraints,description:m.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:m.Interop_Constraints,description:m.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Type_Checking,description:m.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:m.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:m.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:m.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:m.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:m.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:m.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:m.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:m.Type_Checking,description:m.Ensure_use_strict_is_always_emitted,defaultValueDescription:m.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:m.Type_Checking,description:m.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:m.STRATEGY,category:m.Modules,description:m.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:m.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:m.Modules,description:m.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:m.Modules,description:m.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:m.Modules,description:m.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:m.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:m.Modules,description:m.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:m.Modules,description:m.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Interop_Constraints,description:m.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:m.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:m.Interop_Constraints,description:m.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:m.Interop_Constraints,description:m.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Modules,description:m.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:m.Modules,description:m.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Modules,description:m.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:m.Modules,description:m.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:m.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:m.Modules,description:m.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:m.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:m.Modules,description:m.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:m.LOCATION,category:m.Emit,description:m.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:m.LOCATION,category:m.Emit,description:m.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Language_and_Environment,description:m.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:m.Language_and_Environment,description:m.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:m.Language_and_Environment,description:m.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:m.Language_and_Environment,description:m.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:m.Language_and_Environment,description:m.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:m.Modules,description:m.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:m.Modules,description:m.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:m.Backwards_Compatibility,paramType:m.FILE,transpileOptionValue:void 0,description:m.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:m.Language_and_Environment,description:m.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:m.Completeness,description:m.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:m.Backwards_Compatibility,description:m.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:m.NEWLINE,category:m.Emit,description:m.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Output_Formatting,description:m.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:m.Language_and_Environment,affectsProgramStructure:!0,description:m.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:m.Modules,description:m.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:m.Editor_Support,description:m.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:m.Projects,description:m.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:m.Projects,description:m.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:m.Projects,description:m.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Backwards_Compatibility,description:m.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,transpileOptionValue:void 0,description:m.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:m.DIRECTORY,category:m.Emit,transpileOptionValue:void 0,description:m.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:m.Completeness,description:m.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Type_Checking,description:m.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Backwards_Compatibility,description:m.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Backwards_Compatibility,description:m.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:m.Interop_Constraints,description:m.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:m.JavaScript_Support,description:m.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:m.Backwards_Compatibility,description:m.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:m.Language_and_Environment,description:m.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:m.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:m.Emit,description:m.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:m.Backwards_Compatibility,description:m.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:m.Specify_a_list_of_language_service_plugins_to_include,category:m.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:m.Control_what_method_is_used_to_detect_module_format_JS_files,category:m.Language_and_Environment,defaultValueDescription:m.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],fg=[...kw,...Pq],Mq=fg.filter(e=>!!e.affectsSemanticDiagnostics),Lq=fg.filter(e=>!!e.affectsEmit),kq=fg.filter(e=>!!e.affectsDeclarationPath),V5=fg.filter(e=>!!e.affectsModuleResolution),j5=fg.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),wq=fg.filter(e=>!!e.affectsProgramStructure),Oq=fg.filter(e=>Ls(e,"transpileOptionValue")),Wq=[{name:"verbose",shortName:"v",category:m.Command_line_Options,description:m.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:m.Command_line_Options,description:m.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:m.Command_line_Options,description:m.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:m.Command_line_Options,description:m.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],U5=[...kw,...Wq],Ow=[{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}],KIe={diagnostic:m.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:mIe},H5={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},Ww={alternateMode:KIe,getOptionsNameMap:dR,optionDeclarations:fg,unknownOptionDiagnostic:m.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:m.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:m.Compiler_option_0_expects_an_argument},YIe={diagnostic:m.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:dR},$Ie={alternateMode:YIe,getOptionsNameMap:mIe,optionDeclarations:U5,unknownOptionDiagnostic:m.Unknown_build_option_0,unknownDidYouMeanDiagnostic:m.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:m.Build_option_0_requires_a_value_of_type_1},ele={optionDeclarations:Ow,unknownOptionDiagnostic:m.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:m.Unknown_type_acquisition_option_0_Did_you_mean_1},q5={getOptionsNameMap:gIe,optionDeclarations:pR,unknownOptionDiagnostic:m.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:m.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:m.Watch_option_0_requires_a_value_of_type_1},Fw={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:m.File_Management,disallowNullOrUndefined:!0},tle={name:"compilerOptions",type:"object",elementOptions:vIe(),extraKeyDiagnostics:Ww},nle={name:"watchOptions",type:"object",elementOptions:yIe(),extraKeyDiagnostics:q5},rle={name:"typeAcquisition",type:"object",elementOptions:bIe(),extraKeyDiagnostics:ele},J5="**/*",nxe=/(^|\/)\*\*\/?$/,rxe=/^[^*?]*(?=\/[^/]*[*?])/}});function xo(e,t,...r){e.trace(VU(t,...r))}function Kg(e,t){return!!e.traceResolution&&t.trace!==void 0}function RI(e,t){let r;if(t&&e){const i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+cl.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function Fq(e){return RI(void 0,e)}function ixe(e){if(e)return N.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function K5(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 dje(e){const t=[];return e&1&&t.push(...Jk),e&2&&t.push(...J2),e&4&&t.push(...qk),e&8&&t.push(".json"),t}function ole(e){if(!!e)return N.assert(m7(e.extension)),{fileName:e.path,packageId:e.packageId}}function oxe(e,t,r,i,o,s,l,u,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!tu(e)){const{resolvedFileName:v,originalPath:f}=lxe(t.path,l.host,l.traceEnabled);f&&(t={...t,path:v,originalPath:f})}return axe(t,r,i,o,s,l.resultFromCache,u,p)}function axe(e,t,r,i,o,s,l,u){return s?l!=null&&l.isReadonly?{...s,failedLookupLocations:ale(s.failedLookupLocations,r),affectingLocations:ale(s.affectingLocations,i),resolutionDiagnostics:ale(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=fR(s.failedLookupLocations,r),s.affectingLocations=fR(s.affectingLocations,i),s.resolutionDiagnostics=fR(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:JC(r),affectingLocations:JC(i),resolutionDiagnostics:JC(o),alternateResult:u}}function JC(e){return e.length?e:void 0}function fR(e,t){return t!=null&&t.length?e!=null&&e.length?(e.push(...t),e):t:e}function ale(e,t){return e!=null&&e.length?t.length?[...e,...t]:e.slice():JC(t)}function sxe(e,t,r,i){if(!Ls(e,t)){i.traceEnabled&&xo(i.host,m.package_json_does_not_have_a_0_field,t);return}const o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&xo(i.host,m.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?"null":typeof o);return}return o}function zq(e,t,r,i){const o=sxe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&xo(i.host,m.package_json_had_a_falsy_0_field,t);return}const s=va($r(r,o));return i.traceEnabled&&xo(i.host,m.package_json_has_0_field_1_that_references_2,t,o,s),s}function pje(e,t,r){return zq(e,"typings",t,r)||zq(e,"types",t,r)}function fje(e,t,r){return zq(e,"tsconfig",t,r)}function mje(e,t,r){return zq(e,"main",t,r)}function _je(e,t){const r=sxe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&xo(t.host,m.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function hje(e,t){const r=_je(e,t);if(r===void 0)return;if(t.traceEnabled)for(const l in r)Ls(r,l)&&!tL.tryParse(l)&&xo(t.host,m.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);const i=X5(r);if(!i){t.traceEnabled&&xo(t.host,m.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,ue);return}const{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&xo(t.host,m.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}function X5(e){ble||(ble=new Tm(Ae));for(const t in e){if(!Ls(e,t))continue;const r=tL.tryParse(t);if(r!==void 0&&r.test(ble))return{version:t,paths:e[t]}}}function KC(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=ii(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return gje(r)}function gje(e){let t;return xm(va(e),r=>{const i=$r(r,Cxe);(t!=null?t:t=[]).push(i)}),t}function vje(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return kg(e,t,!i)===0}function lxe(e,t,r){const i=Cje(e,t,r),o=vje(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function cxe(e,t,r){const i=Dl(e,"/node_modules/@types")||Dl(e,"/node_modules/@types/")?Rxe(t,r):t;return $r(e,i)}function sle(e,t,r,i,o,s,l){N.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const u=Kg(r,i);o&&(r=o.commandLine.options);const p=t?ii(t):void 0;let v=p?s==null?void 0:s.getFromDirectoryCache(e,l,p,o):void 0;if(!v&&p&&!tu(e)&&(v=s==null?void 0:s.getFromNonRelativeNameCache(e,l,p,o)),v)return u&&(xo(i,m.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&xo(i,m.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),xo(i,m.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),V(v)),v;const f=KC(r,i);u&&(t===void 0?f===void 0?xo(i,m.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):xo(i,m.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,f):f===void 0?xo(i,m.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):xo(i,m.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,f),o&&xo(i,m.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const b=[],A=[];let I=lle(r);l!==void 0&&(I|=30);const R=_d(r);l===99&&3<=R&&R<=99&&(I|=32);const M=I&8?nb(r,l):[],C=[],W={compilerOptions:r,host:i,traceEnabled:u,failedLookupLocations:b,affectingLocations:A,packageJsonInfoCache:s,features:I,conditions:M,requestContainingDirectory:p,reportDiagnostic:re=>void C.push(re),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let U=se(),X=!0;U||(U=G(),X=!1);let ee;if(U){const{fileName:re,packageId:_e}=U;let ye=re,Q;r.preserveSymlinks||({resolvedFileName:ye,originalPath:Q}=lxe(re,i,u)),ee={primary:X,resolvedFileName:ye,originalPath:Q,packageId:_e,isExternalLibraryImport:L0(re)}}return v={resolvedTypeReferenceDirective:ee,failedLookupLocations:JC(b),affectingLocations:JC(A),resolutionDiagnostics:JC(C)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,v),tu(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,v)),u&&V(v),v;function V(re){var _e;(_e=re.resolvedTypeReferenceDirective)!=null&&_e.resolvedFileName?re.resolvedTypeReferenceDirective.packageId?xo(i,m.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,re.resolvedTypeReferenceDirective.resolvedFileName,Fy(re.resolvedTypeReferenceDirective.packageId),re.resolvedTypeReferenceDirective.primary):xo(i,m.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,re.resolvedTypeReferenceDirective.resolvedFileName,re.resolvedTypeReferenceDirective.primary):xo(i,m.Type_reference_directive_0_was_not_resolved,e)}function se(){if(f&&f.length)return u&&xo(i,m.Resolving_with_primary_search_path_0,f.join(", ")),$t(f,re=>{const _e=cxe(re,e,W),ye=Qm(re,i);if(!ye&&u&&xo(i,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,re),r.typeRoots){const Q=hR(4,_e,!ye,W);if(Q){const Y=Bw(Q.path),oe=Y?fE(Y,!1,W):void 0;return ole(RI(oe,Q))}}return ole(hle(4,_e,!ye,W))});u&&xo(i,m.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function G(){const re=t&&ii(t);if(re!==void 0){let _e;if(!r.typeRoots||!Dl(t,AR))if(u&&xo(i,m.Looking_up_in_node_modules_folder_initial_location_0,re),tu(e)){const{path:ye}=_xe(re,e);_e=Uq(4,ye,!1,W,!0)}else{const ye=Txe(4,e,re,W,void 0,void 0);_e=ye&&ye.value}else u&&xo(i,m.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return ole(_e)}else u&&xo(i,m.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function lle(e){let t=0;switch(_d(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function nb(e,t){const r=_d(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}const i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),r!==100&&i.push("node"),Ro(i,e.customConditions)}function Bq(e,t,r,i,o){const s=Gw(o==null?void 0:o.getPackageJsonInfoCache(),i,r);return xm(t,l=>{if(dc(l)!=="node_modules"){const u=$r(l,"node_modules"),p=$r(u,e);return fE(p,!1,s)}})}function Y5(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=KC(e,t);if(i){for(const o of i)if(t.directoryExists(o))for(const s of t.getDirectories(o)){const l=va(s),u=$r(o,l,"package.json");if(!(t.fileExists(u)&&tC(u,t).typings===null)){const v=dc(l);v.charCodeAt(0)!==46&&r.push(v)}}}}return r}function $5(e){return!!(e!=null&&e.contents)}function cle(e){return!!e&&!e.contents}function ule(e){var t;if(e===null||typeof e!="object")return""+e;if(Do(e))return`[${(t=e.map(i=>ule(i)))==null?void 0:t.join(",")}]`;let r="{";for(const i in e)Ls(e,i)&&(r+=`${i}: ${ule(e[i])}`);return r+"}"}function Gq(e,t){return t.map(r=>ule(i7(e,r))).join("|")+`|${e.pathsBasePath}`}function Vq(e,t){const r=new Map,i=new Map;let o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:u,clear:v,getOwnMap:()=>o};function s(b){return b?p(b.commandLine.options,!1):o}function l(b){return b?p(b.commandLine.options,!0):o}function u(b){e!==b&&(e?o=p(b,!0):r.set(b,o),e=b)}function p(b,A){let I=r.get(b);if(I)return I;const R=f(b);if(I=i.get(R),!I){if(e){const M=f(e);M===R?I=o:i.has(M)||i.set(M,o)}A&&(I!=null||(I=new Map)),I&&i.set(R,I)}return I&&r.set(b,I),I}function v(){const b=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(b&&t.set(e,b),r.set(e,o))}function f(b){let A=t.get(b);return A||t.set(b,A=Gq(b,V5)),A}}function yje(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(u){return r==null?void 0:r.get(ll(u,e,t))}function o(u,p){(r||(r=new Map)).set(ll(u,e,t),p)}function s(){r=void 0}function l(){return r}}function uxe(e,t,r,i){const o=e.getOrCreateMapOfCacheRedirects(t);let s=o.get(r);return s||(s=i(),o.set(r,s)),s}function bje(e,t,r,i){const o=Vq(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:u,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(v){o.update(v)}function u(v,f){const b=ll(v,e,t);return uxe(o,f,b,()=>DI())}function p(v,f,b,A){var I,R;const M=ll(b,e,t);return(R=(I=o.getMapOfCacheRedirects(A))==null?void 0:I.get(M))==null?void 0:R.get(v,f)}}function XC(e,t){return t===void 0?e:`${t}|${e}`}function DI(){const e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{const[u,p]=t.get(l);return o(s,u,p)})},size(){return e.size}};return r;function i(o,s){const l=XC(o,s);return t.set(l,[o,s]),l}}function Eje(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function Sje(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function Tje(e,t,r,i,o){const s=Vq(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:v,clear:l,update:u};function l(){s.clear()}function u(b){s.update(b)}function p(b,A,I,R){var M,C;return N.assert(!tu(b)),(C=(M=s.getMapOfCacheRedirects(R))==null?void 0:M.get(XC(b,A)))==null?void 0:C.get(I)}function v(b,A,I){return N.assert(!tu(b)),uxe(s,I,XC(b,A),f)}function f(){const b=new Map;return{get:A,set:I};function A(M){return b.get(ll(M,e,t))}function I(M,C){const W=ll(M,e,t);if(b.has(W))return;b.set(W,C);const U=i(C),X=U&&R(W,U);let ee=W;for(;ee!==X;){const V=ii(ee);if(V===ee||b.has(V))break;b.set(V,C),ee=V}}function R(M,C){const W=ll(ii(C),e,t);let U=0;const X=Math.min(M.length,W.length);for(;U<X&&M.charCodeAt(U)===W.charCodeAt(U);)U++;if(U===M.length&&(W.length===U||W[U]===cl))return M;const ee=_h(M);if(U<ee)return;const V=M.lastIndexOf(cl,U-1);if(V!==-1)return M.substr(0,Math.max(V,ee))}}}function dxe(e,t,r,i,o,s){s!=null||(s=new Map);const l=bje(e,t,r,s),u=Tje(e,t,r,o,s);return i!=null||(i=yje(e,t)),{...i,...l,...u,clear:p,update:f,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:v,optionsToRedirectsKey:s};function p(){v(),i.clear()}function v(){l.clear(),u.clear()}function f(b){l.update(b),u.update(b)}}function mR(e,t,r,i,o){const s=dxe(e,t,r,i,Eje,o);return s.getOrCreateCacheForModuleName=(l,u,p)=>s.getOrCreateCacheForNonRelativeName(l,u,p),s}function Q5(e,t,r,i,o){return dxe(e,t,r,i,Sje,o)}function jq(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function Z5(e,t,r,i,o){return _R(e,t,jq(r),i,o)}function pxe(e,t,r,i){const o=ii(t);return r.getFromDirectoryCache(e,i,o,void 0)}function _R(e,t,r,i,o,s,l){var u,p,v;const f=Kg(r,i);s&&(r=s.commandLine.options),f&&(xo(i,m.Resolving_module_0_from_1,e,t),s&&xo(i,m.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const b=ii(t);let A=o==null?void 0:o.getFromDirectoryCache(e,l,b,s);if(A)f&&xo(i,m.Resolution_for_module_0_was_found_in_cache_from_location_1,e,b);else{let I=r.moduleResolution;switch(I===void 0?(I=_d(r),f&&xo(i,m.Module_resolution_kind_is_not_specified_using_0,$x[I])):f&&xo(i,m.Explicitly_specified_module_resolution_kind_Colon_0,$x[I]),(u=sd)==null||u.logStartResolveModule(e),I){case 3:A=Rje(e,t,r,i,o,s,l);break;case 99:A=Dje(e,t,r,i,o,s,l);break;case 2:A=fle(e,t,r,i,o,s,l?nb(r,l):void 0);break;case 1:A=vle(e,t,r,i,o,s);break;case 100:A=ple(e,t,r,i,o,s,l?nb(r,l):void 0);break;default:return N.fail(`Unexpected moduleResolution: ${I}`)}A&&A.resolvedModule&&((p=sd)==null||p.logInfoEvent(`Module "${e}" resolved to "${A.resolvedModule.resolvedFileName}"`)),(v=sd)==null||v.logStopResolveModule(A&&A.resolvedModule?""+A.resolvedModule.resolvedFileName:"null"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(b,s).set(e,l,A),tu(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(b,A))}return f&&(A.resolvedModule?A.resolvedModule.packageId?xo(i,m.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,A.resolvedModule.resolvedFileName,Fy(A.resolvedModule.packageId)):xo(i,m.Module_name_0_was_successfully_resolved_to_1,e,A.resolvedModule.resolvedFileName):xo(i,m.Module_name_0_was_not_resolved,e)),A}function fxe(e,t,r,i,o){const s=Aje(e,t,i,o);return s?s.value:tu(t)?Ije(e,t,r,i,o):xje(e,t,i,o)}function Aje(e,t,r,i){var o;const{baseUrl:s,paths:l,configFile:u}=i.compilerOptions;if(l&&!Fp(t)){i.traceEnabled&&(s&&xo(i.host,m.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),xo(i.host,m.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const p=z3(i.compilerOptions,i.host),v=u!=null&&u.configFileSpecs?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=f7(l)):void 0;return gle(e,t,p,l,v,r,!1,i)}}function Ije(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&xo(o.host,m.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const s=va($r(r,t));let l,u;for(const p of o.compilerOptions.rootDirs){let v=va(p);Dl(v,cl)||(v+=cl);const f=ho(s,v)&&(u===void 0||u.length<v.length);o.traceEnabled&&xo(o.host,m.Checking_if_0_is_the_longest_matching_prefix_for_1_2,v,s,f),f&&(u=v,l=p)}if(u){o.traceEnabled&&xo(o.host,m.Longest_matching_prefix_for_0_is_1,s,u);const p=s.substr(u.length);o.traceEnabled&&xo(o.host,m.Loading_0_from_the_root_dir_1_candidate_location_2,p,u,s);const v=i(e,s,!Qm(r,o.host),o);if(v)return v;o.traceEnabled&&xo(o.host,m.Trying_other_entries_in_rootDirs);for(const f of o.compilerOptions.rootDirs){if(f===l)continue;const b=$r(va(f),p);o.traceEnabled&&xo(o.host,m.Loading_0_from_the_root_dir_1_candidate_location_2,p,f,b);const A=ii(b),I=i(e,b,!Qm(A,o.host),o);if(I)return I}o.traceEnabled&&xo(o.host,m.Module_resolution_using_rootDirs_has_failed)}}function xje(e,t,r,i){const{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&xo(i.host,m.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);const s=va($r(o,t));return i.traceEnabled&&xo(i.host,m.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!Qm(ii(s),i.host),i)}function dle(e,t,r){const{resolvedModule:i,failedLookupLocations:o}=Nje(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 Rje(e,t,r,i,o,s,l){return mxe(30,e,t,r,i,o,s,l)}function Dje(e,t,r,i,o,s,l){return mxe(30,e,t,r,i,o,s,l)}function mxe(e,t,r,i,o,s,l,u,p){const v=ii(r),f=u===99?32:0;let b=i.noDtsResolution?3:7;return A0(i)&&(b|=8),zw(e|f,t,v,i,o,s,b,!1,l,p)}function Nje(e,t,r){return zw(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function ple(e,t,r,i,o,s,l){const u=ii(t);let p=r.noDtsResolution?3:7;return A0(r)&&(p|=8),zw(lle(r),e,u,r,i,o,p,!1,s,l)}function fle(e,t,r,i,o,s,l,u){let p;return u?p=8:r.noDtsResolution?(p=3,A0(r)&&(p|=8)):p=A0(r)?15:7,zw(l?30:0,e,ii(t),r,i,o,p,!!u,s,l)}function mle(e,t,r){return zw(30,e,ii(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function zw(e,t,r,i,o,s,l,u,p,v){var f,b,A,I,R;const M=Kg(i,o),C=[],W=[],U=_d(i);v!=null||(v=nb(i,U===100||U===2?void 0:e&32?99:1));const X=[],ee={compilerOptions:i,host:o,traceEnabled:M,failedLookupLocations:C,affectingLocations:W,packageJsonInfoCache:s,features:e,conditions:v!=null?v:et,requestContainingDirectory:r,reportDiagnostic:re=>void X.push(re),isConfigLookup:u,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};M&&ZA(U)&&xo(o,m.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",ee.conditions.map(re=>`'${re}'`).join(", "));let V;if(U===2){const re=l&5,_e=l&-6;V=re&&G(re,ee)||_e&&G(_e,ee)||void 0}else V=G(l,ee);let se;if(ee.resolvedPackageDirectory&&!u&&!tu(t)){const re=(V==null?void 0:V.value)&&l&5&&!bxe(5,V.value.resolved.extension);if(((f=V==null?void 0:V.value)==null?void 0:f.isExternalLibraryImport)&&re&&e&8&&(v==null?void 0:v.includes("import"))){rb(ee,m.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const _e={...ee,features:ee.features&-9,reportDiagnostic:is},ye=G(l&5,_e);(b=ye==null?void 0:ye.value)!=null&&b.isExternalLibraryImport&&(se=ye.value.resolved.path)}else if((!(V!=null&&V.value)||re)&&U===2){rb(ee,m.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const _e={...ee.compilerOptions,moduleResolution:100},ye={...ee,compilerOptions:_e,features:30,conditions:nb(_e),reportDiagnostic:is},Q=G(l&5,ye);(A=Q==null?void 0:Q.value)!=null&&A.isExternalLibraryImport&&(se=Q.value.resolved.path)}}return oxe(t,(I=V==null?void 0:V.value)==null?void 0:I.resolved,(R=V==null?void 0:V.value)==null?void 0:R.isExternalLibraryImport,C,W,X,ee,s,se);function G(re,_e){const Q=fxe(re,t,r,(Y,oe,he,Ie)=>Uq(Y,oe,he,Ie,!0),_e);if(Q)return af({resolved:Q,isExternalLibraryImport:L0(Q.path)});if(tu(t)){const{path:Y,parts:oe}=_xe(r,t),he=Uq(re,Y,!1,_e,!0);return he&&af({resolved:he,isExternalLibraryImport:Mn(oe,"node_modules")})}else{let Y;if(e&2&&ho(t,"#")&&(Y=kje(re,t,r,_e,s,p)),!Y&&e&4&&(Y=Lje(re,t,r,_e,s,p)),!Y){if(t.includes(":")){M&&xo(o,m.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,K5(re));return}M&&xo(o,m.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,K5(re)),Y=Txe(re,t,r,_e,s,p)}return re&4&&(Y!=null||(Y=Nxe(t,_e))),Y&&{value:Y.value&&{resolved:Y.value,isExternalLibraryImport:!0}}}}}function _xe(e,t){const r=$r(e,t),i=Uc(r),o=il(i);return{path:o==="."||o===".."?Hc(va(r)):va(r),parts:i}}function Cje(e,t,r){if(!t.realpath)return e;const i=va(t.realpath(e));return r&&xo(t,m.Resolving_real_path_for_0_result_1,e,i),i}function Uq(e,t,r,i,o){if(i.traceEnabled&&xo(i.host,m.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,K5(e)),!kv(t)){if(!r){const l=ii(t);Qm(l,i.host)||(i.traceEnabled&&xo(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}const s=hR(e,t,r,i);if(s){const l=o?Bw(s.path):void 0,u=l?fE(l,!1,i):void 0;return RI(u,s)}}if(r||Qm(t,i.host)||(i.traceEnabled&&xo(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return hle(e,t,r,i,o)}function L0(e){return e.includes(Nh)}function Bw(e,t){const r=va(e),i=r.lastIndexOf(Nh);if(i===-1)return;const o=i+Nh.length;let s=hxe(r,o,t);return r.charCodeAt(o)===64&&(s=hxe(r,s,t)),r.slice(0,s)}function hxe(e,t,r){const i=e.indexOf(cl,t+1);return i===-1?r?e.length:t:i}function _le(e,t,r,i){return Fq(hR(e,t,r,i))}function hR(e,t,r,i){const o=gxe(e,t,r,i);if(o)return o;if(!(i.features&32)){const s=vxe(t,e,"",r,i);if(s)return s}}function gxe(e,t,r,i){if(!dc(t).includes("."))return;let s=Id(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));const l=t.substring(s.length);return i.traceEnabled&&xo(i.host,m.File_name_0_has_a_1_extension_stripping_it,t,l),vxe(s,e,l,r,i)}function Hq(e,t,r,i){return e&1&&Rc(t,Jk)||e&4&&Rc(t,qk)?qq(t,r,i)!==void 0?{path:t,ext:J3(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Nl(t,".json")?qq(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:gxe(e,t,r,i)}function vxe(e,t,r,i,o){if(!i){const l=ii(e);l&&(i=!Qm(l,o.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&s(".mts",r===".mts"||r===".d.mts")||t&4&&s(".d.mts",r===".mts"||r===".d.mts")||t&2&&s(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&s(".cts",r===".cts"||r===".d.cts")||t&4&&s(".d.cts",r===".cts"||r===".d.cts")||t&2&&s(".cjs")||void 0;case".json":return t&4&&s(".d.json.ts")||t&8&&s(".json")||void 0;case".tsx":case".jsx":return t&1&&(s(".tsx",r===".tsx")||s(".ts",r===".tsx"))||t&4&&s(".d.ts",r===".tsx")||t&2&&(s(".jsx")||s(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(s(".ts",r===".ts"||r===".d.ts")||s(".tsx",r===".ts"||r===".d.ts"))||t&4&&s(".d.ts",r===".ts"||r===".d.ts")||t&2&&(s(".js")||s(".jsx"))||o.isConfigLookup&&s(".json")||void 0;default:return t&4&&!Iu(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,u){const p=qq(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&u}}}function qq(e,t,r){var l;var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return yxe(e,t,r);const o=(l=Ug(e))!=null?l:"",s=o?Wk(e,o):e;return Ve(r.compilerOptions.moduleSuffixes,u=>yxe(s+u+o,t,r))}function yxe(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&xo(r.host,m.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&xo(r.host,m.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function hle(e,t,r,i,o=!0){const s=o?fE(t,r,i):void 0,l=s&&s.contents.packageJsonContent,u=s&&eW(s,i);return RI(s,Kq(e,t,r,i,l,u))}function Jq(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s;const l=5|(o?2:0),u=lle(t),p=Gw(i==null?void 0:i.getPackageJsonInfoCache(),r,t);p.conditions=nb(t),p.requestContainingDirectory=e.packageDirectory;const v=Kq(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,eW(e,p));if(s=Rn(s,v==null?void 0:v.path),u&8&&e.contents.packageJsonContent.exports){const f=N1([nb(t,99),nb(t,1)],Xm);for(const b of f){const A={...p,failedLookupLocations:[],conditions:b,host:r},I=Pje(e,e.contents.packageJsonContent.exports,A,l);if(I)for(const R of I)s=Lg(s,R.path)}}return e.contents.resolvedEntrypoints=s||!1}function Pje(e,t,r,i){let o;if(Do(t))for(const l of t)s(l);else if(typeof t=="object"&&t!==null&&tW(t))for(const l in t)s(t[l]);else s(t);return o;function s(l){var u,p;if(typeof l=="string"&&ho(l,"./"))if(l.includes("*")&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,dje(i),void 0,[yre(nI(l,"**/*"),".*")]).forEach(v=>{o=Lg(o,{path:v,ext:Qx(v),resolvedUsingTsExtension:void 0})})}else{const v=Uc(l).slice(2);if(v.includes("..")||v.includes(".")||v.includes("node_modules"))return!1;const f=$r(e.packageDirectory,l),b=To(f,(p=(u=r.host).getCurrentDirectory)==null?void 0:p.call(u)),A=Hq(i,b,!1,r);if(A)return o=Lg(o,A,(I,R)=>I.path===R.path),!0}else if(Array.isArray(l)){for(const v of l)if(s(v))return!0}else if(typeof l=="object"&&l!==null)return Ve(Yh(l),v=>{if(v==="default"||Mn(r.conditions,v)||Uw(r.conditions,v))return s(l[v]),!0})}}function Gw(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Kg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:et,requestContainingDirectory:void 0,reportDiagnostic:is,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function Vw(e,t){const r=Uc(e);for(r.pop();r.length>0;){const i=fE(Dy(r),!1,t);if(i)return i;r.pop()}}function eW(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=hje(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function fE(e,t,r){var i,o,s,l,u,p;const{host:v,traceEnabled:f}=r,b=$r(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(b);return}const A=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(b);if(A!==void 0){if($5(A))return f&&xo(v,m.File_0_exists_according_to_earlier_cached_lookups,b),(s=r.affectingLocations)==null||s.push(b),A.packageDirectory===e?A:{packageDirectory:e,contents:A.contents};A.directoryExists&&f&&xo(v,m.File_0_does_not_exist_according_to_earlier_cached_lookups,b),(l=r.failedLookupLocations)==null||l.push(b);return}const I=Qm(e,v);if(I&&v.fileExists(b)){const R=tC(b,v);f&&xo(v,m.Found_package_json_at_0,b);const M={packageDirectory:e,contents:{packageJsonContent:R,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(b,M),(u=r.affectingLocations)==null||u.push(b),M}else I&&f&&xo(v,m.File_0_does_not_exist,b),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(b,{packageDirectory:e,directoryExists:I}),(p=r.failedLookupLocations)==null||p.push(b)}function Kq(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=fje(o,t,i):l=e&4&&pje(o,t,i)||e&7&&mje(o,t,i)||void 0);const u=(A,I,R,M)=>{const C=Hq(A,I,R,M);if(C)return Fq(C);const W=A===4?5:A,U=M.features,X=M.candidateIsFromPackageJsonField;M.candidateIsFromPackageJsonField=!0,(o==null?void 0:o.type)!=="module"&&(M.features&=-33);const ee=Uq(W,I,R,M,!1);return M.features=U,M.candidateIsFromPackageJsonField=X,ee},p=l?!Qm(ii(l),i.host):void 0,v=r||!Qm(t,i.host),f=$r(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||Am(t,l))){const A=Im(t,l||f,!1);i.traceEnabled&&xo(i.host,m.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,Ae,A);const I=gle(e,A,t,s.paths,void 0,u,p||v,i);if(I)return ixe(I.value)}const b=l&&ixe(u(e,l,p,i));if(b)return b;if(!(i.features&32))return hR(e,f,v,i)}function bxe(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 jw(e){let t=e.indexOf(cl);return e[0]==="@"&&(t=e.indexOf(cl,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function tW(e){return Bn(Yh(e),t=>ho(t,"."))}function Mje(e){return!St(Yh(e),t=>ho(t,"."))}function Lje(e,t,r,i,o,s){var l,u;const p=To($r(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),v=Vw(p,i);if(!v||!v.contents.packageJsonContent.exports||typeof v.contents.packageJsonContent.name!="string")return;const f=Uc(t),b=Uc(v.contents.packageJsonContent.name);if(!Bn(b,(C,W)=>f[W]===C))return;const A=f.slice(b.length),I=Pe(A)?`.${cl}${A.join(cl)}`:".";if(Jy(i.compilerOptions)&&!L0(r))return Xq(v,e,I,i,o,s);const R=e&5,M=e&-6;return Xq(v,R,I,i,o,s)||Xq(v,M,I,i,o,s)}function Xq(e,t,r,i,o,s){if(!!e.contents.packageJsonContent.exports){if(r==="."){let l;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&Mje(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Ls(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return Sxe(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(tW(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&xo(i.host,m.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),af(void 0);const l=Exe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&xo(i.host,m.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),af(void 0)}}function kje(e,t,r,i,o,s){var l,u;if(t==="#"||ho(t,"#/"))return i.traceEnabled&&xo(i.host,m.Invalid_import_specifier_0_has_no_possible_resolutions,t),af(void 0);const p=To($r(r,"dummy"),(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),v=Vw(p,i);if(!v)return i.traceEnabled&&xo(i.host,m.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),af(void 0);if(!v.contents.packageJsonContent.imports)return i.traceEnabled&&xo(i.host,m.package_json_scope_0_has_no_imports_defined,v.packageDirectory),af(void 0);const f=Exe(e,i,o,s,t,v.contents.packageJsonContent.imports,v,!0);return f||(i.traceEnabled&&xo(i.host,m.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,v.packageDirectory),af(void 0))}function Yq(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 Exe(e,t,r,i,o,s,l,u){const p=Sxe(e,t,r,i,o,l,u);if(!Dl(o,cl)&&!o.includes("*")&&Ls(s,o)){const b=s[o];return p(b,"",!1,o)}const v=uS(Vn(Yh(s),b=>b.includes("*")||Dl(b,"/")),Yq);for(const b of v)if(t.features&16&&f(b,o)){const A=s[b],I=b.indexOf("*"),R=o.substring(b.substring(0,I).length,o.length-(b.length-1-I));return p(A,R,!0,b)}else if(Dl(b,"*")&&ho(o,b.substring(0,b.length-1))){const A=s[b],I=o.substring(b.length-1);return p(A,I,!0,b)}else if(ho(o,b)){const A=s[b],I=o.substring(b.length);return p(A,I,!1,b)}function f(b,A){if(Dl(b,"*"))return!1;const I=b.indexOf("*");return I===-1?!1:ho(A,b.substring(0,I))&&Dl(A,b.substring(I+1))}}function Sxe(e,t,r,i,o,s,l){return u;function u(p,v,f,b){if(typeof p=="string"){if(!f&&v.length>0&&!Dl(p,"/"))return t.traceEnabled&&xo(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);if(!ho(p,"./")){if(l&&!ho(p,"../")&&!ho(p,"/")&&!hp(p)){const V=f?p.replace(/\*/g,v):p+v;rb(t,m.Using_0_subpath_1_with_target_2,"imports",b,V),rb(t,m.Resolving_module_0_from_1,V,s.packageDirectory+"/");const se=zw(t.features,V,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return af(se.resolvedModule?{path:se.resolvedModule.resolvedFileName,extension:se.resolvedModule.extension,packageId:se.resolvedModule.packageId,originalPath:se.resolvedModule.originalPath,resolvedUsingTsExtension:se.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&xo(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0)}const C=(Fp(p)?Uc(p).slice(1):Uc(p)).slice(1);if(C.includes("..")||C.includes(".")||C.includes("node_modules"))return t.traceEnabled&&xo(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);const W=$r(s.packageDirectory,p),U=Uc(v);if(U.includes("..")||U.includes(".")||U.includes("node_modules"))return t.traceEnabled&&xo(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);t.traceEnabled&&xo(t.host,m.Using_0_subpath_1_with_target_2,l?"imports":"exports",b,f?p.replace(/\*/g,v):p+v);const X=A(f?W.replace(/\*/g,v):W+v),ee=R(X,v,$r(s.packageDirectory,"package.json"),l);return ee||af(RI(s,Hq(e,X,!1,t)))}else if(typeof p=="object"&&p!==null)if(Array.isArray(p)){if(!Pe(p))return t.traceEnabled&&xo(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);for(const M of p){const C=u(M,v,f,b);if(C)return C}}else{rb(t,m.Entering_conditional_exports);for(const M of Yh(p))if(M==="default"||t.conditions.includes(M)||Uw(t.conditions,M)){rb(t,m.Matched_0_condition_1,l?"imports":"exports",M);const C=p[M],W=u(C,v,f,b);if(W)return rb(t,m.Resolved_under_condition_0,M),rb(t,m.Exiting_conditional_exports),W;rb(t,m.Failed_to_resolve_under_condition_0,M)}else rb(t,m.Saw_non_matching_condition_0,M);rb(t,m.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&xo(t.host,m.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),af(void 0);return t.traceEnabled&&xo(t.host,m.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),af(void 0);function A(M){var C,W;return M===void 0?M:To(M,(W=(C=t.host).getCurrentDirectory)==null?void 0:W.call(C))}function I(M,C){return Hc($r(M,C))}function R(M,C,W,U){var X,ee,V,se;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!M.includes("/node_modules/")&&(t.compilerOptions.configFile?Am(s.packageDirectory,A(t.compilerOptions.configFile.fileName),!$q(t)):!0)){const re=Gv({useCaseSensitiveFileNames:()=>$q(t)}),_e=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const ye=A(cP(t.compilerOptions,()=>[],((ee=(X=t.host).getCurrentDirectory)==null?void 0:ee.call(X))||"",re));_e.push(ye)}else if(t.requestContainingDirectory){const ye=A($r(t.requestContainingDirectory,"index.ts")),Q=A(cP(t.compilerOptions,()=>[ye,A(W)],((se=(V=t.host).getCurrentDirectory)==null?void 0:se.call(V))||"",re));_e.push(Q);let Y=Hc(Q);for(;Y&&Y.length>1;){const oe=Uc(Y);oe.pop();const he=Dy(oe);_e.unshift(he),Y=Hc(he)}}_e.length>1&&t.reportDiagnostic($l(U?m.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:m.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,C===""?".":C,W));for(const ye of _e){const Q=G(ye);for(const Y of Q)if(Am(Y,M,!$q(t))){const oe=M.slice(Y.length+1),he=$r(ye,oe),Ie=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const de of Ie)if(Nl(he,de)){const ie=voe(he);for(const ge of ie){if(!bxe(e,ge))continue;const Ce=dL(he,ge,de,!$q(t));if(t.host.fileExists(Ce))return af(RI(s,Hq(e,Ce,!1,t)))}}}}}return;function G(re){var _e,ye;const Q=t.compilerOptions.configFile?((ye=(_e=t.host).getCurrentDirectory)==null?void 0:ye.call(_e))||"":re,Y=[];return t.compilerOptions.declarationDir&&Y.push(A(I(Q,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&Y.push(A(I(Q,t.compilerOptions.outDir))),Y}}}}function Uw(e,t){if(!e.includes("types")||!ho(t,"types@"))return!1;const r=tL.tryParse(t.substring(6));return r?r.test(Ae):!1}function Txe(e,t,r,i,o,s){return Axe(e,t,r,i,!1,o,s)}function wje(e,t,r){return Axe(4,e,t,r,!0,void 0,void 0)}function Axe(e,t,r,i,o,s,l){const u=i.features===0?void 0:i.features&32?99:1,p=e&5,v=e&-6;if(p){rb(i,m.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,K5(p));const b=f(p);if(b)return b}if(v&&!o)return rb(i,m.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,K5(v)),f(v);function f(b){return xm(wu(r),A=>{if(dc(A)!=="node_modules"){const I=Dxe(s,t,u,A,l,i);return I||af(Ixe(b,t,A,i,o,s,l))}})}}function Ixe(e,t,r,i,o,s,l){const u=$r(r,"node_modules"),p=Qm(u,i.host);if(!p&&i.traceEnabled&&xo(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!o){const v=xxe(e,t,u,p,i,s,l);if(v)return v}if(e&4){const v=$r(u,"@types");let f=p;return p&&!Qm(v,i.host)&&(i.traceEnabled&&xo(i.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,v),f=!1),xxe(4,Rxe(t,i),v,f,i,s,l)}}function xxe(e,t,r,i,o,s,l){var W;var u,p;const v=va($r(r,t)),{packageName:f,rest:b}=jw(t),A=$r(r,f);let I,R=fE(v,!i,o);if(b!==""&&R&&(!(o.features&8)||!Ls((W=(u=I=fE(A,!i,o))==null?void 0:u.contents.packageJsonContent)!=null?W:et,"exports"))){const U=hR(e,v,!i,o);if(U)return Fq(U);const X=Kq(e,v,!i,o,R.contents.packageJsonContent,eW(R,o));return RI(R,X)}const M=(U,X,ee,V)=>{let se=(b||!(V.features&32))&&hR(U,X,ee,V)||Kq(U,X,ee,V,R&&R.contents.packageJsonContent,R&&eW(R,V));return!se&&R&&(R.contents.packageJsonContent.exports===void 0||R.contents.packageJsonContent.exports===null)&&V.features&32&&(se=hR(U,$r(X,"index.js"),ee,V)),RI(R,se)};if(b!==""&&(R=I!=null?I:fE(A,!i,o)),R&&(o.resolvedPackageDirectory=!0),R&&R.contents.packageJsonContent.exports&&o.features&8)return(p=Xq(R,e,$r(".",b),o,s,l))==null?void 0:p.value;const C=b!==""&&R?eW(R,o):void 0;if(C){o.traceEnabled&&xo(o.host,m.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,C.version,Ae,b);const U=i&&Qm(A,o.host),X=gle(e,b,A,C.paths,void 0,M,!U,o);if(X)return X.value}return M(e,v,!i,o)}function gle(e,t,r,i,o,s,l,u){o||(o=f7(i));const p=XU(o,t);if(p){const v=wo(p)?void 0:Zne(p,t),f=wo(p)?p:Qne(p);return u.traceEnabled&&xo(u.host,m.Module_name_0_matched_pattern_1,t,f),{value:Ve(i[f],A=>{const I=v?nI(A,v):A,R=va($r(r,I));u.traceEnabled&&xo(u.host,m.Trying_substitution_0_candidate_module_location_Colon_1,A,I);const M=Ug(A);if(M!==void 0){const C=qq(R,l,u);if(C!==void 0)return Fq({path:C,ext:M,resolvedUsingTsExtension:void 0})}return s(e,R,l||!Qm(ii(R),u.host),u)})}}}function Rxe(e,t){const r=gR(e);return t.traceEnabled&&r!==e&&xo(t.host,m.Scoped_package_detected_looking_in_0,r),r}function nW(e){return`@types/${gR(e)}`}function gR(e){if(ho(e,"@")){const t=e.replace(cl,Zq);if(t!==e)return t.slice(1)}return e}function YC(e){const t=uN(e,"@types/");return t!==e?Hw(t):e}function Hw(e){return e.includes(Zq)?"@"+e.replace(Zq,cl):e}function Dxe(e,t,r,i,o,s){const l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&xo(s.host,m.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function vle(e,t,r,i,o,s){const l=Kg(r,i),u=[],p=[],v=ii(t),f=[],b={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:v,reportDiagnostic:R=>void f.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},A=I(5)||I(2|(r.resolveJsonModule?8:0));return oxe(e,A&&A.value,(A==null?void 0:A.value)&&L0(A.value.path),u,p,f,b,o);function I(R){const M=fxe(R,e,v,_le,b);if(M)return{value:M};if(tu(e)){const C=va($r(v,e));return af(_le(R,C,!1,b))}else{const C=xm(v,W=>{const U=Dxe(o,e,void 0,W,s,b);if(U)return U;const X=va($r(W,e));return af(_le(R,X,!1,b))});if(C)return C;if(R&5){let W=wje(e,v,b);return R&4&&(W!=null||(W=Nxe(e,b))),W}}}}function Nxe(e,t){if(!!t.compilerOptions.typeRoots)for(const r of t.compilerOptions.typeRoots){const i=cxe(r,e,t),o=Qm(r,t.host);!o&&t.traceEnabled&&xo(t.host,m.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);const s=hR(4,i,!o,t);if(s){const u=Bw(s.path),p=u?fE(u,!1,t):void 0;return af(RI(p,s))}const l=hle(4,i,!o,t);if(l)return af(l)}}function vR(e,t){return!!e.allowImportingTsExtensions||t&&Iu(t)}function yle(e,t,r,i,o,s){const l=Kg(r,i);l&&xo(i,m.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);const u=[],p=[],v=[],f={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:A=>void v.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},b=Ixe(4,e,o,f,!1,void 0,void 0);return axe(b,!0,u,p,v,f.resultFromCache,void 0)}function af(e){return e!==void 0?{value:e}:void 0}function rb(e,t,...r){e.traceEnabled&&xo(e.host,t,...r)}function $q(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var ble,Cxe,Qq,Nh,Zq,Oje=S({"src/compiler/moduleNameResolver.ts"(){ia(),Cxe=$r("node_modules","@types"),Qq=(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))(Qq||{}),Nh="/node_modules/",Zq="__"}});function Xg(e,t){return e.body&&!e.body.parent&&(Qa(e.body,e),Hy(e.body,!1)),e.body?Ele(e.body,t):1}function Ele(e,t=new Map){const r=fs(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=Wje(e,t);return t.set(r,i),i}function Wje(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(z1(e))return 2;break;case 272:case 271:if(!Qr(e,32))return 0;break;case 278:const r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(const o of r.exportClause.elements){const s=Fje(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Uo(e,o=>{const s=Ele(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:N.assertNever(s)}}),i}case 267:return Xg(e,t);case 80:if(e.flags&4096)return 0}return 1}function Fje(e,t){const r=e.propertyName||e.name;let i=e.parent;for(;i;){if(Yo(i)||O_(i)||io(i)){const o=i.statements;let s;for(const l of o)if(AL(l,r)){l.parent||(Qa(l,i),Hy(l,!1));const u=Ele(l,t);if((s===void 0||u>s)&&(s=u),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function NI(e){return N.attachFlowNodeDebugInfo(e),e}function Sle(e,t){var r,i;sl("beforeBind"),(r=sd)==null||r.logStartBindFile(""+e.fileName),Mxe(e,t),(i=sd)==null||i.logStopBindFile(),sl("afterBind"),ef("Bind","beforeBind","afterBind")}function zje(){var e,t,r,i,o,s,l,u,p,v,f,b,A,I,R,M,C,W,U,X,ee,V,se=!1,G=0,re,_e,ye={flags:1},Q={flags:1},Y=q();return he;function oe(F,De,...st){return rm(Jn(F)||e,F,De,...st)}function he(F,De){var st,Vt;e=F,t=De,r=ps(t),V=Ie(e,De),_e=new Set,G=0,re=pu.getSymbolConstructor(),N.attachFlowNodeDebugInfo(ye),N.attachFlowNodeDebugInfo(Q),e.locals||((st=ur)==null||st.push(ur.Phase.Bind,"bindSourceFile",{path:e.path},!0),we(e),(Vt=ur)==null||Vt.pop(),e.symbolCount=G,e.classifiableNames=_e,oc()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,u=void 0,p=void 0,v=!1,f=void 0,b=void 0,A=void 0,I=void 0,R=void 0,M=void 0,C=void 0,U=void 0,X=!1,se=!1,ee=0}function Ie(F,De){return md(De,"alwaysStrict")&&!F.isDeclarationFile?!0:!!F.externalModuleIndicator}function de(F,De){return G++,new re(F,De)}function ie(F,De,st){F.flags|=st,De.symbol=F,F.declarations=Lg(F.declarations,De),st&1955&&!F.exports&&(F.exports=pa()),st&6240&&!F.members&&(F.members=pa()),F.constEnumOnlyModule&&F.flags&304&&(F.constEnumOnlyModule=!1),st&111551&&uk(F,De)}function ge(F){if(F.kind===277)return F.isExportEquals?"export=":"default";const De=Oo(F);if(De){if(Ou(F)){const st=am(De);return R_(F)?"__global":`"${st}"`}if(De.kind===167){const st=De.expression;if(nf(st))return bl(st.text);if(L3(st))return ma(st.operator)+st.operand.text;N.fail("Only computed properties with literal names have declaration names")}if(Qi(De)){const st=du(F);if(!st)return;const Vt=st.symbol;return Ek(Vt,De.escapedText)}return n_(De)?tI(De):N_(De)?HN(De):void 0}switch(F.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(ql(F)===2)return"export=";N.fail("Unknown binary declaration kind");break;case 324:return x2(F)?"__new":"__call";case 169:return N.assert(F.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${N.formatSyntaxKind(F.parent.kind)}, expected JSDocFunctionType`),"arg"+F.parent.parameters.indexOf(F)}}function Ce(F){return cd(F)?ks(F.name):Ki(N.checkDefined(ge(F)))}function qe(F,De,st,Vt,lr,ri,Yr){N.assert(Yr||!Gy(st));const uo=Qr(st,2048)||$u(st)&&st.name.escapedText==="default",Va=Yr?"__computed":uo&&De?"default":ge(st);let ja;if(Va===void 0)ja=de(0,"__missing");else if(ja=F.get(Va),Vt&2885600&&_e.add(Va),!ja)F.set(Va,ja=de(0,Va)),ri&&(ja.isReplaceableByMethod=!0);else{if(ri&&!ja.isReplaceableByMethod)return ja;if(ja.flags&lr){if(ja.isReplaceableByMethod)F.set(Va,ja=de(0,Va));else if(!(Vt&3&&ja.flags&67108864)){cd(st)&&Qa(st.name,st);let Vl=ja.flags&2?m.Cannot_redeclare_block_scoped_variable_0:m.Duplicate_identifier_0,hu=!0;(ja.flags&384||Vt&384)&&(Vl=m.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,hu=!1);let Mc=!1;Pe(ja.declarations)&&(uo||ja.declarations&&ja.declarations.length&&st.kind===277&&!st.isExportEquals)&&(Vl=m.A_module_cannot_have_multiple_default_exports,hu=!1,Mc=!0);const Cp=[];Lm(st)&&Hl(st.type)&&Qr(st,32)&&ja.flags&2887656&&Cp.push(oe(st,m.Did_you_mean_0,`export type { ${Ki(st.name.escapedText)} }`));const qd=Oo(st)||st;Ve(ja.declarations,(gs,Wf)=>{const Ff=Oo(gs)||gs,Hi=hu?oe(Ff,Vl,Ce(gs)):oe(Ff,Vl);e.bindDiagnostics.push(Mc?Fa(Hi,oe(qd,Wf===0?m.Another_export_default_is_here:m.and_here)):Hi),Mc&&Cp.push(oe(Ff,m.The_first_export_default_is_here))});const ub=hu?oe(qd,Vl,Ce(st)):oe(qd,Vl);e.bindDiagnostics.push(Fa(ub,...Cp)),ja=de(0,Va)}}}return ie(ja,st,Vt),ja.parent?N.assert(ja.parent===De,"Existing symbol parent should match new one"):ja.parent=De,ja}function Se(F,De,st){const Vt=!!(c0(F)&32)||Le(F);if(De&2097152)return F.kind===281||F.kind===271&&Vt?qe(o.symbol.exports,o.symbol,F,De,st):(N.assertNode(o,hh),qe(o.locals,void 0,F,De,st));if(om(F)&&N.assert(dr(F)),!Ou(F)&&(Vt||o.flags&128)){if(!hh(o)||!o.locals||Qr(F,2048)&&!ge(F))return qe(o.symbol.exports,o.symbol,F,De,st);const lr=De&111551?1048576:0,ri=qe(o.locals,void 0,F,lr,st);return ri.exportSymbol=qe(o.symbol.exports,o.symbol,F,De,st),F.localSymbol=ri,ri}else return N.assertNode(o,hh),qe(o.locals,void 0,F,De,st)}function Le(F){if(F.parent&&nc(F)&&(F=F.parent),!om(F))return!1;if(!mw(F)&&!!F.fullName)return!0;const De=Oo(F);return De?!!(Nk(De.parent)&&lc(De.parent)||Yu(De.parent)&&c0(De.parent)&32):!1}function Ne(F,De){const st=o,Vt=s,lr=l;if(De&1?(F.kind!==219&&(s=o),o=l=F,De&32&&(o.locals=pa(),Qn(o))):De&2&&(l=F,De&32&&(l.locals=void 0)),De&4){const ri=f,Yr=b,uo=A,Va=I,ja=C,Vl=U,hu=X,Mc=De&16&&!Qr(F,1024)&&!F.asteriskToken&&!!xS(F)||F.kind===175;Mc||(f=NI({flags:2}),De&144&&(f.node=F)),I=Mc||F.kind===176||dr(F)&&(F.kind===262||F.kind===218)?Nn():void 0,C=void 0,b=void 0,A=void 0,U=void 0,X=!1,He(F),F.flags&=-5633,!(f.flags&1)&&De&8&&nm(F.body)&&(F.flags|=512,X&&(F.flags|=1024),F.endFlowNode=f),F.kind===312&&(F.flags|=ee,F.endFlowNode=f),I&&(en(I,f),f=tr(I),(F.kind===176||F.kind===175||dr(F)&&(F.kind===262||F.kind===218))&&(F.returnFlowNode=f)),Mc||(f=ri),b=Yr,A=uo,I=Va,C=ja,U=Vl,X=hu}else De&64?(v=!1,He(F),N.assertNotNode(F,Ue),F.flags=v?F.flags|256:F.flags&-257):He(F);o=st,s=Vt,l=lr}function Oe(F){At(F,De=>De.kind===262?we(De):void 0),At(F,De=>De.kind!==262?we(De):void 0)}function At(F,De=we){F!==void 0&&Ve(F,De)}function be(F){Uo(F,we,At)}function He(F){const De=se;if(se=!1,qt(F)){be(F),gt(F),se=De;return}switch(F.kind>=243&&F.kind<=259&&!t.allowUnreachableCode&&(F.flowNode=f),F.kind){case 247:oo(F);break;case 246:Po(F);break;case 248:_a(F);break;case 249:case 250:Ba(F);break;case 245:Tn(F);break;case 253:case 257:On(F);break;case 252:case 251:pt(F);break;case 258:Pt(F);break;case 255:le(F);break;case 269:Fe(F);break;case 296:dt(F);break;case 244:j(F);break;case 256:Dt(F);break;case 224:gn(F);break;case 225:hn(F);break;case 226:if(jv(F)){se=De,pn(F);return}Y(F);break;case 220:We(F);break;case 227:Lt(F);break;case 260:me(F);break;case 211:case 212:ai(F);break;case 213:li(F);break;case 235:pr(F);break;case 353:case 345:case 347:ke(F);break;case 312:{Oe(F.statements),we(F.endOfFileToken);break}case 241:case 268:Oe(F.statements);break;case 208:J(F);break;case 169:fe(F);break;case 210:case 209:case 303:case 230:se=De;default:be(F);break}gt(F),se=De}function it(F){switch(F.kind){case 80:case 81:case 110:case 211:case 212:return yt(F);case 213:return Ze(F);case 217:if(aR(F))return!1;case 235:return it(F.expression);case 226:return on(F);case 224:return F.operator===54&&it(F.operand);case 221:return it(F.expression)}return!1}function Ft(F){return ZN(F)||(Br(F)||vI(F)||Vd(F))&&Ft(F.expression)||vr(F)&&F.operatorToken.kind===28&&Ft(F.right)||el(F)&&(nf(F.argumentExpression)||Jl(F.argumentExpression))&&Ft(F.expression)||Wc(F)&&Ft(F.left)}function yt(F){return Ft(F)||Xu(F)&&yt(F.expression)}function Ze(F){if(F.arguments){for(const De of F.arguments)if(yt(De))return!0}return!!(F.expression.kind===211&&yt(F.expression.expression))}function It(F,De){return Z2(F)&&Yt(F.expression)&&hs(De)}function on(F){switch(F.operatorToken.kind){case 64:case 76:case 77:case 78:return yt(F.left);case 35:case 36:case 37:case 38:return Yt(F.left)||Yt(F.right)||It(F.right,F.left)||It(F.left,F.right)||DN(F.right)&&it(F.left)||DN(F.left)&&it(F.right);case 104:return Yt(F.left);case 103:return it(F.right);case 28:return it(F.right)}return!1}function Yt(F){switch(F.kind){case 217:return Yt(F.expression);case 226:switch(F.operatorToken.kind){case 64:return Yt(F.left);case 28:return Yt(F.right)}}return yt(F)}function Nn(){return NI({flags:4,antecedents:void 0})}function Xn(){return NI({flags:8,antecedents:void 0})}function yn(F,De,st){return NI({flags:1024,target:F,antecedents:De,antecedent:st})}function tn(F){F.flags|=F.flags&2048?4096:2048}function en(F,De){!(De.flags&1)&&!Mn(F.antecedents,De)&&((F.antecedents||(F.antecedents=[])).push(De),tn(De))}function gi(F,De,st){return De.flags&1?De:st?(st.kind===112&&F&64||st.kind===97&&F&32)&&!F6(st)&&!cj(st.parent)?ye:it(st)?(tn(De),NI({flags:F,antecedent:De,node:st})):De:F&32?De:ye}function bo(F,De,st,Vt){return tn(F),NI({flags:128,antecedent:F,switchStatement:De,clauseStart:st,clauseEnd:Vt})}function Ui(F,De,st){tn(De);const Vt=NI({flags:F,antecedent:De,node:st});return C&&en(C,Vt),Vt}function Co(F,De){return tn(F),NI({flags:512,antecedent:F,node:De})}function tr(F){const De=F.antecedents;return De?De.length===1?De[0]:F:ye}function Ci(F){const De=F.parent;switch(De.kind){case 245:case 247:case 246:return De.expression===F;case 248:case 227:return De.condition===F}return!1}function Nr(F){for(;;)if(F.kind===217)F=F.expression;else if(F.kind===224&&F.operator===54)F=F.operand;else return Dk(F)}function Kt(F){return NU(Ss(F))}function nt(F){for(;Vd(F.parent)||Zy(F.parent)&&F.parent.operator===54;)F=F.parent;return!Ci(F)&&!Nr(F.parent)&&!(Xu(F.parent)&&F.parent.expression===F)}function Bt(F,De,st,Vt){const lr=R,ri=M;R=st,M=Vt,F(De),R=lr,M=ri}function Dn(F,De,st){Bt(we,F,De,st),(!F||!Kt(F)&&!Nr(F)&&!(Xu(F)&&TN(F)))&&(en(De,gi(32,f,F)),en(st,gi(64,f,F)))}function si(F,De,st){const Vt=b,lr=A;b=De,A=st,we(F),b=Vt,A=lr}function yi(F,De){let st=U;for(;st&&F.parent.kind===256;)st.continueTarget=De,st=st.next,F=F.parent;return De}function oo(F){const De=yi(F,Xn()),st=Nn(),Vt=Nn();en(De,f),f=De,Dn(F.expression,st,Vt),f=tr(st),si(F.statement,Vt,De),en(De,f),f=tr(Vt)}function Po(F){const De=Xn(),st=yi(F,Nn()),Vt=Nn();en(De,f),f=De,si(F.statement,Vt,st),en(st,f),f=tr(st),Dn(F.expression,De,Vt),f=tr(Vt)}function _a(F){const De=yi(F,Xn()),st=Nn(),Vt=Nn();we(F.initializer),en(De,f),f=De,Dn(F.condition,st,Vt),f=tr(st),si(F.statement,Vt,De),we(F.incrementor),en(De,f),f=tr(Vt)}function Ba(F){const De=yi(F,Xn()),st=Nn();we(F.expression),en(De,f),f=De,F.kind===250&&we(F.awaitModifier),en(st,f),we(F.initializer),F.initializer.kind!==261&&_t(F.initializer),si(F.statement,st,De),en(De,f),f=tr(st)}function Tn(F){const De=Nn(),st=Nn(),Vt=Nn();Dn(F.expression,De,st),f=tr(De),we(F.thenStatement),en(Vt,f),f=tr(st),we(F.elseStatement),en(Vt,f),f=tr(Vt)}function On(F){we(F.expression),F.kind===253&&(X=!0,I&&en(I,f)),f=ye}function Je(F){for(let De=U;De;De=De.next)if(De.name===F)return De}function mt(F,De,st){const Vt=F.kind===252?De:st;Vt&&(en(Vt,f),f=ye)}function pt(F){if(we(F.label),F.label){const De=Je(F.label.escapedText);De&&(De.referenced=!0,mt(F,De.breakTarget,De.continueTarget))}else mt(F,b,A)}function Pt(F){const De=I,st=C,Vt=Nn(),lr=Nn();let ri=Nn();if(F.finallyBlock&&(I=lr),en(ri,f),C=ri,we(F.tryBlock),en(Vt,f),F.catchClause&&(f=tr(ri),ri=Nn(),en(ri,f),C=ri,we(F.catchClause),en(Vt,f)),I=De,C=st,F.finallyBlock){const Yr=Nn();Yr.antecedents=Ro(Ro(Vt.antecedents,ri.antecedents),lr.antecedents),f=Yr,we(F.finallyBlock),f.flags&1?f=ye:(I&&lr.antecedents&&en(I,yn(Yr,lr.antecedents,f)),C&&ri.antecedents&&en(C,yn(Yr,ri.antecedents,f)),f=Vt.antecedents?yn(Yr,Vt.antecedents,f):ye)}else f=tr(Vt)}function le(F){const De=Nn();we(F.expression);const st=b,Vt=W;b=De,W=f,we(F.caseBlock),en(De,f);const lr=Ve(F.caseBlock.clauses,ri=>ri.kind===297);F.possiblyExhaustive=!lr&&!De.antecedents,lr||en(De,bo(W,F,0,0)),b=st,W=Vt,f=tr(De)}function Fe(F){const De=F.clauses,st=F.parent.expression.kind===112||it(F.parent.expression);let Vt=ye;for(let lr=0;lr<De.length;lr++){const ri=lr;for(;!De[lr].statements.length&&lr+1<De.length;)Vt===ye&&(f=W),we(De[lr]),lr++;const Yr=Nn();en(Yr,st?bo(W,F.parent,ri,lr+1):W),en(Yr,Vt),f=tr(Yr);const uo=De[lr];we(uo),Vt=f,!(f.flags&1)&&lr!==De.length-1&&t.noFallthroughCasesInSwitch&&(uo.fallthroughFlowNode=f)}}function dt(F){const De=f;f=W,we(F.expression),f=De,At(F.statements)}function j(F){we(F.expression),ot(F.expression)}function ot(F){if(F.kind===213){const De=F;De.expression.kind!==108&&ZN(De.expression)&&(f=Co(f,De))}}function Dt(F){const De=Nn();U={next:U,name:F.label.escapedText,breakTarget:De,continueTarget:void 0,referenced:!1},we(F.label),we(F.statement),!U.referenced&&!t.allowUnusedLabels&&Pc(tae(t),F.label,m.Unused_label),U=U.next,en(De,f),f=tr(De)}function Ye(F){F.kind===226&&F.operatorToken.kind===64?_t(F.left):_t(F)}function _t(F){if(Ft(F))f=Ui(16,f,F);else if(F.kind===209)for(const De of F.elements)De.kind===230?_t(De.expression):Ye(De);else if(F.kind===210)for(const De of F.properties)De.kind===303?Ye(De.initializer):De.kind===304?_t(De.name):De.kind===305&&_t(De.expression)}function Gt(F,De,st){const Vt=Nn();F.operatorToken.kind===56||F.operatorToken.kind===77?Dn(F.left,Vt,st):Dn(F.left,De,Vt),f=tr(Vt),we(F.operatorToken),QN(F.operatorToken.kind)?(Bt(we,F.right,De,st),_t(F.left),en(De,gi(32,f,F)),en(st,gi(64,f,F))):Dn(F.right,De,st)}function gn(F){if(F.operator===54){const De=R;R=M,M=De,be(F),M=R,R=De}else be(F),(F.operator===46||F.operator===47)&&_t(F.operand)}function hn(F){be(F),(F.operator===46||F.operator===47)&&_t(F.operand)}function pn(F){se?(se=!1,we(F.operatorToken),we(F.right),se=!0,we(F.left)):(se=!0,we(F.left),se=!1,we(F.operatorToken),we(F.right)),_t(F.left)}function q(){return M5(F,De,st,Vt,lr,void 0);function F(Yr,uo){if(uo){uo.stackIndex++,Qa(Yr,i);const ja=V;Ar(Yr);const Vl=i;i=Yr,uo.skip=!1,uo.inStrictModeStack[uo.stackIndex]=ja,uo.parentStack[uo.stackIndex]=Vl}else uo={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const Va=Yr.operatorToken.kind;if(Rk(Va)||QN(Va)){if(nt(Yr)){const ja=Nn();Gt(Yr,ja,ja),f=tr(ja)}else Gt(Yr,R,M);uo.skip=!0}return uo}function De(Yr,uo,Va){if(!uo.skip){const ja=ri(Yr);return Va.operatorToken.kind===28&&ot(Yr),ja}}function st(Yr,uo,Va){uo.skip||we(Yr)}function Vt(Yr,uo,Va){if(!uo.skip){const ja=ri(Yr);return Va.operatorToken.kind===28&&ot(Yr),ja}}function lr(Yr,uo){if(!uo.skip){const Vl=Yr.operatorToken.kind;if(Vv(Vl)&&!og(Yr)&&(_t(Yr.left),Vl===64&&Yr.left.kind===212)){const hu=Yr.left;Yt(hu.expression)&&(f=Ui(256,f,Yr))}}const Va=uo.inStrictModeStack[uo.stackIndex],ja=uo.parentStack[uo.stackIndex];Va!==void 0&&(V=Va),ja!==void 0&&(i=ja),uo.skip=!1,uo.stackIndex--}function ri(Yr){if(Yr&&vr(Yr)&&!jv(Yr))return Yr;we(Yr)}}function We(F){be(F),F.expression.kind===211&&_t(F.expression)}function Lt(F){const De=Nn(),st=Nn(),Vt=Nn();Dn(F.condition,De,st),f=tr(De),we(F.questionToken),we(F.whenTrue),en(Vt,f),f=tr(st),we(F.colonToken),we(F.whenFalse),en(Vt,f),f=tr(Vt)}function L(F){const De=Kc(F)?void 0:F.name;if(na(De))for(const st of De.elements)L(st);else f=Ui(16,f,F)}function me(F){be(F),(F.initializer||s2(F.parent.parent))&&L(F)}function J(F){we(F.dotDotDotToken),we(F.propertyName),je(F.initializer),we(F.name)}function fe(F){At(F.modifiers),we(F.dotDotDotToken),we(F.questionToken),we(F.type),je(F.initializer),we(F.name)}function je(F){if(!F)return;const De=f;if(we(F),De===ye||De===f)return;const st=Nn();en(st,De),en(st,f),f=tr(st)}function ke(F){we(F.tagName),F.kind!==347&&F.fullName&&(Qa(F.fullName,F),Hy(F.fullName,!1)),typeof F.comment!="string"&&At(F.comment)}function Tt(F){be(F);const De=v0(F);De&&De.kind!==174&&ie(De.symbol,De,32)}function kt(F,De,st){Bt(we,F,De,st),(!Xu(F)||TN(F))&&(en(De,gi(32,f,F)),en(st,gi(64,f,F)))}function nn(F){switch(F.kind){case 211:we(F.questionDotToken),we(F.name);break;case 212:we(F.questionDotToken),we(F.argumentExpression);break;case 213:we(F.questionDotToken),At(F.typeArguments),At(F.arguments);break}}function En(F,De,st){const Vt=SN(F)?Nn():void 0;kt(F.expression,Vt||De,st),Vt&&(f=tr(Vt)),Bt(nn,F,De,st),TN(F)&&(en(De,gi(32,f,F)),en(st,gi(64,f,F)))}function or(F){if(nt(F)){const De=Nn();En(F,De,De),f=tr(De)}else En(F,R,M)}function pr(F){Xu(F)?or(F):be(F)}function ai(F){Xu(F)?or(F):be(F)}function li(F){if(Xu(F))or(F);else{const De=Ss(F.expression);De.kind===218||De.kind===219?(At(F.typeArguments),At(F.arguments),we(F.expression)):(be(F),F.expression.kind===108&&(f=Co(f,F)))}if(F.expression.kind===211){const De=F.expression;Ue(De.name)&&Yt(De.expression)&&mU(De.name)&&(f=Ui(256,f,F))}}function Qn(F){u&&(u.nextContainer=F),u=F}function qr(F,De,st){switch(o.kind){case 267:return Se(F,De,st);case 312:return Fi(F,De,st);case 231:case 263:return Ao(F,De,st);case 266:return qe(o.symbol.exports,o.symbol,F,De,st);case 187:case 329:case 210:case 264:case 292:return qe(o.symbol.members,o.symbol,F,De,st);case 184:case 185:case 179:case 180:case 330:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 324:case 175:case 265:case 200:return o.locals&&N.assertNode(o,hh),qe(o.locals,void 0,F,De,st)}}function Ao(F,De,st){return la(F)?qe(o.symbol.exports,o.symbol,F,De,st):qe(o.symbol.members,o.symbol,F,De,st)}function Fi(F,De,st){return mc(e)?Se(F,De,st):qe(e.locals,void 0,F,De,st)}function vi(F){const De=io(F)?F:ni(F.body,O_);return!!De&&De.statements.some(st=>rc(st)||zl(st))}function ya(F){F.flags&33554432&&!vi(F)?F.flags|=128:F.flags&=-129}function Xa(F){if(ya(F),Ou(F))if(Qr(F,32)&&Gs(F,m.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),wj(F))Qt(F);else{let De;if(F.name.kind===11){const{text:Vt}=F.name;De=V2(Vt),De===void 0&&Gs(F.name,m.Pattern_0_can_have_at_most_one_Asterisk_character,Vt)}const st=qr(F,512,110735);e.patternAmbientModules=Rn(e.patternAmbientModules,De&&!wo(De)?{pattern:De,symbol:st}:void 0)}else{const De=Qt(F);if(De!==0){const{symbol:st}=F;st.constEnumOnlyModule=!(st.flags&304)&&De===2&&st.constEnumOnlyModule!==!1}}}function Qt(F){const De=Xg(F),st=De!==0;return qr(F,st?512:1024,st?110735:0),De}function ba(F){const De=de(131072,ge(F));ie(De,F,131072);const st=de(2048,"__type");ie(st,F,2048),st.members=pa(),st.members.set(De.escapedName,De)}function Gl(F){return ka(F,4096,"__object")}function ao(F){return ka(F,4096,"__jsxAttributes")}function Ga(F,De,st){return qr(F,De,st)}function ka(F,De,st){const Vt=de(De,st);return De&106508&&(Vt.parent=o.symbol),ie(Vt,F,De),Vt}function Ts(F,De,st){switch(l.kind){case 267:Se(F,De,st);break;case 312:if(Bp(o)){Se(F,De,st);break}default:N.assertNode(l,hh),l.locals||(l.locals=pa(),Qn(l)),qe(l.locals,void 0,F,De,st)}}function oc(){if(!p)return;const F=o,De=u,st=l,Vt=i,lr=f;for(const ri of p){const Yr=ri.parent.parent;o=Vj(Yr)||e,l=yh(Yr)||e,f=NI({flags:2}),i=ri,we(ri.typeExpression);const uo=Oo(ri);if((mw(ri)||!ri.fullName)&&uo&&Nk(uo.parent)){const Va=lc(uo.parent);if(Va){Sl(e.symbol,uo.parent,Va,!!jn(uo,Vl=>Br(Vl)&&Vl.name.escapedText==="prototype"),!1);const ja=o;switch(lk(uo.parent)){case 1:case 2:Bp(e)?o=e:o=void 0;break;case 4:o=uo.parent.expression;break;case 3:o=uo.parent.expression.name;break;case 5:o=mE(e,uo.parent.expression)?e:Br(uo.parent.expression)?uo.parent.expression.name:uo.parent.expression;break;case 0:return N.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&Se(ri,524288,788968),o=ja}}else mw(ri)||!ri.fullName||ri.fullName.kind===80?(i=ri.parent,Ts(ri,524288,788968)):we(ri.fullName)}o=F,u=De,l=st,i=Vt,f=lr}function co(F){if(!e.parseDiagnostics.length&&!(F.flags&33554432)&&!(F.flags&16777216)&&!uoe(F)){const De=u0(F);if(De===void 0)return;V&&De>=119&&De<=127?e.bindDiagnostics.push(oe(F,da(F),ks(F))):De===135?mc(e)&&h3(F)?e.bindDiagnostics.push(oe(F,m.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,ks(F))):F.flags&65536&&e.bindDiagnostics.push(oe(F,m.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,ks(F))):De===127&&F.flags&16384&&e.bindDiagnostics.push(oe(F,m.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,ks(F)))}}function da(F){return du(F)?m.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?m.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:m.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function mu(F){F.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(oe(F,m.constructor_is_a_reserved_word,ks(F))))}function Ps(F){V&&tp(F.left)&&Vv(F.operatorToken.kind)&&_c(F,F.left)}function wa(F){V&&F.variableDeclaration&&_c(F,F.variableDeclaration.name)}function yl(F){if(V&&F.expression.kind===80){const De=AS(e,F.expression);e.bindDiagnostics.push(ru(e,De.start,De.length,m.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function wf(F){return Ue(F)&&(F.escapedText==="eval"||F.escapedText==="arguments")}function _c(F,De){if(De&&De.kind===80){const st=De;if(wf(st)){const Vt=AS(e,De);e.bindDiagnostics.push(ru(e,Vt.start,Vt.length,Ll(F),Rr(st)))}}}function Ll(F){return du(F)?m.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?m.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:m.Invalid_use_of_0_in_strict_mode}function fl(F){V&&_c(F,F.name)}function Wo(F){return du(F)?m.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?m.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:m.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function an(F){if(r<2&&l.kind!==312&&l.kind!==267&&!a2(l)){const De=AS(e,F);e.bindDiagnostics.push(ru(e,De.start,De.length,Wo(F)))}}function Xs(F){V&&_c(F,F.operand)}function su(F){V&&(F.operator===46||F.operator===47)&&_c(F,F.operand)}function _u(F){V&&Gs(F,m.with_statements_are_not_allowed_in_strict_mode)}function Dp(F){V&&ps(t)>=2&&(fie(F.statement)||Fl(F.statement))&&Gs(F.label,m.A_label_is_not_allowed_here)}function Gs(F,De,...st){const Vt=bh(e,F.pos);e.bindDiagnostics.push(ru(e,Vt.start,Vt.length,De,...st))}function Pc(F,De,st){pe(F,De,De,st)}function pe(F,De,st,Vt){Z(F,{pos:_0(De,e),end:st.end},Vt)}function Z(F,De,st){const Vt=ru(e,De.pos,De.end-De.pos,st);F?e.bindDiagnostics.push(Vt):e.bindSuggestionDiagnostics=Rn(e.bindSuggestionDiagnostics,{...Vt,category:2})}function we(F){if(!F)return;Qa(F,i),ur&&(F.tracingPath=e.path);const De=V;if(Ar(F),F.kind>165){const st=i;i=F;const Vt=eJ(F);Vt===0?He(F):Ne(F,Vt),i=st}else{const st=i;F.kind===1&&(i=F),gt(F),i=st}V=De}function gt(F){if(zp(F))if(dr(F))for(const De of F.jsDoc)we(De);else for(const De of F.jsDoc)Qa(De,F),Hy(De,!1)}function fn(F){if(!V)for(const De of F){if(!Nm(De))return;if(Er(De)){V=!0;return}}}function Er(F){const De=W1(e,F.expression);return De==='"use strict"'||De==="'use strict'"}function Ar(F){switch(F.kind){case 80:if(F.flags&4096){let Yr=F.parent;for(;Yr&&!om(Yr);)Yr=Yr.parent;Ts(Yr,524288,788968);break}case 110:return f&&(bt(F)||i.kind===304)&&(F.flowNode=f),co(F);case 166:f&&E3(F)&&(F.flowNode=f);break;case 236:case 108:F.flowNode=f;break;case 81:return mu(F);case 211:case 212:const De=F;f&&Ft(De)&&(De.flowNode=f),roe(De)&&Yn(De),dr(De)&&e.commonJsModuleIndicator&&ig(De)&&!rW(l,"module")&&qe(e.locals,void 0,De.expression,134217729,111550);break;case 226:switch(ql(F)){case 1:ap(F);break;case 2:sp(F);break;case 3:ra(F.left,F);break;case 6:Io(F);break;case 4:Cd(F);break;case 5:const Yr=F.left.expression;if(dr(F)&&Ue(Yr)){const uo=rW(l,Yr.escapedText);if(g3(uo==null?void 0:uo.valueDeclaration)){Cd(F);break}}Ic(F);break;case 0:break;default:N.fail("Unknown binary expression special property assignment kind")}return Ps(F);case 299:return wa(F);case 220:return yl(F);case 225:return Xs(F);case 224:return su(F);case 254:return _u(F);case 256:return Dp(F);case 197:v=!0;return;case 182:break;case 168:return lt(F);case 169:return Zg(F);case 260:return Vu(F);case 208:return F.flowNode=f,Vu(F);case 172:case 171:return Jr(F);case 303:case 304:return Hd(F,4,0);case 306:return Hd(F,8,900095);case 179:case 180:case 181:return qr(F,131072,0);case 174:case 173:return Hd(F,8192|(F.questionToken?16777216:0),Cm(F)?0:103359);case 262:return Np(F);case 176:return qr(F,16384,0);case 177:return Hd(F,32768,46015);case 178:return Hd(F,65536,78783);case 184:case 324:case 330:case 185:return ba(F);case 187:case 329:case 200:return Di(F);case 339:return Tt(F);case 210:return Gl(F);case 218:case 219:return hg(F);case 213:switch(ql(F)){case 7:return sc(F);case 8:return ac(F);case 9:return Qo(F);case 0:break;default:return N.fail("Unknown call expression assignment declaration kind")}dr(F)&&H_(F);break;case 231:case 263:return V=!0,Mh(F);case 264:return Ts(F,64,788872);case 265:return Ts(F,524288,788968);case 266:return Qg(F);case 267:return Xa(F);case 292:return ao(F);case 291:return Ga(F,4,0);case 271:case 274:case 276:case 281:return qr(F,2097152,2097152);case 270:return Gc(F);case 273:return Zl(F);case 278:return xl(F);case 277:return kl(F);case 312:return fn(F.statements),br();case 241:if(!a2(F.parent))return;case 268:return fn(F.statements);case 348:if(F.parent.kind===330)return Zg(F);if(F.parent.kind!==329)break;case 355:const lr=F,ri=lr.isBracketed||lr.typeExpression&&lr.typeExpression.type.kind===323?16777220:4;return qr(lr,ri,0);case 353:case 345:case 347:return(p||(p=[])).push(F);case 346:return we(F.typeExpression)}}function Jr(F){const De=Fd(F),st=De?98304:4,Vt=De?13247:0;return Hd(F,st|(F.questionToken?16777216:0),Vt)}function Di(F){return ka(F,2048,"__type")}function br(){if(ya(e),mc(e))Jo();else if(im(e)){Jo();const F=e.symbol;qe(e.symbol.exports,e.symbol,e,4,-1),e.symbol=F}}function Jo(){ka(e,512,`"${Id(e.fileName)}"`)}function kl(F){if(!o.symbol||!o.symbol.exports)ka(F,111551,ge(F));else{const De=D2(F)?2097152:4,st=qe(o.symbol.exports,o.symbol,F,De,-1);F.isExportEquals&&uk(st,F)}}function Gc(F){St(F.modifiers)&&e.bindDiagnostics.push(oe(F,m.Modifiers_cannot_appear_here));const De=io(F.parent)?mc(F.parent)?F.parent.isDeclarationFile?void 0:m.Global_module_exports_may_only_appear_in_declaration_files:m.Global_module_exports_may_only_appear_in_module_files:m.Global_module_exports_may_only_appear_at_top_level;De?e.bindDiagnostics.push(oe(F,De)):(e.symbol.globalExports=e.symbol.globalExports||pa(),qe(e.symbol.globalExports,e.symbol,F,2097152,2097152))}function xl(F){!o.symbol||!o.symbol.exports?ka(F,8388608,ge(F)):F.exportClause?xh(F.exportClause)&&(Qa(F.exportClause,F),qe(o.symbol.exports,o.symbol,F.exportClause,2097152,2097152)):qe(o.symbol.exports,o.symbol,F,8388608,0)}function Zl(F){F.name&&qr(F,2097152,2097152)}function Ns(F){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=F,e.externalModuleIndicator||Jo()),!0)}function ac(F){if(!Ns(F))return;const De=Of(F.arguments[0],void 0,(st,Vt)=>(Vt&&ie(Vt,st,67110400),Vt));De&&qe(De.exports,De,F,1048580,0)}function ap(F){if(!Ns(F))return;const De=Of(F.left.expression,void 0,(st,Vt)=>(Vt&&ie(Vt,st,67110400),Vt));if(De){const Vt=yk(F.right)&&(RS(F.left.expression)||ig(F.left.expression))?2097152:1048580;Qa(F.left,F),qe(De.exports,De,F.left,Vt,0)}}function sp(F){if(!Ns(F))return;const De=ok(F.right);if(LU(De)||o===e&&mE(e,De))return;if(za(De)&&Bn(De.properties,ip)){Ve(De.properties,Yc);return}const st=D2(F)?2097152:1049092,Vt=qe(e.symbol.exports,e.symbol,F,st|67108864,0);uk(Vt,F)}function Yc(F){qe(e.symbol.exports,e.symbol,F,69206016,0)}function Cd(F){if(N.assert(dr(F)),vr(F)&&Br(F.left)&&Qi(F.left.name)||Br(F)&&Qi(F.name))return;const st=zd(F,!1,!1);switch(st.kind){case 262:case 218:let Vt=st.symbol;if(vr(st.parent)&&st.parent.operatorToken.kind===64){const Yr=st.parent.left;j1(Yr)&&jy(Yr.expression)&&(Vt=Pd(Yr.expression.expression,s))}Vt&&Vt.valueDeclaration&&(Vt.members=Vt.members||pa(),Gy(F)?Me(F,Vt,Vt.members):qe(Vt.members,Vt,F,67108868,0),ie(Vt,Vt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const lr=st.parent,ri=la(st)?lr.symbol.exports:lr.symbol.members;Gy(F)?Me(F,lr.symbol,ri):qe(ri,lr.symbol,F,67108868,0,!0);break;case 312:if(Gy(F))break;st.commonJsModuleIndicator?qe(st.symbol.exports,st.symbol,F,1048580,0):qr(F,1,111550);break;case 267:break;default:N.failBadSyntaxKind(st)}}function Me(F,De,st){qe(st,De,F,4,0,!0,!0),Ot(F,De)}function Ot(F,De){De&&(De.assignmentDeclarationMembers||(De.assignmentDeclarationMembers=new Map)).set(fs(F),F)}function Yn(F){F.expression.kind===110?Cd(F):j1(F)&&F.parent.parent.kind===312&&(jy(F.expression)?ra(F,F.parent):ml(F))}function Io(F){Qa(F.left,F),Qa(F.right,F),$c(F.left.expression,F.left,!1,!0)}function Qo(F){const De=Pd(F.arguments[0].expression);De&&De.valueDeclaration&&ie(De,De.valueDeclaration,32),Kl(F,De,!0)}function ra(F,De){const st=F.expression,Vt=st.expression;Qa(Vt,st),Qa(st,F),Qa(F,De),$c(Vt,F,!0,!0)}function sc(F){let De=Pd(F.arguments[0]);const st=F.parent.parent.kind===312;De=Sl(De,F.arguments[0],st,!1,!1),Kl(F,De,!1)}function Ic(F){var De;const st=Pd(F.left.expression,l)||Pd(F.left.expression,o);if(!dr(F)&&!ioe(st))return;const Vt=z2(F.left);if(!(Ue(Vt)&&((De=rW(o,Vt.escapedText))==null?void 0:De.flags)&2097152))if(Qa(F.left,F),Qa(F.right,F),Ue(F.left.expression)&&o===e&&mE(e,F.left.expression))ap(F);else if(Gy(F)){ka(F,67108868,"__computed");const lr=Sl(st,F.left.expression,lc(F.left),!1,!1);Ot(F,lr)}else ml(sa(F.left,NS))}function ml(F){N.assert(!Ue(F)),Qa(F.expression,F),$c(F.expression,F,!1,!1)}function Sl(F,De,st,Vt,lr){return(F==null?void 0:F.flags)&2097152||(st&&!Vt&&(F=Of(De,F,(uo,Va,ja)=>{if(Va)return ie(Va,uo,67110400),Va;{const Vl=ja?ja.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=pa());return qe(Vl,ja,uo,67110400,110735)}})),lr&&F&&F.valueDeclaration&&ie(F,F.valueDeclaration,32)),F}function Kl(F,De,st){if(!De||!ff(De))return;const Vt=st?De.members||(De.members=pa()):De.exports||(De.exports=pa());let lr=0,ri=0;Js(GA(F))?(lr=8192,ri=103359):ca(F)&&DS(F)&&(St(F.arguments[2].properties,Yr=>{const uo=Oo(Yr);return!!uo&&Ue(uo)&&Rr(uo)==="set"})&&(lr|=65540,ri|=78783),St(F.arguments[2].properties,Yr=>{const uo=Oo(Yr);return!!uo&&Ue(uo)&&Rr(uo)==="get"})&&(lr|=32772,ri|=46015)),lr===0&&(lr=4,ri=0),qe(Vt,De,F,lr|67108864,ri&-67108865)}function lc(F){return vr(F.parent)?Ud(F.parent).parent.kind===312:F.parent.parent.kind===312}function $c(F,De,st,Vt){let lr=Pd(F,l)||Pd(F,o);const ri=lc(De);lr=Sl(lr,De.expression,ri,st,Vt),Kl(De,lr,st)}function ff(F){if(F.flags&1072)return!0;const De=F.valueDeclaration;if(De&&ca(De))return!!GA(De);let st=De?Wi(De)?De.initializer:vr(De)?De.right:Br(De)&&vr(De.parent)?De.parent.right:void 0:void 0;if(st=st&&ok(st),st){const Vt=jy(Wi(De)?De.name:vr(De)?De.left:De);return!!g0(vr(st)&&(st.operatorToken.kind===57||st.operatorToken.kind===61)?st.right:st,Vt)}return!1}function Ud(F){for(;vr(F.parent);)F=F.parent;return F.parent}function Pd(F,De=o){if(Ue(F))return rW(De,F.escapedText);{const st=Pd(F.expression);return st&&st.exports&&st.exports.get(Bg(F))}}function Of(F,De,st){if(mE(e,F))return e.symbol;if(Ue(F))return st(F,Pd(F),De);{const Vt=Of(F.expression,De,st),lr=sk(F);return Qi(lr)&&N.fail("unexpected PrivateIdentifier"),st(lr,Vt&&Vt.exports&&Vt.exports.get(Bg(F)),Vt)}}function H_(F){!e.commonJsModuleIndicator&&Ad(F,!1)&&Ns(F)}function Mh(F){if(F.kind===263)Ts(F,32,899503);else{const lr=F.name?F.name.escapedText:"__class";ka(F,32,lr),F.name&&_e.add(F.name.escapedText)}const{symbol:De}=F,st=de(4194308,"prototype"),Vt=De.exports.get(st.escapedName);Vt&&(F.name&&Qa(F.name,F),e.bindDiagnostics.push(oe(Vt.declarations[0],m.Duplicate_identifier_0,Il(st)))),De.exports.set(st.escapedName,st),st.parent=De}function Qg(F){return z1(F)?Ts(F,128,899967):Ts(F,256,899327)}function Vu(F){if(V&&_c(F,F.name),!na(F.name)){const De=F.kind===260?F:F.parent.parent;dr(F)&&V1(De)&&!d0(F)&&!(c0(F)&32)?qr(F,2097152,2097152):Mj(F)?Ts(F,2,111551):q1(F)?qr(F,1,111551):qr(F,1,111550)}}function Zg(F){if(!(F.kind===348&&o.kind!==330)&&(V&&!(F.flags&33554432)&&_c(F,F.name),na(F.name)?ka(F,1,"__"+F.parent.parameters.indexOf(F)):qr(F,1,111551),gp(F,F.parent))){const De=F.parent.parent;qe(De.symbol.members,De.symbol,F,4|(F.questionToken?16777216:0),0)}}function Np(F){!e.isDeclarationFile&&!(F.flags&33554432)&&UN(F)&&(ee|=4096),fl(F),V?(an(F),Ts(F,16,110991)):qr(F,16,110991)}function hg(F){!e.isDeclarationFile&&!(F.flags&33554432)&&UN(F)&&(ee|=4096),f&&(F.flowNode=f),fl(F);const De=F.name?F.name.escapedText:"__function";return ka(F,16,De)}function Hd(F,De,st){return!e.isDeclarationFile&&!(F.flags&33554432)&&UN(F)&&(ee|=4096),f&&p3(F)&&(F.flowNode=f),Gy(F)?ka(F,De,"__computed"):qr(F,De,st)}function te(F){const De=jn(F,st=>st.parent&&hI(st.parent)&&st.parent.extendsType===st);return De&&De.parent}function lt(F){var De,st;if(fm(F.parent)){const Vt=C3(F.parent);Vt?(N.assertNode(Vt,hh),(De=Vt.locals)!=null||(Vt.locals=pa()),qe(Vt.locals,void 0,F,262144,526824)):qr(F,262144,526824)}else if(F.parent.kind===195){const Vt=te(F.parent);Vt?(N.assertNode(Vt,hh),(st=Vt.locals)!=null||(Vt.locals=pa()),qe(Vt.locals,void 0,F,262144,526824)):ka(F,262144,ge(F))}else qr(F,262144,526824)}function zt(F){const De=Xg(F);return De===1||De===2&&tE(t)}function qt(F){if(!(f.flags&1))return!1;if(f===ye&&(WL(F)&&F.kind!==242||F.kind===263||F.kind===267&&zt(F))&&(f=Q,!t.allowUnreachableCode)){const st=eae(t)&&!(F.flags&33554432)&&(!Fl(F)||!!(Ov(F.declarationList)&7)||F.declarationList.declarations.some(Vt=>!!Vt.initializer));Bje(F,(Vt,lr)=>pe(st,Vt,lr,m.Unreachable_code_detected))}return!0}}function Bje(e,t){if($i(e)&&Pxe(e)&&Yo(e.parent)){const{statements:r}=e.parent,i=YU(r,e);yG(i,Pxe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function Pxe(e){return!Dc(e)&&!Gje(e)&&!x0(e)&&!(Fl(e)&&!(Ov(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function Gje(e){switch(e.kind){case 264:case 265:return!0;case 267:return Xg(e)!==1;case 266:return Qr(e,4096);default:return!1}}function mE(e,t){let r=0;const i=ZM();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),RS(t)||ig(t))return!0;if(Ue(t)){const o=rW(e,t.escapedText);if(!!o&&!!o.valueDeclaration&&Wi(o.valueDeclaration)&&!!o.valueDeclaration.initializer){const s=o.valueDeclaration.initializer;i.enqueue(s),Wc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function eJ(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(p3(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return ta(e.parent)||Pl(e.parent)?0:34}return 0}function rW(e,t){var u;var r,i,o,s;const l=(i=(r=ni(e,hh))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return(u=l.exportSymbol)!=null?u:l;if(io(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(x_(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var tJ,nJ,Mxe,Vje=S({"src/compiler/binder.ts"(){ia(),fS(),tJ=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(tJ||{}),nJ=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(nJ||{}),Mxe=zje()}});function Tle(e,t,r,i,o,s,l,u,p,v){return f;function f(b=()=>!0){const A=[],I=[];return{walkType:_e=>{try{return R(_e),{visitedTypes:xA(A),visitedSymbols:xA(I)}}finally{Yi(A),Yi(I)}},walkSymbol:_e=>{try{return re(_e),{visitedTypes:xA(A),visitedSymbols:xA(I)}}finally{Yi(A),Yi(I)}}};function R(_e){if(!(!_e||A[_e.id]||(A[_e.id]=_e,re(_e.symbol)))){if(_e.flags&524288){const Q=_e,Y=Q.objectFlags;Y&4&&M(_e),Y&32&&ee(_e),Y&3&&se(_e),Y&24&&G(Q)}_e.flags&262144&&C(_e),_e.flags&3145728&&W(_e),_e.flags&4194304&&U(_e),_e.flags&8388608&&X(_e)}}function M(_e){R(_e.target),Ve(v(_e),R)}function C(_e){R(u(_e))}function W(_e){Ve(_e.types,R)}function U(_e){R(_e.type)}function X(_e){R(_e.objectType),R(_e.indexType),R(_e.constraint)}function ee(_e){R(_e.typeParameter),R(_e.constraintType),R(_e.templateType),R(_e.modifiersType)}function V(_e){const ye=t(_e);ye&&R(ye.type),Ve(_e.typeParameters,R);for(const Q of _e.parameters)re(Q);R(e(_e)),R(r(_e))}function se(_e){G(_e),Ve(_e.typeParameters,R),Ve(i(_e),R),R(_e.thisType)}function G(_e){const ye=o(_e);for(const Q of ye.indexInfos)R(Q.keyType),R(Q.type);for(const Q of ye.callSignatures)V(Q);for(const Q of ye.constructSignatures)V(Q);for(const Q of ye.properties)re(Q)}function re(_e){if(!_e)return!1;const ye=Ia(_e);if(I[ye])return!1;if(I[ye]=_e,!b(_e))return!0;const Q=s(_e);return R(Q),_e.exports&&_e.exports.forEach(re),Ve(_e.declarations,Y=>{if(Y.type&&Y.type.kind===186){const oe=Y.type,he=l(p(oe.exprName));re(he)}}),!1}}}var jje=S({"src/compiler/symbolWalker.ts"(){ia()}});function qw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){const s=l();return{relativePreference:o!==void 0?tu(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:u=>{const p=u!==i.impliedNodeFormat?l(u):s;if((u!=null?u:i.impliedNodeFormat)===99)return vR(r,i.fileName)?[3,2]:[2];if(_d(r)===1)return p===2?[2,1]:[1,2];const v=vR(r,i.fileName);switch(p){case 2:return v?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return v?[1,0,3,2]:[1,0,2];case 0:return v?[0,1,3,2]:[0,1,2];default:N.assertNever(p)}}};function l(u){if(o!==void 0){if($1(o))return 2;if(Dl(o,"/index"))return 1}return cae(t,u!=null?u:i.impliedNodeFormat,r,i)}}function Uje(e,t,r,i,o,s,l={}){const u=Lxe(e,t,r,i,o,qw({},e,t,s),{},l);if(u!==s)return u}function iW(e,t,r,i,o,s={}){return Lxe(e,t,r,i,o,qw({},e,t),{},s)}function Hje(e,t,r,i,o,s={}){const l=rJ(t.fileName,i),u=Bxe(l,r,i,o,s);return $t(u,p=>Ile(p,l,t,i,e,o,!0,s.overrideImportMode))}function Lxe(e,t,r,i,o,s,l,u={}){const p=rJ(r,o),v=Bxe(p,i,o,l,u);return $t(v,f=>Ile(f,p,t,o,e,l,void 0,u.overrideImportMode))||Wxe(i,p,e,o,u.overrideImportMode||t.impliedNodeFormat,s)}function qje(e,t,r,i,o={}){return kxe(e,t,r,i,o)[0]}function kxe(e,t,r,i,o={}){var s;const l=e3(e);if(!l)return et;const u=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=u==null?void 0:u.get(t.path,l.path,i,o);return[p==null?void 0:p.moduleSpecifiers,l,p==null?void 0:p.modulePaths,u]}function wxe(e,t,r,i,o,s,l={}){return Oxe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function Oxe(e,t,r,i,o,s,l={},u){let p=!1;const v=Xje(e,t);if(v)return{moduleSpecifiers:[v],computedWithoutCache:p};let[f,b,A,I]=kxe(e,i,o,s,l);if(f)return{moduleSpecifiers:f,computedWithoutCache:p};if(!b)return{moduleSpecifiers:et,computedWithoutCache:p};p=!0,A||(A=Gxe(rJ(i.fileName,o),b.originalFileName,o));const R=Jje(A,r,i,o,s,l,u);return I==null||I.set(i.path,b.path,s,l,A,R),{moduleSpecifiers:R,computedWithoutCache:p}}function Jje(e,t,r,i,o,s={},l){const u=rJ(r.fileName,i),p=qw(o,t,r),v=Ve(e,M=>Ve(i.getFileIncludeReasons().get(ll(M.path,i.getCurrentDirectory(),u.getCanonicalFileName)),C=>{if(C.kind!==3||C.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==wce(r,C.index,t))return;const W=cO(r,C.index).text;return p.relativePreference!==1||!Fp(W)?W:void 0}));if(v)return[v];const f=St(e,M=>M.isInNodeModules);let b,A,I,R;for(const M of e){const C=M.isInNodeModules?Ile(M,u,r,i,t,o,void 0,s.overrideImportMode):void 0;if(b=Rn(b,C),C&&M.isRedirect)return b;if(!C){const W=Wxe(M.path,u,t,i,s.overrideImportMode||r.impliedNodeFormat,p,M.isRedirect);if(!W)continue;M.isRedirect?I=Rn(I,W):JV(W)?L0(W)?R=Rn(R,W):A=Rn(A,W):(l||!f||M.isInNodeModules)&&(R=Rn(R,W))}}return A!=null&&A.length?A:I!=null&&I.length?I:b!=null&&b.length?b:N.checkDefined(R)}function rJ(e,t){e=To(e,t.getCurrentDirectory());const r=ku(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=ii(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function Wxe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},u){const{baseUrl:p,paths:v,rootDirs:f}=r;if(u&&!v)return;const{sourceDirectory:b,canonicalSourceDirectory:A,getCanonicalFileName:I}=t,R=s(o),M=f&&Qje(f,e,b,I,R,r)||Jw(P1(Im(b,e,I)),R,r);if(!p&&!v&&!D7(r)||l===0)return u?void 0:M;const C=To(z3(r,i)||p,i.getCurrentDirectory()),W=Hxe(e,C,I);if(!W)return u?void 0:M;const U=u?void 0:$je(e,b,r,i,o),X=u||U===void 0?v&&Vxe(W,v,R,i,r):void 0;if(u)return X;const ee=U!=null?U:X===void 0&&p!==void 0?Jw(W,R,r):X;if(!ee)return M;if(l===1&&!Fp(ee))return ee;if(l===3&&!Fp(ee)){const V=r.configFilePath?ll(ii(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),se=ll(e,V,I),G=ho(A,V),re=ho(se,V);if(G&&!re||!G&&re)return ee;const _e=Ale(i,ii(se)),ye=Ale(i,b),Q=!w2(i);return Kje(_e,ye,Q)?M:ee}return qxe(ee)||oW(M)<oW(ee)?M:ee}function Kje(e,t,r){return e===t?!0:e===void 0||t===void 0?!1:kg(e,t,r)===0}function oW(e){let t=0;for(let r=ho(e,"./")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function Fxe(e,t){return Iy(t.isRedirect,e.isRedirect)||Ok(e.path,t.path)}function Ale(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):xm(t,r=>e.fileExists($r(r,"package.json"))?r:void 0)}function zxe(e,t,r,i,o){var s;const l=Gv(r),u=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,v=ll(t,u,l),f=r.redirectTargetsMap.get(v)||et,A=[...p?[p]:et,t,...f].map(W=>To(W,u));let I=!Bn(A,_C);if(!i){const W=Ve(A,U=>!(I&&_C(U))&&o(U,p===U));if(W)return W}const R=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),M=To(t,u);return R&&xm(ii(M),W=>{const U=R.get(Hc(ll(W,u,l)));if(!!U)return XV(e,W,l)?!1:Ve(A,X=>{if(!XV(X,W,l))return;const ee=Im(W,X,l);for(const V of U){const se=Ny(V,ee),G=o(se,X===p);if(I=!0,G)return G}})})||(i?Ve(A,W=>I&&_C(W)?void 0:o(W,W===p)):void 0)}function Bxe(e,t,r,i,o={}){var s;const l=ll(e.importingSourceFileName,r.getCurrentDirectory(),Gv(r)),u=ll(t,r.getCurrentDirectory(),Gv(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){const f=p.get(l,u,i,o);if(f!=null&&f.modulePaths)return f.modulePaths}const v=Gxe(e,t,r);return p&&p.setModulePaths(l,u,i,o,v),v}function Gxe(e,t,r){const i=new Map;zxe(e.importingSourceFileName,t,r,!0,(s,l)=>{const u=L0(s);i.set(s,{path:e.getCanonicalFileName(s),isRedirect:l,isInNodeModules:u})});const o=[];for(let s=e.canonicalSourceDirectory;i.size!==0;){const l=Hc(s);let u;i.forEach(({path:v,isRedirect:f,isInNodeModules:b},A)=>{ho(v,l)&&((u||(u=[])).push({path:A,isRedirect:f,isInNodeModules:b}),i.delete(A))}),u&&(u.length>1&&u.sort(Fxe),o.push(...u));const p=ii(s);if(p===s)break;s=p}if(i.size){const s=Go(i.entries(),([l,{isRedirect:u,isInNodeModules:p}])=>({path:l,isRedirect:u,isInNodeModules:p}));s.length>1&&s.sort(Fxe),o.push(...s)}return o}function Xje(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(l=>kj(l)&&(!F1(l)||!tu(am(l.name))));if(i)return i.name.text;const s=Vi(e.declarations,l=>{var u,p,v,f;if(!nc(l))return;const b=M(l);if(!(((u=b==null?void 0:b.parent)==null?void 0:u.parent)&&O_(b.parent)&&Ou(b.parent.parent)&&io(b.parent.parent.parent)))return;const A=(f=(v=(p=b.parent.parent.symbol.exports)==null?void 0:p.get("export="))==null?void 0:v.valueDeclaration)==null?void 0:f.expression;if(!A)return;const I=t.getSymbolAtLocation(A);if(!I)return;if(((I==null?void 0:I.flags)&2097152?t.getAliasedSymbol(I):I)===l.symbol)return b.parent.parent;function M(C){for(;C.flags&8;)C=C.parent;return C}})[0];if(s)return s.name.text}function Vxe(e,t,r,i,o){for(const l in t)for(const u of t[l]){const p=va(u),v=p.indexOf("*"),f=r.map(b=>({ending:b,value:Jw(e,[b],o)}));if(Ug(p)&&f.push({ending:void 0,value:e}),v!==-1){const b=p.substring(0,v),A=p.substring(v+1);for(const{ending:I,value:R}of f)if(R.length>=b.length+A.length&&ho(R,b)&&Dl(R,A)&&s({ending:I,value:R})){const M=R.substring(b.length,R.length-A.length);if(!Fp(M))return nI(l,M)}}else if(St(f,b=>b.ending!==0&&p===b.value)||St(f,b=>b.ending===0&&p===b.value&&s(b)))return l}function s({ending:l,value:u}){return l!==0||u===Jw(e,[l],o,i)}}function aW(e,t,r,i,o,s,l,u,p){if(typeof s=="string"){const v=!w2(t),f=()=>t.getCommonSourceDirectory(),b=p&&LJ(r,e,v,f),A=p&&MJ(r,e,v,f),I=To($r(i,s),void 0),R=eI(r)?Id(r)+Rle(r,e):void 0;switch(u){case 0:if(R&&kg(R,I,v)===0||kg(r,I,v)===0||b&&kg(b,I,v)===0||A&&kg(A,I,v)===0)return{moduleFileToTry:o};break;case 1:if(R&&Am(I,R,v)){const U=Im(I,R,!1);return{moduleFileToTry:To($r($r(o,s),U),void 0)}}if(Am(I,r,v)){const U=Im(I,r,!1);return{moduleFileToTry:To($r($r(o,s),U),void 0)}}if(b&&Am(I,b,v)){const U=Im(I,b,!1);return{moduleFileToTry:$r(o,U)}}if(A&&Am(I,A,v)){const U=Im(I,A,!1);return{moduleFileToTry:$r(o,U)}}break;case 2:const M=I.indexOf("*"),C=I.slice(0,M),W=I.slice(M+1);if(R&&ho(R,C,v)&&Dl(R,W,v)){const U=R.slice(C.length,R.length-W.length);return{moduleFileToTry:nI(o,U)}}if(ho(r,C,v)&&Dl(r,W,v)){const U=r.slice(C.length,r.length-W.length);return{moduleFileToTry:nI(o,U)}}if(b&&ho(b,C,v)&&Dl(b,W,v)){const U=b.slice(C.length,b.length-W.length);return{moduleFileToTry:nI(o,U)}}if(A&&ho(A,C,v)&&Dl(A,W,v)){const U=A.slice(C.length,A.length-W.length);return{moduleFileToTry:nI(o,U)}}break}}else{if(Array.isArray(s))return Ve(s,v=>aW(e,t,r,i,o,v,l,u,p));if(typeof s=="object"&&s!==null){for(const v of Yh(s))if(v==="default"||l.indexOf(v)>=0||Uw(l,v)){const f=s[v],b=aW(e,t,r,i,o,f,l,u,p);if(b)return b}}}}function Yje(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&tW(s)?Ve(Yh(s),u=>{const p=To($r(o,u),void 0),v=Dl(u,"/")?1:u.includes("*")?2:0;return aW(e,t,r,i,p,s[u],l,v,!1)}):aW(e,t,r,i,o,s,l,0,!1)}function $je(e,t,r,i,o){var s,l,u;if(!i.readFile||!D7(r))return;const p=Ale(i,t);if(!p)return;const v=$r(p,"package.json"),f=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(v);if(cle(f)||!i.fileExists(v))return;const b=(f==null?void 0:f.contents.packageJsonContent)||K3(i.readFile(v)),A=b==null?void 0:b.imports;if(!A)return;const I=nb(r,o);return(u=Ve(Yh(A),R=>{if(!ho(R,"#")||R==="#"||ho(R,"#/"))return;const M=Dl(R,"/")?1:R.includes("*")?2:0;return aW(r,i,e,p,R,A[R],I,M,!0)}))==null?void 0:u.moduleFileToTry}function Qje(e,t,r,i,o,s){const l=jxe(t,e,i);if(l===void 0)return;const u=jxe(r,e,i),p=qi(u,f=>Wt(l,b=>P1(Im(f,b,i)))),v=NG(p,Ok);if(!!v)return Jw(v,o,s)}function Ile({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,u,p,v){if(!s.fileExists||!s.readFile)return;const f=y7(e);if(!f)return;const A=qw(u,l,o).getAllowedEndingsInPreferredOrder();let I=e,R=!1;if(!p){let ee=f.packageRootIndex,V;for(;;){const{moduleFileToTry:se,packageRootPath:G,blockedByExports:re,verbatimFromExports:_e}=X(ee);if(_d(l)!==1){if(re)return;if(_e)return se}if(G){I=G,R=!0;break}if(V||(V=se),ee=e.indexOf(cl,ee+1),ee===-1){I=Jw(V,A,l,s);break}}}if(t&&!R)return;const M=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),C=r(I.substring(0,f.topLevelNodeModulesIndex));if(!(ho(i,C)||M&&ho(r(M),C)))return;const W=I.substring(f.topLevelPackageNameIndex+1),U=YC(W);return _d(l)===1&&U===W?void 0:U;function X(ee){var V,se;const G=e.substring(0,ee),re=$r(G,"package.json");let _e=e,ye=!1;const Q=(se=(V=s.getPackageJsonInfoCache)==null?void 0:V.call(s))==null?void 0:se.getPackageJsonInfo(re);if($5(Q)||Q===void 0&&s.fileExists(re)){const Y=(Q==null?void 0:Q.contents.packageJsonContent)||K3(s.readFile(re)),oe=v||o.impliedNodeFormat;if(R7(l)){const de=G.substring(f.topLevelPackageNameIndex+1),ie=YC(de),ge=nb(l,oe),Ce=Y!=null&&Y.exports?Yje(l,s,e,G,ie,Y.exports,ge):void 0;if(Ce)return{...Ce,verbatimFromExports:!0};if(Y!=null&&Y.exports)return{moduleFileToTry:e,blockedByExports:!0}}const he=Y!=null&&Y.typesVersions?X5(Y.typesVersions):void 0;if(he){const de=e.slice(G.length+1),ie=Vxe(de,he.paths,A,s,l);ie===void 0?ye=!0:_e=$r(G,ie)}const Ie=(Y==null?void 0:Y.typings)||(Y==null?void 0:Y.types)||(Y==null?void 0:Y.main)||"index.js";if(wo(Ie)&&!(ye&&XU(f7(he.paths),Ie))){const de=ll(Ie,G,r),ie=r(_e);if(Id(de)===Id(ie))return{packageRootPath:G,moduleFileToTry:_e};if((Y==null?void 0:Y.type)!=="module"&&!Rc(ie,Kk)&&ho(ie,de)&&ii(ie)===o0(de)&&Id(dc(ie))==="index")return{packageRootPath:G,moduleFileToTry:_e}}}else{const Y=r(_e.substring(f.packageRootIndex+1));if(Y==="index.d.ts"||Y==="index.js"||Y==="index.ts"||Y==="index.tsx")return{moduleFileToTry:_e,packageRootPath:G}}return{moduleFileToTry:_e}}}function Zje(e,t){if(!e.fileExists)return;const r=Oa(lC({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 jxe(e,t,r){return Vi(t,i=>{const o=Hxe(e,i,r);return o!==void 0&&qxe(o)?void 0:o})}function Jw(e,t,r,i){if(Rc(e,[".json",".mjs",".cjs"]))return e;const o=Id(e);if(e===o)return e;const s=t.indexOf(2),l=t.indexOf(3);if(Rc(e,[".mts",".cts"])&&l!==-1&&l<s)return e;if(Rc(e,[".d.mts",".mts",".d.cts",".cts"]))return o+xle(e,r);if(!Rc(e,[".d.ts"])&&Rc(e,[".ts"])&&e.includes(".d."))return Uxe(e);switch(t[0]){case 0:const u=Hx(o,"/index");return i&&u!==o&&Zje(i,u)?o:u;case 1:return o;case 2:return o+xle(e,r);case 3:if(Iu(e)){const p=t.findIndex(v=>v===0||v===1);return p!==-1&&p<s?o:o+xle(e,r)}return e;default:return N.assertNever(t[0])}}function Uxe(e){const t=dc(e);if(!Dl(e,".ts")||!t.includes(".d.")||Rc(t,[".d.ts"]))return;const r=Wk(e,".ts"),i=r.substring(r.lastIndexOf("."));return r.substring(0,r.indexOf(".d."))+i}function xle(e,t){var r;return(r=Rle(e,t))!=null?r:N.fail(`Extension ${uC(e)} is unsupported:: FileName:: ${e}`)}function Rle(e,t){const r=Ug(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 Hxe(e,t,r){const i=MA(t,e,t,r,!1);return hp(i)?void 0:i}function qxe(e){return ho(e,"..")}var Dle,Nle=S({"src/compiler/moduleSpecifiers.ts"(){ia(),Dle=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(Dle||{})}}),_E={};H(_E,{RelativePreference:()=>Dle,countPathComponents:()=>oW,forEachFileNameOfModule:()=>zxe,getModuleSpecifier:()=>iW,getModuleSpecifierPreferences:()=>qw,getModuleSpecifiers:()=>wxe,getModuleSpecifiersWithCacheInfo:()=>Oxe,getNodeModulesPackageName:()=>Hje,tryGetJSExtensionForFile:()=>Rle,tryGetModuleSpecifiersFromCache:()=>qje,tryGetRealFileNameForNonJsDeclarationFileName:()=>Uxe,updateModuleSpecifier:()=>Uje});var Cle=S({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){Nle()}});function eUe(){this.flags=0}function fs(e){return e.id||(e.id=Lle,Lle++),e.id}function Ia(e){return e.id||(e.id=Mle,Mle++),e.id}function iJ(e,t){const r=Xg(e);return r===1||t&&r===2}function Ple(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,u=pu.getSymbolConstructor(),p=pu.getTypeConstructor(),v=pu.getSignatureConstructor(),f=0,b=0,A=0,I=0,R=0,M=0,C,W,U=!1,X=pa(),ee=[1],V=e.getCompilerOptions(),se=ps(V),G=Wu(V),re=!!V.experimentalDecorators,_e=TC(V),ye=nae(V),Q=FS(V),Y=md(V,"strictNullChecks"),oe=md(V,"strictFunctionTypes"),he=md(V,"strictBindCallApply"),Ie=md(V,"strictPropertyInitialization"),de=md(V,"noImplicitAny"),ie=md(V,"noImplicitThis"),ge=md(V,"useUnknownInCatchVariables"),Ce=!!V.keyofStringsOnly,qe=Ce?1:0,Se=V.suppressExcessPropertyErrors?0:8192,Le=V.exactOptionalPropertyTypes,Ne=Pht(),Oe=ubt(),At=Y_(),be=pa(),He=ts(4,"undefined");He.declarations=[];var it=ts(1536,"globalThis",8);it.exports=be,it.declarations=[],be.set(it.escapedName,it);var Ft=ts(4,"arguments"),yt=ts(4,"require"),Ze=V.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",It=!V.verbatimModuleSyntax||!!V.importsNotUsedAsValues,on,Yt,Nn=0,Xn,yn=0;const tn={getNodeCount:()=>ad(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>ad(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>ad(e.getSourceFiles(),(n,a)=>n+a.symbolCount,b),getTypeCount:()=>f,getInstantiationCount:()=>A,getRelationCacheSizes:()=>({assignable:Jd.size,identity:lp.size,subtype:kh.size,strictSubtype:Bf.size}),isUndefinedSymbol:n=>n===He,isArgumentsSymbol:n=>n===Ft,isUnknownSymbol:n=>n===pt,getMergedSymbol:ds,getDiagnostics:fWe,getGlobalDiagnostics:xyt,getRecursionIdentity:Pee,getUnmatchedProperties:sye,getTypeOfSymbolAtLocation:(n,a)=>{const c=Lo(a);return c?yft(n,c):_t},getTypeOfSymbol:_r,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{const c=Lo(n,No);return c===void 0?N.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(N.assert(gp(c,c.parent)),UP(c,bl(a)))},getDeclaredTypeOfSymbol:nl,getPropertiesOfType:As,getPropertyOfType:(n,a)=>Sa(n,bl(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{const d=Lo(c);if(!d)return;const h=bl(a),y=lte(h,d);return y?qye(n,y):void 0},getTypeOfPropertyOfType:(n,a)=>Ke(n,bl(a)),getIndexInfoOfType:(n,a)=>Rg(n,a===0?ke:Tt),getIndexInfosOfType:yd,getIndexInfosOfIndexSymbol:tve,getSignaturesOfType:$o,getIndexTypeOfType:(n,a)=>d1(n,a===0?ke:Tt),getIndexType:n=>th(n),getBaseTypes:pp,getBaseTypeOfLiteralType:yv,getWidenedType:Yp,getTypeFromTypeNode:n=>{const a=Lo(n,Xi);return a?Ai(a):_t},getParameterType:y_,getParameterIdentifierInfoAtPosition:X_t,getPromisedTypeOfPromise:y8,getAwaitedType:n=>dA(n),getReturnTypeOfSignature:ys,isNullableType:gB,getNullableType:tB,getNonNullableType:bv,getNonOptionalType:wee,getTypeArguments:$s,typeToTypeNode:At.typeToTypeNode,indexInfoToIndexSignatureDeclaration:At.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:At.signatureToSignatureDeclaration,symbolToEntityName:At.symbolToEntityName,symbolToExpression:At.symbolToExpression,symbolToNode:At.symbolToNode,symbolToTypeParameterDeclarations:At.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:At.symbolToParameterDeclaration,typeParameterToDeclaration:At.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{const c=Lo(n);return c?Ryt(c,a):[]},getSymbolAtLocation:n=>{const a=Lo(n);return a?Jm(a,!0):void 0},getIndexInfosAtLocation:n=>{const a=Lo(n);return a?wyt(a):void 0},getShorthandAssignmentValueSymbol:n=>{const a=Lo(n);return a?Oyt(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{const a=Lo(n,$u);return a?Wyt(a):void 0},getExportSymbolOfSymbol(n){return ds(n.exportSymbol||n)},getTypeAtLocation:n=>{const a=Lo(n);return a?Px(a):_t},getTypeOfAssignmentPattern:n=>{const a=Lo(n,NN);return a&&Fte(a)||_t},getPropertySymbolOfDestructuringAssignment:n=>{const a=Lo(n,Ue);return a?Fyt(a):void 0},signatureToString:(n,a,c,d)=>zh(n,Lo(a),c,d),typeToString:(n,a,c)=>Kn(n,Lo(a),c),symbolToString:(n,a,c,d)=>Ti(n,Lo(a),c,d),typePredicateToString:(n,a,c)=>Bh(n,Lo(a),c),writeSignature:(n,a,c,d,h)=>zh(n,Lo(a),c,d,h),writeType:(n,a,c,d)=>Kn(n,Lo(a),c,d),writeSymbol:(n,a,c,d,h)=>Ti(n,Lo(a),c,d,h),writeTypePredicate:(n,a,c,d)=>Bh(n,Lo(a),c,d),getAugmentedPropertiesOfType:Jbe,getRootSymbols:EWe,getSymbolOfExpando:gte,getContextualType:(n,a)=>{const c=Lo(n,bt);if(!!c)return a&4?bo(c,()=>$d(c,a)):$d(c,a)},getContextualTypeForObjectLiteralElement:n=>{const a=Lo(n,Fg);return a?Mye(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{const c=Lo(n,O1);return c&&Pye(c,a)},getContextualTypeForJsxAttribute:n=>{const a=Lo(n,H6);return a&&w3e(a,void 0)},isContextSensitive:Kf,getTypeOfPropertyOfContextualType:b1,getFullyQualifiedName:Jp,getResolvedSignature:(n,a,c)=>Ui(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:en,getResolvedSignatureForSignatureHelp:(n,a,c)=>gi(n,()=>Ui(n,a,c,16)),getExpandedParameters:O4e,hasEffectiveRestParameter:Kh,containsArgumentsReference:Qge,getConstantValue:n=>{const a=Lo(n,xWe);return a?Kbe(a):void 0},isValidPropertyAccess:(n,a)=>{const c=Lo(n,iie);return!!c&&i_t(c,bl(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{const d=Lo(n,Br);return!!d&&d7e(d,a,c)},getSignatureFromDeclaration:n=>{const a=Lo(n,ta);return a?vm(a):void 0},isImplementationOfOverload:n=>{const a=Lo(n,ta);return a?AWe(a):void 0},getImmediateAliasedSymbol:Wye,getAliasedSymbol:Vc,getEmitResolver:sy,getExportsOfModule:wT,getExportsAndPropertiesOfModule:hD,forEachExportAndPropertyOfModule:gD,getSymbolWalker:Tle(Gct,Jf,ys,pp,__,_r,Hm,kd,jp,$s),getAmbientModules:Zbt,getJsxIntrinsicTagNamesAt:Wmt,isOptionalParameter:n=>{const a=Lo(n,No);return a?U4(a):!1},tryGetMemberInModuleExports:(n,a)=>OT(bl(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>vD(bl(n),a),tryFindAmbientModule:n=>ree(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>ree(n,!1),getApparentType:wd,getUnionType:ei,isTypeAssignableTo:Aa,createAnonymousType:Vs,createSignature:xg,createSymbol:ts,createIndexInfo:Hh,getAnyType:()=>j,getStringType:()=>ke,getStringLiteralType:Yd,getNumberType:()=>Tt,getNumberLiteralType:g_,getBigIntType:()=>kt,createPromiseType:DB,createArrayType:Uu,getElementTypeOfArrayType:eB,getBooleanType:()=>ai,getFalseType:n=>n?nn:En,getTrueType:n=>n?or:pr,getVoidType:()=>Qn,getUndefinedType:()=>We,getNullType:()=>fe,getESSymbolType:()=>li,getNeverType:()=>qr,getOptionalType:()=>J,getPromiseType:()=>Fz(!1),getPromiseLikeType:()=>T8e(!1),getAsyncIterableType:()=>{const n=fee(!1);if(n!==Wo)return n},isSymbolAccessible:Li,isArrayType:Yf,isTupleType:Ha,isArrayLikeType:yy,isEmptyAnonymousObjectType:Jh,isTypeInvalidDueToUnionDiscriminant:Sct,getExactOptionalProperties:Xdt,getAllPossiblePropertiesOfTypes:Tct,getSuggestedSymbolForNonexistentProperty:Xye,getSuggestionForNonexistentProperty:Yye,getSuggestedSymbolForNonexistentJSXAttribute:c7e,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>$ye(n,bl(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>e_t(n,bl(a),c),getSuggestedSymbolForNonexistentModule:ute,getSuggestionForNonexistentExport:t_t,getSuggestedSymbolForNonexistentClassMember:l7e,getBaseConstraintOfType:ju,getDefaultFromTypeParameter:n=>n&&n.flags&262144?JT(n):void 0,resolveName(n,a,c,d){return Tl(a,bl(n),c,void 0,void 0,!1,d)},getJsxNamespace:n=>Ki(J0(n)),getJsxFragmentFactory:n=>{const a=Ybe(n);return a&&Ki(jp(a).escapedText)},getAccessibleSymbolChain:Ib,getTypePredicateOfSignature:Jf,resolveExternalModuleName:n=>{const a=Lo(n,bt);return a&&vd(a,a,!0)},resolveExternalModuleSymbol:Mp,tryGetThisTypeAt:(n,a,c)=>{const d=Lo(n);return d&&Rye(d,a,c)},getTypeArgumentConstraint:n=>{const a=Lo(n,Xi);return a&&cgt(a)},getSuggestionDiagnostics:(n,a)=>{const c=Lo(n,io)||N.fail("Could not determine parsed source file.");if(dC(c,V,e))return et;let d;try{return i=a,Hbe(c),N.assert(!!(Zr(c).flags&1)),d=Hr(d,vT.getDiagnostics(c.fileName)),N5e(pWe(c),(h,y,x)=>{!d2(h)&&!dWe(y,!!(h.flags&33554432))&&(d||(d=[])).push({...x,category:2})}),d||et}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(tn)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Wr,isDeclarationVisible:p_,isPropertyAccessible:Zye,getTypeOnlyAliasDeclaration:Gf,getMemberOverrideModifierStatus:Gvt,isTypeParameterPossiblyReferenced:Hz,typeHasCallOrConstructSignatures:zte};function en(n,a){const c=new Set,d=[];bo(a,()=>Ui(n,d,void 0,0));for(const h of d)c.add(h);d.length=0,gi(a,()=>Ui(n,d,void 0,0));for(const h of d)c.add(h);return Go(c)}function gi(n,a){if(n=jn(n,yj),n){const c=[],d=[];for(;n;){const y=Zr(n);if(c.push([y,y.resolvedSignature]),y.resolvedSignature=void 0,Z1(n)){const x=eo(Cr(n)),k=x.type;d.push([x,k]),x.type=void 0}n=jn(n.parent,yj)}const h=a();for(const[y,x]of c)y.resolvedSignature=x;for(const[y,x]of d)y.type=x;return h}return a()}function bo(n,a){const c=jn(n,O1);if(c){let h=n;do Zr(h).skipDirectInference=!0,h=h.parent;while(h&&h!==c)}U=!0;const d=gi(n,a);if(U=!1,c){let h=n;do Zr(h).skipDirectInference=void 0,h=h.parent;while(h&&h!==c)}return d}function Ui(n,a,c,d){const h=Lo(n,O1);on=c;const y=h?GD(h,a,d):void 0;return on=void 0,y}var Co=new Map,tr=new Map,Ci=new Map,Nr=new Map,Kt=new Map,nt=new Map,Bt=new Map,Dn=new Map,si=new Map,yi=new Map,oo=new Map,Po=new Map,_a=new Map,Ba=new Map,Tn=new Map,On=[],Je=new Map,mt=new Set,pt=ts(4,"unknown"),Pt=ts(0,"__resolving__"),le=new Map,Fe=new Map,dt=new Set,j=hc(1,"any"),ot=hc(1,"any",262144,"auto"),Dt=hc(1,"any",void 0,"wildcard"),Ye=hc(1,"any",void 0,"blocked string"),_t=hc(1,"error"),Gt=hc(1,"unresolved"),gn=hc(1,"any",65536,"non-inferrable"),hn=hc(1,"intrinsic"),pn=hc(2,"unknown"),q=hc(2,"unknown",void 0,"non-null"),We=hc(32768,"undefined"),Lt=Y?We:hc(32768,"undefined",65536,"widening"),L=hc(32768,"undefined",void 0,"missing"),me=Le?L:We,J=hc(32768,"undefined",void 0,"optional"),fe=hc(65536,"null"),je=Y?fe:hc(65536,"null",65536,"widening"),ke=hc(4,"string"),Tt=hc(8,"number"),kt=hc(64,"bigint"),nn=hc(512,"false",void 0,"fresh"),En=hc(512,"false"),or=hc(512,"true",void 0,"fresh"),pr=hc(512,"true");or.regularType=pr,or.freshType=or,pr.regularType=pr,pr.freshType=or,nn.regularType=En,nn.freshType=nn,En.regularType=En,En.freshType=nn;var ai=ei([En,pr]),li=hc(4096,"symbol"),Qn=hc(16384,"void"),qr=hc(131072,"never"),Ao=hc(131072,"never",262144,"silent"),Fi=hc(131072,"never",void 0,"implicit"),vi=hc(131072,"never",void 0,"unreachable"),ya=hc(67108864,"object"),Xa=ei([ke,Tt]),Qt=ei([ke,Tt,li]),ba=Ce?ke:Qt,Gl=ei([Tt,kt]),ao=ei([ke,Tt,ai,kt,fe,We]),Ga=XT(["",""],[Tt]),ka=Uz(n=>n.flags&262144?Sdt(n):n,()=>"(restrictive mapper)"),Ts=Uz(n=>n.flags&262144?Dt:n,()=>"(permissive mapper)"),oc=hc(131072,"never",void 0,"unique literal"),co=Uz(n=>n.flags&262144?oc:n,()=>"(unique literal mapper)"),da,mu=Uz(n=>(da&&(n===Dp||n===Gs||n===Pc)&&da(!0),n),()=>"(unmeasurable reporter)"),Ps=Uz(n=>(da&&(n===Dp||n===Gs||n===Pc)&&da(!1),n),()=>"(unreliable reporter)"),wa=Vs(void 0,X,et,et,et),yl=Vs(void 0,X,et,et,et);yl.objectFlags|=2048;var wf=ts(2048,"__type");wf.members=pa();var _c=Vs(wf,X,et,et,et),Ll=Vs(void 0,X,et,et,et),fl=Y?ei([We,fe,Ll]):pn,Wo=Vs(void 0,X,et,et,et);Wo.instantiations=new Map;var an=Vs(void 0,X,et,et,et);an.objectFlags|=262144;var Xs=Vs(void 0,X,et,et,et),su=Vs(void 0,X,et,et,et),_u=Vs(void 0,X,et,et,et),Dp=yf(),Gs=yf();Gs.constraint=Dp;var Pc=yf(),pe=yf(),Z=yf();Z.constraint=pe;var we=Oz(1,"<<unresolved>>",0,j),gt=xg(void 0,void 0,void 0,et,j,void 0,0,0),fn=xg(void 0,void 0,void 0,et,_t,void 0,0,0),Er=xg(void 0,void 0,void 0,et,j,void 0,0,0),Ar=xg(void 0,void 0,void 0,et,Ao,void 0,0,0),Jr=Hh(Tt,ke,!0),Di=new Map,br={get yieldType(){return N.fail("Not supported")},get returnType(){return N.fail("Not supported")},get nextType(){return N.fail("Not supported")}},Jo=Sy(j,j,j),kl=Sy(j,j,pn),Gc=Sy(qr,j,We),xl={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:nut,getGlobalIterableType:fee,getGlobalIterableIteratorType:rut,getGlobalGeneratorType:iut,resolveIterationType:(n,a)=>dA(n,a,m.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:m.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:m.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:m.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Zl={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:out,getGlobalIterableType:fve,getGlobalIterableIteratorType:aut,getGlobalGeneratorType:sut,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:m.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:m.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:m.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Ns,ac=new Map,ap=[],sp,Yc,Cd,Me,Ot,Yn,Io,Qo,ra,sc,Ic,ml,Sl,Kl,lc,$c,ff,Ud,Pd,Of,H_,Mh,Qg,Vu,Zg,Np,hg,Hd,te,lt,zt,qt,F,De,st,Vt,lr,ri,Yr,uo,Va,ja,Vl,hu,Mc,Cp,qd,ub,gs,Wf,Ff,Hi,Lh,gg,zf,db,pb,mf=new Map,q_=0,_f=0,ev=0,ze=!1,Qe=0,Ct,jt,vn,$n=[],bn=[],er=[],mi=0,fr=[],ti=[],gr=0,Zo=Yd(""),es=g_(0),nd=vee({negative:!1,base10Value:"0"}),gu=[],tv=[],j0=[],QI=0,U0=!1,rD=0,iD=10,oD=[],hT=[],RE=[],ZI=[],aD=[],ex=[],tx=[],nx=[],rx=[],gT=[],ix=[],DE=[],NE=[],fb=[],mb=[],vg=[],H0=[],cs=M2(),vT=M2(),sD=Fh(),q0,nv,kh=new Map,Bf=new Map,Jd=new Map,Pp=new Map,lp=new Map,ay=new Map,yT=pa();yT.set(He.escapedName,He);var lD=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",V.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return dbt(),tn;function ox(n){return n?Tn.get(n):void 0}function _b(n,a){return n&&Tn.set(n,a),a}function J0(n){if(n){const a=Jn(n);if(a)if(EI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const c=a.pragmas.get("jsxfrag");if(c){const h=Do(c)?c[0]:c;if(a.localJsxFragmentFactory=II(h.arguments.factory,se),rt(a.localJsxFragmentFactory,xc,ep),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=jp(a.localJsxFragmentFactory).escapedText}const d=Ybe(n);if(d)return a.localJsxFragmentFactory=d,a.localJsxFragmentNamespace=jp(d).escapedText}else{const c=ax(a);if(c)return a.localJsxNamespace=c}}return q0||(q0="React",V.jsxFactory?(nv=II(V.jsxFactory,se),rt(nv,xc),nv&&(q0=jp(nv).escapedText)):V.reactNamespace&&(q0=bl(V.reactNamespace))),nv||(nv=O.createQualifiedName(O.createIdentifier(Ki(q0)),"createElement")),q0}function ax(n){if(n.localJsxNamespace)return n.localJsxNamespace;const a=n.pragmas.get("jsx");if(a){const c=Do(a)?a[0]:a;if(n.localJsxFactory=II(c.arguments.factory,se),rt(n.localJsxFactory,xc,ep),n.localJsxFactory)return n.localJsxNamespace=jp(n.localJsxFactory).escapedText}}function xc(n){return Eh(n,-1,-1),xn(n,xc,void 0)}function sy(n,a){return fWe(n,a),Oe}function sx(n,a,...c){const d=n?Fr(n,a,...c):$l(a,...c),h=cs.lookup(d);return h||(cs.add(d),d)}function s_(n,a,c,...d){const h=Xe(a,c,...d);return h.skippedOn=n,h}function bT(n,a,...c){return n?Fr(n,a,...c):$l(a,...c)}function Xe(n,a,...c){const d=bT(n,a,...c);return cs.add(d),d}function l_(n,a){n?cs.add(a):vT.add({...a,category:2})}function vu(n,a,c,...d){if(a.pos<0||a.end<0){if(!n)return;const h=Jn(a);l_(n,"message"in c?ru(h,0,0,c,...d):jj(h,c));return}l_(n,"message"in c?Fr(a,c,...d):zg(Jn(a),a,c))}function K0(n,a,c,...d){const h=Xe(n,c,...d);if(a){const y=Fr(n,m.Did_you_forget_to_use_await);Fa(h,y)}return h}function lx(n,a){const c=Array.isArray(n)?Ve(n,oj):oj(n);return c&&Fa(a,Fr(c,m.The_declaration_was_marked_as_deprecated_here)),vT.add(a),a}function hb(n){const a=Md(n);return a&&Pe(n.declarations)>1?a.flags&64?St(n.declarations,ly):Bn(n.declarations,ly):!!n.valueDeclaration&&ly(n.valueDeclaration)||Pe(n.declarations)&&Bn(n.declarations,ly)}function ly(n){return!!(oS(n)&536870912)}function cy(n,a,c){const d=Fr(n,m._0_is_deprecated,c);return lx(a,d)}function jP(n,a,c,d){const h=c?Fr(n,m.The_signature_0_of_1_is_deprecated,d,c):Fr(n,m._0_is_deprecated,d);return lx(a,h)}function ts(n,a,c){b++;const d=new u(n|33554432,a);return d.links=new Ole,d.links.checkFlags=c||0,d}function c_(n,a){const c=ts(1,n);return c.links.type=a,c}function ET(n,a){const c=ts(4,n);return c.links.type=a,c}function ST(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 X0(n,a){a.mergeId||(a.mergeId=kle,kle++),oD[a.mergeId]=n}function TT(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)),X0(a,n),a}function _m(n,a,c=!1){if(!(n.flags&ST(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){const h=Xl(n);if(h===pt)return a;n=TT(h)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&uk(n,a.valueDeclaration),Hr(n.declarations,a.declarations),a.members&&(n.members||(n.members=pa()),u_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=pa()),u_(n.exports,a.exports,c)),c||X0(n,a)}else if(n.flags&1024)n!==it&&Xe(a.declarations&&Oo(a.declarations[0]),m.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Ti(n));else{const h=!!(n.flags&384||a.flags&384),y=!!(n.flags&2||a.flags&2),x=h?m.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:y?m.Cannot_redeclare_block_scoped_variable_0:m.Duplicate_identifier_0,k=a.declarations&&Jn(a.declarations[0]),z=n.declarations&&Jn(n.declarations[0]),K=GL(k,V.checkJs),ne=GL(z,V.checkJs),Te=Ti(a);if(k&&z&&Ns&&!h&&k!==z){const ve=kg(k.path,z.path)===-1?k:z,Ge=ve===k?z:k,vt=AA(Ns,`${ve.path}|${Ge.path}`,()=>({firstFile:ve,secondFile:Ge,conflictingSymbols:new Map})),xt=AA(vt.conflictingSymbols,Te,()=>({isBlockScoped:y,firstFileLocations:[],secondFileLocations:[]}));K||d(xt.firstFileLocations,a),ne||d(xt.secondFileLocations,n)}else K||hm(a,x,Te,n),ne||hm(n,x,Te,a)}return n;function d(h,y){if(y.declarations)for(const x of y.declarations)Tf(h,x)}}function hm(n,a,c,d){Ve(n.declarations,h=>{rv(h,a,c,d.declarations)})}function rv(n,a,c,d){const h=(g0(n,!1)?Zj(n):Oo(n))||n,y=sx(h,a,c);for(const x of d||et){const k=(g0(x,!1)?Zj(x):Oo(x))||x;if(k===h)continue;y.relatedInformation=y.relatedInformation||[];const z=Fr(k,m._0_was_also_declared_here,c),K=Fr(k,m.and_here);Pe(y.relatedInformation)>=5||St(y.relatedInformation,ne=>aC(ne,K)===0||aC(ne,z)===0)||Fa(y,Pe(y.relatedInformation)?K:z)}}function cx(n,a){if(!(n!=null&&n.size))return a;if(!(a!=null&&a.size))return n;const c=pa();return u_(c,n),u_(c,a),c}function u_(n,a,c=!1){a.forEach((d,h)=>{const y=n.get(h);n.set(h,y?_m(y,d,c):ds(d))})}function cD(n){var a,c,d;const h=n.parent;if(((a=h.symbol.declarations)==null?void 0:a[0])!==h){N.assert(h.symbol.declarations.length>1);return}if(R_(h))u_(be,h.symbol.exports);else{const y=n.parent.parent.flags&33554432?void 0:m.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let x=sv(n,n,y,!0);if(!x)return;if(x=Mp(x),x.flags&1920)if(St(Yc,k=>x===k.symbol)){const k=_m(h.symbol,x,!0);Cd||(Cd=new Map),Cd.set(n.text,k)}else{if(((c=x.exports)==null?void 0:c.get("__export"))&&((d=h.symbol.exports)==null?void 0:d.size)){const k=wge(x,"resolvedExports");for(const[z,K]of Go(h.symbol.exports.entries()))k.has(z)&&!x.exports.has(z)&&_m(k.get(z),K)}_m(x,h.symbol)}else Xe(n,m.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function CE(n,a,c){a.forEach((h,y)=>{const x=n.get(y);x?Ve(x.declarations,d(Ki(y),c)):n.set(y,h)});function d(h,y){return x=>cs.add(Fr(x,y,h))}}function eo(n){var c;if(n.flags&33554432)return n.links;const a=Ia(n);return(c=hT[a])!=null?c:hT[a]=new Ole}function Zr(n){const a=fs(n);return RE[a]||(RE[a]=new eUe)}function wh(n){return n.kind===312&&!Bp(n)}function Kd(n,a,c){if(c){const d=ds(n.get(a));if(d&&(N.assert((Cl(d)&1)===0,"Should never get an instantiated symbol here."),d.flags&c||d.flags&2097152&&Ru(d)&c))return d}}function UP(n,a){const c=n.parent,d=n.parent.parent,h=Kd(c.locals,a,111551),y=Kd(Ob(d.symbol),a,111551);return h&&y?[h,y]:N.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function iv(n,a){const c=Jn(n),d=Jn(a),h=yh(n);if(c!==d){if(G&&(c.externalModuleIndicator||d.externalModuleIndicator)||!Bs(V)||kS(a)||n.flags&33554432||x(a,n))return!0;const z=e.getSourceFiles();return z.indexOf(c)<=z.indexOf(d)}if(!!(a.flags&16777216)||kS(a)||mye(a))return!0;if(n.pos<=a.pos&&!(qo(n)&&QL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){const z=b0(a,208);return z?jn(z,os)!==jn(n,os)||n.pos<z.pos:iv(b0(n,260),a)}else{if(n.kind===260)return!y(n,a);if(di(n))return!jn(a,z=>ss(z)&&z.parent.parent===n);if(qo(n))return!k(n,a,!1);if(gp(n,n.parent))return!(ye&&du(n)===du(a)&&x(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(x(a,n))return ye&&du(n)&&(qo(n)||gp(n,n.parent))?!k(n,a,!0):!0;return!1;function y(z,K){switch(z.parent.parent.kind){case 243:case 248:case 250:if(ME(K,z,h))return!0;break}const ne=z.parent.parent;return s2(ne)&&ME(K,ne.expression,h)}function x(z,K){return!!jn(z,ne=>{if(ne===h)return"quit";if(ta(ne))return!0;if(Pl(ne))return K.pos<z.pos;const Te=ni(ne.parent,qo);if(Te&&Te.initializer===ne){if(la(ne.parent)){if(K.kind===174)return!0;if(qo(K)&&du(z)===du(K)){const Ge=K.name;if(Ue(Ge)||Qi(Ge)){const vt=_r(Cr(K)),xt=Vn(K.parent.members,Pl);if(Jvt(Ge,vt,xt,K.parent.pos,ne.pos))return!0}}}else if(!(K.kind===172&&!la(K))||du(z)!==du(K))return!0}return!1})}function k(z,K,ne){return K.end>z.end?!1:jn(K,ve=>{if(ve===z)return"quit";switch(ve.kind){case 219:return!0;case 172:return ne&&(qo(z)&&ve.parent===z.parent||gp(z,z.parent)&&ve.parent===z.parent.parent)?"quit":!0;case 241:switch(ve.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function HP(n,a,c){const d=ps(V),h=a;if(No(c)&&h.body&&n.valueDeclaration&&n.valueDeclaration.pos>=h.body.pos&&n.valueDeclaration.end<=h.body.end&&d>=2){const k=Zr(h);return k.declarationRequiresScopeChange===void 0&&(k.declarationRequiresScopeChange=Ve(h.parameters,y)||!1),!k.declarationRequiresScopeChange}return!1;function y(k){return x(k.name)||!!k.initializer&&x(k.initializer)}function x(k){switch(k.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return x(k.name);case 172:return Ec(k)?!ye:x(k.name);default:return cj(k)||Xu(k)?d<7:os(k)&&k.dotDotDotToken&&pm(k.parent)?d<4:Xi(k)?!1:Uo(k,x)||!1}}}function gb(n){return bS(n)&&Wg(n.type)||FC(n)&&Wg(n.typeExpression)}function Tl(n,a,c,d,h,y,x=!1,k=!0){return Hp(n,a,c,d,h,y,x,k,Kd)}function Hp(n,a,c,d,h,y,x,k,z){var K,ne,Te;const ve=n;let Ge,vt,xt,cn,sn,rr=!1;const zn=n;let mn,Gn=!1;e:for(;n;){if(a==="const"&&gb(n))return;if(OL(n)&&vt&&n.name===vt&&(vt=n,n=n.parent),hh(n)&&n.locals&&!wh(n)&&(Ge=z(n.locals,a,c))){let qn=!0;if(ta(n)&&vt&&vt!==n.body?(c&Ge.flags&788968&&vt.kind!==327&&(qn=Ge.flags&262144?vt===n.type||vt.kind===169||vt.kind===348||vt.kind===349||vt.kind===168:!1),c&Ge.flags&3&&(HP(Ge,n,vt)?qn=!1:Ge.flags&1&&(qn=vt.kind===169||vt===n.type&&!!jn(Ge.valueDeclaration,No)))):n.kind===194&&(qn=vt===n.trueType),qn)break e;Ge=void 0}switch(rr=rr||gm(n,vt),n.kind){case 312:if(!Bp(n))break;Gn=!0;case 267:const qn=((K=Cr(n))==null?void 0:K.exports)||X;if(n.kind===312||nc(n)&&n.flags&33554432&&!R_(n)){if(Ge=qn.get("default")){const vo=W2(Ge);if(vo&&Ge.flags&c&&vo.escapedName===a)break e;Ge=void 0}const ir=qn.get(a);if(ir&&ir.flags===2097152&&(gl(ir,281)||gl(ir,280)))break}if(a!=="default"&&(Ge=z(qn,a,c&2623475)))if(io(n)&&n.commonJsModuleIndicator&&!((ne=Ge.declarations)!=null&&ne.some(om)))Ge=void 0;else break e;break;case 266:if(Ge=z(((Te=Cr(n))==null?void 0:Te.exports)||X,a,c&8)){d&&dm(V)&&!(n.flags&33554432)&&Jn(n)!==Jn(Ge.valueDeclaration)&&Xe(zn,m.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ki(a),Ze,`${Ki(gf(n).escapedName)}.${Ki(a)}`);break e}break;case 172:if(!la(n)){const ir=lv(n.parent);ir&&ir.locals&&z(ir.locals,a,c&111551)&&(N.assertNode(n,qo),cn=n)}break;case 263:case 231:case 264:if(Ge=z(Cr(n).members||X,a,c&788968)){if(!ov(Ge,n)){Ge=void 0;break}if(vt&&la(vt)){d&&Xe(zn,m.Static_members_cannot_reference_class_type_parameters);return}break e}if(iu(n)&&c&32){const ir=n.name;if(ir&&a===ir.escapedText){Ge=n.symbol;break e}}break;case 233:if(vt===n.expression&&n.parent.token===96){const ir=n.parent.parent;if(di(ir)&&(Ge=z(Cr(ir).members,a,c&788968))){d&&Xe(zn,m.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(mn=n.parent.parent,(di(mn)||mn.kind===264)&&(Ge=z(Cr(mn).members,a,c&788968))){d&&Xe(zn,m.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(ps(V)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a==="arguments"){Ge=Ft;break e}break;case 218:if(c&3&&a==="arguments"){Ge=Ft;break e}if(c&16){const ir=n.name;if(ir&&a===ir.escapedText){Ge=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(nu(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:const Hn=R2(n);Hn&&(n=Hn.parent);break;case 169:vt&&(vt===n.initializer||vt===n.name&&na(vt))&&(sn||(sn=n));break;case 208:vt&&(vt===n.initializer||vt===n.name&&na(vt))&&q1(n)&&!sn&&(sn=n);break;case 195:if(c&262144){const ir=n.typeParameter.name;if(ir&&a===ir.escapedText){Ge=n.typeParameter.symbol;break e}}break;case 281:vt&&vt===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}vb(n)&&(xt=n),vt=n,n=fm(n)?C3(n)||n.parent:(i_(n)||T5(n))&&v0(n)||n.parent}if(y&&Ge&&(!xt||Ge!==xt.symbol)&&(Ge.isReferenced|=c),!Ge){if(vt&&(N.assertNode(vt,io),vt.commonJsModuleIndicator&&a==="exports"&&c&vt.symbol.flags))return vt.symbol;x||(Ge=z(be,a,c))}if(!Ge&&ve&&dr(ve)&&ve.parent&&Ad(ve.parent,!1))return yt;function Pn(){return cn&&!ye?(Xe(zn,zn&&cn.type&&EL(cn.type,zn.pos)?m.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:m.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,ks(cn.name),Fm(h)),!0):!1}if(Ge){if(d&&Pn())return}else{d&&r(()=>{if(!zn||zn.parent.kind!==331&&!PE(zn,a,h)&&!Pn()&&!AT(zn)&&!ux(zn,a,c)&&!uy(zn,a)&&!IT(zn,a,c)&&!uD(zn,a,c)&&!Eg(zn,a,c)){let qn,Hn;if(h&&(Hn=Qmt(h),Hn&&Xe(zn,d,Fm(h),Hn)),!Hn&&k&&rD<iD&&(qn=$ye(ve,a,c),(qn==null?void 0:qn.valueDeclaration)&&Ou(qn.valueDeclaration)&&R_(qn.valueDeclaration)&&(qn=void 0),qn)){const vo=Ti(qn),yo=Kye(ve,qn,!1),Vo=c===1920||h&&typeof h!="string"&&Zs(h)?m.Cannot_find_namespace_0_Did_you_mean_1:yo?m.Could_not_find_name_0_Did_you_mean_1:m.Cannot_find_name_0_Did_you_mean_1,So=bT(zn,Vo,Fm(h),vo);l_(!yo,So),qn.valueDeclaration&&Fa(So,Fr(qn.valueDeclaration,m._0_is_declared_here,vo))}!qn&&!Hn&&h&&Xe(zn,d,Fm(h)),rD++}});return}return d&&r(()=>{var qn;if(zn&&(c&2||(c&32||c&384)&&(c&111551)===111551)){const Hn=vf(Ge);(Hn.flags&2||Hn.flags&32||Hn.flags&384)&&tl(Hn,zn)}if(Ge&&Gn&&(c&111551)===111551&&!(ve.flags&16777216)){const Hn=ds(Ge);Pe(Hn.declarations)&&Bn(Hn.declarations,ir=>fw(ir)||io(ir)&&!!ir.symbol.globalExports)&&vu(!V.allowUmdGlobalAccess,zn,m._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ki(a))}if(Ge&&sn&&!rr&&(c&111551)===111551){const Hn=ds(eee(Ge)),ir=C_(sn);Hn===Cr(sn)?Xe(zn,m.Parameter_0_cannot_reference_itself,ks(sn.name)):Hn.valueDeclaration&&Hn.valueDeclaration.pos>sn.pos&&ir.parent.locals&&z(ir.parent.locals,Hn.escapedName,c)===Hn&&Xe(zn,m.Parameter_0_cannot_reference_identifier_1_declared_after_it,ks(sn.name),ks(zn))}if(Ge&&zn&&c&111551&&Ge.flags&2097152&&!(Ge.flags&111551)&&!T0(zn)){const Hn=Gf(Ge,111551);if(Hn){const ir=Hn.kind===281||Hn.kind===278||Hn.kind===280?m._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:m._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,vo=Ki(a);yg(Xe(zn,ir,vo),Hn,vo)}}if(V.isolatedModules&&Ge&&Gn&&(c&111551)===111551){const ir=z(be,a,c)===Ge&&io(vt)&&vt.locals&&z(vt.locals,a,-111552);if(ir){const vo=(qn=ir.declarations)==null?void 0:qn.find(yo=>yo.kind===276||yo.kind===273||yo.kind===274||yo.kind===271);vo&&!NL(vo)&&Xe(vo,m.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ki(a))}}}),Ge}function yg(n,a,c){return a?Fa(n,Fr(a,a.kind===281||a.kind===278||a.kind===280?m._0_was_exported_here:m._0_was_imported_here,c)):n}function gm(n,a){return n.kind!==219&&n.kind!==218?fI(n)||(Js(n)||n.kind===172&&!la(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Qr(n,1024)?!0:!xS(n)}function vb(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function Fm(n){return wo(n)?Ki(n):ks(n)}function ov(n,a){if(n.declarations){for(const c of n.declarations)if(c.kind===168&&(fm(c.parent)?CS(c.parent):c.parent)===a)return!(fm(c.parent)&&un(c.parent.parent.tags,om))}return!1}function PE(n,a,c){if(!Ue(n)||n.escapedText!==a||mWe(n)||kS(n))return!1;const d=zd(n,!1,!1);let h=d;for(;h;){if(di(h.parent)){const y=Cr(h.parent);if(!y)break;const x=_r(y);if(Sa(x,a))return Xe(n,m.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Fm(c),Ti(y)),!0;if(h===d&&!la(h)){const k=nl(y).thisType;if(Sa(k,a))return Xe(n,m.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Fm(c)),!0}}h=h.parent}return!1}function AT(n){const a=bg(n);return a&&Ys(a,64,!0)?(Xe(n,m.Cannot_extend_an_interface_0_Did_you_mean_implements,bc(a)),!0):!1}function bg(n){switch(n.kind){case 80:case 211:return n.parent?bg(n.parent):void 0;case 233:if(Jl(n.expression))return n.expression;default:return}}function ux(n,a,c){const d=1920|(dr(n)?111551:0);if(c===d){const h=Xl(Tl(n,a,788968&~d,void 0,void 0,!1)),y=n.parent;if(h){if(xd(y)){N.assert(y.left===n,"Should only be resolving left side of qualified name as a namespace");const x=y.right.escapedText;if(Sa(nl(h),x))return Xe(y,m.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ki(a),Ki(x)),!0}return Xe(n,m._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ki(a)),!0}}return!1}function Eg(n,a,c){if(c&788584){const d=Xl(Tl(n,a,111127,void 0,void 0,!1));if(d&&!(d.flags&1920))return Xe(n,m._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ki(a)),!0}return!1}function J_(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function uy(n,a){return J_(a)&&n.parent.kind===281?(Xe(n,m.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function uD(n,a,c){if(c&111551){if(J_(a)){const y=n.parent.parent;if(y&&y.parent&&of(y)){const x=y.token,k=y.parent.kind;k===264&&x===96?Xe(n,m.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ki(a)):k===263&&x===96?Xe(n,m.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ki(a)):k===263&&x===119&&Xe(n,m.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ki(a))}else Xe(n,m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ki(a));return!0}const d=Xl(Tl(n,a,788544,void 0,void 0,!1)),h=d&&Ru(d);if(d&&h!==void 0&&!(h&111551)){const y=Ki(a);return pD(a)?Xe(n,m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,y):dD(n,d)?Xe(n,m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,y,y==="K"?"P":"K"):Xe(n,m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,y),!0}}return!1}function dD(n,a){const c=jn(n.parent,d=>ss(d)||Sp(d)?!1:Ap(d)||"quit");if(c&&c.members.length===1){const d=nl(a);return!!(d.flags&1048576)&&PB(d,384,!0)}return!1}function pD(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function IT(n,a,c){if(c&111127){if(Xl(Tl(n,a,1024,void 0,void 0,!1)))return Xe(n,m.Cannot_use_namespace_0_as_a_value,Ki(a)),!0}else if(c&788544&&Xl(Tl(n,a,1536,void 0,void 0,!1)))return Xe(n,m.Cannot_use_namespace_0_as_a_type,Ki(a)),!0;return!1}function tl(n,a){var c;if(N.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;const d=(c=n.declarations)==null?void 0:c.find(h=>Mj(h)||di(h)||h.kind===266);if(d===void 0)return N.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(d.flags&33554432)&&!iv(d,a)){let h;const y=ks(Oo(d));n.flags&2?h=Xe(a,m.Block_scoped_variable_0_used_before_its_declaration,y):n.flags&32?h=Xe(a,m.Class_0_used_before_its_declaration,y):n.flags&256?h=Xe(a,m.Enum_0_used_before_its_declaration,y):(N.assert(!!(n.flags&128)),dm(V)&&(h=Xe(a,m.Enum_0_used_before_its_declaration,y))),h&&Fa(h,Fr(d,m._0_is_declared_here,y))}}function ME(n,a,c){return!!a&&!!jn(n,d=>d===a||(d===c||ta(d)&&(!xS(d)||Jc(d)&3)?"quit":!1))}function xT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function zm(n){return n.declarations&&Mi(n.declarations,yb)}function yb(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&D2(n)||vr(n)&&ql(n)===2&&D2(n)||js(n)&&vr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&fD(n.parent.right)||n.kind===304||n.kind===303&&fD(n.initializer)||n.kind===260&&V1(n)||n.kind===208&&V1(n.parent.parent)}function fD(n){return yk(n)||Us(n)&&oh(n)}function RT(n,a){const c=Eb(n);if(c){const h=z2(c.expression).arguments[0];return Ue(c.name)?Xl(Sa(n8e(h),c.name.escapedText)):void 0}if(Wi(n)||n.moduleReference.kind===283){const h=vd(n,Yj(n)||FN(n)),y=Mp(h);return cp(n,h,y,!1),y}const d=px(n.moduleReference,a);return qP(n,d),d}function qP(n,a){if(cp(n,void 0,a,!1)&&!n.isTypeOnly){const c=Gf(Cr(n)),d=c.kind===281||c.kind===278,h=d?m.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:m.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,y=d?m._0_was_exported_here:m._0_was_imported_here,x=c.kind===278?"*":Ki(c.name.escapedText);Fa(Xe(n.moduleReference,h),Fr(c,y,x))}}function Sr(n,a,c,d){const h=n.exports.get("export="),y=h?Sa(_r(h),a,!0):n.exports.get(a),x=Xl(y,d);return cp(c,y,x,!1),x}function lu(n){return zl(n)&&!n.isExportEquals||Qr(n,2048)||$u(n)||xh(n)}function so(n){return hs(n)?e.getModeForUsageLocation(Jn(n),n):void 0}function hf(n,a){return n===99&&a===1}function dy(n){return so(n)===99&&Dl(n.text,".json")}function K_(n,a,c,d){const h=n&&so(d);if(n&&h!==void 0&&100<=G&&G<=199){const y=hf(h,n.impliedNodeFormat);if(h===99||y)return y}if(!Q)return!1;if(!n||n.isDeclarationFile){const y=Sr(a,"default",void 0,!0);return!(y&&St(y.declarations,lu)||Sr(a,bl("__esModule"),void 0,c))}return pd(n)?typeof n.externalModuleIndicator!="object"&&!Sr(a,bl("__esModule"),void 0,c):py(a)}function mr(n,a){const c=vd(n,n.parent.moduleSpecifier);if(c)return DT(c,n,a)}function DT(n,a,c){var d;let h;LN(n)?h=n:h=Sr(n,"default",a,c);const y=(d=n.declarations)==null?void 0:d.find(io),x=Y0(a);if(!x)return h;const k=dy(x),z=K_(y,n,c,x);if(!h&&!z&&!k)if(py(n)&&!Q){const K=G>=5?"allowSyntheticDefaultImports":"esModuleInterop",Te=n.exports.get("export=").valueDeclaration,ve=Xe(a.name,m.Module_0_can_only_be_default_imported_using_the_1_flag,Ti(n),K);Te&&Fa(ve,Fr(Te,m.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,K))}else Ih(a)?Qc(n,a):NT(n,n,a,wA(a)&&a.propertyName||a.name);else if(z||k){const K=Mp(n,c)||Xl(n,c);return cp(a,n,K,!1),K}return cp(a,h,void 0,!1),h}function Y0(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return Rh(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return N.assertNever(n)}}function Qc(n,a){var c,d,h;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))Xe(a.name,m.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Ti(n),Ti(a.symbol));else{const y=Xe(a.name,m.Module_0_has_no_default_export,Ti(n)),x=(d=n.exports)==null?void 0:d.get("__export");if(x){const k=(h=x.declarations)==null?void 0:h.find(z=>{var K,ne;return!!(rc(z)&&z.moduleSpecifier&&((ne=(K=vd(z,z.moduleSpecifier))==null?void 0:K.exports)==null?void 0:ne.has("default")))});k&&Fa(y,Fr(k,m.export_Asterisk_does_not_re_export_a_default))}}}function Oh(n,a){const c=n.parent.parent.moduleSpecifier,d=vd(n,c),h=up(d,c,a,!1);return cp(n,d,h,!1),h}function Bm(n,a){const c=n.parent.moduleSpecifier,d=c&&vd(n,c),h=c&&up(d,c,a,!1);return cp(n,d,h,!1),h}function LE(n,a){if(n===pt&&a===pt)return pt;if(n.flags&790504)return n;const c=ts(n.flags|a.flags,n.escapedName);return N.assert(n.declarations||a.declarations),c.declarations=N1(Ro(n.declarations,a.declarations),Mv),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function kE(n,a,c,d){var h;if(n.flags&1536){const y=Lp(n).get(a.escapedText),x=Xl(y,d),k=(h=eo(n).typeOnlyExportStarMap)==null?void 0:h.get(a.escapedText);return cp(c,y,x,!1,k,a.escapedText),x}}function bb(n,a){if(n.flags&3){const c=n.valueDeclaration.type;if(c)return Xl(Sa(Ai(c),a))}}function av(n,a,c=!1){var d;const h=Yj(n)||n.moduleSpecifier,y=vd(n,h),x=!Br(a)&&a.propertyName||a.name;if(!Ue(x))return;const k=x.escapedText==="default"&&Q,z=up(y,h,!1,k);if(z&&x.escapedText){if(LN(y))return y;let K;y&&y.exports&&y.exports.get("export=")?K=Sa(_r(z),x.escapedText,!0):K=bb(z,x.escapedText),K=Xl(K,c);let ne=kE(z,x,a,c);if(ne===void 0&&x.escapedText==="default"){const ve=(d=y.declarations)==null?void 0:d.find(io);(dy(h)||K_(ve,y,c,h))&&(ne=Mp(y,c)||Xl(y,c))}const Te=ne&&K&&ne!==K?LE(K,ne):ne||K;return Te||NT(y,z,n,x),Te}}function NT(n,a,c,d){var h;const y=Jp(n,c),x=ks(d),k=ute(d,a);if(k!==void 0){const z=Ti(k),K=Xe(d,m._0_has_no_exported_member_named_1_Did_you_mean_2,y,x,z);k.valueDeclaration&&Fa(K,Fr(k.valueDeclaration,m._0_is_declared_here,z))}else(h=n.exports)!=null&&h.has("default")?Xe(d,m.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,y,x):Gm(c,d,x,n,y)}function Gm(n,a,c,d,h){var y,x;const k=(x=(y=ni(d.valueDeclaration,hh))==null?void 0:y.locals)==null?void 0:x.get(a.escapedText),z=d.exports;if(k){const K=z==null?void 0:z.get("export=");if(K)d_(K,k)?$0(n,a,c,h):Xe(a,m.Module_0_has_no_exported_member_1,h,c);else{const ne=z?un($ge(z),ve=>!!d_(ve,k)):void 0,Te=ne?Xe(a,m.Module_0_declares_1_locally_but_it_is_exported_as_2,h,c,Ti(ne)):Xe(a,m.Module_0_declares_1_locally_but_it_is_not_exported,h,c);k.declarations&&Fa(Te,...Wt(k.declarations,(ve,Ge)=>Fr(ve,Ge===0?m._0_is_declared_here:m.and_here,c)))}}else Xe(a,m.Module_0_has_no_exported_member_1,h,c)}function $0(n,a,c,d){if(G>=5){const h=Sh(V)?m._0_can_only_be_imported_by_using_a_default_import:m._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Xe(a,h,c)}else if(dr(n)){const h=Sh(V)?m._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:m._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Xe(a,h,c)}else{const h=Sh(V)?m._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:m._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Xe(a,h,c,c,d)}}function Sg(n,a){if(rp(n)&&Rr(n.propertyName||n.name)==="default"){const x=Y0(n),k=x&&vd(n,x);if(k)return DT(k,n,a)}const c=os(n)?C_(n):n.parent.parent.parent,d=Eb(c),h=av(c,d||n,a),y=n.propertyName||n.name;return d&&h&&Ue(y)?Xl(Sa(_r(h),y.escapedText),a):(cp(n,void 0,h,!1),h)}function Eb(n){if(Wi(n)&&n.initializer&&Br(n.initializer))return n.initializer}function dx(n,a){if(x_(n.parent)){const c=Mp(n.parent.symbol,a);return cp(n,void 0,c,!1),c}}function Q0(n,a,c){if(Rr(n.propertyName||n.name)==="default"){const h=Y0(n),y=h&&vd(n,h);if(y)return DT(y,n,!!c)}const d=n.parent.parent.moduleSpecifier?av(n.parent.parent,n,c):Ys(n.propertyName||n.name,a,!1,c);return cp(n,void 0,d,!1),d}function mD(n,a){const c=zl(n)?n.expression:n.right,d=wE(c,a);return cp(n,void 0,d,!1),d}function wE(n,a){if(iu(n))return uc(n).symbol;if(!ep(n)&&!Jl(n))return;const c=Ys(n,901119,!0,a);return c||(uc(n),Zr(n).resolvedSymbol)}function CT(n,a){if(!!(vr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64))return wE(n.parent.right,a)}function qp(n,a=!1){switch(n.kind){case 271:case 260:return RT(n,a);case 273:return mr(n,a);case 274:return Oh(n,a);case 280:return Bm(n,a);case 276:case 208:return Sg(n,a);case 281:return Q0(n,901119,a);case 277:case 226:return mD(n,a);case 270:return dx(n,a);case 304:return Ys(n.name,901119,!0,a);case 303:return wE(n.initializer,a);case 212:case 211:return CT(n,a);default:return N.fail()}}function PT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Xl(n,a){return!a&&PT(n)?Vc(n):n}function Vc(n){N.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=eo(n);if(a.aliasTarget)a.aliasTarget===Pt&&(a.aliasTarget=pt);else{a.aliasTarget=Pt;const c=zm(n);if(!c)return N.fail();const d=qp(c);a.aliasTarget===Pt?a.aliasTarget=d||pt:Xe(c,m.Circular_definition_of_import_alias_0,Ti(n))}return a.aliasTarget}function MT(n){if(eo(n).aliasTarget!==Pt)return Vc(n)}function Ru(n,a,c){const d=a&&Gf(n),h=d&&rc(d),y=d&&(h?vd(d.moduleSpecifier,d.moduleSpecifier,!0):Vc(d.symbol)),x=h&&y?Wh(y):void 0;let k=c?0:n.flags,z;for(;n.flags&2097152;){const K=vf(Vc(n));if(!h&&K===y||(x==null?void 0:x.get(K.escapedName))===K)break;if(K===pt)return-1;if(K===n||(z==null?void 0:z.has(K)))break;K.flags&2097152&&(z?z.add(K):z=new Set([n,K])),k|=K.flags,n=K}return k}function cp(n,a,c,d,h,y){if(!n||Br(n))return!1;const x=Cr(n);if(m0(n)){const z=eo(x);return z.typeOnlyDeclaration=n,!0}if(h){const z=eo(x);return z.typeOnlyDeclaration=h,x.escapedName!==y&&(z.typeOnlyExportStarName=y),!0}const k=eo(x);return Z0(k,a,d)||Z0(k,c,d)}function Z0(n,a,c){var h,y;var d;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){const x=(h=(d=a.exports)==null?void 0:d.get("export="))!=null?h:a,k=x.declarations&&un(x.declarations,m0);n.typeOnlyDeclaration=(y=k!=null?k:eo(x).typeOnlyDeclaration)!=null?y:!1}return!!n.typeOnlyDeclaration}function Gf(n,a){if(!(n.flags&2097152))return;const c=eo(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){const d=c.typeOnlyDeclaration.kind===278?Xl(Wh(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):Vc(c.typeOnlyDeclaration.symbol);return Ru(d)&a?c.typeOnlyDeclaration:void 0}}function Sb(n){if(!It)return;const a=Cr(n),c=Vc(a);c&&(c===pt||Ru(a,!0)&111551&&!I8(c))&&Tb(a)}function Tb(n){N.assert(It);const a=eo(n);if(!a.referenced){a.referenced=!0;const c=zm(n);if(!c)return N.fail();E2(c)&&Ru(Xl(n))&111551&&uc(c.moduleReference)}}function cu(n){const a=eo(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function px(n,a){return n.kind===80&&eC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?Ys(n,1920,!1,a):(N.assert(n.parent.kind===271),Ys(n,901119,!1,a))}function Jp(n,a){return n.parent?Jp(n.parent,a)+"."+Ti(n):Ti(n,a,void 0,36)}function LT(n){for(;xd(n.parent);)n=n.parent;return n}function kT(n){let a=jp(n),c=Tl(a,a.escapedText,111551,void 0,a,!0);if(!!c){for(;xd(a.parent);){const d=_r(c);if(c=Sa(d,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Ys(n,a,c,d,h){if(Hl(n))return;const y=1920|(dr(n)?a&111551:0);let x;if(n.kind===80){const k=a===y||Zs(n)?m.Cannot_find_namespace_0:X6e(jp(n)),z=dr(n)&&!Zs(n)?_D(n,a):void 0;if(x=ds(Tl(h||n,n.escapedText,a,c||z?void 0:k,n,!0,!1)),!x)return ds(z)}else if(n.kind===166||n.kind===211){const k=n.kind===166?n.left:n.expression,z=n.kind===166?n.right:n.name;let K=Ys(k,y,c,!1,h);if(!K||Hl(z))return;if(K===pt)return K;if(K.valueDeclaration&&dr(K.valueDeclaration)&&_d(V)!==100&&Wi(K.valueDeclaration)&&K.valueDeclaration.initializer&&L7e(K.valueDeclaration.initializer)){const ne=K.valueDeclaration.initializer.arguments[0],Te=vd(ne,ne);if(Te){const ve=Mp(Te);ve&&(K=ve)}}if(x=ds(Kd(Lp(K),z.escapedText,a)),!x&&K.flags&2097152&&(x=ds(Kd(Lp(Vc(K)),z.escapedText,a))),!x){if(!c){const ne=Jp(K),Te=ks(z),ve=ute(z,K);if(ve){Xe(z,m._0_has_no_exported_member_named_1_Did_you_mean_2,ne,Te,Ti(ve));return}const Ge=xd(n)&&LT(n);if(Me&&a&788968&&Ge&&!Z2(Ge.parent)&&kT(Ge)){Xe(Ge,m._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,vp(Ge));return}if(a&1920&&xd(n.parent)){const xt=ds(Kd(Lp(K),z.escapedText,788968));if(xt){Xe(n.parent.right,m.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ti(xt),Ki(n.parent.right.escapedText));return}}Xe(z,m.Namespace_0_has_no_exported_member_1,ne,Te)}return}}else N.assertNever(n,"Unknown entity name kind.");return N.assert((Cl(x)&1)===0,"Should never get an instantiated symbol here."),!Zs(n)&&ep(n)&&(x.flags&2097152||n.parent.kind===277)&&cp(lU(n),x,void 0,!0),x.flags&a||d?x:Vc(x)}function _D(n,a){if(dee(n.parent)){const c=e1(n.parent);if(c)return Tl(c,n.escapedText,a,void 0,n,!0)}}function e1(n){if(jn(n,h=>l2(h)||h.flags&16777216?om(h):"quit"))return;const c=CS(n);if(c&&ou(c)&&ck(c.expression)){const h=Cr(c.expression.left);if(h)return OE(h)}if(c&&Us(c)&&ck(c.parent)&&ou(c.parent.parent)){const h=Cr(c.parent.left);if(h)return OE(h)}if(c&&(Cm(c)||Tc(c))&&vr(c.parent.parent)&&ql(c.parent.parent)===6){const h=Cr(c.parent.parent.left);if(h)return OE(h)}const d=y0(n);if(d&&ta(d)){const h=Cr(d);return h&&h.valueDeclaration}}function OE(n){const a=n.parent.valueDeclaration;return a?(zN(a)?GA(a):ES(a)?ik(a):void 0)||a:void 0}function JP(n){const a=n.valueDeclaration;if(!a||!dr(a)||n.flags&524288||g0(a,!1))return;const c=Wi(a)?ik(a):GA(a);if(c){const d=gf(c);if(d)return abe(d,n)}}function vd(n,a,c){const h=_d(V)===1?m.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:m.Cannot_find_module_0_or_its_corresponding_type_declarations;return sv(n,a,c?void 0:h)}function sv(n,a,c,d=!1){return hs(a)?X_(n,a.text,c,a,d):void 0}function X_(n,a,c,d,h=!1){var y,x,k,z,K,ne,Te,ve,Ge,vt,xt;if(ho(a,"@types/")){const ir=m.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,vo=uN(a,"@types/");Xe(d,ir,vo,a)}const cn=ree(a,!0);if(cn)return cn;const sn=Jn(n),rr=hs(n)?n:((y=nc(n)?n:n.parent&&nc(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:y.name)||((x=By(n)?n:void 0)==null?void 0:x.argument.literal)||(Wi(n)&&n.initializer&&Ad(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((k=jn(n,Gp))==null?void 0:k.arguments[0])||((z=jn(n,Fc))==null?void 0:z.moduleSpecifier)||((K=jn(n,h0))==null?void 0:K.moduleReference.expression)||((ne=jn(n,rc))==null?void 0:ne.moduleSpecifier),zn=rr&&hs(rr)?e.getModeForUsageLocation(sn,rr):sn.impliedNodeFormat,mn=_d(V),Gn=(Te=e.getResolvedModule(sn,a,zn))==null?void 0:Te.resolvedModule,Pn=Gn&&iK(V,Gn,sn),qn=Gn&&(!Pn||Pn===m.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Gn.resolvedFileName);if(qn){if(Pn&&Xe(d,Pn,a,Gn.resolvedFileName),Gn.resolvedUsingTsExtension&&Iu(a)){const ir=((ve=jn(n,Fc))==null?void 0:ve.importClause)||jn(n,$m(au,rc));(ir&&!ir.isTypeOnly||jn(n,Gp))&&Xe(d,m.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Hn(N.checkDefined(J3(a))))}else if(Gn.resolvedUsingTsExtension&&!vR(V,sn.fileName)){const ir=((Ge=jn(n,Fc))==null?void 0:Ge.importClause)||jn(n,$m(au,rc));if(!((ir==null?void 0:ir.isTypeOnly)||jn(n,dg))){const vo=N.checkDefined(J3(a));Xe(d,m.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,vo)}}if(qn.symbol){if(Gn.isExternalLibraryImport&&!cC(Gn.extension)&&fx(!1,d,sn,zn,Gn,a),mn===3||mn===99){const ir=sn.impliedNodeFormat===1&&!jn(n,Gp)||!!jn(n,au),vo=jn(n,yo=>dg(yo)||rc(yo)||Fc(yo));if(ir&&qn.impliedNodeFormat===99&&!Tae(vo))if(jn(n,au))Xe(d,m.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let yo;const Vo=Ug(sn.fileName);if(Vo===".ts"||Vo===".js"||Vo===".tsx"||Vo===".jsx"){const So=sn.packageJsonScope,kc=Vo===".ts"?".mts":Vo===".js"?".mjs":void 0;So&&!So.contents.packageJsonContent.type?kc?yo=jo(void 0,m.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,kc,$r(So.packageDirectory,"package.json")):yo=jo(void 0,m.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,$r(So.packageDirectory,"package.json")):kc?yo=jo(void 0,m.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,kc):yo=jo(void 0,m.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}cs.add(zg(Jn(d),d,jo(yo,m.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return ds(qn.symbol)}c&&Xe(d,m.File_0_is_not_a_module,qn.fileName);return}if(Yc){const ir=MG(Yc,vo=>vo.pattern,a);if(ir){const vo=Cd&&Cd.get(a);return ds(vo||ir.symbol)}}if(Gn&&!cC(Gn.extension)&&Pn===void 0||Pn===m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(h){const ir=m.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Xe(d,ir,a,Gn.resolvedFileName)}else fx(de&&!!c,d,sn,zn,Gn,a);return}if(c){if(Gn){const ir=e.getProjectReferenceRedirect(Gn.resolvedFileName);if(ir){Xe(d,m.Output_file_0_has_not_been_built_from_source_file_1,ir,Gn.resolvedFileName);return}}if(Pn)Xe(d,Pn,a,Gn.resolvedFileName);else{const ir=Fp(a)&&!PA(a),vo=mn===3||mn===99;if(!A0(V)&&Nl(a,".json")&&mn!==1&&r7(V))Xe(d,m.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(zn===99&&vo&&ir){const yo=To(a,ii(sn.path)),Vo=(vt=lD.find(([So,kc])=>e.fileExists(yo+So)))==null?void 0:vt[1];Vo?Xe(d,m.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Vo):Xe(d,m.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((xt=e.getResolvedModule(sn,a,zn))!=null&&xt.alternateResult){const yo=Q6(sn,e,a,zn,a);vu(!0,d,jo(yo,c,a))}else Xe(d,c,a)}}return;function Hn(ir){const vo=Wk(a,ir);if(n7(G)||zn===99){const yo=Iu(a)&&vR(V);return vo+(ir===".mts"||ir===".d.mts"?yo?".mts":".mjs":ir===".cts"||ir===".d.mts"?yo?".cts":".cjs":yo?".ts":".js")}return vo}}function fx(n,a,c,d,{packageId:h,resolvedFileName:y},x){let k;!tu(x)&&h&&(k=Q6(c,e,x,d,h.name)),vu(n,a,jo(k,m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,x,y))}function Mp(n,a){if(n!=null&&n.exports){const c=Xl(n.exports.get("export="),a),d=mx(ds(c),ds(n));return ds(d)||n}}function mx(n,a){if(!n||n===pt||n===a||a.exports.size===1||n.flags&2097152)return n;const c=eo(n);if(c.cjsExportMerged)return c.cjsExportMerged;const d=n.flags&33554432?n:TT(n);return d.flags=d.flags|512,d.exports===void 0&&(d.exports=pa()),a.exports.forEach((h,y)=>{y!=="export="&&d.exports.set(y,d.exports.has(y)?_m(d.exports.get(y),h):h)}),d===n&&(eo(d).resolvedExports=void 0,eo(d).resolvedMembers=void 0),eo(d).cjsExportMerged=d,c.cjsExportMerged=d}function up(n,a,c,d){var h;const y=Mp(n,c);if(!c&&y){if(!d&&!(y.flags&1539)&&!gl(y,312)){const k=G>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Xe(a,m.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,k),y}const x=a.parent;if(Fc(x)&&I2(x)||Gp(x)){const k=Gp(x)?x.arguments[0]:x.moduleSpecifier,z=_r(y),K=P7e(z,y,n,k);if(K)return _x(y,K,x);const ne=(h=n==null?void 0:n.declarations)==null?void 0:h.find(io),Te=ne&&hf(so(k),ne.impliedNodeFormat);if(Sh(V)||Te){let ve=wz(z,0);if((!ve||!ve.length)&&(ve=wz(z,1)),ve&&ve.length||Sa(z,"default",!0)||Te){const Ge=z.flags&3670016?M7e(z,y,n,k):sbe(y,y.parent);return _x(y,Ge,x)}}}}return y}function _x(n,a,c){const d=ts(n.flags,n.escapedName);d.declarations=n.declarations?n.declarations.slice():[],d.parent=n.parent,d.links.target=n,d.links.originatingImport=c,n.valueDeclaration&&(d.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(d.constEnumOnlyModule=!0),n.members&&(d.members=new Map(n.members)),n.exports&&(d.exports=new Map(n.exports));const h=__(a);return d.links.type=Vs(d,h.members,et,et,h.indexInfos),d}function py(n){return n.exports.get("export=")!==void 0}function wT(n){return $ge(Wh(n))}function hD(n){const a=wT(n),c=Mp(n);if(c!==n){const d=_r(c);Ab(d)&&Hr(a,As(d))}return a}function gD(n,a){Wh(n).forEach((h,y)=>{zE(y)||a(h,y)});const d=Mp(n);if(d!==n){const h=_r(d);Ab(h)&&Ect(h,(y,x)=>{a(y,x)})}}function OT(n,a){const c=Wh(a);if(c)return c.get(n)}function vD(n,a){const c=OT(n,a);if(c)return c;const d=Mp(a);if(d===a)return;const h=_r(d);return Ab(h)?Sa(h,n):void 0}function Ab(n){return!(n.flags&402784252||zr(n)&1||Yf(n)||Ha(n))}function Lp(n){return n.flags&6256?wge(n,"resolvedExports"):n.flags&1536?Wh(n):n.exports||X}function Wh(n){const a=eo(n);if(!a.resolvedExports){const{exports:c,typeOnlyExportStarMap:d}=WT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=d}return a.resolvedExports}function yD(n,a,c,d){!a||a.forEach((h,y)=>{if(y==="default")return;const x=n.get(y);if(!x)n.set(y,h),c&&d&&c.set(y,{specifierText:bc(d.moduleSpecifier)});else if(c&&d&&x&&Xl(x)!==Xl(h)){const k=c.get(y);k.exportsWithDuplicate?k.exportsWithDuplicate.push(d):k.exportsWithDuplicate=[d]}})}function WT(n){const a=[];let c;const d=new Set;n=Mp(n);const h=y(n)||X;return c&&d.forEach(x=>c.delete(x)),{exports:h,typeOnlyExportStarMap:c};function y(x,k,z){if(!z&&(x==null?void 0:x.exports)&&x.exports.forEach((Te,ve)=>d.add(ve)),!(x&&x.exports&&Tf(a,x)))return;const K=new Map(x.exports),ne=x.exports.get("__export");if(ne){const Te=pa(),ve=new Map;if(ne.declarations)for(const Ge of ne.declarations){const vt=vd(Ge,Ge.moduleSpecifier),xt=y(vt,Ge,z||Ge.isTypeOnly);yD(Te,xt,ve,Ge)}ve.forEach(({exportsWithDuplicate:Ge},vt)=>{if(!(vt==="export="||!(Ge&&Ge.length)||K.has(vt)))for(const xt of Ge)cs.add(Fr(xt,m.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ve.get(vt).specifierText,Ki(vt)))}),yD(K,Te)}return k!=null&&k.isTypeOnly&&(c!=null||(c=new Map),K.forEach((Te,ve)=>c.set(ve,k))),K}}function ds(n){let a;return n&&n.mergeId&&(a=oD[n.mergeId])?a:n}function Cr(n){return ds(n.symbol&&eee(n.symbol))}function gf(n){return x_(n)?Cr(n):void 0}function Md(n){return ds(n.parent&&eee(n.parent))}function WE(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&gf(n.valueDeclaration.parent)||n}function bD(n,a){const c=Jn(a),d=fs(c),h=eo(n);let y;if(h.extendedContainersByFile&&(y=h.extendedContainersByFile.get(d)))return y;if(c&&c.imports){for(const k of c.imports){if(Zs(k))continue;const z=vd(a,k,!0);!z||!Tg(z,n)||(y=Rn(y,z))}if(Pe(y))return(h.extendedContainersByFile||(h.extendedContainersByFile=new Map)).set(d,y),y}if(h.extendedContainers)return h.extendedContainers;const x=e.getSourceFiles();for(const k of x){if(!mc(k))continue;const z=Cr(k);!Tg(z,n)||(y=Rn(y,z))}return h.extendedContainers=y||et}function t1(n,a,c){const d=Md(n);if(d&&!(n.flags&262144))return z(d);const h=Vi(n.declarations,ne=>{if(!Ou(ne)&&ne.parent){if(rd(ne.parent))return Cr(ne.parent);if(O_(ne.parent)&&ne.parent.parent&&Mp(Cr(ne.parent.parent))===n)return Cr(ne.parent.parent)}if(iu(ne)&&vr(ne.parent)&&ne.parent.operatorToken.kind===64&&js(ne.parent.left)&&Jl(ne.parent.left.expression))return ig(ne.parent.left)||RS(ne.parent.left.expression)?Cr(Jn(ne)):(uc(ne.parent.left.expression),Zr(ne.parent.left.expression).resolvedSymbol)});if(!Pe(h))return;const y=Vi(h,ne=>Tg(ne,n)?ne:void 0);let x=[],k=[];for(const ne of y){const[Te,...ve]=z(ne);x=Rn(x,Te),k=Hr(k,ve)}return Ro(x,k);function z(ne){const Te=Vi(ne.declarations,K),ve=a&&bD(n,a),Ge=FE(ne,c);if(a&&ne.flags&cv(c)&&Ib(ne,a,1920,!1))return Rn(Ro(Ro([ne],Te),ve),Ge);const vt=!(ne.flags&cv(c))&&ne.flags&788968&&nl(ne).flags&524288&&c===111551?GE(a,cn=>qc(cn,sn=>{if(sn.flags&cv(c)&&_r(sn)===nl(ne))return sn})):void 0;let xt=vt?[vt,...Te,ne]:[...Te,ne];return xt=Rn(xt,Ge),xt=Hr(xt,ve),xt}function K(ne){return d&&FT(ne,d)}}function FE(n,a){const c=!!Pe(n.declarations)&&$a(n.declarations);if(a&111551&&c&&c.parent&&Wi(c.parent)&&(za(c)&&c===c.parent.initializer||Ap(c)&&c===c.parent.type))return Cr(c.parent)}function FT(n,a){const c=lo(n),d=c&&c.exports&&c.exports.get("export=");return d&&d_(d,a)?c:void 0}function Tg(n,a){if(n===Md(a))return a;const c=n.exports&&n.exports.get("export=");if(c&&d_(c,a))return n;const d=Lp(n),h=d.get(a.escapedName);return h&&d_(h,a)?h:qc(d,y=>{if(d_(y,a))return y})}function d_(n,a){if(ds(Xl(ds(n)))===ds(Xl(ds(a))))return n}function vf(n){return ds(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function Vm(n,a){return!!(n.flags&111551||n.flags&2097152&&Ru(n,!a)&111551)}function lv(n){const a=n.members;for(const c of a)if(c.kind===176&&nm(c.body))return c}function Ag(n){var a;const c=new p(tn,n);return f++,c.id=f,(a=ur)==null||a.recordType(c),c}function Ig(n,a){const c=Ag(n);return c.symbol=a,c}function hx(n){return new p(tn,n)}function hc(n,a,c=0,d){ED(a,d);const h=Ag(n);return h.intrinsicName=a,h.debugIntrinsicName=d,h.objectFlags=c|524288|2097152|33554432|16777216,h}function ED(n,a){const c=`${n},${a!=null?a:""}`;dt.has(c)&&N.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),dt.add(c)}function Vf(n,a){const c=Ig(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function Fh(){return ei(Go(sJ.keys(),Yd))}function yf(n){return Ig(262144,n)}function zE(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function n1(n){let a;return n.forEach((c,d)=>{gx(c,d)&&(a||(a=[])).push(c)}),a||et}function gx(n,a){return!zE(a)&&Vm(n)}function zT(n){const a=n1(n),c=aee(n);return c?Ro(a,[c]):a}function bf(n,a,c,d,h){const y=n;return y.members=a,y.properties=et,y.callSignatures=c,y.constructSignatures=d,y.indexInfos=h,a!==X&&(y.properties=n1(a)),y}function Vs(n,a,c,d,h){return bf(Vf(16,n),a,c,d,h)}function BE(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const a=Vn(n.constructSignatures,d=>!(d.flags&4));if(n.constructSignatures===a)return n;const c=Vs(n.symbol,n.members,n.callSignatures,St(a)?a:et,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function GE(n,a){let c;for(let d=n;d;d=d.parent){if(hh(d)&&d.locals&&!wh(d)&&(c=a(d.locals,void 0,!0,d)))return c;switch(d.kind){case 312:if(!Bp(d))break;case 267:const h=Cr(d);if(c=a((h==null?void 0:h.exports)||X,void 0,!0,d))return c;break;case 263:case 231:case 264:let y;if((Cr(d).members||X).forEach((x,k)=>{x.flags&788968&&(y||(y=pa())).set(k,x)}),y&&(c=a(y,void 0,!1,d)))return c;break}}return a(be,void 0,!0)}function cv(n){return n===111551?111551:1920}function Ib(n,a,c,d,h=new Map){if(!(n&&!D(n)))return;const y=eo(n),x=y.accessibleChainCache||(y.accessibleChainCache=new Map),k=GE(a,(sn,rr,zn,mn)=>mn),z=`${d?0:1}|${k&&fs(k)}|${c}`;if(x.has(z))return x.get(z);const K=Ia(n);let ne=h.get(K);ne||h.set(K,ne=[]);const Te=GE(a,ve);return x.set(z,Te),Te;function ve(sn,rr,zn){if(!Tf(ne,sn))return;const mn=xt(sn,rr,zn);return ne.pop(),mn}function Ge(sn,rr){return!r1(sn,a,rr)||!!Ib(sn.parent,a,cv(rr),d,h)}function vt(sn,rr,zn){return(n===(rr||sn)||ds(n)===ds(rr||sn))&&!St(sn.declarations,rd)&&(zn||Ge(ds(sn),c))}function xt(sn,rr,zn){return vt(sn.get(n.escapedName),void 0,rr)?[n]:qc(sn,Gn=>{if(Gn.flags&2097152&&Gn.escapedName!=="export="&&Gn.escapedName!=="default"&&!(Q3(Gn)&&a&&mc(Jn(a)))&&(!d||St(Gn.declarations,h0))&&(zn?!St(Gn.declarations,eoe):!0)&&(rr||!gl(Gn,281))){const Pn=Vc(Gn),qn=cn(Gn,Pn,rr);if(qn)return qn}if(Gn.escapedName===n.escapedName&&Gn.exportSymbol&&vt(ds(Gn.exportSymbol),void 0,rr))return[n]})||(sn===be?cn(it,it,rr):void 0)}function cn(sn,rr,zn){if(vt(sn,rr,zn))return[sn];const mn=Lp(rr),Gn=mn&&ve(mn,!0);if(Gn&&Ge(sn,cv(c)))return[sn].concat(Gn)}}function r1(n,a,c){let d=!1;return GE(a,h=>{let y=ds(h.get(n.escapedName));if(!y)return!1;if(y===n)return!0;const x=y.flags&2097152&&!gl(y,281);return y=x?Vc(y):y,(x?Ru(y):y.flags)&c?(d=!0,!0):!1}),d}function D(n){if(n.declarations&&n.declarations.length){for(const a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ae(n,a){return bi(n,a,788968,!1,!0).accessibility===0}function ht(n,a){return bi(n,a,111551,!1,!0).accessibility===0}function ln(n,a,c){return bi(n,a,c,!1,!1).accessibility===0}function Or(n,a,c,d,h,y){if(!Pe(n))return;let x,k=!1;for(const z of n){const K=Ib(z,a,d,!1);if(K){x=z;const ve=Ld(K[0],h);if(ve)return ve}if(y&&St(z.declarations,rd)){if(h){k=!0;continue}return{accessibility:0}}const ne=t1(z,a,d),Te=Or(ne,a,c,c===z?cv(d):d,h,y);if(Te)return Te}if(k)return{accessibility:0};if(x)return{accessibility:1,errorSymbolName:Ti(c,a,d),errorModuleName:x!==c?Ti(x,a,1920):void 0}}function Li(n,a,c,d){return bi(n,a,c,d,!0)}function bi(n,a,c,d,h){if(n&&a){const y=Or([n],a,n,c,d,h);if(y)return y;const x=Ve(n.declarations,lo);if(x){const k=lo(a);if(x!==k)return{accessibility:2,errorSymbolName:Ti(n,a,c),errorModuleName:Ti(x),errorNode:dr(a)?a:void 0}}return{accessibility:1,errorSymbolName:Ti(n,a,c)}}return{accessibility:0}}function lo(n){const a=jn(n,Ea);return a&&Cr(a)}function Ea(n){return Ou(n)||n.kind===312&&Bp(n)}function rd(n){return i3(n)||n.kind===312&&Bp(n)}function Ld(n,a){let c;if(!Bn(Vn(n.declarations,y=>y.kind!==80),d))return;return{accessibility:0,aliasesToMakeVisible:c};function d(y){var x,k;if(!p_(y)){const z=xT(y);if(z&&!Qr(z,32)&&p_(z.parent))return h(y,z);if(Wi(y)&&Fl(y.parent.parent)&&!Qr(y.parent.parent,32)&&p_(y.parent.parent.parent))return h(y,y.parent.parent);if(o3(y)&&!Qr(y,32)&&p_(y.parent))return h(y,y);if(os(y)){if(n.flags&2097152&&dr(y)&&((x=y.parent)==null?void 0:x.parent)&&Wi(y.parent.parent)&&((k=y.parent.parent.parent)==null?void 0:k.parent)&&Fl(y.parent.parent.parent.parent)&&!Qr(y.parent.parent.parent.parent,32)&&y.parent.parent.parent.parent.parent&&p_(y.parent.parent.parent.parent.parent))return h(y,y.parent.parent.parent.parent);if(n.flags&2){const K=jn(y,Fl);return Qr(K,32)?!0:p_(K.parent)?h(y,K):!1}}return!1}return!0}function h(y,x){return a&&(Zr(y).isVisible=!0,c=Lg(c,x)),!0}}function jf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!ng(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function xb(n,a){const c=jf(n),d=jp(n),h=Tl(a,d.escapedText,c,void 0,void 0,!1);return h&&h.flags&262144&&c&788968?{accessibility:0}:!h&&X1(d)&&Li(Cr(zd(d,!1,!1)),d,c,!1).accessibility===0?{accessibility:0}:h&&Ld(h,!0)||{accessibility:1,errorSymbolName:bc(d),errorNode:d}}function Ti(n,a,c,d=4,h){let y=70221824;d&2&&(y|=128),d&1&&(y|=512),d&8&&(y|=16384),d&32&&(y|=134217728),d&16&&(y|=1073741824);const x=d&4?At.symbolToNode:At.symbolToEntityName;return h?k(h).getText():PN(k);function k(z){const K=x(n,c,a,y),ne=(a==null?void 0:a.kind)===312?OJ():vE(),Te=a&&Jn(a);return ne.writeNode(4,K,Te,z),z}}function zh(n,a,c=0,d,h){return h?y(h).getText():PN(y);function y(x){let k;c&262144?k=d===1?185:184:k=d===1?180:179;const z=At.signatureToSignatureDeclaration(n,k,a,BT(c)|70221824|512),K=tO(),ne=a&&Jn(a);return K.writeNode(4,z,ne,SU(x)),x}}function Kn(n,a,c=1064960,d=xk("")){const h=V.noErrorTruncation||c&1,y=At.typeToTypeNode(n,a,BT(c)|70221824|(h?1:0));if(y===void 0)return N.fail("should always get typenode");const x=n!==Gt?vE():wJ(),k=a&&Jn(a);x.writeNode(4,y,k,d);const z=d.getText(),K=h?A7*2:jk*2;return K&&z&&z.length>=K?z.substr(0,K-3)+"...":z}function vx(n,a){let c=Db(n.symbol)?Kn(n,n.symbol.valueDeclaration):Kn(n),d=Db(a.symbol)?Kn(a,a.symbol.valueDeclaration):Kn(a);return c===d&&(c=Rb(n),d=Rb(a)),[c,d]}function Rb(n){return Kn(n,void 0,64)}function Db(n){return n&&!!n.valueDeclaration&&bt(n.valueDeclaration)&&!Kf(n.valueDeclaration)}function BT(n=0){return n&848330095}function VE(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===qf(n.symbol)||!!(n.flags&524288)&&!!(zr(n)&16777216))}function Y_(){return{typeToTypeNode:(ct,xe,Ln,wr)=>a(xe,Ln,wr,pi=>d(ct,pi)),indexInfoToIndexSignatureDeclaration:(ct,xe,Ln,wr)=>a(xe,Ln,wr,pi=>ne(ct,pi,void 0)),signatureToSignatureDeclaration:(ct,xe,Ln,wr,pi)=>a(Ln,wr,pi,xi=>Te(ct,xe,xi)),symbolToEntityName:(ct,xe,Ln,wr,pi)=>a(Ln,wr,pi,xi=>So(ct,xi,xe,!1)),symbolToExpression:(ct,xe,Ln,wr,pi)=>a(Ln,wr,pi,xi=>kc(ct,xi,xe)),symbolToTypeParameterDeclarations:(ct,xe,Ln,wr)=>a(xe,Ln,wr,pi=>Gn(ct,pi)),symbolToParameterDeclaration:(ct,xe,Ln,wr)=>a(xe,Ln,wr,pi=>cn(ct,pi)),typeParameterToDeclaration:(ct,xe,Ln,wr)=>a(xe,Ln,wr,pi=>vt(ct,pi)),symbolTableToDeclarationStatements:(ct,xe,Ln,wr,pi)=>a(xe,Ln,wr,xi=>Al(ct,xi,pi)),symbolToNode:(ct,xe,Ln,wr,pi)=>a(Ln,wr,pi,xi=>n(ct,xi,xe))};function n(ct,xe,Ln){if(xe.flags&1073741824){if(ct.valueDeclaration){const pi=Oo(ct.valueDeclaration);if(pi&&ss(pi))return pi}const wr=eo(ct).nameType;if(wr&&wr.flags&9216)return xe.enclosingDeclaration=wr.symbol.valueDeclaration,O.createComputedPropertyName(kc(wr.symbol,xe,Ln))}return kc(ct,xe,Ln)}function a(ct,xe,Ln,wr){N.assert(ct===void 0||(ct.flags&16)===0);const pi=Ln!=null&&Ln.trackSymbol?Ln.moduleResolverHost:xe&134217728?nUe(e):void 0,xi={enclosingDeclaration:ct,flags:xe||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};xi.tracker=new lJ(xi,Ln,pi);const Ri=wr(xi);return xi.truncating&&xi.flags&1&&xi.tracker.reportTruncationError(),xi.encounteredError?void 0:Ri}function c(ct){return ct.truncating?ct.truncating:ct.truncating=ct.approximateLength>(ct.flags&1?A7:jk)}function d(ct,xe){const Ln=xe.flags,wr=h(ct,xe);return xe.flags=Ln,wr}function h(ct,xe){var Ln,wr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();const pi=xe.flags&8388608;if(xe.flags&=-8388609,!ct){if(!(xe.flags&262144)){xe.encounteredError=!0;return}return xe.approximateLength+=3,O.createKeywordTypeNode(133)}if(xe.flags&536870912||(ct=h_(ct)),ct.flags&1)return ct.aliasSymbol?O.createTypeReferenceNode(ir(ct.aliasSymbol),z(ct.aliasTypeArguments,xe)):ct===Gt?IC(O.createKeywordTypeNode(133),3,"unresolved"):(xe.approximateLength+=3,O.createKeywordTypeNode(ct===hn?141:133));if(ct.flags&2)return O.createKeywordTypeNode(159);if(ct.flags&4)return xe.approximateLength+=6,O.createKeywordTypeNode(154);if(ct.flags&8)return xe.approximateLength+=6,O.createKeywordTypeNode(150);if(ct.flags&64)return xe.approximateLength+=6,O.createKeywordTypeNode(163);if(ct.flags&16&&!ct.aliasSymbol)return xe.approximateLength+=7,O.createKeywordTypeNode(136);if(ct.flags&1056){if(ct.symbol.flags&8){const wn=Md(ct.symbol),ui=vo(wn,xe,788968);if(nl(wn)===ct)return ui;const Ii=Il(ct.symbol);return tf(Ii,0)?wi(ui,O.createTypeReferenceNode(Ii,void 0)):dg(ui)?(ui.isTypeOf=!0,O.createIndexedAccessTypeNode(ui,O.createLiteralTypeNode(O.createStringLiteral(Ii)))):Cf(ui)?O.createIndexedAccessTypeNode(O.createTypeQueryNode(ui.typeName),O.createLiteralTypeNode(O.createStringLiteral(Ii))):N.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return vo(ct.symbol,xe,788968)}if(ct.flags&128)return xe.approximateLength+=ct.value.length+2,O.createLiteralTypeNode(hr(O.createStringLiteral(ct.value,!!(xe.flags&268435456)),16777216));if(ct.flags&256){const wn=ct.value;return xe.approximateLength+=(""+wn).length,O.createLiteralTypeNode(wn<0?O.createPrefixUnaryExpression(41,O.createNumericLiteral(-wn)):O.createNumericLiteral(wn))}if(ct.flags&2048)return xe.approximateLength+=Q1(ct.value).length+1,O.createLiteralTypeNode(O.createBigIntLiteral(ct.value));if(ct.flags&512)return xe.approximateLength+=ct.intrinsicName.length,O.createLiteralTypeNode(ct.intrinsicName==="true"?O.createTrue():O.createFalse());if(ct.flags&8192){if(!(xe.flags&1048576)){if(ht(ct.symbol,xe.enclosingDeclaration))return xe.approximateLength+=6,vo(ct.symbol,xe,111551);xe.tracker.reportInaccessibleUniqueSymbolError&&xe.tracker.reportInaccessibleUniqueSymbolError()}return xe.approximateLength+=13,O.createTypeOperatorNode(158,O.createKeywordTypeNode(155))}if(ct.flags&16384)return xe.approximateLength+=4,O.createKeywordTypeNode(116);if(ct.flags&32768)return xe.approximateLength+=9,O.createKeywordTypeNode(157);if(ct.flags&65536)return xe.approximateLength+=4,O.createLiteralTypeNode(O.createNull());if(ct.flags&131072)return xe.approximateLength+=5,O.createKeywordTypeNode(146);if(ct.flags&4096)return xe.approximateLength+=6,O.createKeywordTypeNode(155);if(ct.flags&67108864)return xe.approximateLength+=6,O.createKeywordTypeNode(151);if(gC(ct))return xe.flags&4194304&&(!xe.encounteredError&&!(xe.flags&32768)&&(xe.encounteredError=!0),(wr=(Ln=xe.tracker).reportInaccessibleThisError)==null||wr.call(Ln)),xe.approximateLength+=4,O.createThisTypeNode();if(!pi&&ct.aliasSymbol&&(xe.flags&16384||ae(ct.aliasSymbol,xe.enclosingDeclaration))){const wn=z(ct.aliasTypeArguments,xe);return zE(ct.aliasSymbol.escapedName)&&!(ct.aliasSymbol.flags&32)?O.createTypeReferenceNode(O.createIdentifier(""),wn):Pe(wn)===1&&ct.aliasSymbol===Qo.symbol?O.createArrayTypeNode(wn[0]):vo(ct.aliasSymbol,xe,788968,wn)}const xi=zr(ct);if(xi&4)return N.assert(!!(ct.flags&524288)),ct.node?Ut(ct,kn):kn(ct);if(ct.flags&262144||xi&3){if(ct.flags&262144&&Mn(xe.inferTypeParameters,ct)){xe.approximateLength+=Il(ct.symbol).length+6;let ui;const Ii=kd(ct);if(Ii){const ro=a8e(ct,!0);ro&&gv(Ii,ro)||(xe.approximateLength+=9,ui=Ii&&d(Ii,xe))}return O.createInferTypeNode(Ge(ct,xe,ui))}if(xe.flags&4&&ct.flags&262144){const ui=Vo(ct,xe);return xe.approximateLength+=Rr(ui).length,O.createTypeReferenceNode(O.createIdentifier(Rr(ui)),void 0)}if(ct.symbol)return vo(ct.symbol,xe,788968);const wn=(ct===pe||ct===Z)&&W&&W.symbol?(ct===Z?"sub-":"super-")+Il(W.symbol):"?";return O.createTypeReferenceNode(O.createIdentifier(wn),void 0)}if(ct.flags&1048576&&ct.origin&&(ct=ct.origin),ct.flags&3145728){const wn=ct.flags&1048576?SD(ct.types):ct.types;if(Pe(wn)===1)return d(wn[0],xe);const ui=z(wn,xe,!0);if(ui&&ui.length>0)return ct.flags&1048576?O.createUnionTypeNode(ui):O.createIntersectionTypeNode(ui);!xe.encounteredError&&!(xe.flags&262144)&&(xe.encounteredError=!0);return}if(xi&48)return N.assert(!!(ct.flags&524288)),dn(ct);if(ct.flags&4194304){const wn=ct.type;xe.approximateLength+=6;const ui=d(wn,xe);return O.createTypeOperatorNode(143,ui)}if(ct.flags&134217728){const wn=ct.texts,ui=ct.types,Ii=O.createTemplateHead(wn[0]),ro=O.createNodeArray(Wt(ui,(ea,Rl)=>O.createTemplateLiteralTypeSpan(d(ea,xe),(Rl<ui.length-1?O.createTemplateMiddle:O.createTemplateTail)(wn[Rl+1]))));return xe.approximateLength+=2,O.createTemplateLiteralType(Ii,ro)}if(ct.flags&268435456){const wn=d(ct.type,xe);return vo(ct.symbol,xe,788968,[wn])}if(ct.flags&8388608){const wn=d(ct.objectType,xe),ui=d(ct.indexType,xe);return xe.approximateLength+=2,O.createIndexedAccessTypeNode(wn,ui)}if(ct.flags&16777216)return Ut(ct,wn=>Ri(wn));if(ct.flags&33554432){const wn=d(ct.baseType,xe),ui=rM(ct)&&uve("NoInfer",!1);return ui?vo(ui,xe,788968,[wn]):wn}return N.fail("Should be unreachable.");function Ri(wn){const ui=d(wn.checkType,xe);if(xe.approximateLength+=15,xe.flags&4&&wn.root.isDistributive&&!(wn.checkType.flags&262144)){const hl=yf(ts(262144,"T")),Ws=Vo(hl,xe),Zc=O.createTypeReferenceNode(Ws);xe.approximateLength+=37;const Fs=ZT(wn.root.checkType,hl,wn.mapper),Qf=xe.inferTypeParameters;xe.inferTypeParameters=wn.root.inferTypeParameters;const tt=d(fo(wn.root.extendsType,Fs),xe);xe.inferTypeParameters=Qf;const Et=jr(fo(Ai(wn.root.node.trueType),Fs)),rn=jr(fo(Ai(wn.root.node.falseType),Fs));return O.createConditionalTypeNode(ui,O.createInferTypeNode(O.createTypeParameterDeclaration(void 0,O.cloneNode(Zc.typeName))),O.createConditionalTypeNode(O.createTypeReferenceNode(O.cloneNode(Ws)),d(wn.checkType,xe),O.createConditionalTypeNode(Zc,tt,Et,rn),O.createKeywordTypeNode(146)),O.createKeywordTypeNode(146))}const Ii=xe.inferTypeParameters;xe.inferTypeParameters=wn.root.inferTypeParameters;const ro=d(wn.extendsType,xe);xe.inferTypeParameters=Ii;const ea=jr(f1(wn)),Rl=jr(m1(wn));return O.createConditionalTypeNode(ui,ro,ea,Rl)}function jr(wn){var ui,Ii,ro;return wn.flags&1048576?(ui=xe.visitedTypes)!=null&&ui.has(bd(wn))?(xe.flags&131072||(xe.encounteredError=!0,(ro=(Ii=xe.tracker)==null?void 0:Ii.reportCyclicStructureError)==null||ro.call(Ii)),y(xe)):Ut(wn,ea=>d(ea,xe)):d(wn,xe)}function Pr(wn){return!!Q4(wn)}function ft(wn){return!!wn.target&&Pr(wn.target)&&!Pr(wn)}function wt(wn){var ui;N.assert(!!(wn.flags&524288));const Ii=wn.declaration.readonlyToken?O.createToken(wn.declaration.readonlyToken.kind):void 0,ro=wn.declaration.questionToken?O.createToken(wn.declaration.questionToken.kind):void 0;let ea,Rl;const hl=!DD(wn)&&!(UT(wn).flags&2)&&xe.flags&4&&!(Ef(wn).flags&262144&&((ui=kd(Ef(wn)))==null?void 0:ui.flags)&4194304);if(DD(wn)){if(ft(wn)&&xe.flags&4){const Et=yf(ts(262144,"T")),rn=Vo(Et,xe);Rl=O.createTypeReferenceNode(rn)}ea=O.createTypeOperatorNode(143,Rl||d(UT(wn),xe))}else if(hl){const Et=yf(ts(262144,"T")),rn=Vo(Et,xe);Rl=O.createTypeReferenceNode(rn),ea=Rl}else ea=d(Ef(wn),xe);const Ws=Ge(m_(wn),xe,ea),Zc=wn.declaration.nameType?d(my(wn),xe):void 0,Fs=d(Jb(fv(wn),!!(jh(wn)&4)),xe),Qf=O.createMappedTypeNode(Ii,Ws,Zc,ro,Fs,void 0);xe.approximateLength+=10;const tt=hr(Qf,1);if(ft(wn)&&xe.flags&4){const Et=fo(kd(Ai(wn.declaration.typeParameter.constraint.type))||pn,wn.mapper);return O.createConditionalTypeNode(d(UT(wn),xe),O.createInferTypeNode(O.createTypeParameterDeclaration(void 0,O.cloneNode(Rl.typeName),Et.flags&2?void 0:d(Et,xe))),tt,O.createKeywordTypeNode(146))}else if(hl)return O.createConditionalTypeNode(d(Ef(wn),xe),O.createInferTypeNode(O.createTypeParameterDeclaration(void 0,O.cloneNode(Rl.typeName),O.createTypeOperatorNode(143,d(UT(wn),xe)))),tt,O.createKeywordTypeNode(146));return tt}function dn(wn){var ui,Ii;const ro=wn.id,ea=wn.symbol;if(ea){if(!!(zr(wn)&8388608)){const Fs=wn.node;if(fI(Fs)&&Ai(Fs)===wn){const Qf=jl(xe,Fs);if(Qf)return Qf}return(ui=xe.visitedTypes)!=null&&ui.has(ro)?y(xe):Ut(wn,_n)}const Ws=VE(wn)?788968:111551;if(oh(ea.valueDeclaration))return vo(ea,xe,Ws);if(ea.flags&32&&!XZ(ea)&&!(ea.valueDeclaration&&di(ea.valueDeclaration)&&xe.flags&2048&&(!Nc(ea.valueDeclaration)||Li(ea,xe.enclosingDeclaration,Ws,!1).accessibility!==0))||ea.flags&896||Rl())return vo(ea,xe,Ws);if((Ii=xe.visitedTypes)!=null&&Ii.has(ro)){const Zc=Tz(wn);return Zc?vo(Zc,xe,788968):y(xe)}else return Ut(wn,_n)}else return _n(wn);function Rl(){var hl;const Ws=!!(ea.flags&8192)&&St(ea.declarations,Fs=>la(Fs)),Zc=!!(ea.flags&16)&&(ea.parent||Ve(ea.declarations,Fs=>Fs.parent.kind===312||Fs.parent.kind===268));if(Ws||Zc)return(!!(xe.flags&4096)||((hl=xe.visitedTypes)==null?void 0:hl.has(ro)))&&(!(xe.flags&8)||ht(ea,xe.enclosingDeclaration))}}function Ut(wn,ui){var Ii,ro,ea;const Rl=wn.id,hl=zr(wn)&16&&wn.symbol&&wn.symbol.flags&32,Ws=zr(wn)&4&&wn.node?"N"+fs(wn.node):wn.flags&16777216?"N"+fs(wn.root.node):wn.symbol?(hl?"+":"")+Ia(wn.symbol):void 0;xe.visitedTypes||(xe.visitedTypes=new Set),Ws&&!xe.symbolDepth&&(xe.symbolDepth=new Map);const Zc=xe.enclosingDeclaration&&Zr(xe.enclosingDeclaration),Fs=`${bd(wn)}|${xe.flags}`;Zc&&(Zc.serializedTypes||(Zc.serializedTypes=new Map));const Qf=(Ii=Zc==null?void 0:Zc.serializedTypes)==null?void 0:Ii.get(Fs);if(Qf)return(ro=Qf.trackedSymbols)==null||ro.forEach(([Ur,Gi,Bo])=>xe.tracker.trackSymbol(Ur,Gi,Bo)),Qf.truncating&&(xe.truncating=!0),xe.approximateLength+=Qf.addedLength,An(Qf.node);let tt;if(Ws){if(tt=xe.symbolDepth.get(Ws)||0,tt>10)return y(xe);xe.symbolDepth.set(Ws,tt+1)}xe.visitedTypes.add(Rl);const Et=xe.trackedSymbols;xe.trackedSymbols=void 0;const rn=xe.approximateLength,Zn=ui(wn),Mr=xe.approximateLength-rn;return!xe.reportedDiagnostic&&!xe.encounteredError&&((ea=Zc==null?void 0:Zc.serializedTypes)==null||ea.set(Fs,{node:Zn,truncating:xe.truncating,addedLength:Mr,trackedSymbols:xe.trackedSymbols})),xe.visitedTypes.delete(Rl),Ws&&xe.symbolDepth.set(Ws,tt),xe.trackedSymbols=Et,Zn;function An(Ur){return!Zs(Ur)&&Lo(Ur)===Ur?Ur:ut(O.cloneNode(xn(Ur,An,void 0,Tr)),Ur)}function Tr(Ur,Gi,Bo,ha,ga){return Ur&&Ur.length===0?ut(O.createNodeArray(void 0,Ur.hasTrailingComma),Ur):Un(Ur,Gi,Bo,ha,ga)}}function _n(wn){if(Xd(wn)||wn.containsError)return wt(wn);const ui=__(wn);if(!ui.properties.length&&!ui.indexInfos.length){if(!ui.callSignatures.length&&!ui.constructSignatures.length)return xe.approximateLength+=2,hr(O.createTypeLiteralNode(void 0),1);if(ui.callSignatures.length===1&&!ui.constructSignatures.length){const hl=ui.callSignatures[0];return Te(hl,184,xe)}if(ui.constructSignatures.length===1&&!ui.callSignatures.length){const hl=ui.constructSignatures[0];return Te(hl,185,xe)}}const Ii=Vn(ui.constructSignatures,hl=>!!(hl.flags&4));if(St(Ii)){const hl=Wt(Ii,KT);return ui.callSignatures.length+(ui.constructSignatures.length-Ii.length)+ui.indexInfos.length+(xe.flags&2048?Ca(ui.properties,Zc=>!(Zc.flags&4194304)):Pe(ui.properties))&&hl.push(BE(ui)),d(Ta(hl),xe)}const ro=xe.flags;xe.flags|=4194304;const ea=oa(ui);xe.flags=ro;const Rl=O.createTypeLiteralNode(ea);return xe.approximateLength+=2,hr(Rl,xe.flags&1024?0:1),Rl}function kn(wn){let ui=$s(wn);if(wn.target===Qo||wn.target===ra){if(xe.flags&2){const ea=d(ui[0],xe);return O.createTypeReferenceNode(wn.target===Qo?"Array":"ReadonlyArray",[ea])}const Ii=d(ui[0],xe),ro=O.createArrayTypeNode(Ii);return wn.target===Qo?ro:O.createTypeOperatorNode(148,ro)}else if(wn.target.objectFlags&8){if(ui=mo(ui,(Ii,ro)=>Jb(Ii,!!(wn.target.elementFlags[ro]&2))),ui.length>0){const Ii=hy(wn),ro=z(ui.slice(0,Ii),xe);if(ro){const{labeledElementDeclarations:ea}=wn.target;for(let hl=0;hl<ro.length;hl++){const Ws=wn.target.elementFlags[hl],Zc=ea==null?void 0:ea[hl];Zc?ro[hl]=O.createNamedTupleMember(Ws&12?O.createToken(26):void 0,O.createIdentifier(Ki(dbe(Zc))),Ws&2?O.createToken(58):void 0,Ws&4?O.createArrayTypeNode(ro[hl]):ro[hl]):ro[hl]=Ws&12?O.createRestTypeNode(Ws&4?O.createArrayTypeNode(ro[hl]):ro[hl]):Ws&2?O.createOptionalTypeNode(ro[hl]):ro[hl]}const Rl=hr(O.createTupleTypeNode(ro),1);return wn.target.readonly?O.createTypeOperatorNode(148,Rl):Rl}}if(xe.encounteredError||xe.flags&524288){const Ii=hr(O.createTupleTypeNode([]),1);return wn.target.readonly?O.createTypeOperatorNode(148,Ii):Ii}xe.encounteredError=!0;return}else{if(xe.flags&2048&&wn.symbol.valueDeclaration&&di(wn.symbol.valueDeclaration)&&!ht(wn.symbol,xe.enclosingDeclaration))return dn(wn);{const Ii=wn.target.outerTypeParameters;let ro=0,ea;if(Ii){const Zc=Ii.length;for(;ro<Zc;){const Fs=ro,Qf=s8e(Ii[ro]);do ro++;while(ro<Zc&&s8e(Ii[ro])===Qf);if(!SG(Ii,ui,Fs,ro)){const tt=z(ui.slice(Fs,ro),xe),Et=xe.flags;xe.flags|=16;const rn=vo(Qf,xe,788968,tt);xe.flags=Et,ea=ea?wi(ea,rn):rn}}}let Rl;if(ui.length>0){const Zc=(wn.target.typeParameters||et).length;Rl=z(ui.slice(ro,Zc),xe)}const hl=xe.flags;xe.flags|=16;const Ws=vo(wn.symbol,xe,788968,Rl);return xe.flags=hl,ea?wi(ea,Ws):Ws}}}function wi(wn,ui){if(dg(wn)){let Ii=wn.typeArguments,ro=wn.qualifier;ro&&(Ue(ro)?Ii!==zS(ro)&&(ro=Jv(O.cloneNode(ro),Ii)):Ii!==zS(ro.right)&&(ro=O.updateQualifiedName(ro,ro.left,Jv(O.cloneNode(ro.right),Ii)))),Ii=ui.typeArguments;const ea=hi(ui);for(const Rl of ea)ro=ro?O.createQualifiedName(ro,Rl):Rl;return O.updateImportTypeNode(wn,wn.argument,wn.attributes,ro,Ii,wn.isTypeOf)}else{let Ii=wn.typeArguments,ro=wn.typeName;Ue(ro)?Ii!==zS(ro)&&(ro=Jv(O.cloneNode(ro),Ii)):Ii!==zS(ro.right)&&(ro=O.updateQualifiedName(ro,ro.left,Jv(O.cloneNode(ro.right),Ii))),Ii=ui.typeArguments;const ea=hi(ui);for(const Rl of ea)ro=O.createQualifiedName(ro,Rl);return O.updateTypeReferenceNode(wn,ro,Ii)}}function hi(wn){let ui=wn.typeName;const Ii=[];for(;!Ue(ui);)Ii.unshift(ui.right),ui=ui.left;return Ii.unshift(ui),Ii}function oa(wn){if(c(xe))return[O.createPropertySignature(void 0,"...",void 0,void 0)];const ui=[];for(const ea of wn.callSignatures)ui.push(Te(ea,179,xe));for(const ea of wn.constructSignatures)ea.flags&4||ui.push(Te(ea,180,xe));for(const ea of wn.indexInfos)ui.push(ne(ea,xe,wn.objectFlags&1024?y(xe):void 0));const Ii=wn.properties;if(!Ii)return ui;let ro=0;for(const ea of Ii){if(ro++,xe.flags&2048){if(ea.flags&4194304)continue;Df(ea)&6&&xe.tracker.reportPrivateInBaseOfClassExpression&&xe.tracker.reportPrivateInBaseOfClassExpression(Ki(ea.escapedName))}if(c(xe)&&ro+2<Ii.length-1){ui.push(O.createPropertySignature(void 0,`... ${Ii.length-ro} more ...`,void 0,void 0)),k(Ii[Ii.length-1],xe,ui);break}k(ea,xe,ui)}return ui.length?ui:void 0}}function y(ct){return ct.approximateLength+=3,ct.flags&1?O.createKeywordTypeNode(133):O.createTypeReferenceNode(O.createIdentifier("..."),void 0)}function x(ct,xe){var Ln;return!!(Cl(ct)&8192)&&(Mn(xe.reverseMappedStack,ct)||((Ln=xe.reverseMappedStack)==null?void 0:Ln[0])&&!(zr(rs(xe.reverseMappedStack).links.propertyType)&16))}function k(ct,xe,Ln){var wr;const pi=!!(Cl(ct)&8192),xi=x(ct,xe)?j:kb(ct),Ri=xe.enclosingDeclaration;if(xe.enclosingDeclaration=void 0,xe.tracker.canTrackSymbol&&G4(ct.escapedName))if(ct.declarations){const _n=$a(ct.declarations);if(Nz(_n))if(vr(_n)){const kn=Oo(_n);kn&&el(kn)&&Nk(kn.argumentExpression)&&rr(kn.argumentExpression,Ri,xe)}else rr(_n.name.expression,Ri,xe)}else xe.tracker.reportNonSerializableProperty(Ti(ct));xe.enclosingDeclaration=ct.valueDeclaration||((wr=ct.declarations)==null?void 0:wr[0])||Ri;const jr=Wn(ct,xe);if(xe.enclosingDeclaration=Ri,xe.approximateLength+=Il(ct).length+1,ct.flags&98304){const _n=jE(ct);if(xi!==_n&&!Jt(xi)&&!Jt(_n)){const kn=gl(ct,177),wi=vm(kn);Ln.push(fc(Te(wi,177,xe,{name:jr}),kn));const hi=gl(ct,178),oa=vm(hi);Ln.push(fc(Te(oa,178,xe,{name:jr}),hi));return}}const Pr=ct.flags&16777216?O.createToken(58):void 0;if(ct.flags&8208&&!Wb(xi).length&&!b_(ct)){const _n=$o(vc(xi,kn=>!(kn.flags&32768)),0);for(const kn of _n){const wi=Te(kn,173,xe,{name:jr,questionToken:Pr});Ln.push(Ut(wi))}if(_n.length||!Pr)return}let ft;x(ct,xe)?ft=y(xe):(pi&&(xe.reverseMappedStack||(xe.reverseMappedStack=[]),xe.reverseMappedStack.push(ct)),ft=xi?Cs(xe,xi,ct,Ri):O.createKeywordTypeNode(133),pi&&xe.reverseMappedStack.pop());const wt=b_(ct)?[O.createToken(148)]:void 0;wt&&(xe.approximateLength+=9);const dn=O.createPropertySignature(wt,jr,Pr,ft);Ln.push(Ut(dn));function Ut(_n){var kn;const wi=(kn=ct.declarations)==null?void 0:kn.find(hi=>hi.kind===355);if(wi){const hi=RL(wi.comment);hi&&I0(_n,[{kind:3,text:`*
* `+hi.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else ct.valueDeclaration&&fc(_n,ct.valueDeclaration);return _n}}function z(ct,xe,Ln){if(St(ct)){if(c(xe))if(Ln){if(ct.length>2)return[d(ct[0],xe),O.createTypeReferenceNode(`... ${ct.length-2} more ...`,void 0),d(ct[ct.length-1],xe)]}else return[O.createTypeReferenceNode("...",void 0)];const pi=!(xe.flags&64)?Zp():void 0,xi=[];let Ri=0;for(const jr of ct){if(Ri++,c(xe)&&Ri+2<ct.length-1){xi.push(O.createTypeReferenceNode(`... ${ct.length-Ri} more ...`,void 0));const ft=d(ct[ct.length-1],xe);ft&&xi.push(ft);break}xe.approximateLength+=2;const Pr=d(jr,xe);Pr&&(xi.push(Pr),pi&&mae(Pr)&&pi.add(Pr.typeName.escapedText,[jr,xi.length-1]))}if(pi){const jr=xe.flags;xe.flags|=64,pi.forEach(Pr=>{if(!_ae(Pr,([ft],[wt])=>K(ft,wt)))for(const[ft,wt]of Pr)xi[wt]=d(ft,xe)}),xe.flags=jr}return xi}}function K(ct,xe){return ct===xe||!!ct.symbol&&ct.symbol===xe.symbol||!!ct.aliasSymbol&&ct.aliasSymbol===xe.aliasSymbol}function ne(ct,xe,Ln){const wr=Oie(ct)||"x",pi=d(ct.keyType,xe),xi=O.createParameterDeclaration(void 0,void 0,wr,void 0,pi,void 0);return Ln||(Ln=d(ct.type||j,xe)),!ct.type&&!(xe.flags&2097152)&&(xe.encounteredError=!0),xe.approximateLength+=wr.length+4,O.createIndexSignature(ct.isReadonly?[O.createToken(148)]:void 0,[xi],Ln)}function Te(ct,xe,Ln,wr){var hi,oa,wn,ui;var pi;const xi=Ln.flags&256;xi&&(Ln.flags&=-257),Ln.approximateLength+=3;let Ri,jr;Ln.flags&32&&ct.target&&ct.mapper&&ct.target.typeParameters?jr=ct.target.typeParameters.map(Ii=>d(fo(Ii,ct.mapper),Ln)):Ri=ct.typeParameters&&ct.typeParameters.map(Ii=>vt(Ii,Ln));const Pr=O4e(ct,!0)[0];let ft;if(Ln.enclosingDeclaration&&ct.declaration&&ct.declaration!==Ln.enclosingDeclaration&&!dr(ct.declaration)&&(St(Pr)||St(ct.typeParameters))){let Ii=function(ro,ea){var Qf;N.assert(Ln.enclosingDeclaration);let Rl;Zr(Ln.enclosingDeclaration).fakeScopeForSignatureDeclaration===ro?Rl=Ln.enclosingDeclaration:Ln.enclosingDeclaration.parent&&Zr(Ln.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===ro&&(Rl=Ln.enclosingDeclaration.parent),N.assertOptionalNode(Rl,Yo);const hl=(Qf=Rl==null?void 0:Rl.locals)!=null?Qf:pa();let Ws;if(ea((tt,Et)=>{hl.has(tt)||(Ws=Rn(Ws,tt),hl.set(tt,Et))}),!Ws)return;const Zc=ft;function Fs(){Ve(Ws,tt=>hl.delete(tt)),Zc==null||Zc()}if(Rl)ft=Fs;else{const tt=Dh.createBlock(et);Zr(tt).fakeScopeForSignatureDeclaration=ro,tt.locals=hl;const Et=Ln.enclosingDeclaration;Qa(tt,Et),Ln.enclosingDeclaration=tt,ft=()=>{Ln.enclosingDeclaration=Et,Fs()}}};Ii("params",ro=>{for(const ea of Pr)ro(ea.escapedName,ea)}),Ln.flags&4&&Ii("typeParams",ro=>{var ea;for(const Rl of(ea=ct.typeParameters)!=null?ea:et){const hl=Vo(Rl,Ln).escapedText;ro(hl,Rl.symbol)}})}const wt=(St(Pr,Ii=>Ii!==Pr[Pr.length-1]&&!!(Cl(Ii)&32768))?ct.parameters:Pr).map(Ii=>cn(Ii,Ln,xe===176,wr==null?void 0:wr.privateSymbolVisitor,wr==null?void 0:wr.bundledImports)),dn=Ln.flags&33554432?void 0:ve(ct,Ln);dn&&wt.unshift(dn);let Ut;const _n=Jf(ct);if(_n){const Ii=_n.kind===2||_n.kind===3?O.createToken(131):void 0,ro=_n.kind===1||_n.kind===3?hr(O.createIdentifier(_n.parameterName),16777216):O.createThisTypeNode(),ea=_n.type&&d(_n.type,Ln);Ut=O.createTypePredicateNode(Ii,ro,ea)}else{const Ii=ys(ct);Ii&&!(xi&&Nt(Ii))?Ut=qa(Ln,Ii,ct,wr==null?void 0:wr.privateSymbolVisitor,wr==null?void 0:wr.bundledImports):xi||(Ut=O.createKeywordTypeNode(133))}let kn=wr==null?void 0:wr.modifiers;if(xe===185&&ct.flags&4){const Ii=M_(kn);kn=O.createModifiersFromModifierFlags(Ii|64)}const wi=xe===179?O.createCallSignature(Ri,wt,Ut):xe===180?O.createConstructSignature(Ri,wt,Ut):xe===173?O.createMethodSignature(kn,(hi=wr==null?void 0:wr.name)!=null?hi:O.createIdentifier(""),wr==null?void 0:wr.questionToken,Ri,wt,Ut):xe===174?O.createMethodDeclaration(kn,void 0,(oa=wr==null?void 0:wr.name)!=null?oa:O.createIdentifier(""),void 0,Ri,wt,Ut,void 0):xe===176?O.createConstructorDeclaration(kn,wt,void 0):xe===177?O.createGetAccessorDeclaration(kn,(wn=wr==null?void 0:wr.name)!=null?wn:O.createIdentifier(""),wt,Ut,void 0):xe===178?O.createSetAccessorDeclaration(kn,(ui=wr==null?void 0:wr.name)!=null?ui:O.createIdentifier(""),wt,void 0):xe===181?O.createIndexSignature(kn,wt,Ut):xe===324?O.createJSDocFunctionType(wt,Ut):xe===184?O.createFunctionTypeNode(Ri,wt,Ut!=null?Ut:O.createTypeReferenceNode(O.createIdentifier(""))):xe===185?O.createConstructorTypeNode(kn,Ri,wt,Ut!=null?Ut:O.createTypeReferenceNode(O.createIdentifier(""))):xe===262?O.createFunctionDeclaration(kn,void 0,wr!=null&&wr.name?sa(wr.name,Ue):O.createIdentifier(""),Ri,wt,Ut,void 0):xe===218?O.createFunctionExpression(kn,void 0,wr!=null&&wr.name?sa(wr.name,Ue):O.createIdentifier(""),Ri,wt,Ut,O.createBlock([])):xe===219?O.createArrowFunction(kn,Ri,wt,Ut,void 0,O.createBlock([])):N.assertNever(xe);if(jr&&(wi.typeArguments=O.createNodeArray(jr)),((pi=ct.declaration)==null?void 0:pi.kind)===330&&ct.declaration.parent.kind===346){const Ii=bc(ct.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(ro=>ro.replace(/^\s+/," ")).join(`
`);IC(wi,3,Ii,!0)}return ft==null||ft(),wi}function ve(ct,xe){if(ct.thisParameter)return cn(ct.thisParameter,xe);if(ct.declaration&&dr(ct.declaration)){const Ln=k6(ct.declaration);if(Ln&&Ln.typeExpression)return O.createParameterDeclaration(void 0,void 0,"this",void 0,d(Ai(Ln.typeExpression),xe))}}function Ge(ct,xe,Ln){const wr=xe.flags;xe.flags&=-513;const pi=O.createModifiersFromModifierFlags(qve(ct)),xi=Vo(ct,xe),Ri=JT(ct),jr=Ri&&d(Ri,xe);return xe.flags=wr,O.createTypeParameterDeclaration(pi,xi,Ln,jr)}function vt(ct,xe,Ln=kd(ct)){const wr=Ln&&d(Ln,xe);return Ge(ct,xe,wr)}function xt(ct){const xe=gl(ct,169);if(xe)return xe;if(!gh(ct))return gl(ct,348)}function cn(ct,xe,Ln,wr,pi){const xi=xt(ct);let Ri=_r(ct);xi&&IWe(xi)&&(Ri=qb(Ri));const jr=Cs(xe,Ri,ct,xe.enclosingDeclaration,wr,pi),Pr=!(xe.flags&8192)&&Ln&&xi&&km(xi)?Wt(L1(xi),O.cloneNode):void 0,wt=xi&&eg(xi)||Cl(ct)&32768?O.createToken(26):void 0,dn=sn(ct,xi,xe),_n=xi&&U4(xi)||Cl(ct)&16384?O.createToken(58):void 0,kn=O.createParameterDeclaration(Pr,wt,dn,_n,jr,void 0);return xe.approximateLength+=Il(ct).length+3,kn}function sn(ct,xe,Ln){return xe&&xe.name?xe.name.kind===80?hr(O.cloneNode(xe.name),16777216):xe.name.kind===166?hr(O.cloneNode(xe.name.right),16777216):wr(xe.name):Il(ct);function wr(pi){return xi(pi);function xi(Ri){Ln.tracker.canTrackSymbol&&ss(Ri)&&kge(Ri)&&rr(Ri.expression,Ln.enclosingDeclaration,Ln);let jr=xn(Ri,xi,void 0,void 0,xi);return os(jr)&&(jr=O.updateBindingElement(jr,jr.dotDotDotToken,jr.propertyName,jr.name,void 0)),Zs(jr)||(jr=O.cloneNode(jr)),hr(jr,16777217)}}}function rr(ct,xe,Ln){if(!Ln.tracker.canTrackSymbol)return;const wr=jp(ct),pi=Tl(wr,wr.escapedText,1160127,void 0,void 0,!0);pi&&Ln.tracker.trackSymbol(pi,xe,111551)}function zn(ct,xe,Ln,wr){return xe.tracker.trackSymbol(ct,xe.enclosingDeclaration,Ln),mn(ct,xe,Ln,wr)}function mn(ct,xe,Ln,wr){let pi;return!(ct.flags&262144)&&(xe.enclosingDeclaration||xe.flags&64)&&!(xe.flags&134217728)?(pi=N.checkDefined(Ri(ct,Ln,!0)),N.assert(pi&&pi.length>0)):pi=[ct],pi;function Ri(jr,Pr,ft){let wt=Ib(jr,xe.enclosingDeclaration,Pr,!!(xe.flags&128)),dn;if(!wt||r1(wt[0],xe.enclosingDeclaration,wt.length===1?Pr:cv(Pr))){const _n=t1(wt?wt[0]:jr,xe.enclosingDeclaration,Pr);if(Pe(_n)){dn=_n.map(hi=>St(hi.declarations,rd)?Hn(hi,xe):void 0);const kn=_n.map((hi,oa)=>oa);kn.sort(Ut);const wi=kn.map(hi=>_n[hi]);for(const hi of wi){const oa=Ri(hi,cv(Pr),!1);if(oa){if(hi.exports&&hi.exports.get("export=")&&d_(hi.exports.get("export="),jr)){wt=oa;break}wt=oa.concat(wt||[Tg(hi,jr)||jr]);break}}}}if(wt)return wt;if(ft||!(jr.flags&6144))return!ft&&!wr&&!!Ve(jr.declarations,rd)?void 0:[jr];function Ut(_n,kn){const wi=dn[_n],hi=dn[kn];if(wi&&hi){const oa=Fp(hi);return Fp(wi)===oa?oW(wi)-oW(hi):oa?-1:1}return 0}}}function Gn(ct,xe){let Ln;return HD(ct).flags&524384&&(Ln=O.createNodeArray(Wt(Wr(ct),pi=>vt(pi,xe)))),Ln}function Pn(ct,xe,Ln){var wr;N.assert(ct&&0<=xe&&xe<ct.length);const pi=ct[xe],xi=Ia(pi);if((wr=Ln.typeParameterSymbolList)!=null&&wr.has(xi))return;(Ln.typeParameterSymbolList||(Ln.typeParameterSymbolList=new Set)).add(xi);let Ri;if(Ln.flags&512&&xe<ct.length-1){const jr=pi,Pr=ct[xe+1];if(Cl(Pr)&1){const ft=Bi(jr.flags&2097152?Vc(jr):jr);Ri=z(Wt(ft,wt=>Vb(wt,Pr.links.mapper)),Ln)}else Ri=Gn(pi,Ln)}return Ri}function qn(ct){return jS(ct.objectType)?qn(ct.objectType):ct}function Hn(ct,xe,Ln){var ft;let wr=gl(ct,312);if(!wr){const wt=$t(ct.declarations,dn=>FT(dn,ct));wt&&(wr=gl(wt,312))}if(wr&&wr.moduleName!==void 0)return wr.moduleName;if(!wr){if(xe.tracker.trackReferencedAmbientModule){const wt=Vn(ct.declarations,Ou);if(Pe(wt))for(const dn of wt)xe.tracker.trackReferencedAmbientModule(dn,ct)}if(aJ.test(ct.escapedName))return ct.escapedName.substring(1,ct.escapedName.length-1)}if(!xe.enclosingDeclaration||!xe.tracker.moduleResolverHost)return aJ.test(ct.escapedName)?ct.escapedName.substring(1,ct.escapedName.length-1):Jn(Oj(ct)).fileName;const pi=Jn(Ol(xe.enclosingDeclaration)),xi=Ln||(pi==null?void 0:pi.impliedNodeFormat),Ri=XC(pi.path,xi),jr=eo(ct);let Pr=jr.specifierCache&&jr.specifierCache.get(Ri);if(!Pr){const wt=!!Bs(V),{moduleResolverHost:dn}=xe.tracker,Ut=wt?{...V,baseUrl:dn.getCommonSourceDirectory()}:V;Pr=$a(wxe(ct,tn,Ut,pi,dn,{importModuleSpecifierPreference:wt?"non-relative":"project-relative",importModuleSpecifierEnding:wt?"minimal":xi===99?"js":void 0},{overrideImportMode:Ln})),(ft=jr.specifierCache)!=null||(jr.specifierCache=new Map),jr.specifierCache.set(Ri,Pr)}return Pr}function ir(ct){const xe=O.createIdentifier(Ki(ct.escapedName));return ct.parent?O.createQualifiedName(ir(ct.parent),xe):xe}function vo(ct,xe,Ln,wr){const pi=zn(ct,xe,Ln,!(xe.flags&16384)),xi=Ln===111551;if(St(pi[0].declarations,rd)){const Pr=pi.length>1?jr(pi,pi.length-1,1):void 0,ft=wr||Pn(pi,0,xe),wt=Jn(Ol(xe.enclosingDeclaration)),dn=e3(pi[0]);let Ut,_n;if((_d(V)===3||_d(V)===99)&&(dn==null?void 0:dn.impliedNodeFormat)===99&&dn.impliedNodeFormat!==(wt==null?void 0:wt.impliedNodeFormat)&&(Ut=Hn(pi[0],xe,99),_n=O.createImportAttributes(O.createNodeArray([O.createImportAttribute(O.createStringLiteral("resolution-mode"),O.createStringLiteral("import"))]))),Ut||(Ut=Hn(pi[0],xe)),!(xe.flags&67108864)&&_d(V)!==1&&Ut.includes("/node_modules/")){const wi=Ut;if(_d(V)===3||_d(V)===99){const hi=(wt==null?void 0:wt.impliedNodeFormat)===99?1:99;Ut=Hn(pi[0],xe,hi),Ut.includes("/node_modules/")?Ut=wi:_n=O.createImportAttributes(O.createNodeArray([O.createImportAttribute(O.createStringLiteral("resolution-mode"),O.createStringLiteral(hi===99?"import":"require"))]))}_n||(xe.encounteredError=!0,xe.tracker.reportLikelyUnsafeImportRequiredError&&xe.tracker.reportLikelyUnsafeImportRequiredError(wi))}const kn=O.createLiteralTypeNode(O.createStringLiteral(Ut));if(xe.tracker.trackExternalModuleSymbolOfImportTypeNode&&xe.tracker.trackExternalModuleSymbolOfImportTypeNode(pi[0]),xe.approximateLength+=Ut.length+10,!Pr||ep(Pr)){if(Pr){const wi=Ue(Pr)?Pr:Pr.right;Jv(wi,void 0)}return O.createImportTypeNode(kn,_n,Pr,ft,xi)}else{const wi=qn(Pr),hi=wi.objectType.typeName;return O.createIndexedAccessTypeNode(O.createImportTypeNode(kn,_n,hi,ft,xi),wi.indexType)}}const Ri=jr(pi,pi.length-1,0);if(jS(Ri))return Ri;if(xi)return O.createTypeQueryNode(Ri);{const Pr=Ue(Ri)?Ri:Ri.right,ft=zS(Pr);return Jv(Pr,void 0),O.createTypeReferenceNode(Ri,ft)}function jr(Pr,ft,wt){const dn=ft===Pr.length-1?wr:Pn(Pr,ft,xe),Ut=Pr[ft],_n=Pr[ft-1];let kn;if(ft===0)xe.flags|=16777216,kn=i1(Ut,xe),xe.approximateLength+=(kn?kn.length:0)+1,xe.flags^=16777216;else if(_n&&Lp(_n)){const hi=Lp(_n);qc(hi,(oa,wn)=>{if(d_(oa,Ut)&&!G4(wn)&&wn!=="export=")return kn=Ki(wn),!0})}if(kn===void 0){const hi=$t(Ut.declarations,Oo);if(hi&&ss(hi)&&ep(hi.expression)){const oa=jr(Pr,ft-1,wt);return ep(oa)?O.createIndexedAccessTypeNode(O.createParenthesizedType(O.createTypeQueryNode(oa)),O.createTypeQueryNode(hi.expression)):oa}kn=i1(Ut,xe)}if(xe.approximateLength+=kn.length+1,!(xe.flags&16)&&_n&&Ob(_n)&&Ob(_n).get(Ut.escapedName)&&d_(Ob(_n).get(Ut.escapedName),Ut)){const hi=jr(Pr,ft-1,wt);return jS(hi)?O.createIndexedAccessTypeNode(hi,O.createLiteralTypeNode(O.createStringLiteral(kn))):O.createIndexedAccessTypeNode(O.createTypeReferenceNode(hi,dn),O.createLiteralTypeNode(O.createStringLiteral(kn)))}const wi=hr(O.createIdentifier(kn),16777216);if(dn&&Jv(wi,O.createNodeArray(dn)),wi.symbol=Ut,ft>wt){const hi=jr(Pr,ft-1,wt);return ep(hi)?O.createQualifiedName(hi,wi):N.fail("Impossible construct - an export of an indexed access cannot be reachable")}return wi}}function yo(ct,xe,Ln){const wr=Tl(xe.enclosingDeclaration,ct,788968,void 0,ct,!1);return wr&&wr.flags&262144?wr!==Ln.symbol:!1}function Vo(ct,xe){var Ln,wr;if(xe.flags&4&&xe.typeParameterNames){const xi=xe.typeParameterNames.get(bd(ct));if(xi)return xi}let pi=So(ct.symbol,xe,788968,!0);if(!(pi.kind&80))return O.createIdentifier("(Missing type parameter)");if(xe.flags&4){const xi=pi.escapedText;let Ri=((Ln=xe.typeParameterNamesByTextNextNameCount)==null?void 0:Ln.get(xi))||0,jr=xi;for(;((wr=xe.typeParameterNamesByText)==null?void 0:wr.has(jr))||yo(jr,xe,ct);)Ri++,jr=`${xi}_${Ri}`;if(jr!==xi){const Pr=zS(pi);pi=O.createIdentifier(jr),Jv(pi,Pr)}(xe.typeParameterNamesByTextNextNameCount||(xe.typeParameterNamesByTextNextNameCount=new Map)).set(xi,Ri),(xe.typeParameterNames||(xe.typeParameterNames=new Map)).set(bd(ct),pi),(xe.typeParameterNamesByText||(xe.typeParameterNamesByText=new Set)).add(jr)}return pi}function So(ct,xe,Ln,wr){const pi=zn(ct,xe,Ln);return wr&&pi.length!==1&&!xe.encounteredError&&!(xe.flags&65536)&&(xe.encounteredError=!0),xi(pi,pi.length-1);function xi(Ri,jr){const Pr=Pn(Ri,jr,xe),ft=Ri[jr];jr===0&&(xe.flags|=16777216);const wt=i1(ft,xe);jr===0&&(xe.flags^=16777216);const dn=hr(O.createIdentifier(wt),16777216);return Pr&&Jv(dn,O.createNodeArray(Pr)),dn.symbol=ft,jr>0?O.createQualifiedName(xi(Ri,jr-1),dn):dn}}function kc(ct,xe,Ln){const wr=zn(ct,xe,Ln);return pi(wr,wr.length-1);function pi(xi,Ri){const jr=Pn(xi,Ri,xe),Pr=xi[Ri];Ri===0&&(xe.flags|=16777216);let ft=i1(Pr,xe);Ri===0&&(xe.flags^=16777216);let wt=ft.charCodeAt(0);if(nk(wt)&&St(Pr.declarations,rd))return O.createStringLiteral(Hn(Pr,xe));if(Ri===0||tH(ft,se)){const dn=hr(O.createIdentifier(ft),16777216);return jr&&Jv(dn,O.createNodeArray(jr)),dn.symbol=Pr,Ri>0?O.createPropertyAccessExpression(pi(xi,Ri-1),dn):dn}else{wt===91&&(ft=ft.substring(1,ft.length-1),wt=ft.charCodeAt(0));let dn;if(nk(wt)&&!(Pr.flags&8)?dn=O.createStringLiteral(sm(ft).replace(/\\./g,Ut=>Ut.substring(1)),wt===39):""+ +ft===ft&&(dn=O.createNumericLiteral(+ft)),!dn){const Ut=hr(O.createIdentifier(ft),16777216);jr&&Jv(Ut,O.createNodeArray(jr)),Ut.symbol=Pr,dn=Ut}return O.createElementAccessExpression(pi(xi,Ri-1),dn)}}}function $f(ct){const xe=Oo(ct);return xe?ss(xe)?!!(Eo(xe.expression).flags&402653316):el(xe)?!!(Eo(xe.argumentExpression).flags&402653316):La(xe):!1}function mp(ct){const xe=Oo(ct);return!!(xe&&La(xe)&&(xe.singleQuote||!Zs(xe)&&ho(bc(xe,!1),"'")))}function Wn(ct,xe){const Ln=!!Pe(ct.declarations)&&Bn(ct.declarations,$f),wr=!!Pe(ct.declarations)&&Bn(ct.declarations,mp),pi=!!(ct.flags&8192),xi=nr(ct,xe,wr,Ln,pi);if(xi)return xi;const Ri=Ki(ct.escapedName);return v7(Ri,ps(V),wr,Ln,pi)}function nr(ct,xe,Ln,wr,pi){const xi=eo(ct).nameType;if(xi){if(xi.flags&384){const Ri=""+xi.value;return!tf(Ri,ps(V))&&(wr||!ug(Ri))?O.createStringLiteral(Ri,!!Ln):ug(Ri)&&ho(Ri,"-")?O.createComputedPropertyName(O.createPrefixUnaryExpression(41,O.createNumericLiteral(-Ri))):v7(Ri,ps(V),Ln,wr,pi)}if(xi.flags&8192)return O.createComputedPropertyName(kc(xi.symbol,xe,111551))}}function po(ct){const xe={...ct};return xe.typeParameterNames&&(xe.typeParameterNames=new Map(xe.typeParameterNames)),xe.typeParameterNamesByText&&(xe.typeParameterNamesByText=new Set(xe.typeParameterNamesByText)),xe.typeParameterSymbolList&&(xe.typeParameterSymbolList=new Set(xe.typeParameterSymbolList)),xe.tracker=new lJ(xe,xe.tracker.inner,xe.tracker.moduleResolverHost),xe}function xr(ct,xe){return ct.declarations&&un(ct.declarations,Ln=>!!Su(Ln)&&(!xe||!!jn(Ln,wr=>wr===xe)))}function ko(ct,xe){return!(zr(xe)&4)||!Cf(ct)||Pe(ct.typeArguments)>=Uh(xe.target.typeParameters)}function ms(ct){for(;Zr(ct).fakeScopeForSignatureDeclaration;)ct=ct.parent;return ct}function Cs(ct,xe,Ln,wr,pi,xi){if(!Jt(xe)&&wr){const Pr=xr(Ln,ms(wr));if(Pr&&!Js(Pr)&&!rf(Pr)){const ft=Su(Pr);if(Hu(ft,Pr,xe)&&ko(ft,xe)){const wt=jl(ct,ft,pi,xi);if(wt)return wt}}}const Ri=ct.flags;xe.flags&8192&&xe.symbol===Ln&&(!ct.enclosingDeclaration||St(Ln.declarations,Pr=>Jn(Pr)===Jn(ct.enclosingDeclaration)))&&(ct.flags|=1048576);const jr=d(xe,ct);return ct.flags=Ri,jr}function Hu(ct,xe,Ln){const wr=Ai(ct);return wr===Ln?!0:No(xe)&&xe.questionToken?Em(Ln,524288)===wr:!1}function qa(ct,xe,Ln,wr,pi){if(!Jt(xe)&&ct.enclosingDeclaration){const xi=Ln.declaration&&lm(Ln.declaration),Ri=ms(ct.enclosingDeclaration);if(!!jn(xi,jr=>jr===Ri)&&xi){const jr=Ai(xi);if((jr.flags&262144&&jr.isThisType?fo(jr,Ln.mapper):jr)===xe&&ko(xi,xe)){const ft=jl(ct,xi,wr,pi);if(ft)return ft}}}return d(xe,ct)}function Od(ct,xe,Ln){let wr=!1;const pi=jp(ct);if(dr(ct)&&(RS(pi)||ig(pi.parent)||xd(pi.parent)&&eU(pi.parent.left)&&RS(pi.parent.right)))return wr=!0,{introducesError:wr,node:ct};const xi=jf(ct),Ri=Ys(pi,xi,!0,!0);if(Ri&&(Li(Ri,xe.enclosingDeclaration,xi,!1).accessibility!==0?wr=!0:(xe.tracker.trackSymbol(Ri,xe.enclosingDeclaration,xi),Ln==null||Ln(Ri)),Ue(ct))){const jr=nl(Ri),Pr=Ri.flags&262144?Vo(jr,xe):O.cloneNode(ct);return Pr.symbol=Ri,{introducesError:wr,node:hr(kr(Pr,ct),16777216)}}return{introducesError:wr,node:ct}}function jl(ct,xe,Ln,wr){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let pi=!1;const xi=Jn(xe),Ri=rt(xe,jr,Xi);if(pi)return;return Ri===xe?ut(O.cloneNode(xe),xe):Ri;function jr(Pr){if(pse(Pr)||Pr.kind===326)return O.createKeywordTypeNode(133);if(fse(Pr))return O.createKeywordTypeNode(159);if(nR(Pr))return O.createUnionTypeNode([rt(Pr.type,jr,Xi),O.createLiteralTypeNode(O.createNull())]);if(JH(Pr))return O.createUnionTypeNode([rt(Pr.type,jr,Xi),O.createKeywordTypeNode(157)]);if(b5(Pr))return rt(Pr.type,jr);if(E5(Pr))return O.createArrayTypeNode(rt(Pr.type,jr,Xi));if(XS(Pr))return O.createTypeLiteralNode(Wt(Pr.jsDocPropertyTags,Ut=>{const _n=Ue(Ut.name)?Ut.name:Ut.name.right,kn=Ke(Ai(Pr),_n.escapedText),wi=kn&&Ut.typeExpression&&Ai(Ut.typeExpression.type)!==kn?d(kn,ct):void 0;return O.createPropertySignature(void 0,_n,Ut.isBracketed||Ut.typeExpression&&JH(Ut.typeExpression.type)?O.createToken(58):void 0,wi||Ut.typeExpression&&rt(Ut.typeExpression.type,jr,Xi)||O.createKeywordTypeNode(133))}));if(Cf(Pr)&&Ue(Pr.typeName)&&Pr.typeName.escapedText==="")return kr(O.createKeywordTypeNode(133),Pr);if((Kv(Pr)||Cf(Pr))&&T3(Pr))return O.createTypeLiteralNode([O.createIndexSignature(void 0,[O.createParameterDeclaration(void 0,void 0,"x",void 0,rt(Pr.typeArguments[0],jr,Xi))],rt(Pr.typeArguments[1],jr,Xi))]);if(rR(Pr))if(x2(Pr)){let Ut;return O.createConstructorTypeNode(void 0,Un(Pr.typeParameters,jr,El),Vi(Pr.parameters,(_n,kn)=>_n.name&&Ue(_n.name)&&_n.name.escapedText==="new"?(Ut=_n.type,void 0):O.createParameterDeclaration(void 0,ft(_n),wt(_n,kn),_n.questionToken,rt(_n.type,jr,Xi),void 0)),rt(Ut||Pr.type,jr,Xi)||O.createKeywordTypeNode(133))}else return O.createFunctionTypeNode(Un(Pr.typeParameters,jr,El),Wt(Pr.parameters,(Ut,_n)=>O.createParameterDeclaration(void 0,ft(Ut),wt(Ut,_n),Ut.questionToken,rt(Ut.type,jr,Xi),void 0)),rt(Pr.type,jr,Xi)||O.createKeywordTypeNode(133));if(Cf(Pr)&&tk(Pr)&&(!ko(Pr,Ai(Pr))||_8e(Pr)||pt===MD(Pr,788968,!0)))return kr(d(Ai(Pr),ct),Pr);if(By(Pr)){const Ut=Zr(Pr).resolvedSymbol;return tk(Pr)&&Ut&&(!Pr.isTypeOf&&!(Ut.flags&788968)||!(Pe(Pr.typeArguments)>=Uh(Wr(Ut))))?kr(d(Ai(Pr),ct),Pr):O.updateImportTypeNode(Pr,O.updateLiteralTypeNode(Pr.argument,dn(Pr,Pr.argument.literal)),Pr.attributes,Pr.qualifier,Un(Pr.typeArguments,jr,Xi),Pr.isTypeOf)}if(ep(Pr)||Jl(Pr)){const{introducesError:Ut,node:_n}=Od(Pr,ct,Ln);if(pi=pi||Ut,_n!==Pr)return _n}return xi&&mI(Pr)&&Rs(xi,Pr.pos).line===Rs(xi,Pr.end).line&&hr(Pr,1),xn(Pr,jr,void 0);function ft(Ut){return Ut.dotDotDotToken||(Ut.type&&E5(Ut.type)?O.createToken(26):void 0)}function wt(Ut,_n){return Ut.name&&Ue(Ut.name)&&Ut.name.escapedText==="this"?"this":ft(Ut)?"args":`arg${_n}`}function dn(Ut,_n){if(wr){if(ct.tracker&&ct.tracker.moduleResolverHost){const kn=$be(Ut);if(kn){const hi={getCanonicalFileName:ku(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>ct.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>ct.tracker.moduleResolverHost.getCommonSourceDirectory()},oa=O3(hi,kn);return O.createStringLiteral(oa)}}}else if(ct.tracker&&ct.tracker.trackExternalModuleSymbolOfImportTypeNode){const kn=sv(_n,_n,void 0);kn&&ct.tracker.trackExternalModuleSymbolOfImportTypeNode(kn)}return _n}}}function Al(ct,xe,Ln){var wr;const pi=bs(O.createPropertyDeclaration,174,!0),xi=bs((Mt,Lr,fi,Kr)=>O.createPropertySignature(Mt,Lr,fi,Kr),173,!1),Ri=xe.enclosingDeclaration;let jr=[];const Pr=new Set,ft=[],wt=xe;xe={...wt,usedSymbolNames:new Set(wt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((wr=wt.remappedSymbolReferences)==null?void 0:wr.entries()),tracker:void 0};const dn={...wt.tracker.inner,trackSymbol:(Mt,Lr,fi)=>{var Kr,ci;if((Kr=xe.remappedSymbolNames)!=null&&Kr.has(Ia(Mt)))return!1;if(Li(Mt,Lr,fi,!1).accessibility===0){const fa=mn(Mt,xe,fi);if(!(Mt.flags&4)){const Ho=fa[0],qs=Jn(wt.enclosingDeclaration);St(Ho.declarations,Es=>Jn(Es)===qs)&&Ws(Ho)}}else if((ci=wt.tracker.inner)!=null&&ci.trackSymbol)return wt.tracker.inner.trackSymbol(Mt,Lr,fi);return!1}};xe.tracker=new lJ(xe,dn,wt.tracker.moduleResolverHost),qc(ct,(Mt,Lr)=>{const fi=Ki(Lr);Km(Mt,fi)});let Ut=!Ln;const _n=ct.get("export=");return _n&&ct.size>1&&_n.flags&2098688&&(ct=pa(),ct.set("export=",_n)),ea(ct),ui(jr);function kn(Mt){return!!Mt&&Mt.kind===80}function wi(Mt){return Fl(Mt)?Vn(Wt(Mt.declarationList.declarations,Oo),kn):Vn([Oo(Mt)],kn)}function hi(Mt){const Lr=un(Mt,zl),fi=Ji(Mt,nc);let Kr=fi!==-1?Mt[fi]:void 0;if(Kr&&Lr&&Lr.isExportEquals&&Ue(Lr.expression)&&Ue(Kr.name)&&Rr(Kr.name)===Rr(Lr.expression)&&Kr.body&&O_(Kr.body)){const ci=Vn(Mt,Ho=>!!(fd(Ho)&32)),us=Kr.name;let fa=Kr.body;if(Pe(ci)&&(Kr=O.updateModuleDeclaration(Kr,Kr.modifiers,Kr.name,fa=O.updateModuleBlock(fa,O.createNodeArray([...Kr.body.statements,O.createExportDeclaration(void 0,!1,O.createNamedExports(Wt(qi(ci,Ho=>wi(Ho)),Ho=>O.createExportSpecifier(!1,void 0,Ho))),void 0)]))),Mt=[...Mt.slice(0,fi),Kr,...Mt.slice(fi+1)]),!un(Mt,Ho=>Ho!==Kr&&AL(Ho,us))){jr=[];const Ho=!St(fa.statements,qs=>Qr(qs,32)||zl(qs)||rc(qs));Ve(fa.statements,qs=>{Fs(qs,Ho?32:0)}),Mt=[...Vn(Mt,qs=>qs!==Kr&&qs!==Lr),...jr]}}return Mt}function oa(Mt){const Lr=Vn(Mt,Kr=>rc(Kr)&&!Kr.moduleSpecifier&&!!Kr.exportClause&&Pf(Kr.exportClause));Pe(Lr)>1&&(Mt=[...Vn(Mt,ci=>!rc(ci)||!!ci.moduleSpecifier||!ci.exportClause),O.createExportDeclaration(void 0,!1,O.createNamedExports(qi(Lr,ci=>sa(ci.exportClause,Pf).elements)),void 0)]);const fi=Vn(Mt,Kr=>rc(Kr)&&!!Kr.moduleSpecifier&&!!Kr.exportClause&&Pf(Kr.exportClause));if(Pe(fi)>1){const Kr=lN(fi,ci=>La(ci.moduleSpecifier)?">"+ci.moduleSpecifier.text:">");if(Kr.length!==fi.length)for(const ci of Kr)ci.length>1&&(Mt=[...Vn(Mt,us=>!ci.includes(us)),O.createExportDeclaration(void 0,!1,O.createNamedExports(qi(ci,us=>sa(us.exportClause,Pf).elements)),ci[0].moduleSpecifier)])}return Mt}function wn(Mt){const Lr=Ji(Mt,fi=>rc(fi)&&!fi.moduleSpecifier&&!fi.attributes&&!!fi.exportClause&&Pf(fi.exportClause));if(Lr>=0){const fi=Mt[Lr],Kr=Vi(fi.exportClause.elements,ci=>{if(!ci.propertyName){const us=YM(Mt),fa=Vn(us,Ho=>AL(Mt[Ho],ci.name));if(Pe(fa)&&Bn(fa,Ho=>zk(Mt[Ho]))){for(const Ho of fa)Mt[Ho]=Ii(Mt[Ho]);return}}return ci});Pe(Kr)?Mt[Lr]=O.updateExportDeclaration(fi,fi.modifiers,fi.isTypeOnly,O.updateNamedExports(fi.exportClause,Kr),fi.moduleSpecifier,fi.attributes):xy(Mt,Lr)}return Mt}function ui(Mt){return Mt=hi(Mt),Mt=oa(Mt),Mt=wn(Mt),Ri&&(io(Ri)&&Bp(Ri)||nc(Ri))&&(!St(Mt,wL)||!cie(Mt)&&St(Mt,j6))&&Mt.push(_w(O)),Mt}function Ii(Mt){const Lr=(fd(Mt)|32)&-129;return O.replaceModifiers(Mt,Lr)}function ro(Mt){const Lr=fd(Mt)&-33;return O.replaceModifiers(Mt,Lr)}function ea(Mt,Lr,fi){Lr||ft.push(new Map),Mt.forEach(Kr=>{Rl(Kr,!1,!!fi)}),Lr||(ft[ft.length-1].forEach(Kr=>{Rl(Kr,!0,!!fi)}),ft.pop())}function Rl(Mt,Lr,fi){const Kr=ds(Mt);if(Pr.has(Ia(Kr)))return;if(Pr.add(Ia(Kr)),!Lr||!!Pe(Mt.declarations)&&St(Mt.declarations,us=>!!jn(us,fa=>fa===Ri))){const us=xe;xe=po(xe),hl(Mt,Lr,fi),xe.reportedDiagnostic&&(wt.reportedDiagnostic=xe.reportedDiagnostic),xe.trackedSymbols&&(us.trackedSymbols?N.assert(xe.trackedSymbols===us.trackedSymbols):us.trackedSymbols=xe.trackedSymbols),xe=us}}function hl(Mt,Lr,fi,Kr=Mt.escapedName){var ci,us,fa,Ho,qs,Es;const Ja=Ki(Kr),Pu=Kr==="default";if(Lr&&!(xe.flags&131072)&&qA(Ja)&&!Pu){xe.encounteredError=!0;return}let Mu=Pu&&!!(Mt.flags&-113||Mt.flags&16&&Pe(As(_r(Mt))))&&!(Mt.flags&2097152),Sd=!Mu&&!Lr&&qA(Ja)&&!Pu;(Mu||Sd)&&(Lr=!0);const ec=(Lr?0:32)|(Pu&&!Mu?2048:0),Lu=Mt.flags&1536&&Mt.flags&7&&Kr!=="export=",Qd=Lu&&zs(_r(Mt),Mt);if((Mt.flags&8208||Qd)&&An(_r(Mt),Mt,Km(Mt,Ja),ec),Mt.flags&524288&&Qf(Mt,Ja,ec),Mt.flags&98311&&Kr!=="export="&&!(Mt.flags&4194304)&&!(Mt.flags&32)&&!(Mt.flags&8192)&&!Qd)if(fi)Na(Mt)&&(Sd=!1,Mu=!1);else{const uu=_r(Mt),Op=Km(Mt,Ja);if(uu.symbol&&uu.symbol!==Mt&&uu.symbol.flags&16&&St(uu.symbol.declarations,Z1)&&(((ci=uu.symbol.members)==null?void 0:ci.size)||((us=uu.symbol.exports)==null?void 0:us.size)))xe.remappedSymbolReferences||(xe.remappedSymbolReferences=new Map),xe.remappedSymbolReferences.set(Ia(uu.symbol),Mt),hl(uu.symbol,Lr,fi,Kr),xe.remappedSymbolReferences.delete(Ia(uu.symbol));else if(!(Mt.flags&16)&&zs(uu,Mt))An(uu,Mt,Op,ec);else{const kx=Mt.flags&2?_M(Mt)?2:1:((fa=Mt.parent)==null?void 0:fa.valueDeclaration)&&io((Ho=Mt.parent)==null?void 0:Ho.valueDeclaration)?2:void 0,sh=Mu||!(Mt.flags&4)?Op:E_(Op,Mt);let Yb=Mt.declarations&&un(Mt.declarations,R8=>Wi(R8));Yb&&Xc(Yb.parent)&&Yb.parent.declarations.length===1&&(Yb=Yb.parent.parent);const $b=(qs=Mt.declarations)==null?void 0:qs.find(Br);if($b&&vr($b.parent)&&Ue($b.parent.right)&&((Es=uu.symbol)==null?void 0:Es.valueDeclaration)&&io(uu.symbol.valueDeclaration)){const R8=Op===$b.parent.right.escapedText?void 0:$b.parent.right;Fs(O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,R8,Op)])),0),xe.tracker.trackSymbol(uu.symbol,xe.enclosingDeclaration,111551)}else{const R8=ut(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(sh,void 0,Cs(xe,uu,Mt,Ri,Ws,Ln))],kx)),Yb);Fs(R8,sh!==Op?ec&-33:ec),sh!==Op&&!Lr&&(Fs(O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,sh,Op)])),0),Sd=!1,Mu=!1)}}}if(Mt.flags&384&&Mr(Mt,Ja,ec),Mt.flags&32&&(Mt.flags&4&&Mt.valueDeclaration&&vr(Mt.valueDeclaration.parent)&&iu(Mt.valueDeclaration.parent.right)?Ei(Mt,Km(Mt,Ja),ec):ha(Mt,Km(Mt,Ja),ec)),(Mt.flags&1536&&(!Lu||rn(Mt))||Qd)&&Zn(Mt,Ja,ec),Mt.flags&64&&!(Mt.flags&32)&&tt(Mt,Ja,ec),Mt.flags&2097152&&Ei(Mt,Km(Mt,Ja),ec),Mt.flags&4&&Mt.escapedName==="export="&&Na(Mt),Mt.flags&8388608&&Mt.declarations)for(const uu of Mt.declarations){const Op=vd(uu,uu.moduleSpecifier);!Op||Fs(O.createExportDeclaration(void 0,uu.isTypeOnly,void 0,O.createStringLiteral(Hn(Op,xe))),0)}Mu?Fs(O.createExportAssignment(void 0,!1,O.createIdentifier(Km(Mt,Ja))),0):Sd&&Fs(O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,Km(Mt,Ja),Ja)])),0)}function Ws(Mt){if(St(Mt.declarations,q1))return;N.assertIsDefined(ft[ft.length-1]),E_(Ki(Mt.escapedName),Mt);const Lr=!!(Mt.flags&2097152)&&!St(Mt.declarations,fi=>!!jn(fi,rc)||xh(fi)||au(fi)&&!Rh(fi.moduleReference));ft[Lr?0:ft.length-1].set(Ia(Mt),Mt)}function Zc(Mt){return io(Mt)&&(Bp(Mt)||im(Mt))||Ou(Mt)&&!R_(Mt)}function Fs(Mt,Lr){if(km(Mt)){let fi=0;const Kr=xe.enclosingDeclaration&&(om(xe.enclosingDeclaration)?Jn(xe.enclosingDeclaration):xe.enclosingDeclaration);Lr&32&&Kr&&(Zc(Kr)||nc(Kr))&&zk(Mt)&&(fi|=32),Ut&&!(fi&32)&&(!Kr||!(Kr.flags&33554432))&&(x0(Mt)||Fl(Mt)||Dc(Mt)||Nc(Mt)||nc(Mt))&&(fi|=128),Lr&2048&&(Nc(Mt)||gd(Mt)||Dc(Mt))&&(fi|=2048),fi&&(Mt=O.replaceModifiers(Mt,fi|fd(Mt)))}jr.push(Mt)}function Qf(Mt,Lr,fi){var Kr;const ci=A4e(Mt),us=eo(Mt).typeParameters,fa=Wt(us,Mu=>vt(Mu,xe)),Ho=(Kr=Mt.declarations)==null?void 0:Kr.find(om),qs=RL(Ho?Ho.comment||Ho.parent.comment:void 0),Es=xe.flags;xe.flags|=8388608;const Ja=xe.enclosingDeclaration;xe.enclosingDeclaration=Ho;const Pu=Ho&&Ho.typeExpression&&pE(Ho.typeExpression)&&jl(xe,Ho.typeExpression.type,Ws,Ln)||d(ci,xe);Fs(I0(O.createTypeAliasDeclaration(void 0,Km(Mt,Lr),fa,Pu),qs?[{kind:3,text:`*
* `+qs.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),fi),xe.flags=Es,xe.enclosingDeclaration=Ja}function tt(Mt,Lr,fi){const Kr=qf(Mt),ci=Wr(Mt),us=Wt(ci,Sd=>vt(Sd,xe)),fa=pp(Kr),Ho=Pe(fa)?Ta(fa):void 0,qs=qi(As(Kr),Sd=>wc(Sd,Ho)),Es=Xh(0,Kr,Ho,179),Ja=Xh(1,Kr,Ho,180),Pu=Tv(Kr,Ho),Mu=Pe(fa)?[O.createHeritageClause(96,Vi(fa,Sd=>fA(Sd,111551)))]:void 0;Fs(O.createInterfaceDeclaration(void 0,Km(Mt,Lr),us,Mu,[...Pu,...Ja,...Es,...qs]),fi)}function Et(Mt){let Lr=Go(Lp(Mt).values());const fi=ds(Mt);if(fi!==Mt){const Kr=new Set(Lr);for(const ci of Lp(fi).values())Ru(Xl(ci))&111551||Kr.add(ci);Lr=Go(Kr)}return Vn(Lr,Kr=>Gi(Kr)&&tf(Kr.escapedName,99))}function rn(Mt){return Bn(Et(Mt),Lr=>!(Ru(Xl(Lr))&111551))}function Zn(Mt,Lr,fi){const Kr=Et(Mt),ci=QM(Kr,Ho=>Ho.parent&&Ho.parent===Mt?"real":"merged"),us=ci.get("real")||et,fa=ci.get("merged")||et;if(Pe(us)){const Ho=Km(Mt,Lr);Ur(us,Ho,fi,!!(Mt.flags&67108880))}if(Pe(fa)){const Ho=Jn(xe.enclosingDeclaration),qs=Km(Mt,Lr),Es=O.createModuleBlock([O.createExportDeclaration(void 0,!1,O.createNamedExports(Vi(Vn(fa,Ja=>Ja.escapedName!=="export="),Ja=>{var Pu,Mu;const Sd=Ki(Ja.escapedName),ec=Km(Ja,Sd),Lu=Ja.declarations&&zm(Ja);if(Ho&&(Lu?Ho!==Jn(Lu):!St(Ja.declarations,Op=>Jn(Op)===Ho))){(Mu=(Pu=xe.tracker)==null?void 0:Pu.reportNonlocalAugmentation)==null||Mu.call(Pu,Ho,Mt,Ja);return}const Qd=Lu&&qp(Lu,!0);Ws(Qd||Ja);const uu=Qd?Km(Qd,Ki(Qd.escapedName)):ec;return O.createExportSpecifier(!1,Sd===uu?void 0:uu,Sd)})))]);Fs(O.createModuleDeclaration(void 0,O.createIdentifier(qs),Es,32),0)}}function Mr(Mt,Lr,fi){Fs(O.createEnumDeclaration(O.createModifiersFromModifierFlags(vbe(Mt)?4096:0),Km(Mt,Lr),Wt(Vn(As(_r(Mt)),Kr=>!!(Kr.flags&8)),Kr=>{const ci=Kr.declarations&&Kr.declarations[0]&&dE(Kr.declarations[0])?Kbe(Kr.declarations[0]):void 0;return O.createEnumMember(Ki(Kr.escapedName),ci===void 0?void 0:typeof ci=="string"?O.createStringLiteral(ci):O.createNumericLiteral(ci))})),fi)}function An(Mt,Lr,fi,Kr){const ci=$o(Mt,0);for(const us of ci){const fa=Te(us,262,xe,{name:O.createIdentifier(fi),privateSymbolVisitor:Ws,bundledImports:Ln});Fs(ut(fa,Tr(us)),Kr)}if(!(Lr.flags&1536&&!!Lr.exports&&!!Lr.exports.size)){const us=Vn(As(Mt),Gi);Ur(us,fi,Kr,!0)}}function Tr(Mt){if(Mt.declaration&&Mt.declaration.parent){if(vr(Mt.declaration.parent)&&ql(Mt.declaration.parent)===5)return Mt.declaration.parent;if(Wi(Mt.declaration.parent)&&Mt.declaration.parent.parent)return Mt.declaration.parent.parent}return Mt.declaration}function Ur(Mt,Lr,fi,Kr){if(Pe(Mt)){const us=QM(Mt,ec=>!Pe(ec.declarations)||St(ec.declarations,Lu=>Jn(Lu)===Jn(xe.enclosingDeclaration))?"local":"remote").get("local")||et;let fa=Dh.createModuleDeclaration(void 0,O.createIdentifier(Lr),O.createModuleBlock([]),32);Qa(fa,Ri),fa.locals=pa(Mt),fa.symbol=Mt[0].parent;const Ho=jr;jr=[];const qs=Ut;Ut=!1;const Es={...xe,enclosingDeclaration:fa},Ja=xe;xe=Es,ea(pa(us),Kr,!0),xe=Ja,Ut=qs;const Pu=jr;jr=Ho;const Mu=Wt(Pu,ec=>zl(ec)&&!ec.isExportEquals&&Ue(ec.expression)?O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,ec.expression,O.createIdentifier("default"))])):ec),Sd=Bn(Mu,ec=>Qr(ec,32))?Wt(Mu,ro):Mu;fa=O.updateModuleDeclaration(fa,fa.modifiers,fa.name,O.createModuleBlock(Sd)),Fs(fa,fi)}}function Gi(Mt){return!!(Mt.flags&2887656)||!(Mt.flags&4194304||Mt.escapedName==="prototype"||Mt.valueDeclaration&&la(Mt.valueDeclaration)&&di(Mt.valueDeclaration.parent))}function Bo(Mt){const Lr=Vi(Mt,fi=>{const Kr=xe.enclosingDeclaration;xe.enclosingDeclaration=fi;let ci=fi.expression;if(Jl(ci)){if(Ue(ci)&&Rr(ci)==="")return us(void 0);let fa;if({introducesError:fa,node:ci}=Od(ci,xe,Ws),fa)return us(void 0)}return us(O.createExpressionWithTypeArguments(ci,Wt(fi.typeArguments,fa=>jl(xe,fa,Ws,Ln)||d(Ai(fa),xe))));function us(fa){return xe.enclosingDeclaration=Kr,fa}});if(Lr.length===Mt.length)return Lr}function ha(Mt,Lr,fi){var Kr,ci;const us=(Kr=Mt.declarations)==null?void 0:Kr.find(di),fa=xe.enclosingDeclaration;xe.enclosingDeclaration=us||fa;const Ho=Wr(Mt),qs=Wt(Ho,lh=>vt(lh,xe)),Es=Xp(qf(Mt)),Ja=pp(Es),Pu=us&&N2(us),Mu=Pu&&Bo(Pu)||Vi(Z_(Es),DM),Sd=_r(Mt),ec=!!((ci=Sd.symbol)!=null&&ci.valueDeclaration)&&di(Sd.symbol.valueDeclaration),Lu=ec?Hf(Sd):j,Qd=[...Pe(Ja)?[O.createHeritageClause(96,Wt(Ja,lh=>pA(lh,Lu,Lr)))]:[],...Pe(Mu)?[O.createHeritageClause(119,Mu)]:[]],uu=Uvt(Es,Ja,As(Es)),Op=Vn(uu,lh=>{const NM=lh.valueDeclaration;return!!NM&&!(cd(NM)&&Qi(NM.name))}),sh=St(uu,lh=>{const NM=lh.valueDeclaration;return!!NM&&cd(NM)&&Qi(NM.name)})?[O.createPropertyDeclaration(void 0,O.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:et,Yb=qi(Op,lh=>pi(lh,!1,Ja[0])),$b=qi(Vn(As(Sd),lh=>!(lh.flags&4194304)&&lh.escapedName!=="prototype"&&!Gi(lh)),lh=>pi(lh,!0,Lu)),s0t=!ec&&!!Mt.valueDeclaration&&dr(Mt.valueDeclaration)&&!St($o(Sd,1))?[O.createConstructorDeclaration(O.createModifiersFromModifierFlags(2),[],void 0)]:Xh(1,Sd,Lu,176),l0t=Tv(Es,Ja[0]);xe.enclosingDeclaration=fa,Fs(ut(O.createClassDeclaration(void 0,Lr,qs,Qd,[...l0t,...$b,...s0t,...Yb,...sh]),Mt.declarations&&Vn(Mt.declarations,lh=>Nc(lh)||iu(lh))[0]),fi)}function ga(Mt){return $t(Mt,Lr=>{if(rp(Lr)||$u(Lr))return Rr(Lr.propertyName||Lr.name);if(vr(Lr)||zl(Lr)){const fi=zl(Lr)?Lr.expression:Lr.right;if(Br(fi))return Rr(fi.name)}if(yb(Lr)){const fi=Oo(Lr);if(fi&&Ue(fi))return Rr(fi)}})}function Ei(Mt,Lr,fi){var Kr,ci,us,fa,Ho,qs;const Es=zm(Mt);if(!Es)return N.fail();const Ja=ds(qp(Es,!0));if(!Ja)return;let Pu=LN(Ja)&&ga(Mt.declarations)||Ki(Ja.escapedName);Pu==="export="&&Q&&(Pu="default");const Mu=Km(Ja,Pu);switch(Ws(Ja),Es.kind){case 208:if(((ci=(Kr=Es.parent)==null?void 0:Kr.parent)==null?void 0:ci.kind)===260){const Lu=Hn(Ja.parent||Ja,xe),{propertyName:Qd}=Es;Fs(O.createImportDeclaration(void 0,O.createImportClause(!1,void 0,O.createNamedImports([O.createImportSpecifier(!1,Qd&&Ue(Qd)?O.createIdentifier(Rr(Qd)):void 0,O.createIdentifier(Lr))])),O.createStringLiteral(Lu),void 0),0);break}N.failBadSyntaxKind(((us=Es.parent)==null?void 0:us.parent)||Es,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Ho=(fa=Es.parent)==null?void 0:fa.parent)==null?void 0:Ho.kind)===226&&Fo(Ki(Mt.escapedName),Mu);break;case 260:if(Br(Es.initializer)){const Lu=Es.initializer,Qd=O.createUniqueName(Lr),uu=Hn(Ja.parent||Ja,xe);Fs(O.createImportEqualsDeclaration(void 0,!1,Qd,O.createExternalModuleReference(O.createStringLiteral(uu))),0),Fs(O.createImportEqualsDeclaration(void 0,!1,O.createIdentifier(Lr),O.createQualifiedName(Qd,Lu.name)),fi);break}case 271:if(Ja.escapedName==="export="&&St(Ja.declarations,Lu=>io(Lu)&&im(Lu))){Na(Mt);break}const Sd=!(Ja.flags&512)&&!Wi(Es);Fs(O.createImportEqualsDeclaration(void 0,!1,O.createIdentifier(Lr),Sd?So(Ja,xe,-1,!1):O.createExternalModuleReference(O.createStringLiteral(Hn(Ja,xe)))),Sd?fi:0);break;case 270:Fs(O.createNamespaceExportDeclaration(Rr(Es.name)),0);break;case 273:{const Lu=Hn(Ja.parent||Ja,xe),Qd=Ln?O.createStringLiteral(Lu):Es.parent.moduleSpecifier;Fs(O.createImportDeclaration(void 0,O.createImportClause(!1,O.createIdentifier(Lr),void 0),Qd,Es.parent.attributes),0);break}case 274:{const Lu=Hn(Ja.parent||Ja,xe),Qd=Ln?O.createStringLiteral(Lu):Es.parent.parent.moduleSpecifier;Fs(O.createImportDeclaration(void 0,O.createImportClause(!1,void 0,O.createNamespaceImport(O.createIdentifier(Lr))),Qd,Es.parent.attributes),0);break}case 280:Fs(O.createExportDeclaration(void 0,!1,O.createNamespaceExport(O.createIdentifier(Lr)),O.createStringLiteral(Hn(Ja,xe))),0);break;case 276:{const Lu=Hn(Ja.parent||Ja,xe),Qd=Ln?O.createStringLiteral(Lu):Es.parent.parent.parent.moduleSpecifier;Fs(O.createImportDeclaration(void 0,O.createImportClause(!1,void 0,O.createNamedImports([O.createImportSpecifier(!1,Lr!==Pu?O.createIdentifier(Pu):void 0,O.createIdentifier(Lr))])),Qd,Es.parent.parent.parent.attributes),0);break}case 281:const ec=Es.parent.parent.moduleSpecifier;ec&&((qs=Es.propertyName)==null?void 0:qs.escapedText)==="default"&&(Pu="default"),Fo(Ki(Mt.escapedName),ec?Pu:Mu,ec&&hs(ec)?O.createStringLiteral(ec.text):void 0);break;case 277:Na(Mt);break;case 226:case 211:case 212:Mt.escapedName==="default"||Mt.escapedName==="export="?Na(Mt):Fo(Lr,Mu);break;default:return N.failBadSyntaxKind(Es,"Unhandled alias declaration kind in symbol serializer!")}}function Fo(Mt,Lr,fi){Fs(O.createExportDeclaration(void 0,!1,O.createNamedExports([O.createExportSpecifier(!1,Mt!==Lr?Lr:void 0,Mt)]),fi),0)}function Na(Mt){var Lr;if(Mt.flags&4194304)return!1;const fi=Ki(Mt.escapedName),Kr=fi==="export=",us=Kr||fi==="default",fa=Mt.declarations&&zm(Mt),Ho=fa&&qp(fa,!0);if(Ho&&Pe(Ho.declarations)&&St(Ho.declarations,qs=>Jn(qs)===Jn(Ri))){const qs=fa&&(zl(fa)||vr(fa)?cU(fa):doe(fa)),Es=qs&&Jl(qs)?iyt(qs):void 0,Ja=Es&&Ys(Es,-1,!0,!0,Ri);(Ja||Ho)&&Ws(Ja||Ho);const Pu=xe.tracker.disableTrackSymbol;if(xe.tracker.disableTrackSymbol=!0,us)jr.push(O.createExportAssignment(void 0,Kr,kc(Ho,xe,-1)));else if(Es===qs&&Es)Fo(fi,Rr(Es));else if(qs&&iu(qs))Fo(fi,Km(Ho,Il(Ho)));else{const Mu=E_(fi,Mt);Fs(O.createImportEqualsDeclaration(void 0,!1,O.createIdentifier(Mu),So(Ho,xe,-1,!1)),0),Fo(fi,Mu)}return xe.tracker.disableTrackSymbol=Pu,!0}else{const qs=E_(fi,Mt),Es=Yp(_r(ds(Mt)));if(zs(Es,Mt))An(Es,Mt,qs,us?0:32);else{const Ja=((Lr=xe.enclosingDeclaration)==null?void 0:Lr.kind)===267&&(!(Mt.flags&98304)||Mt.flags&65536)?1:2,Pu=O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(qs,void 0,Cs(xe,Es,Mt,Ri,Ws,Ln))],Ja));Fs(Pu,Ho&&Ho.flags&4&&Ho.escapedName==="export="?128:fi===qs?32:0)}return us?(jr.push(O.createExportAssignment(void 0,Kr,O.createIdentifier(qs))),!0):fi!==qs?(Fo(fi,qs),!0):!1}}function zs(Mt,Lr){const fi=Jn(xe.enclosingDeclaration);return zr(Mt)&48&&!Pe(yd(Mt))&&!VE(Mt)&&!!(Pe(Vn(As(Mt),Gi))||Pe($o(Mt,0)))&&!Pe($o(Mt,1))&&!xr(Lr,Ri)&&!(Mt.symbol&&St(Mt.symbol.declarations,Kr=>Jn(Kr)!==fi))&&!St(As(Mt),Kr=>G4(Kr.escapedName))&&!St(As(Mt),Kr=>St(Kr.declarations,ci=>Jn(ci)!==fi))&&Bn(As(Mt),Kr=>tf(Il(Kr),se)?Kr.flags&98304?kb(Kr)===jE(Kr):!0:!1)}function bs(Mt,Lr,fi){return function(ci,us,fa){var Ho,qs,Es,Ja,Pu;const Mu=Df(ci),Sd=!!(Mu&2);if(us&&ci.flags&2887656)return[];if(ci.flags&4194304||ci.escapedName==="constructor"||fa&&Sa(fa,ci.escapedName)&&b_(Sa(fa,ci.escapedName))===b_(ci)&&(ci.flags&16777216)===(Sa(fa,ci.escapedName).flags&16777216)&&gv(_r(ci),Ke(fa,ci.escapedName)))return[];const ec=Mu&-1025|(us?256:0),Lu=Wn(ci,xe),Qd=(Ho=ci.declarations)==null?void 0:Ho.find($m(qo,ky,Wi,Sp,vr,Br));if(ci.flags&98304&&fi){const uu=[];if(ci.flags&65536){const Op=ci.declarations&&Ve(ci.declarations,sh=>{if(sh.kind===178)return sh;if(ca(sh)&&DS(sh))return Ve(sh.arguments[2].properties,Yb=>{const $b=Oo(Yb);if(!!$b&&Ue($b)&&Rr($b)==="set")return Yb})});N.assert(!!Op);const kx=Js(Op)?vm(Op).parameters[0]:void 0;uu.push(ut(O.createSetAccessorDeclaration(O.createModifiersFromModifierFlags(ec),Lu,[O.createParameterDeclaration(void 0,void 0,kx?sn(kx,xt(kx),xe):"value",void 0,Sd?void 0:Cs(xe,_r(ci),ci,Ri,Ws,Ln))],void 0),((qs=ci.declarations)==null?void 0:qs.find(Fv))||Qd))}if(ci.flags&32768){const Op=Mu&2;uu.push(ut(O.createGetAccessorDeclaration(O.createModifiersFromModifierFlags(ec),Lu,[],Op?void 0:Cs(xe,_r(ci),ci,Ri,Ws,Ln),void 0),((Es=ci.declarations)==null?void 0:Es.find(Oy))||Qd))}return uu}else if(ci.flags&98311)return ut(Mt(O.createModifiersFromModifierFlags((b_(ci)?8:0)|ec),Lu,ci.flags&16777216?O.createToken(58):void 0,Sd?void 0:Cs(xe,jE(ci),ci,Ri,Ws,Ln),void 0),((Ja=ci.declarations)==null?void 0:Ja.find($m(qo,Wi)))||Qd);if(ci.flags&8208){const uu=_r(ci),Op=$o(uu,0);if(ec&2)return ut(Mt(O.createModifiersFromModifierFlags((b_(ci)?8:0)|ec),Lu,ci.flags&16777216?O.createToken(58):void 0,void 0,void 0),((Pu=ci.declarations)==null?void 0:Pu.find(Js))||Op[0]&&Op[0].declaration||ci.declarations&&ci.declarations[0]);const kx=[];for(const sh of Op){const Yb=Te(sh,Lr,xe,{name:Lu,questionToken:ci.flags&16777216?O.createToken(58):void 0,modifiers:ec?O.createModifiersFromModifierFlags(ec):void 0}),$b=sh.declaration&&ck(sh.declaration.parent)?sh.declaration.parent:sh.declaration;kx.push(ut(Yb,$b))}return kx}return N.fail(`Unhandled class member kind! ${ci.__debugFlags||ci.flags}`)}}function wc(Mt,Lr){return xi(Mt,!1,Lr)}function Xh(Mt,Lr,fi,Kr){const ci=$o(Lr,Mt);if(Mt===1){if(!fi&&Bn(ci,Ho=>Pe(Ho.parameters)===0))return[];if(fi){const Ho=$o(fi,1);if(!Pe(Ho)&&Bn(ci,qs=>Pe(qs.parameters)===0))return[];if(Ho.length===ci.length){let qs=!1;for(let Es=0;Es<Ho.length;Es++)if(!Qz(ci[Es],Ho[Es],!1,!1,!0,e8)){qs=!0;break}if(!qs)return[]}}let fa=0;for(const Ho of ci)Ho.declaration&&(fa|=KA(Ho.declaration,6));if(fa)return[ut(O.createConstructorDeclaration(O.createModifiersFromModifierFlags(fa),[],void 0),ci[0].declaration)]}const us=[];for(const fa of ci){const Ho=Te(fa,Kr,xe);us.push(ut(Ho,fa.declaration))}return us}function Tv(Mt,Lr){const fi=[];for(const Kr of yd(Mt)){if(Lr){const ci=Rg(Lr,Kr.keyType);if(ci&&gv(Kr.type,ci.type))continue}fi.push(ne(Kr,xe,void 0))}return fi}function pA(Mt,Lr,fi){const Kr=fA(Mt,111551);if(Kr)return Kr;const ci=E_(`${fi}_base`),us=O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(ci,void 0,d(Lr,xe))],2));return Fs(us,0),O.createExpressionWithTypeArguments(O.createIdentifier(ci),void 0)}function fA(Mt,Lr){let fi,Kr;if(Mt.target&&ln(Mt.target.symbol,Ri,Lr)?(fi=Wt($s(Mt),ci=>d(ci,xe)),Kr=kc(Mt.target.symbol,xe,788968)):Mt.symbol&&ln(Mt.symbol,Ri,Lr)&&(Kr=kc(Mt.symbol,xe,788968)),Kr)return O.createExpressionWithTypeArguments(Kr,fi)}function DM(Mt){const Lr=fA(Mt,788968);if(Lr)return Lr;if(Mt.symbol)return O.createExpressionWithTypeArguments(kc(Mt.symbol,xe,788968),void 0)}function E_(Mt,Lr){var fi,Kr;const ci=Lr?Ia(Lr):void 0;if(ci&&xe.remappedSymbolNames.has(ci))return xe.remappedSymbolNames.get(ci);Lr&&(Mt=Lx(Lr,Mt));let us=0;const fa=Mt;for(;(fi=xe.usedSymbolNames)!=null&&fi.has(Mt);)us++,Mt=`${fa}_${us}`;return(Kr=xe.usedSymbolNames)==null||Kr.add(Mt),ci&&xe.remappedSymbolNames.set(ci,Mt),Mt}function Lx(Mt,Lr){if(Lr==="default"||Lr==="__class"||Lr==="__function"){const fi=xe.flags;xe.flags|=16777216;const Kr=i1(Mt,xe);xe.flags=fi,Lr=Kr.length>0&&nk(Kr.charCodeAt(0))?sm(Kr):Kr}return Lr==="default"?Lr="_default":Lr==="export="&&(Lr="_exports"),Lr=tf(Lr,se)&&!qA(Lr)?Lr:"_"+Lr.replace(/[^a-zA-Z0-9]/g,"_"),Lr}function Km(Mt,Lr){const fi=Ia(Mt);return xe.remappedSymbolNames.has(fi)?xe.remappedSymbolNames.get(fi):(Lr=Lx(Mt,Lr),xe.remappedSymbolNames.set(fi,Lr),Lr)}}}function Bh(n,a,c=16384,d){return d?h(d).getText():PN(h);function h(y){const x=O.createTypePredicateNode(n.kind===2||n.kind===3?O.createToken(131):void 0,n.kind===1||n.kind===3?O.createIdentifier(n.parameterName):O.createThisTypeNode(),n.type&&At.typeToTypeNode(n.type,a,BT(c)|70221824|512)),k=vE(),z=a&&Jn(a);return k.writeNode(4,x,z,y),y}}function SD(n){const a=[];let c=0;for(let d=0;d<n.length;d++){const h=n[d];if(c|=h.flags,!(h.flags&98304)){if(h.flags&1568){const y=h.flags&512?ai:ZZ(h);if(y.flags&1048576){const x=y.types.length;if(d+x<=n.length&&Ed(n[d+x-1])===Ed(y.types[x-1])){a.push(y),d+=x-1;continue}}}a.push(h)}}return c&65536&&a.push(fe),c&32768&&a.push(We),a||n}function GT(n){return n===2?"private":n===4?"protected":"public"}function Tz(n){if(n.symbol&&n.symbol.flags&2048&&n.symbol.declarations){const a=hk(n.symbol.declarations[0].parent);if(Lm(a))return Cr(a)}}function Nb(n){return n&&n.parent&&n.parent.kind===268&&F1(n.parent.parent)}function W4(n){return n.kind===312||Ou(n)}function F4(n,a){const c=eo(n).nameType;if(c){if(c.flags&384){const d=""+c.value;return!tf(d,ps(V))&&!ug(d)?`"${ag(d,34)}"`:ug(d)&&ho(d,"-")?`[${d}]`:d}if(c.flags&8192)return`[${i1(c.symbol,a)}]`}}function i1(n,a){var c;if((c=a==null?void 0:a.remappedSymbolReferences)!=null&&c.has(Ia(n))&&(n=a.remappedSymbolReferences.get(Ia(n))),a&&n.escapedName==="default"&&!(a.flags&16384)&&(!(a.flags&16777216)||!n.declarations||a.enclosingDeclaration&&jn(n.declarations[0],W4)!==jn(a.enclosingDeclaration,W4)))return"default";if(n.declarations&&n.declarations.length){let h=$t(n.declarations,x=>Oo(x)?x:void 0);const y=h&&Oo(h);if(h&&y){if(ca(h)&&DS(h))return Il(n);if(ss(y)&&!(Cl(n)&4096)){const x=eo(n).nameType;if(x&&x.flags&384){const k=F4(n,a);if(k!==void 0)return k}}return ks(y)}if(h||(h=n.declarations[0]),h.parent&&h.parent.kind===260)return ks(h.parent.name);switch(h.kind){case 231:case 218:case 219:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),h.kind===231?"(Anonymous class)":"(Anonymous function)"}}const d=F4(n,a);return d!==void 0?d:Il(n)}function p_(n){if(n){const c=Zr(n);return c.isVisible===void 0&&(c.isVisible=!!a()),c.isVisible}return!1;function a(){switch(n.kind){case 345:case 353:case 347:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&io(n.parent.parent.parent));case 208:return p_(n.parent.parent);case 260:if(na(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(F1(n))return!0;const c=$(n);return!(Hte(n)&32)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?wh(c):p_(c);case 172:case 171:case 177:case 178:case 174:case 173:if(bp(n,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return p_(n.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function KP(n,a){let c;n.parent&&n.parent.kind===277?c=Tl(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=Q0(n.parent,2998271));let d,h;return c&&(h=new Set,h.add(Ia(c)),y(c.declarations)),d;function y(x){Ve(x,k=>{const z=xT(k)||k;if(a?Zr(k).isVisible=!0:(d=d||[],Tf(d,z)),E2(k)){const K=k.moduleReference,ne=jp(K),Te=Tl(k,ne.escapedText,901119,void 0,void 0,!1);Te&&h&&Rv(h,Ia(Te))&&y(Te.declarations)}})}}function Gh(n,a){const c=yx(n,a);if(c>=0){const{length:d}=gu;for(let h=c;h<d;h++)tv[h]=!1;return!1}return gu.push(n),tv.push(!0),j0.push(a),!0}function yx(n,a){for(let c=gu.length-1;c>=QI;c--){if(z4(gu[c],j0[c]))return-1;if(gu[c]===n&&j0[c]===a)return c}return-1}function z4(n,a){switch(a){case 0:return!!eo(n).type;case 5:return!!Zr(n).resolvedEnumType;case 2:return!!eo(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!!eo(n).writeType;case 9:return Zr(n).parameterInitializerContainsUndefined!==void 0}return N.assertNever(a)}function $_(){return gu.pop(),j0.pop(),tv.pop()}function $(n){return jn(C_(n),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function Re(n){const a=nl(Md(n));return a.typeParameters?_y(a,Wt(a.typeParameters,c=>j)):a}function Ke(n,a){const c=Sa(n,a);return c?_r(c):void 0}function Rt(n,a){var c;let d;return Ke(n,a)||(d=(c=Tx(n,a))==null?void 0:c.type)&&dp(d,!0,!0)}function Nt(n){return n&&(n.flags&1)!==0}function Jt(n){return n===_t||!!(n.flags&1&&n.aliasSymbol)}function Gr(n,a){if(a!==0)return VT(n,!1,a);const c=Cr(n);return c&&eo(c).type||VT(n,!1,a)}function zi(n,a,c){if(n=vc(n,z=>!(z.flags&98304)),n.flags&131072)return wa;if(n.flags&1048576)return _l(n,z=>zi(z,a,c));let d=ei(Wt(a,gy));const h=[],y=[];for(const z of As(n)){const K=LD(z,8576);!Aa(K,d)&&!(Df(z)&6)&&gee(z)?h.push(z):y.push(K)}if($T(n)||QT(d)){if(y.length&&(d=ei([d,...y])),d.flags&131072)return n;const z=put();return z?PD(z,[n,d]):_t}const x=pa();for(const z of h)x.set(z.escapedName,Pve(z,!1));const k=Vs(c,x,et,et,yd(n));return k.objectFlags|=4194304,k}function Pi(n){return!!(n.flags&465829888)&&wl(ju(n)||pn,32768)}function _i(n){const a=qm(n,Pi)?_l(n,c=>c.flags&465829888?mv(c):c):n;return Em(a,524288)}function to(n,a){const c=vs(n);return c?Kb(c,a):a}function vs(n){const a=ws(n);if(a&&fk(a)&&a.flowNode){const c=ls(n);if(c){const d=ut(Dh.createStringLiteral(c),n),h=tp(a)?a:Dh.createParenthesizedExpression(a),y=ut(Dh.createElementAccessExpression(h,d),n);return Qa(d,y),Qa(y,n),h!==a&&Qa(h,y),y.flowNode=a.flowNode,y}}}function ws(n){const a=n.parent.parent;switch(a.kind){case 208:case 303:return vs(a);case 209:return vs(n.parent);case 260:return a.initializer;case 226:return a.right}}function ls(n){const a=n.parent;return n.kind===208&&a.kind===206?Uf(n.propertyName||n.name):n.kind===303||n.kind===304?Uf(n.name):""+a.elements.indexOf(n)}function Uf(n){const a=gy(n);return a.flags&384?""+a.value:void 0}function Q_(n){const a=n.dotDotDotToken?32:0,c=Gr(n.parent.parent,a);return c&&jm(n,c,!1)}function jm(n,a,c){if(Nt(a))return a;const d=n.parent;Y&&n.flags&33554432&&q1(n)?a=bv(a):Y&&d.parent.initializer&&!bm(a3e(d.parent.initializer),65536)&&(a=Em(a,524288));let h;if(d.kind===206)if(n.dotDotDotToken){if(a=h_(a),a.flags&2||!fB(a))return Xe(n,m.Rest_types_may_only_be_created_from_object_types),_t;const y=[];for(const x of d.elements)x.dotDotDotToken||y.push(x.propertyName||x.name);h=zi(a,y,n.symbol)}else{const y=n.propertyName||n.name,x=gy(y),k=kp(a,x,32,y);h=to(n,k)}else{const y=Ey(65|(n.dotDotDotToken?0:128),a,We,d),x=d.elements.indexOf(n);if(n.dotDotDotToken){const k=_l(a,z=>z.flags&58982400?mv(z):z);h=fp(k,Ha)?_l(k,z=>oM(z,x)):Uu(y)}else if(yy(a)){const k=g_(x),z=32|(c||hM(n)?16:0),K=Bb(a,k,z,n.name)||_t;h=to(n,K)}else h=y}return n.initializer?Su(n2(n))?Y&&!bm(vM(n,0),16777216)?_i(h):h:Ste(n,ei([_i(h),vM(n,0)],2)):h}function uv(n){const a=p0(n);if(a)return Ai(a)}function dv(n){const a=Ss(n,!0);return a.kind===106||a.kind===80&&Hm(a)===He}function Cb(n){const a=Ss(n,!0);return a.kind===209&&a.elements.length===0}function dp(n,a=!1,c=!0){return Y&&c?qb(n,a):n}function VT(n,a,c){if(Wi(n)&&n.parent.parent.kind===249){const x=th(Hye(Eo(n.parent.parent.expression,c)));return x.flags&4456448?j8e(x):ke}if(Wi(n)&&n.parent.parent.kind===250){const x=n.parent.parent;return zB(x)||j}if(na(n.parent))return Q_(n);const d=qo(n)&&!P_(n)||Sp(n)||_se(n),h=a&&vC(n),y=no(n);if(Lj(n))return y?Nt(y)||y===pn?y:_t:ge?pn:j;if(y)return dp(y,d,h);if((de||dr(n))&&Wi(n)&&!na(n.name)&&!(Hte(n)&32)&&!(n.flags&33554432)){if(!(oS(n)&6)&&(!n.initializer||dv(n.initializer)))return ot;if(n.initializer&&Cb(n.initializer))return $c}if(No(n)){const x=n.parent;if(x.kind===178&&RD(x)){const K=gl(Cr(n.parent),177);if(K){const ne=vm(K),Te=e0e(x);return Te&&n===Te?(N.assert(!Te.type),_r(ne.thisParameter)):ys(ne)}}const k=Fct(x,n);if(k)return k;const z=n.symbol.escapedName==="this"?N3e(x):C3e(n);if(z)return dp(z,!1,h)}if(ES(n)&&!!n.initializer){if(dr(n)&&!No(n)){const k=Ya(n,Cr(n),ik(n));if(k)return k}const x=Ste(n,vM(n,c));return dp(x,d,h)}if(qo(n)&&(de||dr(n)))if(Ec(n)){const x=Vn(n.parent.members,Pl),k=x.length?pv(n.symbol,x):fd(n)&128?Cee(n.symbol):void 0;return k&&dp(k,!0,h)}else{const x=lv(n.parent),k=x?Pb(n.symbol,x):fd(n)&128?Cee(n.symbol):void 0;return k&&dp(k,!0,h)}if(F_(n))return or;if(na(n.name))return P(n.name,!1,!0)}function TD(n){if(n.valueDeclaration&&vr(n.valueDeclaration)){const a=eo(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!YP(n)&&Bn(n.declarations,c=>vr(c)&&tte(c)&&(c.left.kind!==212||nf(c.left.argumentExpression))&&!gc(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function XP(n){const a=n.valueDeclaration;return a&&qo(a)&&!Su(a)&&!a.initializer&&(de||dr(a))}function YP(n){if(!!n.declarations)for(const a of n.declarations){const c=zd(a,!1,!1);if(c&&(c.kind===176||oh(c)))return c}}function o1(n){const a=Jn(n.declarations[0]),c=Ki(n.escapedName),d=n.declarations.every(y=>dr(y)&&js(y)&&ig(y.expression)),h=d?O.createPropertyAccessExpression(O.createPropertyAccessExpression(O.createIdentifier("module"),O.createIdentifier("exports")),c):O.createPropertyAccessExpression(O.createIdentifier("exports"),c);return d&&Qa(h.expression.expression,h.expression),Qa(h.expression,h),Qa(h,a),h.flowNode=a.endFlowNode,Kb(h,ot,We)}function pv(n,a){const c=ho(n.escapedName,"__#")?O.createPrivateIdentifier(n.escapedName.split("@")[1]):Ki(n.escapedName);for(const d of a){const h=O.createPropertyAccessExpression(O.createThis(),c);Qa(h.expression,h),Qa(h,d),h.flowNode=d.returnFlowNode;const y=AD(h,n);if(de&&(y===ot||y===$c)&&Xe(n.valueDeclaration,m.Member_0_implicitly_has_an_1_type,Ti(n),Kn(y)),!fp(y,gB))return A8(y)}}function Pb(n,a){const c=ho(n.escapedName,"__#")?O.createPrivateIdentifier(n.escapedName.split("@")[1]):Ki(n.escapedName),d=O.createPropertyAccessExpression(O.createThis(),c);Qa(d.expression,d),Qa(d,a),d.flowNode=a.returnFlowNode;const h=AD(d,n);return de&&(h===ot||h===$c)&&Xe(n.valueDeclaration,m.Member_0_implicitly_has_an_1_type,Ti(n),Kn(h)),fp(h,gB)?void 0:A8(h)}function AD(n,a){const c=(a==null?void 0:a.valueDeclaration)&&(!XP(a)||fd(a.valueDeclaration)&128)&&Cee(a)||We;return Kb(n,ot,c)}function Kp(n,a){const c=GA(n.valueDeclaration);if(c){const k=dr(c)?d0(c):void 0;return k&&k.typeExpression?Ai(k.typeExpression):n.valueDeclaration&&Ya(n.valueDeclaration,n,c)||$E(uc(c))}let d,h=!1,y=!1;if(TD(n)&&(d=Pb(n,YP(n))),!d){let k;if(n.declarations){let z;for(const K of n.declarations){const ne=vr(K)||ca(K)?K:js(K)?vr(K.parent)?K.parent:K:void 0;if(!ne)continue;const Te=js(ne)?lk(ne):ql(ne);(Te===4||vr(ne)&&tte(ne,Te))&&($P(ne)?h=!0:y=!0),ca(ne)||(z=gc(z,ne,n,K)),z||(k||(k=[])).push(vr(ne)||ca(ne)?a1(n,a,ne,Te):qr)}d=z}if(!d){if(!Pe(k))return _t;let z=h&&n.declarations?Mb(k,n.declarations):void 0;if(y){const ne=Cee(n);ne&&((z||(z=[])).push(ne),h=!0)}const K=St(z,ne=>!!(ne.flags&-98305))?z:k;d=ei(K)}}const x=Yp(dp(d,!1,y&&!h));return n.valueDeclaration&&dr(n.valueDeclaration)&&vc(x,k=>!!(k.flags&-98305))===qr?(g1(n.valueDeclaration,j),j):x}function Ya(n,a,c){var d,h;if(!dr(n)||!c||!za(c)||c.properties.length)return;const y=pa();for(;vr(n)||Br(n);){const z=gf(n);(d=z==null?void 0:z.exports)!=null&&d.size&&u_(y,z.exports),n=vr(n)?n.parent:n.parent.parent}const x=gf(n);(h=x==null?void 0:x.exports)!=null&&h.size&&u_(y,x.exports);const k=Vs(a,y,et,et,et);return k.objectFlags|=4096,k}function gc(n,a,c,d){var h;const y=Su(a.parent);if(y){const x=Yp(Ai(y));if(n)!Jt(n)&&!Jt(x)&&!gv(n,x)&&k5e(void 0,n,d,x);else return x}if((h=c.parent)!=null&&h.valueDeclaration){const x=WE(c.parent);if(x.valueDeclaration){const k=Su(x.valueDeclaration);if(k){const z=Sa(Ai(k),c.escapedName);if(z)return kb(z)}}}return n}function a1(n,a,c,d){if(ca(c)){if(a)return _r(a);const x=uc(c.arguments[2]),k=Ke(x,"value");if(k)return k;const z=Ke(x,"get");if(z){const ne=cA(z);if(ne)return ys(ne)}const K=Ke(x,"set");if(K){const ne=cA(K);if(ne)return pbe(ne)}return j}if(bx(c.left,c.right))return j;const h=d===1&&(Br(c.left)||el(c.left))&&(ig(c.left.expression)||Ue(c.left.expression)&&RS(c.left.expression)),y=a?_r(a):h?Ed(uc(c.right)):$E(uc(c.right));if(y.flags&524288&&d===2&&n.escapedName==="export="){const x=__(y),k=pa();$6(x.members,k);const z=k.size;a&&!a.exports&&(a.exports=pa()),(a||n).exports.forEach((ne,Te)=>{var ve;const Ge=k.get(Te);if(Ge&&Ge!==ne&&!(ne.flags&2097152))if(ne.flags&111551&&Ge.flags&111551){if(ne.valueDeclaration&&Ge.valueDeclaration&&Jn(ne.valueDeclaration)!==Jn(Ge.valueDeclaration)){const xt=Ki(ne.escapedName),cn=((ve=ni(Ge.valueDeclaration,cd))==null?void 0:ve.name)||Ge.valueDeclaration;Fa(Xe(ne.valueDeclaration,m.Duplicate_identifier_0,xt),Fr(cn,m._0_was_also_declared_here,xt)),Fa(Xe(cn,m.Duplicate_identifier_0,xt),Fr(ne.valueDeclaration,m._0_was_also_declared_here,xt))}const vt=ts(ne.flags|Ge.flags,Te);vt.links.type=ei([_r(ne),_r(Ge)]),vt.valueDeclaration=Ge.valueDeclaration,vt.declarations=Ro(Ge.declarations,ne.declarations),k.set(Te,vt)}else k.set(Te,_m(ne,Ge));else k.set(Te,ne)});const K=Vs(z!==k.size?void 0:x.symbol,k,x.callSignatures,x.constructSignatures,x.indexInfos);if(z===k.size&&(y.aliasSymbol&&(K.aliasSymbol=y.aliasSymbol,K.aliasTypeArguments=y.aliasTypeArguments),zr(y)&4)){K.aliasSymbol=y.symbol;const ne=$s(y);K.aliasTypeArguments=Pe(ne)?ne:void 0}return K.objectFlags|=zr(y)&4096,K.symbol&&K.symbol.flags&32&&y===qf(K.symbol)&&(K.objectFlags|=16777216),K}return Mee(y)?(g1(c,lc),lc):y}function bx(n,a){return Br(n)&&n.expression.kind===110&&VC(a,c=>Du(n,c))}function $P(n){const a=zd(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!ck(a.parent)}function Mb(n,a){return N.assert(n.length===a.length),n.filter((c,d)=>{const h=a[d],y=vr(h)?h:vr(h.parent)?h.parent:void 0;return y&&$P(y)})}function QP(n,a,c){if(n.initializer){const d=na(n.name)?P(n.name,!0,!1):pn;return dp(Ste(n,vM(n,c?0:1,d)))}return na(n.name)?P(n.name,a,c):(c&&!Ir(n)&&g1(n,j),a?gn:j)}function cr(n,a,c){const d=pa();let h,y=131200;Ve(n.elements,k=>{const z=k.propertyName||k.name;if(k.dotDotDotToken){h=Hh(ke,j,!1);return}const K=gy(z);if(!cm(K)){y|=512;return}const ne=um(K),Te=4|(k.initializer?16777216:0),ve=ts(Te,ne);ve.links.type=QP(k,a,c),ve.links.bindingElement=k,d.set(ve.escapedName,ve)});const x=Vs(void 0,d,et,et,h?[h]:et);return x.objectFlags|=y,a&&(x.pattern=n,x.objectFlags|=131072),x}function E(n,a,c){const d=n.elements,h=il(d),y=h&&h.kind===208&&h.dotDotDotToken?h:void 0;if(d.length===0||d.length===1&&y)return se>=2?R8e(j):lc;const x=Wt(d,ne=>Kc(ne)?j:QP(ne,a,c)),k=as(d,ne=>!(ne===y||Kc(ne)||hM(ne)),d.length-1)+1,z=Wt(d,(ne,Te)=>ne===y?4:Te>=k?2:1);let K=qh(x,z);return a&&(K=l8e(K),K.pattern=n,K.objectFlags|=131072),K}function P(n,a=!1,c=!1){return n.kind===206?cr(n,a,c):E(n,a,c)}function B(n,a){return Xt(VT(n,!0,0),n,a)}function ce(n){const a=Zr(n);if(!a.resolvedType){const c=ts(4096,"__importAttributes"),d=pa();Ve(n.elements,y=>{const x=ts(4,S7(y));x.parent=c,x.links.type=oyt(y),x.links.target=x,d.set(x.escapedName,x)});const h=Vs(c,d,et,et,et);h.objectFlags|=262272,a.resolvedType=h}return a.resolvedType}function $e(n){const a=gf(n),c=eut(!1);return c&&a&&a===c}function Xt(n,a,c){return n?(n.flags&4096&&$e(a.parent)&&(n=Mve(a)),c&&Bee(a,n),n.flags&8192&&(os(a)||!a.type)&&n.symbol!==Cr(a)&&(n=li),Yp(n)):(n=No(a)&&a.dotDotDotToken?lc:j,c&&(Ir(a)||g1(a,n)),n)}function Ir(n){const a=C_(n),c=a.kind===169?a.parent:a;return kB(c)}function no(n){const a=Su(n);if(a)return Ai(a)}function Os(n){let a=n.valueDeclaration;return a?(os(a)&&(a=n2(a)),No(a)?Tee(a.parent):!1):!1}function f_(n,a){const c=eo(n);if(!c.type){const d=Lb(n,a);return!c.type&&!Os(n)&&!a&&(c.type=d),d}return c.type}function Lb(n,a){if(n.flags&4194304)return Re(n);if(n===yt)return j;if(n.flags&134217728&&n.valueDeclaration){const h=Cr(Jn(n.valueDeclaration)),y=ts(h.flags,"exports");y.declarations=h.declarations?h.declarations.slice():[],y.parent=n,y.links.target=h,h.valueDeclaration&&(y.valueDeclaration=h.valueDeclaration),h.members&&(y.members=new Map(h.members)),h.exports&&(y.exports=new Map(h.exports));const x=pa();return x.set("exports",y),Vs(n,x,et,et,et)}N.assertIsDefined(n.valueDeclaration);const c=n.valueDeclaration;if(io(c)&&im(c))return c.statements.length?Yp($E(Eo(c.statements[0].expression))):wa;if(ky(c))return l1(n);if(!Gh(n,0))return n.flags&512&&!(n.flags&67108864)?ZP(n):os(c)&&a===1?_t:ID(n);let d;if(c.kind===277)d=Xt(no(c)||uc(c.expression),c);else if(vr(c)||dr(c)&&(ca(c)||(Br(c)||R3(c))&&vr(c.parent)))d=Kp(n);else if(Br(c)||el(c)||Ue(c)||hs(c)||Ep(c)||Nc(c)||Dc(c)||Ql(c)&&!Cm(c)||Th(c)||io(c)){if(n.flags&9136)return ZP(n);d=vr(c.parent)?Kp(n):no(c)||j}else if(Tc(c))d=no(c)||a5e(c);else if(F_(c))d=no(c)||V3e(c);else if(ip(c))d=no(c)||bM(c.name,0);else if(Cm(c))d=no(c)||s5e(c,0);else if(No(c)||qo(c)||Sp(c)||Wi(c)||os(c)||IN(c))d=B(c,!0);else if(x0(c))d=ZP(n);else if(dE(c))d=YZ(n);else return N.fail("Unhandled declaration kind! "+N.formatSyntaxKind(c.kind)+" for "+N.formatSymbol(n));return $_()?d:n.flags&512&&!(n.flags&67108864)?ZP(n):os(c)&&a===1?d:ID(n)}function Um(n){if(n)switch(n.kind){case 177:return lm(n);case 178:return Eoe(n);case 172:return N.assert(P_(n)),Su(n)}}function s1(n){const a=Um(n);return a&&Ai(a)}function KZ(n){const a=e0e(n);return a&&a.symbol}function Nge(n){return p1(vm(n))}function l1(n){const a=eo(n);if(!a.type){if(!Gh(n,0))return _t;const c=gl(n,177),d=gl(n,178),h=ni(gl(n,172),Fd);let y=c&&dr(c)&&uv(c)||s1(c)||s1(d)||s1(h)||c&&c.body&&yte(c)||h&&h.initializer&&B(h,!0);y||(d&&!kB(d)?vu(de,d,m.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ti(n)):c&&!kB(c)?vu(de,c,m.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ti(n)):h&&!kB(h)&&vu(de,h,m.Member_0_implicitly_has_an_1_type,Ti(n),"any"),y=j),$_()||(Um(c)?Xe(c,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ti(n)):Um(d)||Um(h)?Xe(d,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ti(n)):c&&de&&Xe(c,m._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ti(n)),y=j),a.type=y}return a.type}function Az(n){var c;const a=eo(n);if(!a.writeType){if(!Gh(n,8))return _t;const d=(c=gl(n,178))!=null?c:ni(gl(n,172),Fd);let h=s1(d);$_()||(Um(d)&&Xe(d,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ti(n)),h=j),a.writeType=h||l1(n)}return a.writeType}function XZ(n){const a=Hf(qf(n));return a.flags&8650752?a:a.flags&2097152?un(a.types,c=>!!(c.flags&8650752)):void 0}function ZP(n){let a=eo(n);const c=a;if(!a.type){const d=n.valueDeclaration&&gte(n.valueDeclaration,!1);if(d){const h=abe(n,d);h&&(n=h,a=h.links)}c.type=a.type=Iz(n)}return a.type}function Iz(n){const a=n.valueDeclaration;if(n.flags&1536&&LN(n))return j;if(a&&(a.kind===226||js(a)&&a.parent.kind===226))return Kp(n);if(n.flags&512&&a&&io(a)&&a.commonJsModuleIndicator){const d=Mp(n);if(d!==n){if(!Gh(n,0))return _t;const h=ds(n.exports.get("export=")),y=Kp(h,h===d?void 0:d);return $_()?y:ID(n)}}const c=Vf(16,n);if(n.flags&32){const d=XZ(n);return d?Ta([c,d]):c}else return Y&&n.flags&16777216?qb(c,!0):c}function YZ(n){const a=eo(n);return a.type||(a.type=R4e(n))}function $Z(n){const a=eo(n);if(!a.type){if(!Gh(n,0))return _t;const c=Vc(n),d=n.declarations&&qp(zm(n),!0),h=$t(d==null?void 0:d.declarations,y=>zl(y)?no(y):void 0);if(a.type=(d==null?void 0:d.declarations)&&Ote(d.declarations)&&n.declarations.length?o1(d):Ote(n.declarations)?ot:h||(Ru(c)&111551?_r(c):_t),!$_())return ID(d!=null?d:n),a.type=_t}return a.type}function Cge(n){const a=eo(n);return a.type||(a.type=fo(_r(a.target),a.mapper))}function Pge(n){const a=eo(n);return a.writeType||(a.writeType=fo(jE(a.target),a.mapper))}function ID(n){const a=n.valueDeclaration;if(a){if(Su(a))return Xe(n.valueDeclaration,m._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ti(n)),_t;de&&(a.kind!==169||a.initializer)&&Xe(n.valueDeclaration,m._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Ti(n))}else if(n.flags&2097152){const c=zm(n);c&&Xe(c,m.Circular_definition_of_import_alias_0,Ti(n))}return j}function QZ(n){const a=eo(n);return a.type||(N.assertIsDefined(a.deferralParent),N.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?ei(a.deferralConstituents):Ta(a.deferralConstituents)),a.type}function xz(n){const a=eo(n);return!a.writeType&&a.deferralWriteConstituents&&(N.assertIsDefined(a.deferralParent),N.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?ei(a.deferralWriteConstituents):Ta(a.deferralWriteConstituents)),a.writeType}function jE(n){const a=Cl(n);return n.flags&4?a&2?a&65536?xz(n)||QZ(n):n.links.writeType||n.links.type:Jb(_r(n),!!(n.flags&16777216)):n.flags&98304?a&1?Pge(n):Az(n):_r(n)}function _r(n,a){const c=Cl(n);return c&65536?QZ(n):c&1?Cge(n):c&262144?yct(n):c&8192?Lpt(n):n.flags&7?f_(n,a):n.flags&9136?ZP(n):n.flags&8?YZ(n):n.flags&98304?l1(n):n.flags&2097152?$Z(n):_t}function kb(n){return Jb(_r(n),!!(n.flags&16777216))}function wb(n,a){return n!==void 0&&a!==void 0&&(zr(n)&4)!==0&&n.target===a}function fy(n){return zr(n)&4?n.target:n}function xD(n,a){return c(n);function c(d){if(zr(d)&7){const h=fy(d);return h===a||St(pp(h),c)}else if(d.flags&2097152)return St(d.types,c);return!1}}function c1(n,a){for(const c of a)n=Lg(n,jT(Cr(c)));return n}function Cn(n,a){for(;;){if(n=n.parent,n&&vr(n)){const c=ql(n);if(c===6||c===3){const d=Cr(n.left);d&&d.parent&&!jn(d.parent.valueDeclaration,h=>n===h)&&(n=d.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{const d=Cn(n,a);if(n.kind===200)return Rn(d,jT(Cr(n.typeParameter)));if(n.kind===194)return Ro(d,e6e(n));const h=c1(d,My(n)),y=a&&(n.kind===263||n.kind===231||n.kind===264||oh(n))&&qf(Cr(n)).thisType;return y?Rn(h,y):h}case 348:const c=_k(n);c&&(n=c.valueDeclaration);break;case 327:{const d=Cn(n,a);return n.tags?c1(d,qi(n.tags,h=>fm(h)?h.typeParameters:void 0)):d}}}}function Vr(n){var a;const c=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(d=>{if(d.kind===264)return!0;if(d.kind!==260)return!1;const h=d.initializer;return!!h&&(h.kind===218||h.kind===219)});return N.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Cn(c)}function Wr(n){if(!n.declarations)return;let a;for(const c of n.declarations)(c.kind===264||c.kind===263||c.kind===231||oh(c)||pk(c))&&(a=c1(a,My(c)));return a}function Bi(n){return Ro(Vr(n),Wr(n))}function ki(n){const a=$o(n,1);if(a.length===1){const c=a[0];if(!c.typeParameters&&c.parameters.length===1&&Zu(c)){const d=IB(c.parameters[0]);return Nt(d)||eB(d)===j}}return!1}function Ua(n){if($o(n,1).length>0)return!0;if(n.flags&8650752){const a=ju(n);return!!a&&ki(a)}return!1}function Ms(n){const a=jg(n.symbol);return a&&D_(a)}function id(n,a,c){const d=Pe(a),h=dr(c);return Vn($o(n,1),y=>(h||d>=Uh(y.typeParameters))&&d<=Pe(y.typeParameters))}function Vh(n,a,c){const d=id(n,a,c),h=Wt(a,Ai);return mo(d,y=>St(y.typeParameters)?H4(y,h,dr(c)):y)}function Hf(n){if(!n.resolvedBaseConstructorType){const a=jg(n.symbol),c=a&&D_(a),d=Ms(n);if(!d)return n.resolvedBaseConstructorType=We;if(!Gh(n,1))return _t;const h=Eo(d.expression);if(c&&d!==c&&(N.assert(!c.typeArguments),Eo(c.expression)),h.flags&2621440&&__(h),!$_())return Xe(n.symbol.valueDeclaration,m._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ti(n.symbol)),n.resolvedBaseConstructorType=_t;if(!(h.flags&1)&&h!==je&&!Ua(h)){const y=Xe(d.expression,m.Type_0_is_not_a_constructor_function_type,Kn(h));if(h.flags&262144){const x=nM(h);let k=pn;if(x){const z=$o(x,1);z[0]&&(k=ys(z[0]))}h.symbol.declarations&&Fa(y,Fr(h.symbol.declarations[0],m.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Ti(h.symbol),Kn(k)))}return n.resolvedBaseConstructorType=_t}n.resolvedBaseConstructorType=h}return n.resolvedBaseConstructorType}function Z_(n){let a=et;if(n.symbol.declarations)for(const c of n.symbol.declarations){const d=N2(c);if(!!d)for(const h of d){const y=Ai(h);Jt(y)||(a===et?a=[y]:a.push(y))}}return a}function eh(n,a){Xe(n,m.Type_0_recursively_references_itself_as_a_base_type,Kn(a,void 0,2))}function pp(n){if(!n.baseTypesResolved){if(Gh(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[B4(n)]:n.symbol.flags&96?(n.symbol.flags&32&&Ex(n),n.symbol.flags&64&&Klt(n)):N.fail("type must be class or interface"),!$_()&&n.symbol.declarations))for(const a of n.symbol.declarations)(a.kind===263||a.kind===264)&&eh(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function B4(n){const a=mo(n.typeParameters,(c,d)=>n.elementFlags[d]&8?kp(c,Tt):c);return Uu(ei(a||et),n.readonly)}function Ex(n){n.resolvedBaseTypes=T7;const a=wd(Hf(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=et;const c=Ms(n);let d;const h=a.symbol?nl(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Mge(h))d=c8e(c,a.symbol);else if(a.flags&1)d=a;else{const x=Vh(a,c.typeArguments,c);if(!x.length)return Xe(c.expression,m.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=et;d=ys(x[0])}if(Jt(d))return n.resolvedBaseTypes=et;const y=h_(d);if(!Rz(y)){const x=qge(void 0,d),k=jo(x,m.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Kn(y));return cs.add(zg(Jn(c.expression),c.expression,k)),n.resolvedBaseTypes=et}return n===y||xD(y,n)?(Xe(n.symbol.valueDeclaration,m.Type_0_recursively_references_itself_as_a_base_type,Kn(n,void 0,2)),n.resolvedBaseTypes=et):(n.resolvedBaseTypes===T7&&(n.members=void 0),n.resolvedBaseTypes=[y])}function Mge(n){const a=n.outerTypeParameters;if(a){const c=a.length-1,d=$s(n);return a[c].symbol!==d[c].symbol}return!0}function Rz(n){if(n.flags&262144){const a=ju(n);if(a)return Rz(a)}return!!(n.flags&67633153&&!Xd(n)||n.flags&2097152&&Bn(n.types,Rz))}function Klt(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||et,n.symbol.declarations){for(const a of n.symbol.declarations)if(a.kind===264&&jN(a))for(const c of jN(a)){const d=h_(Ai(c));Jt(d)||(Rz(d)?n!==d&&!xD(d,n)?n.resolvedBaseTypes===et?n.resolvedBaseTypes=[d]:n.resolvedBaseTypes.push(d):eh(a,n):Xe(c,m.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Xlt(n){if(!n.declarations)return!0;for(const a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;const c=jN(a);if(c){for(const d of c)if(Jl(d.expression)){const h=Ys(d.expression,788968,!0);if(!h||!(h.flags&64)||qf(h).thisType)return!1}}}return!0}function qf(n){let a=eo(n);const c=a;if(!a.declaredType){const d=n.flags&32?1:2,h=abe(n,n.valueDeclaration&&W_t(n.valueDeclaration));h&&(n=h,a=h.links);const y=c.declaredType=a.declaredType=Vf(d,n),x=Vr(n),k=Wr(n);(x||k||d===1||!Xlt(n))&&(y.objectFlags|=4,y.typeParameters=Ro(x,k),y.outerTypeParameters=x,y.localTypeParameters=k,y.instantiations=new Map,y.instantiations.set(ym(y.typeParameters),y),y.target=y,y.resolvedTypeArguments=y.typeParameters,y.thisType=yf(n),y.thisType.isThisType=!0,y.thisType.constraint=y)}return a.declaredType}function A4e(n){var a;const c=eo(n);if(!c.declaredType){if(!Gh(n,2))return _t;const d=N.checkDefined((a=n.declarations)==null?void 0:a.find(pk),"Type alias symbol with no valid declaration found"),h=om(d)?d.typeExpression:d.type;let y=h?Ai(h):_t;if($_()){const x=Wr(n);x&&(c.typeParameters=x,c.instantiations=new Map,c.instantiations.set(ym(x),y))}else y=_t,d.kind===347?Xe(d.typeExpression.type,m.Type_alias_0_circularly_references_itself,Ti(n)):Xe(cd(d)&&d.name||d,m.Type_alias_0_circularly_references_itself,Ti(n));c.declaredType=y}return c.declaredType}function ZZ(n){return n.flags&1056&&n.symbol.flags&8?nl(Md(n.symbol)):n}function I4e(n){const a=eo(n);if(!a.declaredType){const c=[];if(n.declarations){for(const h of n.declarations)if(h.kind===266){for(const y of h.members)if(RD(y)){const x=Cr(y),k=JD(y),z=Rx(k!==void 0?mdt(k,Ia(n),x):x4e(x));eo(x).declaredType=z,c.push(Ed(z))}}}const d=c.length?ei(c,1,n,void 0):x4e(n);d.flags&1048576&&(d.flags|=1024,d.symbol=n),a.declaredType=d}return a.declaredType}function x4e(n){const a=Ig(32,n),c=Ig(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function R4e(n){const a=eo(n);if(!a.declaredType){const c=I4e(Md(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function jT(n){const a=eo(n);return a.declaredType||(a.declaredType=yf(n))}function Ylt(n){const a=eo(n);return a.declaredType||(a.declaredType=nl(Vc(n)))}function nl(n){return D4e(n)||_t}function D4e(n){if(n.flags&96)return qf(n);if(n.flags&524288)return A4e(n);if(n.flags&262144)return jT(n);if(n.flags&384)return I4e(n);if(n.flags&8)return R4e(n);if(n.flags&2097152)return Ylt(n)}function Dz(n){switch(n.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return Dz(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(Dz)}return!1}function $lt(n){const a=i2(n);return!a||Dz(a)}function N4e(n){const a=Su(n);return a?Dz(a):!Wy(n)}function Qlt(n){const a=lm(n),c=My(n);return(n.kind===176||!!a&&Dz(a))&&n.parameters.every(N4e)&&c.every($lt)}function Zlt(n){if(n.declarations&&n.declarations.length===1){const a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return N4e(a);case 174:case 173:case 176:case 177:case 178:return Qlt(a)}}return!1}function C4e(n,a,c){const d=pa();for(const h of n)d.set(h.escapedName,c&&Zlt(h)?h:wve(h,a));return d}function P4e(n,a){for(const c of a){if(M4e(c))continue;const d=n.get(c.escapedName);(!d||d.valueDeclaration&&vr(d.valueDeclaration)&&!TD(d)&&!Yie(d.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function M4e(n){return!!n.valueDeclaration&&ud(n.valueDeclaration)&&la(n.valueDeclaration)}function Lge(n){if(!n.declaredProperties){const a=n.symbol,c=Ob(a);n.declaredProperties=n1(c),n.declaredCallSignatures=et,n.declaredConstructSignatures=et,n.declaredIndexInfos=et,n.declaredCallSignatures=UE(c.get("__call")),n.declaredConstructSignatures=UE(c.get("__new")),n.declaredIndexInfos=o8e(a)}return n}function kge(n){if(!ss(n)&&!el(n))return!1;const a=ss(n)?n.expression:n.argumentExpression;return Jl(a)&&cm(ss(n)?Dg(n):uc(a))}function G4(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function Nz(n){const a=Oo(n);return!!a&&kge(a)}function RD(n){return!Gy(n)||Nz(n)}function ect(n){return k3(n)&&!kge(n)}function tct(n,a,c){N.assert(!!(Cl(n)&4096),"Expected a late-bound symbol."),n.flags|=c,eo(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],c&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function L4e(n,a,c,d){N.assert(!!d.symbol,"The member is expected to have a symbol.");const h=Zr(d);if(!h.resolvedSymbol){h.resolvedSymbol=d.symbol;const y=vr(d)?d.left:d.name,x=el(y)?uc(y.argumentExpression):Dg(y);if(cm(x)){const k=um(x),z=d.symbol.flags;let K=c.get(k);K||c.set(k,K=ts(0,k,4096));const ne=a&&a.get(k);if(!(n.flags&32)&&(K.flags&ST(z)||ne)){const Te=ne?Ro(ne.declarations,K.declarations):K.declarations,ve=!(x.flags&8192)&&Ki(k)||ks(y);Ve(Te,Ge=>Xe(Oo(Ge)||Ge,m.Property_0_was_also_declared_here,ve)),Xe(y||d,m.Duplicate_property_0,ve),K=ts(0,k,4096)}return K.links.nameType=x,tct(K,d,z),K.parent?N.assert(K.parent===n,"Existing symbol parent should match new one"):K.parent=n,h.resolvedSymbol=K}}return h.resolvedSymbol}function wge(n,a){const c=eo(n);if(!c[a]){const d=a==="resolvedExports",h=d?n.flags&1536?WT(n).exports:n.exports:n.members;c[a]=h||X;const y=pa();for(const z of n.declarations||et){const K=Vie(z);if(K)for(const ne of K)d===Ec(ne)&&Nz(ne)&&L4e(n,h,y,ne)}const x=WE(n).assignmentDeclarationMembers;if(x){const z=Go(x.values());for(const K of z){const ne=ql(K),Te=ne===3||vr(K)&&tte(K,ne)||ne===9||ne===6;d===!Te&&Nz(K)&&L4e(n,h,y,K)}}let k=cx(h,y);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(const z of n.declarations){const K=eo(z.symbol)[a];if(!k){k=K;continue}!K||K.forEach((ne,Te)=>{const ve=k.get(Te);if(!ve)k.set(Te,ne);else{if(ve===ne)return;k.set(Te,_m(ve,ne))}})}c[a]=k||X}return c[a]}function Ob(n){return n.flags&6256?wge(n,"resolvedMembers"):n.members||X}function eee(n){if(n.flags&106500&&n.escapedName==="__computed"){const a=eo(n);if(!a.lateSymbol&&St(n.declarations,Nz)){const c=ds(n.parent);St(n.declarations,Ec)?Lp(c):Ob(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Xp(n,a,c){if(zr(n)&4){const d=n.target,h=$s(n);return Pe(d.typeParameters)===Pe(h)?_y(d,Ro(h,[a||d.thisType])):n}else if(n.flags&2097152){const d=mo(n.types,h=>Xp(h,a,c));return d!==n.types?Ta(d):n}return c?wd(n):n}function k4e(n,a,c,d){let h,y,x,k,z;SG(c,d,0,c.length)?(y=a.symbol?Ob(a.symbol):pa(a.declaredProperties),x=a.declaredCallSignatures,k=a.declaredConstructSignatures,z=a.declaredIndexInfos):(h=wp(c,d),y=C4e(a.declaredProperties,h,c.length===1),x=Eee(a.declaredCallSignatures,h),k=Eee(a.declaredConstructSignatures,h),z=a6e(a.declaredIndexInfos,h));const K=pp(a);if(K.length){if(a.symbol&&y===Ob(a.symbol)){const Te=pa(a.declaredProperties),ve=eve(a.symbol);ve&&Te.set("__index",ve),y=Te}bf(n,y,x,k,z);const ne=il(d);for(const Te of K){const ve=ne?Xp(fo(Te,h),ne):Te;P4e(y,As(ve)),x=Ro(x,$o(ve,0)),k=Ro(k,$o(ve,1));const Ge=ve!==j?yd(ve):[Hh(ke,j,!1)];z=Ro(z,Vn(Ge,vt=>!Jge(z,vt.keyType)))}}bf(n,y,x,k,z)}function nct(n){k4e(n,Lge(n),et,et)}function rct(n){const a=Lge(n.target),c=Ro(a.typeParameters,[a.thisType]),d=$s(n),h=d.length===c.length?d:Ro(d,[n]);k4e(n,a,c,h)}function xg(n,a,c,d,h,y,x,k){const z=new v(tn,k);return z.declaration=n,z.typeParameters=a,z.parameters=d,z.thisParameter=c,z.resolvedReturnType=h,z.resolvedTypePredicate=y,z.minArgumentCount=x,z.resolvedMinArgumentCount=void 0,z.target=void 0,z.mapper=void 0,z.compositeSignatures=void 0,z.compositeKind=void 0,z}function V4(n){const a=xg(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&167);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function w4e(n,a){const c=V4(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function ict(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});const c=a===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=oct(n,a))}function oct(n,a){N.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const c=V4(n);return c.flags|=a,c}function O4e(n,a){if(Zu(n)){const h=n.parameters.length-1,y=n.parameters[h].escapedName,x=_r(n.parameters[h]);if(Ha(x))return[c(x,h,y)];if(!a&&x.flags&1048576&&Bn(x.types,Ha))return Wt(x.types,k=>c(k,h,y))}return[n.parameters];function c(h,y,x){const k=$s(h),z=d(h,x),K=Wt(k,(ne,Te)=>{const ve=z&&z[Te]?z[Te]:gM(n,y+Te,h),Ge=h.target.elementFlags[Te],vt=Ge&12?32768:Ge&2?16384:0,xt=ts(1,ve,vt);return xt.links.type=Ge&4?Uu(ne):ne,xt});return Ro(n.parameters.slice(0,y),K)}function d(h,y){const x=new Map;return Wt(h.target.labeledElementDeclarations,(k,z)=>{const K=dbe(k,z,y),ne=x.get(K);return ne===void 0?(x.set(K,1),K):(x.set(K,ne+1),`${K}_${ne}`)})}}function act(n){const a=Hf(n),c=$o(a,1),d=jg(n.symbol),h=!!d&&Qr(d,64);if(c.length===0)return[xg(void 0,n.localTypeParameters,void 0,et,n,void 0,0,h?4:0)];const y=Ms(n),x=dr(y),k=Wz(y),z=Pe(k),K=[];for(const ne of c){const Te=Uh(ne.typeParameters),ve=Pe(ne.typeParameters);if(x||z>=Te&&z<=ve){const Ge=ve?oee(ne,Fb(k,ne.typeParameters,Te,x)):V4(ne);Ge.typeParameters=n.localTypeParameters,Ge.resolvedReturnType=n,Ge.flags=h?Ge.flags|4:Ge.flags&-5,K.push(Ge)}}return K}function tee(n,a,c,d,h){for(const y of n)if(Qz(y,a,c,d,h,c?Ldt:e8))return y}function sct(n,a,c){if(a.typeParameters){if(c>0)return;for(let h=1;h<n.length;h++)if(!tee(n[h],a,!1,!1,!1))return;return[a]}let d;for(let h=0;h<n.length;h++){const y=h===c?a:tee(n[h],a,!1,!1,!0)||tee(n[h],a,!0,!1,!0);if(!y)return;d=Lg(d,y)}return d}function Oge(n){let a,c;for(let d=0;d<n.length;d++){if(n[d].length===0)return et;n[d].length>1&&(c=c===void 0?d:-1);for(const h of n[d])if(!a||!tee(a,h,!1,!1,!0)){const y=sct(n,h,d);if(y){let x=h;if(y.length>1){let k=h.thisParameter;const z=Ve(y,K=>K.thisParameter);if(z){const K=Ta(Vi(y,ne=>ne.thisParameter&&_r(ne.thisParameter)));k=tA(z,K)}x=w4e(h,y),x.thisParameter=k}(a||(a=[])).push(x)}}}if(!Pe(a)&&c!==-1){const d=n[c!==void 0?c:0];let h=d.slice();for(const y of n)if(y!==d){const x=y[0];if(N.assert(!!x,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),h=!!x.typeParameters&&St(h,k=>!!k.typeParameters&&!W4e(x.typeParameters,k.typeParameters))?void 0:Wt(h,k=>uct(k,x)),!h)break}a=h}return a||et}function W4e(n,a){if(Pe(n)!==Pe(a))return!1;if(!n||!a)return!0;const c=wp(a,n);for(let d=0;d<n.length;d++){const h=n[d],y=a[d];if(h!==y&&!gv(nM(h)||pn,fo(nM(y)||pn,c)))return!1}return!0}function lct(n,a,c){if(!n||!a)return n||a;const d=Ta([_r(n),fo(_r(a),c)]);return tA(n,d)}function cct(n,a,c){const d=$p(n),h=$p(a),y=d>=h?n:a,x=y===n?a:n,k=y===n?d:h,z=Kh(n)||Kh(a),K=z&&!Kh(y),ne=new Array(k+(K?1:0));for(let Te=0;Te<k;Te++){let ve=tS(y,Te);y===a&&(ve=fo(ve,c));let Ge=tS(x,Te)||pn;x===a&&(Ge=fo(Ge,c));const vt=Ta([ve,Ge]),xt=z&&!K&&Te===k-1,cn=Te>=ah(y)&&Te>=ah(x),sn=Te>=d?void 0:gM(n,Te),rr=Te>=h?void 0:gM(a,Te),zn=sn===rr?sn:sn?rr?void 0:sn:rr,mn=ts(1|(cn&&!xt?16777216:0),zn||`arg${Te}`,xt?32768:cn?16384:0);mn.links.type=xt?Uu(vt):vt,ne[Te]=mn}if(K){const Te=ts(1,"args",32768);Te.links.type=Uu(y_(x,k)),x===a&&(Te.links.type=fo(Te.links.type,c)),ne[k]=Te}return ne}function uct(n,a){const c=n.typeParameters||a.typeParameters;let d;n.typeParameters&&a.typeParameters&&(d=wp(a.typeParameters,n.typeParameters));const h=n.declaration,y=cct(n,a,d),x=lct(n.thisParameter,a.thisParameter,d),k=Math.max(n.minArgumentCount,a.minArgumentCount),z=xg(h,c,x,y,void 0,void 0,k,(n.flags|a.flags)&167);return z.compositeKind=1048576,z.compositeSignatures=Ro(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),d?z.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?YE(n.mapper,d):d:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(z.mapper=n.mapper),z}function F4e(n){const a=yd(n[0]);if(a){const c=[];for(const d of a){const h=d.keyType;Bn(n,y=>!!Rg(y,h))&&c.push(Hh(h,ei(Wt(n,y=>d1(y,h))),St(n,y=>Rg(y,h).isReadonly)))}return c}return et}function dct(n){const a=Oge(Wt(n.types,h=>h===Ot?[fn]:$o(h,0))),c=Oge(Wt(n.types,h=>$o(h,1))),d=F4e(n.types);bf(n,X,a,c,d)}function Cz(n,a){return n?a?Ta([n,a]):n:a}function z4e(n){const a=Ca(n,d=>$o(d,1).length>0),c=Wt(n,ki);if(a>0&&a===Ca(c,d=>d)){const d=c.indexOf(!0);c[d]=!1}return c}function pct(n,a,c,d){const h=[];for(let y=0;y<a.length;y++)y===d?h.push(n):c[y]&&h.push(ys($o(a[y],1)[0]));return Ta(h)}function fct(n){let a,c,d;const h=n.types,y=z4e(h),x=Ca(y,k=>k);for(let k=0;k<h.length;k++){const z=n.types[k];if(!y[k]){let K=$o(z,1);K.length&&x>0&&(K=Wt(K,ne=>{const Te=V4(ne);return Te.resolvedReturnType=pct(ys(ne),h,y,k),Te})),c=B4e(c,K)}a=B4e(a,$o(z,0)),d=ad(yd(z),(K,ne)=>G4e(K,ne,!1),d)}bf(n,X,a||et,c||et,d||et)}function B4e(n,a){for(const c of a)(!n||Bn(n,d=>!Qz(d,c,!1,!1,!1,e8)))&&(n=Rn(n,c));return n}function G4e(n,a,c){if(n)for(let d=0;d<n.length;d++){const h=n[d];if(h.keyType===a.keyType)return n[d]=Hh(h.keyType,c?ei([h.type,a.type]):Ta([h.type,a.type]),c?h.isReadonly||a.isReadonly:h.isReadonly&&a.isReadonly),n}return Rn(n,a)}function mct(n){if(n.target){bf(n,X,et,et,et);const x=C4e(Wb(n.target),n.mapper,!1),k=Eee($o(n.target,0),n.mapper),z=Eee($o(n.target,1),n.mapper),K=a6e(yd(n.target),n.mapper);bf(n,x,k,z,K);return}const a=ds(n.symbol);if(a.flags&2048){bf(n,X,et,et,et);const x=Ob(a),k=UE(x.get("__call")),z=UE(x.get("__new")),K=o8e(a);bf(n,x,k,z,K);return}let c=Lp(a),d;if(a===it){const x=new Map;c.forEach(k=>{var z;!(k.flags&418)&&!(k.flags&512&&((z=k.declarations)==null?void 0:z.length)&&Bn(k.declarations,Ou))&&x.set(k.escapedName,k)}),c=x}let h;if(bf(n,c,et,et,et),a.flags&32){const x=qf(a),k=Hf(x);k.flags&11272192?(c=pa(zT(c)),P4e(c,As(k))):k===j&&(h=Hh(ke,j,!1))}const y=aee(c);if(y?d=tve(y):(h&&(d=Rn(d,h)),a.flags&384&&(nl(a).flags&32||St(n.properties,x=>!!(_r(x).flags&296)))&&(d=Rn(d,Jr))),bf(n,c,et,et,d||et),a.flags&8208&&(n.callSignatures=UE(a)),a.flags&32){const x=qf(a);let k=a.members?UE(a.members.get("__constructor")):et;a.flags&16&&(k=Hr(k.slice(),Vi(n.callSignatures,z=>oh(z.declaration)?xg(z.declaration,z.typeParameters,z.thisParameter,z.parameters,x,void 0,z.minArgumentCount,z.flags&167):void 0))),k.length||(k=act(x)),n.constructSignatures=k}}function _ct(n,a,c){return fo(n,wp([a.indexType,a.objectType],[g_(0),qh([c])]))}function hct(n){const a=Ef(n.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;const c=a.flags&1048576?a.origin:a;if(!c||!(c.flags&2097152))return;const d=Ta(c.types.filter(h=>h!==n.constraintType));return d!==qr?d:void 0}function gct(n){const a=Rg(n.source,ke),c=jh(n.mappedType),d=!(c&1),h=c&4?0:16777216,y=a?[Hh(ke,Vee(a.type,n.mappedType,n.constraintType),d&&a.isReadonly)]:et,x=pa(),k=hct(n);for(const z of As(n.source)){if(k){const Te=LD(z,8576);if(!Aa(Te,k))continue}const K=8192|(d&&b_(z)?8:0),ne=ts(4|z.flags&h,z.escapedName,K);if(ne.declarations=z.declarations,ne.links.nameType=eo(z).nameType,ne.links.propertyType=_r(z),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){const Te=n.constraintType.type.objectType,ve=_ct(n.mappedType,n.constraintType.type,Te);ne.links.mappedType=ve,ne.links.constraintType=th(Te)}else ne.links.mappedType=n.mappedType,ne.links.constraintType=n.constraintType;x.set(z.escapedName,ne)}bf(n,x,et,et,y)}function Pz(n){if(n.flags&4194304){const a=wd(n.type);return Hb(a)?P8e(a):th(a)}if(n.flags&16777216){if(n.root.isDistributive){const a=n.checkType,c=Pz(a);if(c!==a)return Wve(n,ZT(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return _l(n,Pz,!0);if(n.flags&2097152){const a=n.types;return a.length===2&&!!(a[0].flags&76)&&a[1]===_c?n:Ta(mo(n.types,Pz))}return n}function Wge(n){return Cl(n)&4096}function Fge(n,a,c,d){for(const h of As(n))d(LD(h,a));if(n.flags&1)d(ke);else for(const h of yd(n))(!c||h.keyType.flags&134217732)&&d(h.keyType)}function vct(n){const a=pa();let c;bf(n,X,et,et,et);const d=m_(n),h=Ef(n),y=n.target||n,x=my(y),k=nee(y)!==2,z=fv(y),K=wd(UT(n)),ne=jh(n),Te=Ce?128:8576;DD(n)?Fge(K,Te,Ce,ve):oA(Pz(h),ve),bf(n,a,et,et,c||et);function ve(vt){const xt=x?fo(x,$4(n.mapper,d,vt)):vt;oA(xt,cn=>Ge(vt,cn))}function Ge(vt,xt){if(cm(xt)){const cn=um(xt),sn=a.get(cn);if(sn)sn.links.nameType=ei([sn.links.nameType,xt]),sn.links.keyType=ei([sn.links.keyType,vt]);else{const rr=cm(vt)?Sa(K,um(vt)):void 0,zn=!!(ne&4||!(ne&8)&&rr&&rr.flags&16777216),mn=!!(ne&1||!(ne&2)&&rr&&b_(rr)),Gn=Y&&!zn&&rr&&rr.flags&16777216,Pn=rr?Wge(rr):0,qn=ts(4|(zn?16777216:0),cn,Pn|262144|(mn?8:0)|(Gn?524288:0));qn.links.mappedType=n,qn.links.nameType=xt,qn.links.keyType=vt,rr&&(qn.links.syntheticOrigin=rr,qn.declarations=k?rr.declarations:void 0),a.set(cn,qn)}}else if(see(xt)||xt.flags&33){const cn=xt.flags&5?ke:xt.flags&40?Tt:xt,sn=fo(z,$4(n.mapper,d,vt)),rr=j4(K,xt),zn=!!(ne&1||!(ne&2)&&(rr==null?void 0:rr.isReadonly)),mn=Hh(cn,sn,zn);c=G4e(c,mn,!0)}}}function yct(n){if(!n.links.type){const a=n.links.mappedType;if(!Gh(n,0))return a.containsError=!0,_t;const c=fv(a.target||a),d=$4(a.mapper,m_(a),n.links.keyType),h=fo(c,d);let y=Y&&n.flags&16777216&&!wl(h,49152)?qb(h,!0):n.links.checkFlags&524288?Wee(h):h;$_()||(Xe(C,m.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Ti(n),Kn(a)),y=_t),n.links.type=y}return n.links.type}function m_(n){return n.typeParameter||(n.typeParameter=jT(Cr(n.declaration.typeParameter)))}function Ef(n){return n.constraintType||(n.constraintType=kd(m_(n))||_t)}function my(n){return n.declaration.nameType?n.nameType||(n.nameType=fo(Ai(n.declaration.nameType),n.mapper)):void 0}function fv(n){return n.templateType||(n.templateType=n.declaration.type?fo(dp(Ai(n.declaration.type),!0,!!(jh(n)&4)),n.mapper):_t)}function V4e(n){return i2(n.declaration.typeParameter)}function DD(n){const a=V4e(n);return a.kind===198&&a.operator===143}function UT(n){if(!n.modifiersType)if(DD(n))n.modifiersType=fo(Ai(V4e(n).type),n.mapper);else{const a=Rve(n.declaration),c=Ef(a),d=c&&c.flags&262144?kd(c):c;n.modifiersType=d&&d.flags&4194304?fo(d.type,n.mapper):pn}return n.modifiersType}function jh(n){const a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function j4e(n){const a=jh(n);return a&8?-1:a&4?1:0}function zge(n){const a=j4e(n),c=UT(n);return a||(Xd(c)?j4e(c):0)}function bct(n){return!!(zr(n)&32&&jh(n)&4)}function Xd(n){if(zr(n)&32){const a=Ef(n);if(QT(a))return!0;const c=my(n);if(c&&QT(fo(c,XE(m_(n),a))))return!0}return!1}function nee(n){const a=my(n);return a?Aa(a,m_(n))?1:2:0}function __(n){return n.members||(n.flags&524288?n.objectFlags&4?rct(n):n.objectFlags&3?nct(n):n.objectFlags&1024?gct(n):n.objectFlags&16?mct(n):n.objectFlags&32?vct(n):N.fail("Unhandled object type "+N.formatObjectFlags(n.objectFlags)):n.flags&1048576?dct(n):n.flags&2097152?fct(n):N.fail("Unhandled type "+N.formatTypeFlags(n.flags))),n}function Wb(n){return n.flags&524288?__(n).properties:et}function u1(n,a){if(n.flags&524288){const d=__(n).members.get(a);if(d&&Vm(d))return d}}function Mz(n){if(!n.resolvedProperties){const a=pa();for(const c of n.types){for(const d of As(c))if(!a.has(d.escapedName)){const h=kz(n,d.escapedName,!!(n.flags&2097152));h&&a.set(d.escapedName,h)}if(n.flags&1048576&&yd(c).length===0)break}n.resolvedProperties=n1(a)}return n.resolvedProperties}function As(n){return n=eM(n),n.flags&3145728?Mz(n):Wb(n)}function Ect(n,a){n=eM(n),n.flags&3670016&&__(n).members.forEach((c,d)=>{gx(c,d)&&a(c,d)})}function Sct(n,a){return a.properties.some(d=>{const h=d.name&&(n_(d.name)?Yd(Vk(d.name)):gy(d.name)),y=h&&cm(h)?um(h):void 0,x=y===void 0?void 0:Ke(n,y);return!!x&&r8(x)&&!Aa(Px(d),x)})}function Tct(n){const a=ei(n);if(!(a.flags&1048576))return Jbe(a);const c=pa();for(const d of n)for(const{escapedName:h}of Jbe(d))if(!c.has(h)){const y=Y4e(a,h);y&&c.set(h,y)}return Go(c.values())}function HT(n){return n.flags&262144?kd(n):n.flags&8388608?Ict(n):n.flags&16777216?q4e(n):ju(n)}function kd(n){return Lz(n)?nM(n):void 0}function Act(n,a){const c=Q4(n);return!!c&&qT(c,a)}function qT(n,a=0){var c;return a<5&&!!(n&&(n.flags&262144&&St((c=n.symbol)==null?void 0:c.declarations,d=>Qr(d,4096))||n.flags&3145728&&St(n.types,d=>qT(d,a))||n.flags&8388608&&qT(n.objectType,a+1)||n.flags&16777216&&qT(q4e(n),a+1)||n.flags&33554432&&qT(n.baseType,a)||zr(n)&32&&Act(n,a)||Hb(n)&&Ji(qE(n),(d,h)=>!!(n.target.elementFlags[h]&8)&&qT(d,a))>=0))}function Ict(n){return Lz(n)?xct(n):void 0}function Bge(n){const a=hv(n,!1);return a!==n?a:HT(n)}function xct(n){if(Uge(n))return _ee(n.objectType,n.indexType);const a=Bge(n.indexType);if(a&&a!==n.indexType){const d=Bb(n.objectType,a,n.accessFlags);if(d)return d}const c=Bge(n.objectType);if(c&&c!==n.objectType)return Bb(c,n.indexType,n.accessFlags)}function Gge(n){if(!n.resolvedDefaultConstraint){const a=ldt(n),c=m1(n);n.resolvedDefaultConstraint=Nt(a)?c:Nt(c)?a:ei([a,c])}return n.resolvedDefaultConstraint}function U4e(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const a=hv(n.checkType,!1),c=a===n.checkType?HT(a):a;if(c&&c!==n.checkType){const d=Wve(n,ZT(n.root.checkType,c,n.mapper),!0);if(!(d.flags&131072))return n.resolvedConstraintOfDistributive=d,d}}n.resolvedConstraintOfDistributive=!1}function H4e(n){return U4e(n)||Gge(n)}function q4e(n){return Lz(n)?H4e(n):void 0}function Rct(n,a){let c,d=!1;for(const h of n)if(h.flags&465829888){let y=HT(h);for(;y&&y.flags&21233664;)y=HT(y);y&&(c=Rn(c,y),a&&(c=Rn(c,h)))}else(h.flags&469892092||Jh(h))&&(d=!0);if(c&&(a||d)){if(d)for(const h of n)(h.flags&469892092||Jh(h))&&(c=Rn(c,h));return Xz(Ta(c),!1)}}function ju(n){if(n.flags&464781312||Hb(n)){const a=Vge(n);return a!==Xs&&a!==su?a:void 0}return n.flags&4194304?ba:void 0}function mv(n){return ju(n)||n}function Lz(n){return Vge(n)!==su}function Vge(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const a=[];return n.resolvedBaseConstraint=c(n);function c(y){if(!y.immediateBaseConstraint){if(!Gh(y,4))return su;let x;const k=Pee(y);if((a.length<10||a.length<50&&!Mn(a,k))&&(a.push(k),x=h(hv(y,!1)),a.pop()),!$_()){if(y.flags&262144){const z=nve(y);if(z){const K=Xe(z,m.Type_parameter_0_has_a_circular_constraint,Kn(y));C&&!U1(z,C)&&!U1(C,z)&&Fa(K,Fr(C,m.Circularity_originates_in_type_at_this_location))}}x=su}y.immediateBaseConstraint=x||Xs}return y.immediateBaseConstraint}function d(y){const x=c(y);return x!==Xs&&x!==su?x:void 0}function h(y){if(y.flags&262144){const x=nM(y);return y.isThisType||!x?x:d(x)}if(y.flags&3145728){const x=y.types,k=[];let z=!1;for(const K of x){const ne=d(K);ne?(ne!==K&&(z=!0),k.push(ne)):z=!0}return z?y.flags&1048576&&k.length===x.length?ei(k):y.flags&2097152&&k.length?Ta(k):void 0:y}if(y.flags&4194304)return ba;if(y.flags&134217728){const x=y.types,k=Vi(x,d);return k.length===x.length?XT(y.texts,k):ke}if(y.flags&268435456){const x=d(y.type);return x&&x!==y.type?Ix(y.symbol,x):ke}if(y.flags&8388608){if(Uge(y))return d(_ee(y.objectType,y.indexType));const x=d(y.objectType),k=d(y.indexType),z=x&&k&&Bb(x,k,y.accessFlags);return z&&d(z)}if(y.flags&16777216){const x=H4e(y);return x&&d(x)}if(y.flags&33554432)return d(sve(y));if(Hb(y)){const x=Wt(qE(y),(k,z)=>{const K=k.flags&262144&&y.target.elementFlags[z]&8&&d(k)||k;return K!==k&&fp(K,ne=>h1(ne)&&!Hb(ne))?K:k});return qh(x,y.target.elementFlags,y.target.readonly,y.target.labeledElementDeclarations)}return y}}function Dct(n,a){return n.resolvedApparentType||(n.resolvedApparentType=Xp(n,a,!0))}function jge(n){if(n.default)n.default===_u&&(n.default=su);else if(n.target){const a=jge(n.target);n.default=a?fo(a,n.mapper):Xs}else{n.default=_u;const a=n.symbol&&Ve(n.symbol.declarations,d=>El(d)&&d.default),c=a?Ai(a):Xs;n.default===_u&&(n.default=c)}return n.default}function JT(n){const a=jge(n);return a!==Xs&&a!==su?a:void 0}function Nct(n){return jge(n)!==su}function J4e(n){return!!(n.symbol&&Ve(n.symbol.declarations,a=>El(a)&&a.default))}function K4e(n){return n.resolvedApparentType||(n.resolvedApparentType=Cct(n))}function Cct(n){var d;const a=(d=n.target)!=null?d:n,c=Q4(a);if(c&&!a.declaration.nameType){const h=UT(n),y=Xd(h)?K4e(h):ju(h);if(y&&fp(y,x=>h1(x)||X4e(x)))return fo(a,ZT(c,y,n.mapper))}return n}function X4e(n){return!!(n.flags&2097152)&&Bn(n.types,h1)}function Uge(n){let a;return!!(n.flags&8388608&&zr(a=n.objectType)&32&&!Xd(a)&&QT(n.indexType)&&!(jh(a)&8)&&!a.declaration.nameType)}function wd(n){const a=n.flags&465829888?ju(n)||pn:n,c=zr(a);return c&32?K4e(a):c&4&&a!==n?Xp(a,n):a.flags&2097152?Dct(a,n):a.flags&402653316?sc:a.flags&296?Ic:a.flags&2112?fut():a.flags&528?ml:a.flags&12288?S8e():a.flags&67108864?wa:a.flags&4194304?ba:a.flags&2&&!Y?wa:a}function eM(n){return h_(wd(h_(n)))}function Y4e(n,a,c){var d,h,y;let x,k,z;const K=n.flags&1048576;let ne,Te=4,ve=K?0:8,Ge=!1;for(const qn of n.types){const Hn=wd(qn);if(!(Jt(Hn)||Hn.flags&131072)){const ir=Sa(Hn,a,c),vo=ir?Df(ir):0;if(ir){if(ir.flags&106500&&(ne!=null||(ne=K?0:16777216),K?ne|=ir.flags&16777216:ne&=ir.flags),!x)x=ir;else if(ir!==x)if((HD(ir)||ir)===(HD(x)||x)&&Jve(x,ir,(Vo,So)=>Vo===So?-1:0)===-1)Ge=!!x.parent&&!!Pe(Wr(x.parent));else{k||(k=new Map,k.set(Ia(x),x));const Vo=Ia(ir);k.has(Vo)||k.set(Vo,ir)}K&&b_(ir)?ve|=8:!K&&!b_(ir)&&(ve&=-9),ve|=(vo&6?0:256)|(vo&4?512:0)|(vo&2?1024:0)|(vo&256?2048:0),jye(ir)||(Te=2)}else if(K){const yo=!G4(a)&&Tx(Hn,a);yo?(ve|=32|(yo.isReadonly?8:0),z=Rn(z,Ha(Hn)?kee(Hn)||We:yo.type)):y1(Hn)&&!(zr(Hn)&2097152)?(ve|=32,z=Rn(z,We)):ve|=16}}}if(!x||K&&(k||ve&48)&&ve&1536&&!(k&&Pct(k.values())))return;if(!k&&!(ve&16)&&!z)if(Ge){const qn=(d=ni(x,gh))==null?void 0:d.links,Hn=tA(x,qn==null?void 0:qn.type);return Hn.parent=(y=(h=x.valueDeclaration)==null?void 0:h.symbol)==null?void 0:y.parent,Hn.links.containingType=n,Hn.links.mapper=qn==null?void 0:qn.mapper,Hn.links.writeType=jE(x),Hn}else return x;const vt=k?Go(k.values()):[x];let xt,cn,sn;const rr=[];let zn,mn,Gn=!1;for(const qn of vt){mn?qn.valueDeclaration&&qn.valueDeclaration!==mn&&(Gn=!0):mn=qn.valueDeclaration,xt=Hr(xt,qn.declarations);const Hn=_r(qn);cn||(cn=Hn,sn=eo(qn).nameType);const ir=jE(qn);(zn||ir!==Hn)&&(zn=Rn(zn||rr.slice(),ir)),Hn!==cn&&(ve|=64),(r8(Hn)||YT(Hn))&&(ve|=128),Hn.flags&131072&&Hn!==oc&&(ve|=131072),rr.push(Hn)}Hr(rr,z);const Pn=ts(4|(ne!=null?ne:0),a,Te|ve);return Pn.links.containingType=n,!Gn&&mn&&(Pn.valueDeclaration=mn,mn.symbol.parent&&(Pn.parent=mn.symbol.parent)),Pn.declarations=xt,Pn.links.nameType=sn,rr.length>2?(Pn.links.checkFlags|=65536,Pn.links.deferralParent=n,Pn.links.deferralConstituents=rr,Pn.links.deferralWriteConstituents=zn):(Pn.links.type=K?ei(rr):Ta(rr),zn&&(Pn.links.writeType=K?ei(zn):Ta(zn))),Pn}function $4e(n,a,c){var d,h,y;let x=c?(d=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:d.get(a):(h=n.propertyCache)==null?void 0:h.get(a);return x||(x=Y4e(n,a,c),x&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=pa()):n.propertyCache||(n.propertyCache=pa())).set(a,x),c&&!(Cl(x)&48)&&!((y=n.propertyCache)!=null&&y.get(a))&&(n.propertyCache||(n.propertyCache=pa())).set(a,x))),x}function Pct(n){let a;for(const c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(d=>{Mn(c.declarations,d)||a.delete(d)}),a.size===0)return}return a}function kz(n,a,c){const d=$4e(n,a,c);return d&&!(Cl(d)&16)?d:void 0}function h_(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=Mct(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(St(Mz(n),Lct)?33554432:0)),n.objectFlags&33554432?qr:n):n}function Mct(n){const a=mo(n.types,h_);if(a===n.types)return n;const c=ei(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function Lct(n){return Q4e(n)||Z4e(n)}function Q4e(n){return!(n.flags&16777216)&&(Cl(n)&131264)===192&&!!(_r(n).flags&131072)}function Z4e(n){return!n.valueDeclaration&&!!(Cl(n)&1024)}function Hge(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&St(n.types,Hge)||n.flags&2097152&&kct(n))}function kct(n){const a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=fo(n,co));return h_(a)!==a}function qge(n,a){if(a.flags&2097152&&zr(a)&33554432){const c=un(Mz(a),Q4e);if(c)return jo(n,m.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Kn(a,void 0,536870912),Ti(c));const d=un(Mz(a),Z4e);if(d)return jo(n,m.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Kn(a,void 0,536870912),Ti(d))}return n}function Sa(n,a,c,d){var h,y;if(n=eM(n),n.flags&524288){const x=__(n),k=x.members.get(a);if(k&&!d&&((h=n.symbol)==null?void 0:h.flags)&512&&((y=eo(n.symbol).typeOnlyExportStarMap)==null?void 0:y.has(a)))return;if(k&&Vm(k,d))return k;if(c)return;const z=x===an?Ot:x.callSignatures.length?Yn:x.constructSignatures.length?Io:void 0;if(z){const K=u1(z,a);if(K)return K}return u1(Me,a)}if(n.flags&2097152){const x=kz(n,a,!0);return x||(c?void 0:kz(n,a,c))}if(n.flags&1048576)return kz(n,a,c)}function wz(n,a){if(n.flags&3670016){const c=__(n);return a===0?c.callSignatures:c.constructSignatures}return et}function $o(n,a){const c=wz(eM(n),a);if(a===0&&!Pe(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let d;if(fp(n,h=>{var y;return!!((y=h.symbol)!=null&&y.parent)&&wct(h.symbol.parent)&&(d?d===h.symbol.escapedName:(d=h.symbol.escapedName,!0))})){const h=_l(n,x=>Vb((e8e(x.symbol.parent)?ra:Qo).typeParameters[0],x.mapper)),y=Uu(h,qm(n,x=>e8e(x.symbol.parent)));return n.arrayFallbackSignatures=$o(Ke(y,d),a)}n.arrayFallbackSignatures=c}return c}function wct(n){return!n||!Qo.symbol||!ra.symbol?!1:!!d_(n,Qo.symbol)||!!d_(n,ra.symbol)}function e8e(n){return!n||!ra.symbol?!1:!!d_(n,ra.symbol)}function Jge(n,a){return un(n,c=>c.keyType===a)}function Kge(n,a){let c,d,h;for(const y of n)y.keyType===ke?c=y:Sx(a,y.keyType)&&(d?(h||(h=[d])).push(y):d=y);return h?Hh(pn,Ta(Wt(h,y=>y.type)),ad(h,(y,x)=>y&&x.isReadonly,!0)):d||(c&&Sx(a,ke)?c:void 0)}function Sx(n,a){return Aa(n,a)||a===ke&&Aa(n,Tt)||a===Tt&&(n===Ga||!!(n.flags&128)&&ug(n.value))}function Xge(n){return n.flags&3670016?__(n).indexInfos:et}function yd(n){return Xge(eM(n))}function Rg(n,a){return Jge(yd(n),a)}function d1(n,a){var c;return(c=Rg(n,a))==null?void 0:c.type}function Yge(n,a){return yd(n).filter(c=>Sx(a,c.keyType))}function j4(n,a){return Kge(yd(n),a)}function Tx(n,a){return j4(n,G4(a)?li:Yd(Ki(a)))}function t8e(n){var a;let c;for(const d of My(n))c=Lg(c,jT(d.symbol));return c!=null&&c.length?c:Dc(n)?(a=tM(n))==null?void 0:a.typeParameters:void 0}function $ge(n){const a=[];return n.forEach((c,d)=>{zE(d)||a.push(c)}),a}function ree(n,a){if(tu(n))return;const c=Kd(be,'"'+n+'"',512);return c&&a?ds(c):c}function U4(n){if(jA(n)||Bk(n)||Gk(n))return!0;if(n.initializer){const c=vm(n.parent),d=n.parent.parameters.indexOf(n);return N.assert(d>=0),d>=ah(c,3)}const a=xS(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=_te(a).length:!1}function Oct(n){return qo(n)&&!P_(n)&&n.questionToken}function Oz(n,a,c,d){return{kind:n,parameterName:a,parameterIndex:c,type:d}}function Uh(n){let a=0;if(n)for(let c=0;c<n.length;c++)J4e(n[c])||(a=c+1);return a}function Fb(n,a,c,d){const h=Pe(a);if(!h)return[];const y=Pe(n);if(d||y>=c&&y<=h){const x=n?n.slice():[];for(let z=y;z<h;z++)x[z]=_t;const k=pye(d);for(let z=y;z<h;z++){let K=JT(a[z]);d&&K&&(gv(K,pn)||gv(K,wa))&&(K=j),x[z]=K?fo(K,wp(a,x)):k}return x.length=a.length,x}return n&&n.slice()}function vm(n){const a=Zr(n);if(!a.resolvedSignature){const c=[];let d=0,h=0,y,x=dr(n)?k6(n):void 0,k=!1;const z=xS(n),K=x2(n);!z&&dr(n)&&loe(n)&&!Gre(n)&&!p0(n)&&(d|=32);for(let vt=K?1:0;vt<n.parameters.length;vt++){const xt=n.parameters[vt];if(dr(xt)&&eq(xt)){x=xt;continue}let cn=xt.symbol;const sn=i_(xt)?xt.typeExpression&&xt.typeExpression.type:xt.type;cn&&!!(cn.flags&4)&&!na(xt.name)&&(cn=Tl(xt,cn.escapedName,111551,void 0,void 0,!1)),vt===0&&cn.escapedName==="this"?(k=!0,y=xt.symbol):c.push(cn),sn&&sn.kind===201&&(d|=2),Bk(xt)||xt.initializer||xt.questionToken||eg(xt)||z&&c.length>z.arguments.length&&!sn||Gk(xt)||(h=c.length)}if((n.kind===177||n.kind===178)&&RD(n)&&(!k||!y)){const vt=n.kind===177?178:177,xt=gl(Cr(n),vt);xt&&(y=KZ(xt))}x&&x.typeExpression&&(y=tA(ts(1,"this"),Ai(x.typeExpression)));const Te=D0(n)?y0(n):n,ve=Te&&Wl(Te)?qf(ds(Te.parent.symbol)):void 0,Ge=ve?ve.localTypeParameters:t8e(n);(Aj(n)||dr(n)&&Wct(n,c))&&(d|=1),(Y2(n)&&Qr(n,64)||Wl(n)&&Qr(n.parent,64))&&(d|=4),a.resolvedSignature=xg(n,Ge,y,c,void 0,void 0,h,d)}return a.resolvedSignature}function Wct(n,a){if(D0(n)||!Qge(n))return!1;const c=il(n.parameters),d=c?r2(c):f0(n).filter(i_),h=$t(d,x=>x.typeExpression&&E5(x.typeExpression.type)?x.typeExpression.type:void 0),y=ts(3,"args",32768);return h?y.links.type=Uu(Ai(h.type)):(y.links.checkFlags|=65536,y.links.deferralParent=qr,y.links.deferralConstituents=[lc],y.links.deferralWriteConstituents=[lc]),h&&a.pop(),a.push(y),!0}function tM(n){if(!(dr(n)&&Js(n)))return;const a=d0(n);return(a==null?void 0:a.typeExpression)&&cA(Ai(a.typeExpression))}function Fct(n,a){const c=tM(n);if(!c)return;const d=n.parameters.indexOf(a);return a.dotDotDotToken?xB(c,d):y_(c,d)}function zct(n){const a=tM(n);return a&&ys(a)}function Qge(n){const a=Zr(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(n.body)),a.containsArgumentsReference;function c(d){if(!d)return!1;switch(d.kind){case 80:return d.escapedText===Ft.escapedName&&x8(d)===Ft;case 172:case 174:case 177:case 178:return d.name.kind===167&&c(d.name);case 211:case 212:return c(d.expression);case 303:return c(d.initializer);default:return!_U(d)&&!ng(d)&&!!Uo(d,c)}}}function UE(n){if(!n||!n.declarations)return et;const a=[];for(let c=0;c<n.declarations.length;c++){const d=n.declarations[c];if(!!ta(d)){if(c>0&&d.body){const h=n.declarations[c-1];if(d.parent===h.parent&&d.kind===h.kind&&d.pos===h.end)continue}if(dr(d)&&d.jsDoc){const h=oU(d);if(Pe(h)){for(const y of h){const x=y.typeExpression;x.type===void 0&&!Wl(d)&&g1(x,j),a.push(vm(x))}continue}}a.push(!Z1(d)&&!Cm(d)&&tM(d)||vm(d))}}return a}function n8e(n){const a=vd(n,n);if(a){const c=Mp(a);if(c)return _r(c)}return j}function p1(n){if(n.thisParameter)return _r(n.thisParameter)}function Jf(n){if(!n.resolvedTypePredicate){if(n.target){const a=Jf(n.target);n.resolvedTypePredicate=a?Tdt(a,n.mapper):we}else if(n.compositeSignatures)n.resolvedTypePredicate=Fut(n.compositeSignatures,n.compositeKind)||we;else{const a=n.declaration&&lm(n.declaration);let c;if(!a){const d=tM(n.declaration);d&&n!==d&&(c=Jf(d))}n.resolvedTypePredicate=a&&lw(a)?Bct(a,n):c||we}N.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===we?void 0:n.resolvedTypePredicate}function Bct(n,a){const c=n.parameterName,d=n.type&&Ai(n.type);return c.kind===197?Oz(n.assertsModifier?2:0,void 0,void 0,d):Oz(n.assertsModifier?3:1,c.escapedText,Ji(a.parameters,h=>h.escapedName===c.escapedText),d)}function r8e(n,a,c){return a!==2097152?ei(n,c):Ta(n)}function ys(n){if(!n.resolvedReturnType){if(!Gh(n,3))return _t;let a=n.target?fo(ys(n.target),n.mapper):n.compositeSignatures?fo(r8e(Wt(n.compositeSignatures,ys),n.compositeKind,2),n.mapper):ND(n.declaration)||(Hl(n.declaration.body)?j:yte(n.declaration));if(n.flags&8?a=W6e(a):n.flags&16&&(a=qb(a)),!$_()){if(n.declaration){const c=lm(n.declaration);if(c)Xe(c,m.Return_type_annotation_circularly_references_itself);else if(de){const d=n.declaration,h=Oo(d);h?Xe(h,m._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,ks(h)):Xe(d,m.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}a=j}n.resolvedReturnType=a}return n.resolvedReturnType}function ND(n){if(n.kind===176)return qf(ds(n.parent.symbol));const a=lm(n);if(D0(n)){const c=R2(n);if(c&&Wl(c.parent)&&!a)return qf(ds(c.parent.parent.symbol))}if(x2(n))return Ai(n.parameters[0].type);if(a)return Ai(a);if(n.kind===177&&RD(n)){const c=dr(n)&&uv(n);if(c)return c;const d=gl(Cr(n),178),h=s1(d);if(h)return h}return zct(n)}function iee(n){return n.compositeSignatures&&St(n.compositeSignatures,iee)||!n.resolvedReturnType&&yx(n,3)>=0}function Gct(n){return i8e(n)||j}function i8e(n){if(Zu(n)){const a=_r(n.parameters[n.parameters.length-1]),c=Ha(a)?kee(a):a;return c&&d1(c,Tt)}}function H4(n,a,c,d){const h=Zge(n,Fb(a,n.typeParameters,Uh(n.typeParameters),c));if(d){const y=h7e(ys(h));if(y){const x=V4(y);x.typeParameters=d;const k=V4(h);return k.resolvedReturnType=KT(x),k}}return h}function Zge(n,a){const c=n.instantiations||(n.instantiations=new Map),d=ym(a);let h=c.get(d);return h||c.set(d,h=oee(n,a)),h}function oee(n,a){return OD(n,Vct(n,a),!0)}function Vct(n,a){return wp(n.typeParameters,a)}function q4(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=jct(n)):n}function jct(n){return OD(n,s6e(n.typeParameters),!0)}function Uct(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=Hct(n)):n}function Hct(n){return H4(n,Wt(n.typeParameters,a=>a.target&&!kd(a.target)?a.target:a),dr(n.declaration))}function qct(n){const a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;const c=s6e(a),d=wp(a,Wt(a,y=>kd(y)||pn));let h=Wt(a,y=>fo(y,d)||pn);for(let y=0;y<a.length-1;y++)h=vy(h,d);return h=vy(h,c),n.baseSignatureCache=OD(n,wp(a,h),!0)}return n}function KT(n){var a;if(!n.isolatedSignatureType){const c=(a=n.declaration)==null?void 0:a.kind,d=c===void 0||c===176||c===180||c===185,h=Vf(16);h.members=X,h.properties=et,h.callSignatures=d?et:[n],h.constructSignatures=d?[n]:et,h.indexInfos=et,n.isolatedSignatureType=h}return n.isolatedSignatureType}function eve(n){return n.members?aee(n.members):void 0}function aee(n){return n.get("__index")}function Hh(n,a,c,d){return{keyType:n,type:a,isReadonly:c,declaration:d}}function o8e(n){const a=eve(n);return a?tve(a):et}function tve(n){if(n.declarations){const a=[];for(const c of n.declarations)if(c.parameters.length===1){const d=c.parameters[0];d.type&&oA(Ai(d.type),h=>{see(h)&&!Jge(a,h)&&a.push(Hh(h,c.type?Ai(c.type):j,bp(c,8),c))})}return a}return et}function see(n){return!!(n.flags&4108)||YT(n)||!!(n.flags&2097152)&&!kD(n)&&St(n.types,see)}function nve(n){return Vi(Vn(n.symbol&&n.symbol.declarations,El),i2)[0]}function a8e(n,a){var c;let d;if((c=n.symbol)!=null&&c.declarations){for(const h of n.symbol.declarations)if(h.parent.kind===195){const[y=h.parent,x]=coe(h.parent.parent);if(x.kind===183&&!a){const k=x,z=xbe(k);if(z){const K=k.typeArguments.indexOf(y);if(K<z.length){const ne=kd(z[K]);if(ne){const Te=Lve(z,z.map((Ge,vt)=>()=>sgt(k,z,vt))),ve=fo(ne,Te);ve!==n&&(d=Rn(d,ve))}}}}else if(x.kind===169&&x.dotDotDotToken||x.kind===191||x.kind===202&&x.dotDotDotToken)d=Rn(d,Uu(pn));else if(x.kind===204)d=Rn(d,ke);else if(x.kind===168&&x.parent.kind===200)d=Rn(d,ba);else if(x.kind===200&&x.type&&Ss(x.type)===h.parent&&x.parent.kind===194&&x.parent.extendsType===x&&x.parent.checkType.kind===200&&x.parent.checkType.type){const k=x.parent.checkType,z=Ai(k.type);d=Rn(d,fo(z,XE(jT(Cr(k.typeParameter)),k.typeParameter.constraint?Ai(k.typeParameter.constraint):ba)))}}}return d&&Ta(d)}function nM(n){if(!n.constraint)if(n.target){const a=kd(n.target);n.constraint=a?fo(a,n.mapper):Xs}else{const a=nve(n);if(!a)n.constraint=a8e(n)||Xs;else{let c=Ai(a);c.flags&1&&!Jt(c)&&(c=a.parent.parent.kind===200?ba:pn),n.constraint=c}}return n.constraint===Xs?void 0:n.constraint}function s8e(n){const a=gl(n.symbol,168),c=fm(a.parent)?C3(a.parent):a.parent;return c&&gf(c)}function ym(n){let a="";if(n){const c=n.length;let d=0;for(;d<c;){const h=n[d].id;let y=1;for(;d+y<c&&n[d+y].id===h+y;)y++;a.length&&(a+=","),a+=h,y>1&&(a+=":"+y),d+=y}}return a}function Ax(n,a){return n?`@${Ia(n)}`+(a?`:${ym(a)}`:""):""}function lee(n,a){let c=0;for(const d of n)(a===void 0||!(d.flags&a))&&(c|=zr(d));return c&458752}function CD(n,a){return St(a)&&n===Wo?pn:_y(n,a)}function _y(n,a){const c=ym(a);let d=n.instantiations.get(c);return d||(d=Vf(4,n.symbol),n.instantiations.set(c,d),d.objectFlags|=a?lee(a):0,d.target=n,d.resolvedTypeArguments=a),d}function l8e(n){const a=Ig(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function rve(n,a,c,d,h){if(!d){d=xx(a);const x=wD(d);h=c?vy(x,c):x}const y=Vf(4,n.symbol);return y.target=n,y.node=a,y.mapper=c,y.aliasSymbol=d,y.aliasTypeArguments=h,y}function $s(n){var a,c;if(!n.resolvedTypeArguments){if(!Gh(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>_t))||et;const d=n.node,h=d?d.kind===183?Ro(n.target.outerTypeParameters,Ate(d,n.target.localTypeParameters)):d.kind===188?[Ai(d.elementType)]:Wt(d.elements,Ai):et;$_()?n.resolvedTypeArguments=n.mapper?vy(h,n.mapper):h:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>_t))||et,Xe(n.node||C,n.target.symbol?m.Type_arguments_for_0_circularly_reference_themselves:m.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&Ti(n.target.symbol)))}return n.resolvedTypeArguments}function hy(n){return Pe(n.target.typeParameters)}function c8e(n,a){const c=nl(ds(a)),d=c.localTypeParameters;if(d){const h=Pe(n.typeArguments),y=Uh(d),x=dr(n);if(!(!de&&x)&&(h<y||h>d.length)){const K=x&&Kv(n)&&!TI(n.parent),ne=y===d.length?K?m.Expected_0_type_arguments_provide_these_with_an_extends_tag:m.Generic_type_0_requires_1_type_argument_s:K?m.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:m.Generic_type_0_requires_between_1_and_2_type_arguments,Te=Kn(c,void 0,2);if(Xe(n,ne,Te,y,d.length),!x)return _t}if(n.kind===183&&N8e(n,Pe(n.typeArguments)!==d.length))return rve(c,n,void 0);const z=Ro(c.outerTypeParameters,Fb(Wz(n),d,y,x));return _y(c,z)}return HE(n,a)?c:_t}function PD(n,a,c,d){const h=nl(n);if(h===hn){const K=dW.get(n.escapedName);if(K!==void 0&&a&&a.length===1)return K===4?ive(a[0]):Ix(n,a[0])}const y=eo(n),x=y.typeParameters,k=ym(a)+Ax(c,d);let z=y.instantiations.get(k);return z||y.instantiations.set(k,z=u6e(h,wp(x,Fb(a,x,Uh(x),dr(n.valueDeclaration))),c,d)),z}function Jct(n,a){if(Cl(a)&1048576){const h=Wz(n),y=Ax(a,h);let x=Fe.get(y);return x||(x=hc(1,"error",void 0,`alias ${y}`),x.aliasSymbol=a,x.aliasTypeArguments=h,Fe.set(y,x)),x}const c=nl(a),d=eo(a).typeParameters;if(d){const h=Pe(n.typeArguments),y=Uh(d);if(h<y||h>d.length)return Xe(n,y===d.length?m.Generic_type_0_requires_1_type_argument_s:m.Generic_type_0_requires_between_1_and_2_type_arguments,Ti(a),y,d.length),_t;const x=xx(n);let k=x&&(u8e(a)||!u8e(x))?x:void 0,z;if(k)z=wD(k);else if(X6(n)){const K=MD(n,2097152,!0);if(K&&K!==pt){const ne=Vc(K);ne&&ne.flags&524288&&(k=ne,z=Wz(n)||(d?[]:void 0))}}return PD(a,Wz(n),k,z)}return HE(n,a)?c:_t}function u8e(n){var a;const c=(a=n.declarations)==null?void 0:a.find(pk);return!!(c&&Vp(c))}function Kct(n){switch(n.kind){case 183:return n.typeName;case 233:const a=n.expression;if(Jl(a))return a}}function d8e(n){return n.parent?`${d8e(n.parent)}.${n.escapedName}`:n.escapedName}function cee(n){const c=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(c){const d=n.kind===166?cee(n.left):n.kind===211?cee(n.expression):void 0,h=d?`${d8e(d)}.${c}`:c;let y=le.get(h);return y||(le.set(h,y=ts(524288,c,1048576)),y.parent=d,y.links.declaredType=Gt),y}return pt}function MD(n,a,c){const d=Kct(n);if(!d)return pt;const h=Ys(d,a,c);return h&&h!==pt?h:c?pt:cee(d)}function uee(n,a){if(a===pt)return _t;if(a=JP(a)||a,a.flags&96)return c8e(n,a);if(a.flags&524288)return Jct(n,a);const c=D4e(a);if(c)return HE(n,a)?Ed(c):_t;if(a.flags&111551&&dee(n)){const d=Xct(n,a);return d||(MD(n,788968),_r(a))}return _t}function Xct(n,a){const c=Zr(n);if(!c.resolvedJSDocType){const d=_r(a);let h=d;if(a.valueDeclaration){const y=n.kind===205&&n.qualifier;d.symbol&&d.symbol!==a&&y&&(h=uee(n,d.symbol))}c.resolvedJSDocType=h}return c.resolvedJSDocType}function ive(n){return ove(n)?p8e(n,pn):n}function ove(n){return!!(n.flags&3145728&&St(n.types,ove)||n.flags&33554432&&!rM(n)&&ove(n.baseType)||n.flags&524288&&!Jh(n)||n.flags&432275456&&!YT(n))}function rM(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function ave(n,a){return a.flags&3||a===n||n.flags&1?n:p8e(n,a)}function p8e(n,a){const c=`${bd(n)}>${bd(a)}`,d=Po.get(c);if(d)return d;const h=Ag(33554432);return h.baseType=n,h.constraint=a,Po.set(c,h),h}function sve(n){return rM(n)?n.baseType:Ta([n.constraint,n.baseType])}function f8e(n){return n.kind===189&&n.elements.length===1}function m8e(n,a,c){return f8e(a)&&f8e(c)?m8e(n,a.elements[0],c.elements[0]):Gb(Ai(a))===Gb(n)?Ai(c):void 0}function Yct(n,a){let c,d=!0;for(;a&&!$i(a)&&a.kind!==327;){const h=a.parent;if(h.kind===169&&(d=!d),(d||n.flags&8650752)&&h.kind===194&&a===h.trueType){const y=m8e(n,h.checkType,h.extendsType);y&&(c=Rn(c,y))}else if(n.flags&262144&&h.kind===200&&!h.nameType&&a===h.type){const y=Ai(h);if(m_(y)===Gb(n)){const x=Q4(y);if(x){const k=kd(x);k&&fp(k,h1)&&(c=Rn(c,ei([Tt,Ga])))}}}a=h}return c?ave(n,Ta(c)):n}function dee(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function HE(n,a){return n.typeArguments?(Xe(n,m.Type_0_is_not_generic,a?Ti(a):n.typeName?ks(n.typeName):sW),!1):!0}function _8e(n){if(Ue(n.typeName)){const a=n.typeArguments;switch(n.typeName.escapedText){case"String":return HE(n),ke;case"Number":return HE(n),Tt;case"Boolean":return HE(n),ai;case"Void":return HE(n),Qn;case"Undefined":return HE(n),We;case"Null":return HE(n),fe;case"Function":case"function":return HE(n),Ot;case"array":return(!a||!a.length)&&!de?lc:void 0;case"promise":return(!a||!a.length)&&!de?DB(j):void 0;case"Object":if(a&&a.length===2){if(T3(n)){const c=Ai(a[0]),d=Ai(a[1]),h=c===ke||c===Tt?[Hh(c,d,!1)]:et;return Vs(void 0,X,et,et,h)}return j}return HE(n),de?void 0:j}}}function $ct(n){const a=Ai(n.type);return Y?tB(a,65536):a}function lve(n){const a=Zr(n);if(!a.resolvedType){if(Wg(n)&&bS(n.parent))return a.resolvedSymbol=pt,a.resolvedType=uc(n.parent.expression);let c,d;const h=788968;dee(n)&&(d=_8e(n),d||(c=MD(n,h,!0),c===pt?c=MD(n,h|111551):MD(n,h),d=uee(n,c))),d||(c=MD(n,h),d=uee(n,c)),a.resolvedSymbol=c,a.resolvedType=d}return a.resolvedType}function Wz(n){return Wt(n.typeArguments,Ai)}function h8e(n){const a=Zr(n);if(!a.resolvedType){const c=O7e(n);a.resolvedType=Ed(Yp(c))}return a.resolvedType}function g8e(n,a){function c(h){const y=h.declarations;if(y)for(const x of y)switch(x.kind){case 263:case 264:case 266:return x}}if(!n)return a?Wo:wa;const d=nl(n);return d.flags&524288?Pe(d.typeParameters)!==a?(Xe(c(n),m.Global_type_0_must_have_1_type_parameter_s,Il(n),a),a?Wo:wa):d:(Xe(c(n),m.Global_type_0_must_be_a_class_or_interface_type,Il(n)),a?Wo:wa)}function cve(n,a){return iM(n,111551,a?m.Cannot_find_global_value_0:void 0)}function uve(n,a){return iM(n,788968,a?m.Cannot_find_global_type_0:void 0)}function pee(n,a,c){const d=iM(n,788968,c?m.Cannot_find_global_type_0:void 0);if(d&&(nl(d),Pe(eo(d).typeParameters)!==a)){const h=d.declarations&&un(d.declarations,Lm);Xe(h,m.Global_type_0_must_have_1_type_parameter_s,Il(d),a);return}return d}function iM(n,a,c){return Tl(void 0,n,a,c,n,!1,!1,!1)}function cc(n,a,c){const d=uve(n,c);return d||c?g8e(d,a):void 0}function Qct(){return Mh||(Mh=cc("TypedPropertyDescriptor",1,!0)||Wo)}function Zct(){return lr||(lr=cc("TemplateStringsArray",0,!0)||wa)}function v8e(){return ri||(ri=cc("ImportMeta",0,!0)||wa)}function y8e(){if(!Yr){const n=ts(0,"ImportMetaExpression"),a=v8e(),c=ts(4,"meta",8);c.parent=n,c.links.type=a;const d=pa([c]);n.members=d,Yr=Vs(n,d,et,et,et)}return Yr}function b8e(n){return uo||(uo=cc("ImportCallOptions",0,n))||wa}function dve(n){return Va||(Va=cc("ImportAttributes",0,n))||wa}function E8e(n){return Pd||(Pd=cve("Symbol",n))}function eut(n){return Of||(Of=uve("SymbolConstructor",n))}function S8e(){return H_||(H_=cc("Symbol",0,!1))||wa}function Fz(n){return Qg||(Qg=cc("Promise",1,n))||Wo}function T8e(n){return Vu||(Vu=cc("PromiseLike",1,n))||Wo}function pve(n){return Zg||(Zg=cve("Promise",n))}function tut(n){return Np||(Np=cc("PromiseConstructorLike",0,n))||wa}function fee(n){return F||(F=cc("AsyncIterable",1,n))||Wo}function nut(n){return De||(De=cc("AsyncIterator",3,n))||Wo}function rut(n){return st||(st=cc("AsyncIterableIterator",1,n))||Wo}function iut(n){return Vt||(Vt=cc("AsyncGenerator",3,n))||Wo}function fve(n){return hg||(hg=cc("Iterable",1,n))||Wo}function out(n){return Hd||(Hd=cc("Iterator",3,n))||Wo}function aut(n){return te||(te=cc("IterableIterator",1,n))||Wo}function sut(n){return lt||(lt=cc("Generator",3,n))||Wo}function lut(n){return zt||(zt=cc("IteratorYieldResult",1,n))||Wo}function cut(n){return qt||(qt=cc("IteratorReturnResult",1,n))||Wo}function A8e(n){return ja||(ja=cc("Disposable",0,n))||wa}function uut(n){return Vl||(Vl=cc("AsyncDisposable",0,n))||wa}function I8e(n,a=0){const c=iM(n,788968,void 0);return c&&g8e(c,a)}function dut(){return hu||(hu=pee("Extract",2,!0)||pt),hu===pt?void 0:hu}function put(){return Mc||(Mc=pee("Omit",2,!0)||pt),Mc===pt?void 0:Mc}function mve(n){return Cp||(Cp=pee("Awaited",1,n)||(n?pt:void 0)),Cp===pt?void 0:Cp}function fut(){return qd||(qd=cc("BigInt",0,!1))||wa}function mut(n){var a;return(a=Wf!=null?Wf:Wf=cc("ClassDecoratorContext",1,n))!=null?a:Wo}function _ut(n){var a;return(a=Ff!=null?Ff:Ff=cc("ClassMethodDecoratorContext",2,n))!=null?a:Wo}function hut(n){var a;return(a=Hi!=null?Hi:Hi=cc("ClassGetterDecoratorContext",2,n))!=null?a:Wo}function gut(n){var a;return(a=Lh!=null?Lh:Lh=cc("ClassSetterDecoratorContext",2,n))!=null?a:Wo}function vut(n){var a;return(a=gg!=null?gg:gg=cc("ClassAccessorDecoratorContext",2,n))!=null?a:Wo}function yut(n){var a;return(a=zf!=null?zf:zf=cc("ClassAccessorDecoratorTarget",2,n))!=null?a:Wo}function but(n){var a;return(a=db!=null?db:db=cc("ClassAccessorDecoratorResult",2,n))!=null?a:Wo}function Eut(n){var a;return(a=pb!=null?pb:pb=cc("ClassFieldDecoratorContext",2,n))!=null?a:Wo}function Sut(){return ub||(ub=cve("NaN",!1))}function Tut(){return gs||(gs=pee("Record",2,!0)||pt),gs===pt?void 0:gs}function J4(n,a){return n!==Wo?_y(n,a):wa}function x8e(n){return J4(Qct(),[n])}function R8e(n){return J4(fve(!0),[n])}function Uu(n,a){return J4(a?ra:Qo,[n])}function _ve(n){switch(n.kind){case 190:return 2;case 191:return D8e(n);case 202:return n.questionToken?2:n.dotDotDotToken?D8e(n):1;default:return 1}}function D8e(n){return jz(n.type)?4:8}function Aut(n){const a=Rut(n.parent);if(jz(n))return a?ra:Qo;const d=Wt(n.elements,_ve);return hve(d,a,Wt(n.elements,Iut))}function Iut(n){return $2(n)||No(n)?n:void 0}function N8e(n,a){return!!xx(n)||C8e(n)&&(n.kind===188?zb(n.elementType):n.kind===189?St(n.elements,zb):a||St(n.typeArguments,zb))}function C8e(n){const a=n.parent;switch(a.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return C8e(a);case 265:return!0}return!1}function zb(n){switch(n.kind){case 183:return dee(n)||!!(MD(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&zb(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return zb(n.type);case 191:return n.type.kind!==188||zb(n.type.elementType);case 192:case 193:return St(n.types,zb);case 199:return zb(n.objectType)||zb(n.indexType);case 194:return zb(n.checkType)||zb(n.extendsType)||zb(n.trueType)||zb(n.falseType)}return!1}function xut(n){const a=Zr(n);if(!a.resolvedType){const c=Aut(n);if(c===Wo)a.resolvedType=wa;else if(!(n.kind===189&&St(n.elements,d=>!!(_ve(d)&8)))&&N8e(n))a.resolvedType=n.kind===189&&n.elements.length===0?c:rve(c,n,void 0);else{const d=n.kind===188?[Ai(n.elementType)]:Wt(n.elements,Ai);a.resolvedType=gve(c,d)}}return a.resolvedType}function Rut(n){return VS(n)&&n.operator===148}function qh(n,a,c=!1,d=[]){const h=hve(a||Wt(n,y=>1),c,d);return h===Wo?wa:n.length?gve(h,n):h}function hve(n,a,c){if(n.length===1&&n[0]&4)return a?ra:Qo;const d=Wt(n,y=>y&1?"#":y&2?"?":y&4?".":"*").join()+(a?"R":"")+(St(c,y=>!!y)?","+Wt(c,y=>y?fs(y):"_").join(","):"");let h=Co.get(d);return h||Co.set(d,h=Dut(n,a,c)),h}function Dut(n,a,c){const d=n.length,h=Ca(n,Te=>!!(Te&9));let y;const x=[];let k=0;if(d){y=new Array(d);for(let Te=0;Te<d;Te++){const ve=y[Te]=yf(),Ge=n[Te];if(k|=Ge,!(k&12)){const vt=ts(4|(Ge&2?16777216:0),""+Te,a?8:0);vt.links.tupleLabelDeclaration=c==null?void 0:c[Te],vt.links.type=ve,x.push(vt)}}}const z=x.length,K=ts(4,"length",a?8:0);if(k&12)K.links.type=Tt;else{const Te=[];for(let ve=h;ve<=d;ve++)Te.push(g_(ve));K.links.type=ei(Te)}x.push(K);const ne=Vf(12);return ne.typeParameters=y,ne.outerTypeParameters=void 0,ne.localTypeParameters=y,ne.instantiations=new Map,ne.instantiations.set(ym(ne.typeParameters),ne),ne.target=ne,ne.resolvedTypeArguments=ne.typeParameters,ne.thisType=yf(),ne.thisType.isThisType=!0,ne.thisType.constraint=ne,ne.declaredProperties=x,ne.declaredCallSignatures=et,ne.declaredConstructSignatures=et,ne.declaredIndexInfos=et,ne.elementFlags=n,ne.minLength=h,ne.fixedLength=z,ne.hasRestElement=!!(k&12),ne.combinedFlags=k,ne.readonly=a,ne.labeledElementDeclarations=c,ne}function gve(n,a){return n.objectFlags&8?vve(n,a):_y(n,a)}function vve(n,a){var c,d,h,y;if(!(n.combinedFlags&14))return _y(n,a);if(n.combinedFlags&8){const vt=Ji(a,(xt,cn)=>!!(n.elementFlags[cn]&8&&xt.flags&1179648));if(vt>=0)return Bz(Wt(a,(xt,cn)=>n.elementFlags[cn]&8?xt:pn))?_l(a[vt],xt=>vve(n,IG(a,vt,xt))):_t}const x=[],k=[],z=[];let K=-1,ne=-1,Te=-1;for(let vt=0;vt<a.length;vt++){const xt=a[vt],cn=n.elementFlags[vt];if(cn&8)if(xt.flags&1)Ge(xt,4,(c=n.labeledElementDeclarations)==null?void 0:c[vt]);else if(xt.flags&58982400||Xd(xt))Ge(xt,8,(d=n.labeledElementDeclarations)==null?void 0:d[vt]);else if(Ha(xt)){const sn=qE(xt);if(sn.length+x.length>=1e4)return Xe(C,ng(C)?m.Type_produces_a_tuple_type_that_is_too_large_to_represent:m.Expression_produces_a_tuple_type_that_is_too_large_to_represent),_t;Ve(sn,(rr,zn)=>{var mn;return Ge(rr,xt.target.elementFlags[zn],(mn=xt.target.labeledElementDeclarations)==null?void 0:mn[zn])})}else Ge(yy(xt)&&d1(xt,Tt)||_t,4,(h=n.labeledElementDeclarations)==null?void 0:h[vt]);else Ge(xt,cn,(y=n.labeledElementDeclarations)==null?void 0:y[vt])}for(let vt=0;vt<K;vt++)k[vt]&2&&(k[vt]=1);ne>=0&&ne<Te&&(x[ne]=ei(mo(x.slice(ne,Te+1),(vt,xt)=>k[ne+xt]&8?kp(vt,Tt):vt)),x.splice(ne+1,Te-ne),k.splice(ne+1,Te-ne),z.splice(ne+1,Te-ne));const ve=hve(k,n.readonly,z);return ve===Wo?wa:k.length?_y(ve,x):ve;function Ge(vt,xt,cn){xt&1&&(K=k.length),xt&4&&ne<0&&(ne=k.length),xt&6&&(Te=k.length),x.push(xt&2?dp(vt,!0):vt),k.push(xt),z.push(cn)}}function oM(n,a,c=0){const d=n.target,h=hy(n)-c;return a>d.fixedLength?mpt(n)||qh(et):qh($s(n).slice(a,h),d.elementFlags.slice(a,h),!1,d.labeledElementDeclarations&&d.labeledElementDeclarations.slice(a,h))}function P8e(n){return ei(Rn(Vne(n.target.fixedLength,a=>Yd(""+a)),th(n.target.readonly?ra:Qo)))}function Nut(n,a){const c=Ji(n.elementFlags,d=>!(d&a));return c>=0?c:n.elementFlags.length}function K4(n,a){return n.elementFlags.length-as(n.elementFlags,c=>!(c&a))-1}function yve(n){return n.fixedLength+K4(n,3)}function qE(n){const a=$s(n),c=hy(n);return a.length===c?a:a.slice(0,c)}function Cut(n){return dp(Ai(n.type),!0)}function bd(n){return n.id}function _v(n,a){return Nv(n,a,bd,al)>=0}function zz(n,a){const c=Nv(n,a,bd,al);return c<0?(n.splice(~c,0,a),!0):!1}function Put(n,a,c){const d=c.flags;if(!(d&131072))if(a|=d&473694207,d&465829888&&(a|=33554432),d&2097152&&zr(c)&67108864&&(a|=536870912),c===Dt&&(a|=8388608),!Y&&d&98304)zr(c)&65536||(a|=4194304);else{const h=n.length,y=h&&c.id>n[h-1].id?~h:Nv(n,c,bd,al);y<0&&n.splice(~y,0,c)}return a}function M8e(n,a,c){let d;for(const h of c)h!==d&&(a=h.flags&1048576?M8e(n,a|(Wut(h)?1048576:0),h.types):Put(n,a,h),d=h);return a}function Mut(n,a){var c;if(n.length<2)return n;const d=ym(n),h=_a.get(d);if(h)return h;const y=a&&St(n,K=>!!(K.flags&524288)&&!Xd(K)&&Gve(__(K))),x=n.length;let k=x,z=0;for(;k>0;){k--;const K=n[k];if(y||K.flags&469499904){if(K.flags&262144&&mv(K).flags&1048576){nh(K,ei(Wt(n,ve=>ve===K?qr:ve)),Bf)&&xy(n,k);continue}const ne=K.flags&61603840?un(As(K),ve=>v_(_r(ve))):void 0,Te=ne&&Ed(_r(ne));for(const ve of n)if(K!==ve){if(z===1e5&&z/(x-k)*x>1e6){(c=ur)==null||c.instant(ur.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(vt=>vt.id)}),Xe(C,m.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(z++,ne&&ve.flags&61603840){const Ge=Ke(ve,ne.escapedName);if(Ge&&v_(Ge)&&Ed(Ge)!==Te)continue}if(nh(K,ve,Bf)&&(!(zr(fy(K))&1)||!(zr(fy(ve))&1)||_1(K,ve))){xy(n,k);break}}}}return _a.set(d,n),n}function Lut(n,a,c){let d=n.length;for(;d>0;){d--;const h=n[d],y=h.flags;(y&402653312&&a&4||y&256&&a&8||y&2048&&a&64||y&8192&&a&4096||c&&y&32768&&a&16384||KE(h)&&_v(n,h.regularType))&&xy(n,d)}}function kut(n){const a=Vn(n,YT);if(a.length){let c=n.length;for(;c>0;){c--;const d=n[c];d.flags&128&&St(a,h=>wut(d,h))&&xy(n,c)}}}function wut(n,a){return a.flags&134217728?Uee(n,a):jee(n,a)}function Out(n){const a=[];for(const c of n)if(c.flags&2097152&&zr(c)&67108864){const d=c.types[0].flags&8650752?0:1;Tf(a,c.types[d])}for(const c of a){const d=[];for(const y of n)if(y.flags&2097152&&zr(y)&67108864){const x=y.types[0].flags&8650752?0:1;y.types[x]===c&&zz(d,y.types[1-x])}const h=ju(c);if(fp(h,y=>_v(d,y))){let y=n.length;for(;y>0;){y--;const x=n[y];if(x.flags&2097152&&zr(x)&67108864){const k=x.types[0].flags&8650752?0:1;x.types[k]===c&&_v(d,x.types[1-k])&&xy(n,y)}}zz(n,c)}}}function Wut(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function L8e(n,a){for(const c of a)if(c.flags&1048576){const d=c.origin;c.aliasSymbol||d&&!(d.flags&1048576)?Tf(n,c):d&&d.flags&1048576&&L8e(n,d.types)}}function bve(n,a){const c=hx(n);return c.types=a,c}function ei(n,a=1,c,d,h){if(n.length===0)return qr;if(n.length===1)return n[0];if(n.length===2&&!h&&(n[0].flags&1048576||n[1].flags&1048576)){const y=a===0?"N":a===2?"S":"L",x=n[0].id<n[1].id?0:1,k=n[x].id+y+n[1-x].id+Ax(c,d);let z=Ci.get(k);return z||(z=k8e(n,a,c,d,void 0),Ci.set(k,z)),z}return k8e(n,a,c,d,h)}function k8e(n,a,c,d,h){let y=[];const x=M8e(y,0,n);if(a!==0){if(x&3)return x&1?x&8388608?Dt:j:x&65536||_v(y,pn)?pn:q;if(x&32768&&y.length>=2&&y[0]===We&&y[1]===L&&xy(y,1),(x&402664352||x&16384&&x&32768)&&Lut(y,x,!!(a&2)),x&128&&x&402653184&&kut(y),x&536870912&&Out(y),a===2&&(y=Mut(y,!!(x&524288)),!y))return _t;if(y.length===0)return x&65536?x&4194304?fe:je:x&32768?x&4194304?We:Lt:qr}if(!h&&x&1048576){const z=[];L8e(z,n);const K=[];for(const Te of y)St(z,ve=>_v(ve.types,Te))||K.push(Te);if(!c&&z.length===1&&K.length===0)return z[0];if(ad(z,(Te,ve)=>Te+ve.types.length,0)+K.length===y.length){for(const Te of z)zz(K,Te);h=bve(1048576,K)}}const k=(x&36323331?0:32768)|(x&2097152?16777216:0);return Sve(y,k,c,d,h)}function Fut(n,a){let c;const d=[];for(const y of n){const x=Jf(y);if(x){if(x.kind!==0&&x.kind!==1||c&&!Eve(c,x))return;c=x,d.push(x.type)}else{const k=a!==2097152?ys(y):void 0;if(k!==nn&&k!==En)return}}if(!c)return;const h=r8e(d,a);return Oz(c.kind,c.parameterName,c.parameterIndex,h)}function Eve(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Sve(n,a,c,d,h){if(n.length===0)return qr;if(n.length===1)return n[0];const x=(h?h.flags&1048576?`|${ym(h.types)}`:h.flags&2097152?`&${ym(h.types)}`:`#${h.type.id}|${ym(n)}`:ym(n))+Ax(c,d);let k=tr.get(x);return k||(k=Ag(1048576),k.objectFlags=a|lee(n,98304),k.types=n,k.origin=h,k.aliasSymbol=c,k.aliasTypeArguments=d,n.length===2&&n[0].flags&512&&n[1].flags&512&&(k.flags|=16,k.intrinsicName="boolean"),tr.set(x,k)),k}function zut(n){const a=Zr(n);if(!a.resolvedType){const c=xx(n);a.resolvedType=ei(Wt(n.types,Ai),1,c,wD(c))}return a.resolvedType}function But(n,a,c){const d=c.flags;return d&2097152?w8e(n,a,c.types):(Jh(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(d&3?c===Dt&&(a|=8388608):(Y||!(d&98304))&&(c===L&&(a|=262144,c=We),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=d&473694207),a)}function w8e(n,a,c){for(const d of c)a=But(n,a,Ed(d));return a}function Gut(n,a){let c=n.length;for(;c>0;){c--;const d=n[c];(d.flags&4&&a&402653312||d.flags&8&&a&256||d.flags&64&&a&2048||d.flags&4096&&a&8192||d.flags&16384&&a&32768||Jh(d)&&a&470302716)&&xy(n,c)}}function Vut(n,a){for(const c of n)if(!_v(c.types,a)){const d=a.flags&128?ke:a.flags&288?Tt:a.flags&2048?kt:a.flags&8192?li:void 0;if(!d||!_v(c.types,d))return!1}return!0}function jut(n){let a=n.length;const c=Vn(n,d=>!!(d.flags&128));for(;a>0;){a--;const d=n[a];if(!!(d.flags&402653184)){for(const h of c)if(jb(h,d)){xy(n,a);break}else if(YT(d))return!0}}return!1}function O8e(n,a){for(let c=0;c<n.length;c++)n[c]=vc(n[c],d=>!(d.flags&a))}function Uut(n){let a;const c=Ji(n,x=>!!(zr(x)&32768));if(c<0)return!1;let d=c+1;for(;d<n.length;){const x=n[d];zr(x)&32768?((a||(a=[n[c]])).push(x),xy(n,d)):d++}if(!a)return!1;const h=[],y=[];for(const x of a)for(const k of x.types)zz(h,k)&&Vut(a,k)&&zz(y,k);return n[c]=Sve(y,32768),!0}function Hut(n,a,c,d){const h=Ag(2097152);return h.objectFlags=a|lee(n,98304),h.types=n,h.aliasSymbol=c,h.aliasTypeArguments=d,h}function Ta(n,a,c,d){const h=new Map,y=w8e(h,0,n),x=Go(h.values());let k=0;if(y&131072)return Mn(x,Ao)?Ao:qr;if(Y&&y&98304&&y&84410368||y&67108864&&y&402783228||y&402653316&&y&67238776||y&296&&y&469891796||y&2112&&y&469889980||y&12288&&y&469879804||y&49152&&y&469842940||y&402653184&&y&128&&jut(x))return qr;if(y&1)return y&8388608?Dt:j;if(!Y&&y&98304)return y&16777216?qr:y&32768?We:fe;if((y&4&&y&402653312||y&8&&y&256||y&64&&y&2048||y&4096&&y&8192||y&16384&&y&32768||y&16777216&&y&470302716)&&(d||Gut(x,y)),y&262144&&(x[x.indexOf(We)]=L),x.length===0)return pn;if(x.length===1)return x[0];if(x.length===2){const ne=x[0].flags&8650752?0:1,Te=x[ne],ve=x[1-ne];if(Te.flags&8650752&&(ve.flags&469893116&&!J8e(ve)||y&16777216)){const Ge=ju(Te);if(Ge&&fp(Ge,vt=>!!(vt.flags&469893116)||Jh(vt))){if(qz(Ge,ve))return Te;if(!(Ge.flags&1048576&&qm(Ge,vt=>qz(vt,ve)))&&!qz(ve,Ge))return qr;k=67108864}}}const z=ym(x)+Ax(a,c);let K=Nr.get(z);if(!K){if(y&1048576)if(Uut(x))K=Ta(x,a,c);else if(Bn(x,ne=>!!(ne.flags&1048576&&ne.types[0].flags&32768))){const ne=St(x,o8)?L:We;O8e(x,32768),K=ei([Ta(x),ne],1,a,c)}else if(Bn(x,ne=>!!(ne.flags&1048576&&(ne.types[0].flags&65536||ne.types[1].flags&65536))))O8e(x,65536),K=ei([Ta(x),fe],1,a,c);else if(x.length>=4){const ne=Math.floor(x.length/2);K=Ta([Ta(x.slice(0,ne)),Ta(x.slice(ne))],a,c)}else{if(!Bz(x))return _t;const ne=qut(x),Te=St(ne,ve=>!!(ve.flags&2097152))&&Tve(ne)>Tve(x)?bve(2097152,x):void 0;K=ei(ne,1,a,c,Te)}else K=Hut(x,k,a,c);Nr.set(z,K)}return K}function W8e(n){return ad(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function Bz(n){var a;const c=W8e(n);return c>=1e5?((a=ur)==null||a.instant(ur.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(d=>d.id),size:c}),Xe(C,m.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function qut(n){const a=W8e(n),c=[];for(let d=0;d<a;d++){const h=n.slice();let y=d;for(let k=n.length-1;k>=0;k--)if(n[k].flags&1048576){const z=n[k].types,K=z.length;h[k]=z[y%K],y=Math.floor(y/K)}const x=Ta(h);x.flags&131072||c.push(x)}return c}function F8e(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?F8e(n.origin):Tve(n.types)}function Tve(n){return ad(n,(a,c)=>a+F8e(c),0)}function Jut(n){const a=Zr(n);if(!a.resolvedType){const c=xx(n),d=Wt(n.types,Ai),h=d.length===2?d.indexOf(_c):-1,y=h>=0?d[1-h]:pn,x=!!(y.flags&76||y.flags&134217728&&YT(y));a.resolvedType=Ta(d,c,wD(c),x)}return a.resolvedType}function z8e(n,a){const c=Ag(4194304);return c.type=n,c.indexFlags=a,c}function Kut(n){const a=hx(4194304);return a.type=n,a}function B8e(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=z8e(n,1)):n.resolvedIndexType||(n.resolvedIndexType=z8e(n,0))}function G8e(n,a){const c=m_(n),d=Ef(n),h=my(n.target||n);if(!h&&!(a&2))return d;const y=[];if(QT(d)){if(DD(n))return B8e(n,a);oA(d,k)}else if(DD(n)){const z=wd(UT(n));Fge(z,8576,!!(a&1),k)}else oA(Pz(d),k);const x=a&2?vc(ei(y),z=>!(z.flags&5)):ei(y);if(x.flags&1048576&&d.flags&1048576&&ym(x.types)===ym(d.types))return d;return x;function k(z){const K=h?fo(h,$4(n.mapper,c,z)):z;y.push(K===ke?Xa:K)}}function Xut(n){const a=m_(n);return c(my(n)||a);function c(d){return d.flags&470810623?!0:d.flags&16777216?d.root.isDistributive&&d.checkType===a:d.flags&137363456?Bn(d.types,c):d.flags&8388608?c(d.objectType)&&c(d.indexType):d.flags&33554432?c(d.baseType)&&c(d.constraint):d.flags&268435456?c(d.type):!1}}function gy(n){if(Qi(n))return qr;if(Ep(n))return Ed(Eo(n));if(ss(n))return Ed(Dg(n));const a=PS(n);return a!==void 0?Yd(Ki(a)):bt(n)?Ed(Eo(n)):qr}function LD(n,a,c){if(c||!(Df(n)&6)){let d=eo(eee(n)).nameType;if(!d){const h=Oo(n.valueDeclaration);d=n.escapedName==="default"?Yd("default"):h&&gy(h)||(Sk(n)?void 0:Yd(Il(n)))}if(d&&d.flags&a)return d}return qr}function V8e(n,a){return!!(n.flags&a||n.flags&2097152&&St(n.types,c=>V8e(c,a)))}function Yut(n,a,c){const d=c&&(zr(n)&7||n.aliasSymbol)?Kut(n):void 0,h=Wt(As(n),x=>LD(x,a)),y=Wt(yd(n),x=>x!==Jr&&V8e(x.keyType,a)?x.keyType===ke&&a&8?Xa:x.keyType:qr);return ei(Ro(h,y),1,void 0,void 0,d)}function Ave(n,a=0){return!!(n.flags&58982400||Hb(n)||Xd(n)&&(!Xut(n)||nee(n)===2)||n.flags&1048576&&!(a&4)&&Hge(n)||n.flags&2097152&&wl(n,465829888)&&St(n.types,Jh))}function th(n,a=qe){return n=h_(n),rM(n)?ive(th(n.baseType,a)):Ave(n,a)?B8e(n,a):n.flags&1048576?Ta(Wt(n.types,c=>th(c,a))):n.flags&2097152?ei(Wt(n.types,c=>th(c,a))):zr(n)&32?G8e(n,a):n===Dt?Dt:n.flags&2?qr:n.flags&131073?ba:Yut(n,(a&2?128:402653316)|(a&1?0:12584),a===qe)}function j8e(n){if(Ce)return n;const a=dut();return a?PD(a,[n,ke]):ke}function $ut(n){const a=j8e(th(n));return a.flags&131072?ke:a}function Qut(n){const a=Zr(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=th(Ai(n.type));break;case 158:a.resolvedType=n.type.kind===155?Mve(hk(n.parent)):_t;break;case 148:a.resolvedType=Ai(n.type);break;default:N.assertNever(n.operator)}return a.resolvedType}function Zut(n){const a=Zr(n);return a.resolvedType||(a.resolvedType=XT([n.head.text,...Wt(n.templateSpans,c=>c.literal.text)],Wt(n.templateSpans,c=>Ai(c.type)))),a.resolvedType}function XT(n,a){const c=Ji(a,K=>!!(K.flags&1179648));if(c>=0)return Bz(a)?_l(a[c],K=>XT(n,IG(a,c,K))):_t;if(Mn(a,Dt))return Dt;const d=[],h=[];let y=n[0];if(!z(n,a))return ke;if(d.length===0)return Yd(y);if(h.push(y),Bn(h,K=>K==="")){if(Bn(d,K=>!!(K.flags&4)))return ke;if(d.length===1&&YT(d[0]))return d[0]}const x=`${ym(d)}|${Wt(h,K=>K.length).join(",")}|${h.join("")}`;let k=yi.get(x);return k||yi.set(x,k=tdt(h,d)),k;function z(K,ne){for(let Te=0;Te<ne.length;Te++){const ve=ne[Te];if(ve.flags&101248)y+=edt(ve)||"",y+=K[Te+1];else if(ve.flags&134217728){if(y+=ve.texts[0],!z(ve.texts,ve.types))return!1;y+=K[Te+1]}else if(QT(ve)||Gz(ve))d.push(ve),h.push(y),y=K[Te+1];else return!1}return!0}}function edt(n){return n.flags&128?n.value:n.flags&256?""+n.value:n.flags&2048?Q1(n.value):n.flags&98816?n.intrinsicName:void 0}function tdt(n,a){const c=Ag(134217728);return c.texts=n,c.types=a,c}function Ix(n,a){return a.flags&1179648?_l(a,c=>Ix(n,c)):a.flags&128?Yd(U8e(n,a.value)):a.flags&134217728?XT(...ndt(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||QT(a)?H8e(n,a):Gz(a)?H8e(n,XT(["",""],[a])):a}function U8e(n,a){switch(dW.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 ndt(n,a,c){switch(dW.get(n.escapedName)){case 0:return[a.map(d=>d.toUpperCase()),c.map(d=>Ix(n,d))];case 1:return[a.map(d=>d.toLowerCase()),c.map(d=>Ix(n,d))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[Ix(n,c[0]),...c.slice(1)]:c];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[Ix(n,c[0]),...c.slice(1)]:c]}return[a,c]}function H8e(n,a){const c=`${Ia(n)},${bd(a)}`;let d=oo.get(c);return d||oo.set(c,d=rdt(n,a)),d}function rdt(n,a){const c=Ig(268435456,n);return c.type=a,c}function idt(n,a,c,d,h){const y=Ag(8388608);return y.objectType=n,y.indexType=a,y.accessFlags=c,y.aliasSymbol=d,y.aliasTypeArguments=h,y}function X4(n){if(de)return!1;if(zr(n)&4096)return!0;if(n.flags&1048576)return Bn(n.types,X4);if(n.flags&2097152)return St(n.types,X4);if(n.flags&465829888){const a=Vge(n);return a!==n&&X4(a)}return!1}function mee(n,a){return cm(n)?um(n):a&&pc(a)?PS(a):void 0}function Ive(n,a){if(a.flags&8208){const c=jn(n.parent,d=>!js(d))||n.parent;return O1(c)?I_(c)&&Ue(n)&&e3e(c,n):Bn(a.declarations,d=>!ta(d)||ly(d))}return!0}function q8e(n,a,c,d,h,y){var K;const x=h&&h.kind===212?h:void 0,k=h&&Qi(h)?void 0:mee(c,h);if(k!==void 0){if(y&256)return b1(a,k)||j;const ne=Sa(a,k);if(ne){if(y&64&&h&&ne.declarations&&hb(ne)&&Ive(h,ne)){const ve=(K=x==null?void 0:x.argumentExpression)!=null?K:jS(h)?h.indexType:h;cy(ve,ne.declarations,k)}if(x){if(yB(ne,x,u7e(x.expression,a.symbol)),Z7e(x,ne,HA(x))){Xe(x.argumentExpression,m.Cannot_assign_to_0_because_it_is_a_read_only_property,Ti(ne));return}if(y&8&&(Zr(h).resolvedSymbol=ne),r7e(x,ne))return ot}const Te=y&4?jE(ne):_r(ne);return x&&HA(x)!==1?Kb(x,Te):h&&jS(h)&&o8(Te)?ei([Te,We]):Te}if(fp(a,Ha)&&ug(k)){const Te=+k;if(h&&fp(a,ve=>!ve.target.hasRestElement)&&!(y&16)){const ve=xve(h);if(Ha(a)){if(Te<0)return Xe(ve,m.A_tuple_type_cannot_be_indexed_with_a_negative_value),We;Xe(ve,m.Tuple_type_0_of_length_1_has_no_element_at_index_2,Kn(a),hy(a),Ki(k))}else Xe(ve,m.Property_0_does_not_exist_on_type_1,Ki(k),Kn(a))}if(Te>=0)return z(Rg(a,Tt)),k6e(a,Te,y&1?L:void 0)}}if(!(c.flags&98304)&&Nu(c,402665900)){if(a.flags&131073)return a;const ne=j4(a,c)||Rg(a,ke);if(ne){if(y&2&&ne.keyType!==Tt){x&&(y&4?Xe(x,m.Type_0_is_generic_and_can_only_be_indexed_for_reading,Kn(n)):Xe(x,m.Type_0_cannot_be_used_to_index_type_1,Kn(c),Kn(n)));return}if(h&&ne.keyType===ke&&!Nu(c,12)){const Te=xve(h);return Xe(Te,m.Type_0_cannot_be_used_as_an_index_type,Kn(c)),y&1?ei([ne.type,L]):ne.type}return z(ne),y&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&Md(c.symbol)===a.symbol)?ei([ne.type,L]):ne.type}if(c.flags&131072)return qr;if(X4(a))return j;if(x&&!Ete(a)){if(y1(a)){if(de&&c.flags&384)return cs.add(Fr(x,m.Property_0_does_not_exist_on_type_1,c.value,Kn(a))),We;if(c.flags&12){const Te=Wt(a.properties,ve=>_r(ve));return ei(Rn(Te,We))}}if(a.symbol===it&&k!==void 0&&it.exports.has(k)&&it.exports.get(k).flags&418)Xe(x,m.Property_0_does_not_exist_on_type_1,Ki(k),Kn(a));else if(de&&!V.suppressImplicitAnyIndexErrors&&!(y&128))if(k!==void 0&&s7e(k,a)){const Te=Kn(a);Xe(x,m.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,k,Te,Te+"["+bc(x.argumentExpression)+"]")}else if(d1(a,Tt))Xe(x.argumentExpression,m.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let Te;if(k!==void 0&&(Te=Yye(k,a)))Te!==void 0&&Xe(x.argumentExpression,m.Property_0_does_not_exist_on_type_1_Did_you_mean_2,k,Kn(a),Te);else{const ve=n_t(a,x,c);if(ve!==void 0)Xe(x,m.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Kn(a),ve);else{let Ge;if(c.flags&1024)Ge=jo(void 0,m.Property_0_does_not_exist_on_type_1,"["+Kn(c)+"]",Kn(a));else if(c.flags&8192){const vt=Jp(c.symbol,x);Ge=jo(void 0,m.Property_0_does_not_exist_on_type_1,"["+vt+"]",Kn(a))}else c.flags&128||c.flags&256?Ge=jo(void 0,m.Property_0_does_not_exist_on_type_1,c.value,Kn(a)):c.flags&12&&(Ge=jo(void 0,m.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Kn(c),Kn(a)));Ge=jo(Ge,m.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Kn(d),Kn(a)),cs.add(zg(Jn(x),x,Ge))}}}return}}if(X4(a))return j;if(h){const ne=xve(h);c.flags&384?Xe(ne,m.Property_0_does_not_exist_on_type_1,""+c.value,Kn(a)):c.flags&12?Xe(ne,m.Type_0_has_no_matching_index_signature_for_type_1,Kn(a),Kn(c)):Xe(ne,m.Type_0_cannot_be_used_as_an_index_type,Kn(c))}if(Nt(c))return c;return;function z(ne){ne&&ne.isReadonly&&x&&(og(x)||sU(x))&&Xe(x,m.Index_signature_in_type_0_only_permits_reading,Kn(a))}}function xve(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function Gz(n){if(n.flags&2097152){let a=!1;for(const c of n.types)if(c.flags&101248||Gz(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||YT(n)}function YT(n){return!!(n.flags&134217728)&&Bn(n.types,Gz)||!!(n.flags&268435456)&&Gz(n.type)}function J8e(n){return!!(n.flags&402653184)&&!YT(n)}function kD(n){return!!Y4(n)}function $T(n){return!!(Y4(n)&4194304)}function QT(n){return!!(Y4(n)&8388608)}function Y4(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|ad(n.types,(a,c)=>a|Y4(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|Y4(n.baseType)|Y4(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||Xd(n)||Hb(n)?4194304:0)|(n.flags&63176704||J8e(n)?8388608:0)}function hv(n,a){return n.flags&8388608?adt(n,a):n.flags&16777216?sdt(n,a):n}function K8e(n,a,c){if(n.flags&1048576||n.flags&2097152&&!Ave(n)){const d=Wt(n.types,h=>hv(kp(h,a),c));return n.flags&2097152||c?Ta(d):ei(d)}}function odt(n,a,c){if(a.flags&1048576){const d=Wt(a.types,h=>hv(kp(n,h),c));return c?Ta(d):ei(d)}}function adt(n,a){const c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===su?n:n[c];n[c]=su;const d=hv(n.objectType,a),h=hv(n.indexType,a),y=odt(d,h,a);if(y)return n[c]=y;if(!(h.flags&465829888)){const x=K8e(d,h,a);if(x)return n[c]=x}if(Hb(d)&&h.flags&296){const x=uM(d,h.flags&8?0:d.target.fixedLength,0,a);if(x)return n[c]=x}return Xd(d)&&nee(d)!==2?n[c]=_l(_ee(d,n.indexType),x=>hv(x,a)):n[c]=n}function sdt(n,a){const c=n.checkType,d=n.extendsType,h=f1(n),y=m1(n);if(y.flags&131072&&Gb(h)===Gb(c)){if(c.flags&1||Aa(eA(c),eA(d)))return hv(h,a);if(X8e(c,d))return qr}else if(h.flags&131072&&Gb(y)===Gb(c)){if(!(c.flags&1)&&Aa(eA(c),eA(d)))return qr;if(c.flags&1||X8e(c,d))return hv(y,a)}return n}function X8e(n,a){return!!(ei([Cz(n,a),qr]).flags&131072)}function _ee(n,a){const c=wp([m_(n)],[a]),d=YE(n.mapper,c);return fo(fv(n.target||n),d)}function kp(n,a,c=0,d,h,y){return Bb(n,a,c,d,h,y)||(d?_t:pn)}function Y8e(n,a){return fp(n,c=>{if(c.flags&384){const d=um(c);if(ug(d)){const h=+d;return h>=0&&h<a}}return!1})}function Bb(n,a,c=0,d,h,y){if(n===Dt||a===Dt)return Dt;if(n=h_(n),y6e(n)&&!(a.flags&98304)&&Nu(a,12)&&(a=ke),V.noUncheckedIndexedAccess&&c&32&&(c|=1),QT(a)||(d&&d.kind!==199?Hb(n)&&!Y8e(a,yve(n.target)):$T(n)&&!(Ha(n)&&Y8e(a,yve(n.target)))||Hge(n))){if(n.flags&3)return n;const k=c&1,z=n.id+","+a.id+","+k+Ax(h,y);let K=si.get(z);return K||si.set(z,K=idt(n,a,k,h,y)),K}const x=eM(n);if(a.flags&1048576&&!(a.flags&16)){const k=[];let z=!1;for(const K of a.types){const ne=q8e(n,x,K,a,d,c|(z?128:0));if(ne)k.push(ne);else if(d)z=!0;else return}return z?void 0:c&4?Ta(k,h,y):ei(k,1,h,y)}return q8e(n,x,a,a,d,c|8|64)}function $8e(n){const a=Zr(n);if(!a.resolvedType){const c=Ai(n.objectType),d=Ai(n.indexType),h=xx(n);a.resolvedType=kp(c,d,0,n,h,wD(h))}return a.resolvedType}function Rve(n){const a=Zr(n);if(!a.resolvedType){const c=Vf(32,n.symbol);c.declaration=n,c.aliasSymbol=xx(n),c.aliasTypeArguments=wD(c.aliasSymbol),a.resolvedType=c,Ef(c)}return a.resolvedType}function Gb(n){return n.flags&33554432?Gb(n.baseType):n.flags&8388608&&(n.objectType.flags&33554432||n.indexType.flags&33554432)?kp(Gb(n.objectType),Gb(n.indexType)):n}function Q8e(n){return mI(n)&&Pe(n.elements)>0&&!St(n.elements,a=>m5(a)||_5(a)||$2(a)&&!!(a.questionToken||a.dotDotDotToken))}function Z8e(n,a){return kD(n)||a&&Ha(n)&&St(qE(n),kD)}function Dve(n,a,c,d,h){let y,x,k=0;for(;;){if(k===1e3)return Xe(C,m.Type_instantiation_is_excessively_deep_and_possibly_infinite),_t;const K=fo(Gb(n.checkType),a),ne=fo(n.extendsType,a);if(K===_t||ne===_t)return _t;if(K===Dt||ne===Dt)return Dt;const Te=gk(n.node.checkType),ve=gk(n.node.extendsType),Ge=Q8e(Te)&&Q8e(ve)&&Pe(Te.elements)===Pe(ve.elements),vt=Z8e(K,Ge);let xt;if(n.inferTypeParameters){const sn=s8(n.inferTypeParameters,void 0,0);a&&(sn.nonFixingMapper=YE(sn.nonFixingMapper,a)),vt||Ev(sn.inferences,K,ne,1536),xt=a?YE(sn.mapper,a):sn.mapper}const cn=xt?fo(n.extendsType,xt):ne;if(!vt&&!Z8e(cn,Ge)){if(!(cn.flags&3)&&(K.flags&1||!Aa(Z4(K),Z4(cn)))){(K.flags&1||c&&!(cn.flags&131072)&&qm(Z4(cn),rr=>Aa(rr,Z4(K))))&&(x||(x=[])).push(fo(Ai(n.node.trueType),xt||a));const sn=Ai(n.node.falseType);if(sn.flags&16777216){const rr=sn.root;if(rr.node.parent===n.node&&(!rr.isDistributive||rr.checkType===n.checkType)){n=rr;continue}if(z(sn,a))continue}y=fo(sn,a);break}if(cn.flags&3||Aa(eA(K),eA(cn))){const sn=Ai(n.node.trueType),rr=xt||a;if(z(sn,rr))continue;y=fo(sn,rr);break}}y=Ag(16777216),y.root=n,y.checkType=fo(n.checkType,a),y.extendsType=fo(n.extendsType,a),y.mapper=a,y.combinedMapper=xt,y.aliasSymbol=d||n.aliasSymbol,y.aliasTypeArguments=d?h:vy(n.aliasTypeArguments,a);break}return x?ei(Rn(x,y)):y;function z(K,ne){if(K.flags&16777216&&ne){const Te=K.root;if(Te.outerTypeParameters){const ve=YE(K.mapper,ne),Ge=Wt(Te.outerTypeParameters,cn=>Vb(cn,ve)),vt=wp(Te.outerTypeParameters,Ge),xt=Te.isDistributive?Vb(Te.checkType,vt):void 0;if(!xt||xt===Te.checkType||!(xt.flags&1179648))return n=Te,a=vt,d=void 0,h=void 0,Te.aliasSymbol&&k++,!0}}return!1}}function f1(n){return n.resolvedTrueType||(n.resolvedTrueType=fo(Ai(n.root.node.trueType),n.mapper))}function m1(n){return n.resolvedFalseType||(n.resolvedFalseType=fo(Ai(n.root.node.falseType),n.mapper))}function ldt(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?fo(Ai(n.root.node.trueType),n.combinedMapper):f1(n))}function e6e(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=Rn(a,nl(c)))}),a}function cdt(n){return n.isDistributive&&(Hz(n.checkType,n.node.trueType)||Hz(n.checkType,n.node.falseType))}function udt(n){const a=Zr(n);if(!a.resolvedType){const c=Ai(n.checkType),d=xx(n),h=wD(d),y=Cn(n,!0),x=h?y:Vn(y,z=>Hz(z,n)),k={node:n,checkType:c,extendsType:Ai(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:e6e(n),outerTypeParameters:x,instantiations:void 0,aliasSymbol:d,aliasTypeArguments:h};a.resolvedType=Dve(k,void 0,!1),x&&(k.instantiations=new Map,k.instantiations.set(ym(x),a.resolvedType))}return a.resolvedType}function ddt(n){const a=Zr(n);return a.resolvedType||(a.resolvedType=jT(Cr(n.typeParameter))),a.resolvedType}function t6e(n){return Ue(n)?[n]:Rn(t6e(n.left),n.right)}function pdt(n){var a;const c=Zr(n);if(!c.resolvedType){if(!By(n))return Xe(n.argument,m.String_literal_expected),c.resolvedSymbol=pt,c.resolvedType=_t;const d=n.isTypeOf?111551:n.flags&16777216?900095:788968,h=vd(n,n.argument.literal);if(!h)return c.resolvedSymbol=pt,c.resolvedType=_t;const y=!!((a=h.exports)!=null&&a.get("export=")),x=Mp(h,!1);if(Hl(n.qualifier))if(x.flags&d)c.resolvedType=n6e(n,c,x,d);else{const k=d===111551?m.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:m.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Xe(n,k,n.argument.literal.text),c.resolvedSymbol=pt,c.resolvedType=_t}else{const k=t6e(n.qualifier);let z=x,K;for(;K=k.shift();){const ne=k.length?1920:d,Te=ds(Xl(z)),ve=n.isTypeOf||dr(n)&&y?Sa(_r(Te),K.escapedText,!1,!0):void 0,Ge=n.isTypeOf?void 0:Kd(Lp(Te),K.escapedText,ne),vt=Ge!=null?Ge:ve;if(!vt)return Xe(K,m.Namespace_0_has_no_exported_member_1,Jp(z),ks(K)),c.resolvedType=_t;Zr(K).resolvedSymbol=vt,Zr(K.parent).resolvedSymbol=vt,z=vt}c.resolvedType=n6e(n,c,z,d)}}return c.resolvedType}function n6e(n,a,c,d){const h=Xl(c);return a.resolvedSymbol=h,d===111551?W7e(_r(c),n):uee(n,h)}function r6e(n){const a=Zr(n);if(!a.resolvedType){const c=xx(n);if(Ob(n.symbol).size===0&&!c)a.resolvedType=_c;else{let d=Vf(16,n.symbol);d.aliasSymbol=c,d.aliasTypeArguments=wD(c),XS(n)&&n.isArrayType&&(d=Uu(d)),a.resolvedType=d}}return a.resolvedType}function xx(n){let a=n.parent;for(;GS(a)||pE(a)||VS(a)&&a.operator===148;)a=a.parent;return pk(a)?Cr(a):void 0}function wD(n){return n?Wr(n):void 0}function hee(n){return!!(n.flags&524288)&&!Xd(n)}function Nve(n){return vv(n)||!!(n.flags&474058748)}function Cve(n,a){if(!(n.flags&1048576))return n;if(Bn(n.types,Nve))return un(n.types,vv)||wa;const c=un(n.types,y=>!Nve(y));if(!c||un(n.types,y=>y!==c&&!Nve(y)))return n;return h(c);function h(y){const x=pa();for(const z of As(y))if(!(Df(z)&6)){if(gee(z)){const K=z.flags&65536&&!(z.flags&32768),Te=ts(16777220,z.escapedName,Wge(z)|(a?8:0));Te.links.type=K?We:dp(_r(z),!0),Te.declarations=z.declarations,Te.links.nameType=eo(z).nameType,Te.links.syntheticOrigin=z,x.set(z.escapedName,Te)}}const k=Vs(y.symbol,x,et,et,yd(y));return k.objectFlags|=131200,k}}function JE(n,a,c,d,h){if(n.flags&1||a.flags&1)return j;if(n.flags&2||a.flags&2)return pn;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=Cve(n,h),n.flags&1048576)return Bz([n,a])?_l(n,K=>JE(K,a,c,d,h)):_t;if(a=Cve(a,h),a.flags&1048576)return Bz([n,a])?_l(a,K=>JE(n,K,c,d,h)):_t;if(a.flags&473960444)return n;if($T(n)||$T(a)){if(vv(n))return a;if(n.flags&2097152){const K=n.types,ne=K[K.length-1];if(hee(ne)&&hee(a))return Ta(Ro(K.slice(0,K.length-1),[JE(ne,a,c,d,h)]))}return Ta([n,a])}const y=pa(),x=new Set,k=n===wa?yd(a):F4e([n,a]);for(const K of As(a))Df(K)&6?x.add(K.escapedName):gee(K)&&y.set(K.escapedName,Pve(K,h));for(const K of As(n))if(!(x.has(K.escapedName)||!gee(K)))if(y.has(K.escapedName)){const ne=y.get(K.escapedName),Te=_r(ne);if(ne.flags&16777216){const ve=Ro(K.declarations,ne.declarations),Ge=4|K.flags&16777216,vt=ts(Ge,K.escapedName),xt=_r(K),cn=Wee(xt),sn=Wee(Te);vt.links.type=cn===sn?xt:ei([xt,sn],2),vt.links.leftSpread=K,vt.links.rightSpread=ne,vt.declarations=ve,vt.links.nameType=eo(K).nameType,y.set(K.escapedName,vt)}}else y.set(K.escapedName,Pve(K,h));const z=Vs(c,y,et,et,mo(k,K=>fdt(K,h)));return z.objectFlags|=2228352|d,z}function gee(n){var a;return!St(n.declarations,ud)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>di(c.parent))))}function Pve(n,a){const c=n.flags&65536&&!(n.flags&32768);if(!c&&a===b_(n))return n;const d=4|n.flags&16777216,h=ts(d,n.escapedName,Wge(n)|(a?8:0));return h.links.type=c?We:_r(n),h.declarations=n.declarations,h.links.nameType=eo(n).nameType,h.links.syntheticOrigin=n,h}function fdt(n,a){return n.isReadonly!==a?Hh(n.keyType,n.type,a,n.declaration):n}function Vz(n,a,c,d){const h=Ig(n,c);return h.value=a,h.regularType=d||h,h}function Rx(n){if(n.flags&2976){if(!n.freshType){const a=Vz(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function Ed(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=_l(n,Ed)):n}function KE(n){return!!(n.flags&2976)&&n.freshType===n}function Yd(n){let a;return Kt.get(n)||(Kt.set(n,a=Vz(128,n)),a)}function g_(n){let a;return nt.get(n)||(nt.set(n,a=Vz(256,n)),a)}function vee(n){let a;const c=Q1(n);return Bt.get(c)||(Bt.set(c,a=Vz(2048,n)),a)}function mdt(n,a,c){let d;const h=`${a}${typeof n=="string"?"@":"#"}${n}`,y=1024|(typeof n=="string"?128:256);return Dn.get(h)||(Dn.set(h,d=Vz(y,n,c)),d)}function _dt(n){if(n.literal.kind===106)return fe;const a=Zr(n);return a.resolvedType||(a.resolvedType=Ed(Eo(n.literal))),a.resolvedType}function hdt(n){const a=Ig(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${Ia(a.symbol)}`,a}function Mve(n){if(dr(n)&&pE(n)){const a=CS(n);a&&(n=UA(a)||a)}if(Hie(n)){const a=d3(n)?gf(n.left):gf(n);if(a){const c=eo(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=hdt(a))}}return li}function gdt(n){const a=zd(n,!1,!1),c=a&&a.parent;if(c&&(di(c)||c.kind===264)&&!la(a)&&(!Wl(a)||U1(n,a.body)))return qf(Cr(c)).thisType;if(c&&za(c)&&vr(c.parent)&&ql(c.parent)===6)return qf(gf(c.parent.left).parent).thisType;const d=n.flags&16777216?v0(n):void 0;return d&&Us(d)&&vr(d.parent)&&ql(d.parent)===3?qf(gf(d.parent.left).parent).thisType:oh(a)&&U1(n,a.body)?qf(Cr(a)).thisType:(Xe(n,m.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),_t)}function yee(n){const a=Zr(n);return a.resolvedType||(a.resolvedType=gdt(n)),a.resolvedType}function i6e(n){return Ai(jz(n.type)||n.type)}function jz(n){switch(n.kind){case 196:return jz(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return jz(n.type);break;case 188:return n.elementType}}function vdt(n){const a=Zr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?i6e(n):dp(Ai(n.type),!0,!!n.questionToken))}function Ai(n){return Yct(o6e(n),n)}function o6e(n){switch(n.kind){case 133:case 319:case 320:return j;case 159:return pn;case 154:return ke;case 150:return Tt;case 163:return kt;case 136:return ai;case 155:return li;case 116:return Qn;case 157:return We;case 106:return fe;case 146:return qr;case 151:return n.flags&524288&&!de?j:ya;case 141:return hn;case 197:case 110:return yee(n);case 201:return _dt(n);case 183:return lve(n);case 182:return n.assertsModifier?Qn:ai;case 233:return lve(n);case 186:return h8e(n);case 188:case 189:return xut(n);case 190:return Cut(n);case 192:return zut(n);case 193:return Jut(n);case 321:return $ct(n);case 323:return dp(Ai(n.type));case 202:return vdt(n);case 196:case 322:case 316:return Ai(n.type);case 191:return i6e(n);case 325:return byt(n);case 184:case 185:case 187:case 329:case 324:case 330:return r6e(n);case 198:return Qut(n);case 199:return $8e(n);case 200:return Rve(n);case 194:return udt(n);case 195:return ddt(n);case 203:return Zut(n);case 205:return pdt(n);case 80:case 166:case 211:const a=Jm(n);return a?nl(a):_t;default:return _t}}function bee(n,a,c){if(n&&n.length)for(let d=0;d<n.length;d++){const h=n[d],y=c(h,a);if(h!==y){const x=d===0?[]:n.slice(0,d);for(x.push(y),d++;d<n.length;d++)x.push(c(n[d],a));return x}}return n}function vy(n,a){return bee(n,a,fo)}function Eee(n,a){return bee(n,a,OD)}function a6e(n,a){return bee(n,a,Pdt)}function wp(n,a){return n.length===1?XE(n[0],a?a[0]:j):ydt(n,a)}function Vb(n,a){switch(a.kind){case 0:return n===a.source?a.target:n;case 1:{const d=a.sources,h=a.targets;for(let y=0;y<d.length;y++)if(n===d[y])return h?h[y]:j;return n}case 2:{const d=a.sources,h=a.targets;for(let y=0;y<d.length;y++)if(n===d[y])return h[y]();return n}case 3:return a.func(n);case 4:case 5:const c=Vb(n,a.mapper1);return c!==n&&a.kind===4?fo(c,a.mapper2):Vb(c,a.mapper2)}}function XE(n,a){return N.attachDebugPrototypeIfDebug({kind:0,source:n,target:a})}function ydt(n,a){return N.attachDebugPrototypeIfDebug({kind:1,sources:n,targets:a})}function Uz(n,a){return N.attachDebugPrototypeIfDebug({kind:3,func:n,debugInfo:N.isDebugging?a:void 0})}function Lve(n,a){return N.attachDebugPrototypeIfDebug({kind:2,sources:n,targets:a})}function See(n,a,c){return N.attachDebugPrototypeIfDebug({kind:n,mapper1:a,mapper2:c})}function s6e(n){return wp(n,void 0)}function bdt(n,a){const c=n.inferences.slice(a);return wp(Wt(c,d=>d.typeParameter),Wt(c,()=>pn))}function YE(n,a){return n?See(4,n,a):a}function Edt(n,a){return n?See(5,n,a):a}function ZT(n,a,c){return c?See(5,XE(n,a),c):XE(n,a)}function $4(n,a,c){return n?See(5,n,XE(a,c)):XE(a,c)}function Sdt(n){return!n.constraint&&!nve(n)||n.constraint===Xs?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=yf(n.symbol),n.restrictiveInstantiation.constraint=Xs,n.restrictiveInstantiation)}function kve(n){const a=yf(n.symbol);return a.target=n,a}function Tdt(n,a){return Oz(n.kind,n.parameterName,n.parameterIndex,fo(n.type,a))}function OD(n,a,c){let d;if(n.typeParameters&&!c){d=Wt(n.typeParameters,kve),a=YE(wp(n.typeParameters,d),a);for(const y of d)y.mapper=a}const h=xg(n.declaration,d,n.thisParameter&&wve(n.thisParameter,a),bee(n.parameters,a,wve),void 0,void 0,n.minArgumentCount,n.flags&167);return h.target=n,h.mapper=a,h}function wve(n,a){const c=eo(n);if(c.type&&!v1(c.type)&&(!(n.flags&65536)||c.writeType&&!v1(c.writeType)))return n;Cl(n)&1&&(n=c.target,a=YE(c.mapper,a));const d=ts(n.flags,n.escapedName,1|Cl(n)&53256);return d.declarations=n.declarations,d.parent=n.parent,d.links.target=n,d.links.mapper=a,n.valueDeclaration&&(d.valueDeclaration=n.valueDeclaration),c.nameType&&(d.links.nameType=c.nameType),d}function Adt(n,a,c,d){const h=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],y=Zr(h),x=n.objectFlags&4?y.resolvedType:n.objectFlags&64?n.target:n;let k=y.outerTypeParameters;if(!k){let z=Cn(h,!0);if(oh(h)){const ne=t8e(h);z=Hr(z,ne)}k=z||et;const K=n.objectFlags&8388612?[h]:n.symbol.declarations;k=(x.objectFlags&8388612||x.symbol.flags&8192||x.symbol.flags&2048)&&!x.aliasTypeArguments?Vn(k,ne=>St(K,Te=>Hz(ne,Te))):k,y.outerTypeParameters=k}if(k.length){const z=YE(n.mapper,a),K=Wt(k,vt=>Vb(vt,z)),ne=c||n.aliasSymbol,Te=c?d:vy(n.aliasTypeArguments,a),ve=ym(K)+Ax(ne,Te);x.instantiations||(x.instantiations=new Map,x.instantiations.set(ym(k)+Ax(x.aliasSymbol,x.aliasTypeArguments),x));let Ge=x.instantiations.get(ve);if(!Ge){const vt=wp(k,K);Ge=x.objectFlags&4?rve(n.target,n.node,vt,ne,Te):x.objectFlags&32?xdt(x,vt,ne,Te):Ove(x,vt,ne,Te),x.instantiations.set(ve,Ge);const xt=zr(Ge);if(Ge.flags&3899393&&!(xt&524288)){const cn=St(K,v1);zr(Ge)&524288||(xt&52?Ge.objectFlags|=524288|(cn?1048576:0):Ge.objectFlags|=cn?0:524288)}}return Ge}return n}function Idt(n){return!(n.parent.kind===183&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===205&&n.parent.typeArguments&&n===n.parent.qualifier)}function Hz(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){const d=n.symbol.declarations[0].parent;for(let h=a;h!==d;h=h.parent)if(!h||h.kind===241||h.kind===194&&Uo(h.extendsType,c))return!0;return c(a)}return!0;function c(d){switch(d.kind){case 197:return!!n.isThisType;case 80:return!n.isThisType&&ng(d)&&Idt(d)&&o6e(d)===n;case 186:const h=d.exprName,y=jp(h);if(!X1(y)){const x=Hm(y),k=n.symbol.declarations[0],z=k.kind===168?k.parent:n.isThisType?k:void 0;if(x.declarations&&z)return St(x.declarations,K=>U1(K,z))||St(d.typeArguments,c)}return!0;case 174:case 173:return!d.type&&!!d.body||St(d.typeParameters,c)||St(d.parameters,c)||!!d.type&&c(d.type)}return!!Uo(d,c)}}function Q4(n){const a=Ef(n);if(a.flags&4194304){const c=Gb(a.type);if(c.flags&262144)return c}}function xdt(n,a,c,d){const h=Q4(n);if(h){const x=fo(h,a);if(h!==x)return u3e(h_(x),y,c,d)}return fo(Ef(n),a)===Dt?Dt:Ove(n,a,c,d);function y(x){if(x.flags&61603843&&x!==Dt&&!Jt(x)){if(!n.declaration.nameType){let k;if(Yf(x)||x.flags&1&&yx(h,4)<0&&(k=kd(h))&&fp(k,h1))return Ddt(x,n,ZT(h,x,a));if(Ha(x))return Rdt(x,n,h,a);if(X4e(x))return Ta(Wt(x.types,y))}return Ove(n,ZT(h,x,a))}return x}}function l6e(n,a){return a&1?!0:a&2?!1:n}function Rdt(n,a,c,d){const h=n.target.elementFlags,y=n.target.fixedLength,x=y?ZT(c,n,d):d,k=Wt(qE(n),(Te,ve)=>{var vt;const Ge=h[ve];return ve<y?c6e(a,Yd(""+ve),!!(Ge&2),x):Ge&8?fo(a,ZT(c,Te,d)):(vt=eB(fo(a,ZT(c,Uu(Te),d))))!=null?vt:pn}),z=jh(a),K=z&4?Wt(h,Te=>Te&1?2:Te):z&8?Wt(h,Te=>Te&2?1:Te):h,ne=l6e(n.target.readonly,jh(a));return Mn(k,_t)?_t:qh(k,K,ne,n.target.labeledElementDeclarations)}function Ddt(n,a,c){const d=c6e(a,Tt,!0,c);return Jt(d)?_t:Uu(d,l6e(lM(n),jh(a)))}function c6e(n,a,c,d){const h=$4(d,m_(n),a),y=fo(fv(n.target||n),h),x=jh(n);return Y&&x&4&&!wl(y,49152)?qb(y,!0):Y&&x&8&&c?Em(y,524288):y}function Ove(n,a,c,d){N.assert(n.symbol,"anonymous type must have symbol to be instantiated");const h=Vf(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){h.declaration=n.declaration;const y=m_(n),x=kve(y);h.typeParameter=x,a=YE(XE(y,x),a),x.mapper=a}return n.objectFlags&8388608&&(h.node=n.node),h.target=n,h.mapper=a,h.aliasSymbol=c||n.aliasSymbol,h.aliasTypeArguments=c?d:vy(n.aliasTypeArguments,a),h.objectFlags|=h.aliasTypeArguments?lee(h.aliasTypeArguments):0,h}function Wve(n,a,c,d,h){const y=n.root;if(y.outerTypeParameters){const x=Wt(y.outerTypeParameters,K=>Vb(K,a)),k=(c?"C":"")+ym(x)+Ax(d,h);let z=y.instantiations.get(k);if(!z){const K=wp(y.outerTypeParameters,x),ne=y.checkType,Te=y.isDistributive?h_(Vb(ne,K)):void 0;z=Te&&ne!==Te&&Te.flags&1179648?u3e(Te,ve=>Dve(y,ZT(ne,ve,K),c),d,h):Dve(y,K,c,d,h),y.instantiations.set(k,z)}return z}return n}function fo(n,a){return n&&a?u6e(n,a,void 0,void 0):n}function u6e(n,a,c,d){var h;if(!v1(n))return n;if(R===100||I>=5e6)return(h=ur)==null||h.instant(ur.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:R,instantiationCount:I}),Xe(C,m.Type_instantiation_is_excessively_deep_and_possibly_infinite),_t;A++,I++,R++;const y=Ndt(n,a,c,d);return R--,y}function Ndt(n,a,c,d){const h=n.flags;if(h&262144)return Vb(n,a);if(h&524288){const y=n.objectFlags;if(y&52){if(y&4&&!n.node){const x=n.resolvedTypeArguments,k=vy(x,a);return k!==x?gve(n.target,k):n}return y&1024?Cdt(n,a):Adt(n,a,c,d)}return n}if(h&3145728){const y=n.flags&1048576?n.origin:void 0,x=y&&y.flags&3145728?y.types:n.types,k=vy(x,a);if(k===x&&c===n.aliasSymbol)return n;const z=c||n.aliasSymbol,K=c?d:vy(n.aliasTypeArguments,a);return h&2097152||y&&y.flags&2097152?Ta(k,z,K):ei(k,1,z,K)}if(h&4194304)return th(fo(n.type,a));if(h&134217728)return XT(n.texts,vy(n.types,a));if(h&268435456)return Ix(n.symbol,fo(n.type,a));if(h&8388608){const y=c||n.aliasSymbol,x=c?d:vy(n.aliasTypeArguments,a);return kp(fo(n.objectType,a),fo(n.indexType,a),n.accessFlags,void 0,y,x)}if(h&16777216)return Wve(n,YE(n.mapper,a),!1,c,d);if(h&33554432){const y=fo(n.baseType,a);if(rM(n))return ive(y);const x=fo(n.constraint,a);return y.flags&8650752&&kD(x)?ave(y,x):x.flags&3||Aa(eA(y),eA(x))?y:y.flags&8650752?ave(y,x):Ta([x,y])}return n}function Cdt(n,a){const c=fo(n.mappedType,a);if(!(zr(c)&32))return n;const d=fo(n.constraintType,a);if(!(d.flags&4194304))return n;const h=V6e(fo(n.source,a),c,d);return h||n}function Z4(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=fo(n,Ts))}function eA(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=fo(n,ka),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function Pdt(n,a){return Hh(n.keyType,fo(n.type,a),n.isReadonly,n.declaration)}function Kf(n){switch(N.assert(n.kind!==174||Cm(n)),n.kind){case 218:case 219:case 174:case 262:return d6e(n);case 210:return St(n.properties,Kf);case 209:return St(n.elements,Kf);case 227:return Kf(n.whenTrue)||Kf(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Kf(n.left)||Kf(n.right));case 303:return Kf(n.initializer);case 217:return Kf(n.expression);case 292:return St(n.properties,Kf)||W_(n.parent)&&St(n.parent.parent.children,Kf);case 291:{const{initializer:a}=n;return!!a&&Kf(a)}case 294:{const{expression:a}=n;return!!a&&Kf(a)}}return!1}function d6e(n){return g7(n)||Mdt(n)}function Mdt(n){return n.typeParameters||lm(n)||!n.body?!1:n.body.kind!==241?Kf(n.body):!!B1(n.body,a=>!!a.expression&&Kf(a.expression))}function Tee(n){return(Z1(n)||Cm(n))&&d6e(n)}function p6e(n){if(n.flags&524288){const a=__(n);if(a.constructSignatures.length||a.callSignatures.length){const c=Vf(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=et,c.constructSignatures=et,c.indexInfos=et,c}}else if(n.flags&2097152)return Ta(Wt(n.types,p6e));return n}function gv(n,a){return nh(n,a,lp)}function e8(n,a){return nh(n,a,lp)?-1:0}function Fve(n,a){return nh(n,a,Jd)?-1:0}function Ldt(n,a){return nh(n,a,kh)?-1:0}function jb(n,a){return nh(n,a,kh)}function qz(n,a){return nh(n,a,Bf)}function Aa(n,a){return nh(n,a,Jd)}function _1(n,a){return n.flags&1048576?Bn(n.types,c=>_1(c,a)):a.flags&1048576?St(a.types,c=>_1(n,c)):n.flags&2097152?St(n.types,c=>_1(c,a)):n.flags&58982400?_1(ju(n)||pn,a):Jh(a)?!!(n.flags&67633152):a===Me?!!(n.flags&67633152)&&!Jh(n):a===Ot?!!(n.flags&524288)&&gye(n):xD(n,fy(a))||Yf(a)&&!lM(a)&&_1(n,ra)}function Aee(n,a){return nh(n,a,Pp)}function Jz(n,a){return Aee(n,a)||Aee(a,n)}function od(n,a,c,d,h,y){return Xf(n,a,Jd,c,d,h,y)}function Ub(n,a,c,d,h,y){return zve(n,a,Jd,c,d,h,y,void 0)}function zve(n,a,c,d,h,y,x,k){return nh(n,a,c)?!0:!d||!t8(h,n,a,c,y,x,k)?Xf(n,a,c,d,y,x,k):!1}function f6e(n){return!!(n.flags&16777216||n.flags&2097152&&St(n.types,f6e))}function t8(n,a,c,d,h,y,x){if(!n||f6e(c))return!1;if(!Xf(a,c,d,void 0)&&kdt(n,a,c,d,h,y,x))return!0;switch(n.kind){case 234:if(!gb(n))break;case 294:case 217:return t8(n.expression,a,c,d,h,y,x);case 226:switch(n.operatorToken.kind){case 64:case 28:return t8(n.right,a,c,d,h,y,x)}break;case 210:return Vdt(n,a,c,d,y,x);case 209:return Bdt(n,a,c,d,y,x);case 292:return zdt(n,a,c,d,y,x);case 219:return wdt(n,a,c,d,y,x)}return!1}function kdt(n,a,c,d,h,y,x){const k=$o(a,0),z=$o(a,1);for(const K of[z,k])if(St(K,ne=>{const Te=ys(ne);return!(Te.flags&131073)&&Xf(Te,c,d,void 0)})){const ne=x||{};od(a,c,n,h,y,ne);const Te=ne.errors[ne.errors.length-1];return Fa(Te,Fr(n,K===z?m.Did_you_mean_to_use_new_with_this_expression:m.Did_you_mean_to_call_this_expression)),!0}return!1}function wdt(n,a,c,d,h,y){if(Yo(n.body)||St(n.parameters,K6))return!1;const x=cA(a);if(!x)return!1;const k=$o(c,0);if(!Pe(k))return!1;const z=n.body,K=ys(x),ne=ei(Wt(k,ys));if(!Xf(K,ne,d,void 0)){const Te=z&&t8(z,K,ne,d,void 0,h,y);if(Te)return Te;const ve=y||{};if(Xf(K,ne,d,z,void 0,h,ve),ve.errors)return c.symbol&&Pe(c.symbol.declarations)&&Fa(ve.errors[ve.errors.length-1],Fr(c.symbol.declarations[0],m.The_expected_type_comes_from_the_return_type_of_this_signature)),(Jc(n)&2)===0&&!Ke(K,"then")&&Xf(DB(K),ne,d,void 0)&&Fa(ve.errors[ve.errors.length-1],Fr(n,m.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function m6e(n,a,c){const d=Bb(a,c);if(d)return d;if(a.flags&1048576){const h=S6e(n,a);if(h)return Bb(h,c)}}function _6e(n,a){pB(n,a,!1);const c=bM(n,1);return d8(),c}function Kz(n,a,c,d,h,y){let x=!1;for(const k of n){const{errorNode:z,innerExpression:K,nameType:ne,errorMessage:Te}=k;let ve=m6e(a,c,ne);if(!ve||ve.flags&8388608)continue;let Ge=Bb(a,ne);if(!Ge)continue;const vt=mee(ne,void 0);if(!Xf(Ge,ve,d,void 0)){const xt=K&&t8(K,Ge,ve,d,void 0,h,y);if(x=!0,!xt){const cn=y||{},sn=K?_6e(K,Ge):Ge;if(Le&&xee(sn,ve)){const rr=Fr(z,m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Kn(sn),Kn(ve));cs.add(rr),cn.errors=[rr]}else{const rr=!!(vt&&(Sa(c,vt)||pt).flags&16777216),zn=!!(vt&&(Sa(a,vt)||pt).flags&16777216);ve=Jb(ve,rr),Ge=Jb(Ge,rr&&zn),Xf(sn,ve,d,z,Te,h,cn)&&sn!==Ge&&Xf(Ge,ve,d,z,Te,h,cn)}if(cn.errors){const rr=cn.errors[cn.errors.length-1],zn=cm(ne)?um(ne):void 0,mn=zn!==void 0?Sa(c,zn):void 0;let Gn=!1;if(!mn){const Pn=j4(c,ne);Pn&&Pn.declaration&&!Jn(Pn.declaration).hasNoDefaultLib&&(Gn=!0,Fa(rr,Fr(Pn.declaration,m.The_expected_type_comes_from_this_index_signature)))}if(!Gn&&(mn&&Pe(mn.declarations)||c.symbol&&Pe(c.symbol.declarations))){const Pn=mn&&Pe(mn.declarations)?mn.declarations[0]:c.symbol.declarations[0];Jn(Pn).hasNoDefaultLib||Fa(rr,Fr(Pn,m.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,zn&&!(ne.flags&8192)?Ki(zn):Kn(ne),Kn(c)))}}}}}return x}function Odt(n,a,c,d,h,y){const x=vc(c,Lee),k=vc(c,ne=>!Lee(ne)),z=k!==qr?wbe(13,0,k,void 0):void 0;let K=!1;for(let ne=n.next();!ne.done;ne=n.next()){const{errorNode:Te,innerExpression:ve,nameType:Ge,errorMessage:vt}=ne.value;let xt=z;const cn=x!==qr?m6e(a,x,Ge):void 0;if(cn&&!(cn.flags&8388608)&&(xt=z?ei([z,cn]):cn),!xt)continue;let sn=Bb(a,Ge);if(!sn)continue;const rr=mee(Ge,void 0);if(!Xf(sn,xt,d,void 0)){const zn=ve&&t8(ve,sn,xt,d,void 0,h,y);if(K=!0,!zn){const mn=y||{},Gn=ve?_6e(ve,sn):sn;if(Le&&xee(Gn,xt)){const Pn=Fr(Te,m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Kn(Gn),Kn(xt));cs.add(Pn),mn.errors=[Pn]}else{const Pn=!!(rr&&(Sa(x,rr)||pt).flags&16777216),qn=!!(rr&&(Sa(a,rr)||pt).flags&16777216);xt=Jb(xt,Pn),sn=Jb(sn,Pn&&qn),Xf(Gn,xt,d,Te,vt,h,mn)&&Gn!==sn&&Xf(sn,xt,d,Te,vt,h,mn)}}}}return K}function*Wdt(n){if(!!Pe(n.properties))for(const a of n.properties)SI(a)||Fye(Vk(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Yd(Vk(a.name))})}function*Fdt(n,a){if(!Pe(n.children))return;let c=0;for(let d=0;d<n.children.length;d++){const h=n.children[d],y=g_(d-c),x=h6e(h,y,a);x?yield x:c++}}function h6e(n,a,c){switch(n.kind){case 294:return{errorNode:n,innerExpression:n.expression,nameType:a};case 12:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:a,errorMessage:c()};case 284:case 285:case 288:return{errorNode:n,innerExpression:n,nameType:a};default:return N.assertNever(n,"Found invalid jsx child")}}function zdt(n,a,c,d,h,y){let x=Kz(Wdt(n),a,c,d,h,y),k;if(W_(n.parent)&&pg(n.parent.parent)){const K=n.parent.parent,ne=mB(sA(n)),Te=ne===void 0?"children":Ki(ne),ve=Yd(Te),Ge=kp(c,ve),vt=P2(K.children);if(!Pe(vt))return x;const xt=Pe(vt)>1;let cn,sn;if(fve(!1)!==Wo){const zn=R8e(j);cn=vc(Ge,mn=>Aa(mn,zn)),sn=vc(Ge,mn=>!Aa(mn,zn))}else cn=vc(Ge,Lee),sn=vc(Ge,zn=>!Lee(zn));if(xt){if(cn!==qr){const zn=qh(ote(K,0)),mn=Fdt(K,z);x=Odt(mn,zn,cn,d,h,y)||x}else if(!nh(kp(a,ve),Ge,d)){x=!0;const zn=Xe(K.openingElement.tagName,m.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Te,Kn(Ge));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(zn)}}else if(sn!==qr){const zn=vt[0],mn=h6e(zn,ve,z);mn&&(x=Kz(function*(){yield mn}(),a,c,d,h,y)||x)}else if(!nh(kp(a,ve),Ge,d)){x=!0;const zn=Xe(K.openingElement.tagName,m.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Te,Kn(Ge));y&&y.skipLogging&&(y.errors||(y.errors=[])).push(zn)}}return x;function z(){if(!k){const K=bc(n.parent.tagName),ne=mB(sA(n)),Te=ne===void 0?"children":Ki(ne),ve=kp(c,Yd(Te)),Ge=m._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;k={...Ge,key:"!!ALREADY FORMATTED!!",message:VU(Ge,K,Te,Kn(ve))}}return k}}function*g6e(n,a){const c=Pe(n.elements);if(!!c)for(let d=0;d<c;d++){if(cM(a)&&!Sa(a,""+d))continue;const h=n.elements[d];if(Kc(h))continue;const y=g_(d),x=mte(h);yield{errorNode:x,innerExpression:x,nameType:y}}}function Bdt(n,a,c,d,h,y){if(c.flags&402915324)return!1;if(cM(a))return Kz(g6e(n,c),a,c,d,h,y);pB(n,c,!1);const x=z3e(n,1,!0);return d8(),cM(x)?Kz(g6e(n,c),x,c,d,h,y):!1}function*Gdt(n){if(!!Pe(n.properties))for(const a of n.properties){if(Xv(a))continue;const c=LD(Cr(a),8576);if(!(!c||c.flags&131072))switch(a.kind){case 178:case 177:case 174:case 304:yield{errorNode:a.name,innerExpression:void 0,nameType:c};break;case 303:yield{errorNode:a.name,innerExpression:a.initializer,nameType:c,errorMessage:HL(a.name)?m.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:N.assertNever(a)}}}function Vdt(n,a,c,d,h,y){return c.flags&402915324?!1:Kz(Gdt(n),a,c,d,h,y)}function v6e(n,a,c,d,h){return Xf(n,a,Pp,c,d,h)}function jdt(n,a,c){return Bve(n,a,c?4:0,!1,void 0,void 0,Fve,void 0)!==0}function Iee(n){if(!n.typeParameters&&(!n.thisParameter||Nt(IB(n.thisParameter)))&&n.parameters.length===1&&Zu(n)){const a=IB(n.parameters[0]);return!!((Yf(a)?$s(a)[0]:a).flags&131073&&ys(n).flags&3)}return!1}function Bve(n,a,c,d,h,y,x,k){if(n===a||!(c&16&&Iee(n))&&Iee(a))return-1;if(c&16&&Iee(n)&&!Iee(a))return 0;const z=$p(a);if(!Kh(a)&&(c&8?Kh(n)||$p(n)>z:ah(n)>z))return d&&!(c&8)&&h(m.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,ah(n),z),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Uct(a),n=g7e(n,a,void 0,x));const ne=$p(n),Te=_8(n),ve=_8(a);(Te||ve)&&fo(Te||ve,k);const Ge=a.declaration?a.declaration.kind:0,vt=!(c&3)&&oe&&Ge!==174&&Ge!==173&&Ge!==176;let xt=-1;const cn=p1(n);if(cn&&cn!==Qn){const zn=p1(a);if(zn){const mn=!vt&&x(cn,zn,!1)||x(zn,cn,d);if(!mn)return d&&h(m.The_this_types_of_each_signature_are_incompatible),0;xt&=mn}}const sn=Te||ve?Math.min(ne,z):Math.max(ne,z),rr=Te||ve?sn-1:-1;for(let zn=0;zn<sn;zn++){const mn=zn===rr?G7e(n,zn):tS(n,zn),Gn=zn===rr?G7e(a,zn):tS(a,zn);if(mn&&Gn){const Pn=c&3||_7e(n,zn)?void 0:cA(bv(mn)),qn=c&3||_7e(a,zn)?void 0:cA(bv(Gn));let ir=Pn&&qn&&!Jf(Pn)&&!Jf(qn)&&pM(mn,50331648)===pM(Gn,50331648)?Bve(qn,Pn,c&8|(vt?2:1),d,h,y,x,k):!(c&3)&&!vt&&x(mn,Gn,!1)||x(Gn,mn,d);if(ir&&c&8&&zn>=ah(n)&&zn<ah(a)&&x(mn,Gn,!1)&&(ir=0),!ir)return d&&h(m.Types_of_parameters_0_and_1_are_incompatible,Ki(gM(n,zn)),Ki(gM(a,zn))),0;xt&=ir}}if(!(c&4)){const zn=iee(a)?j:a.declaration&&oh(a.declaration)?qf(ds(a.declaration.symbol)):ys(a);if(zn===Qn||zn===j)return xt;const mn=iee(n)?j:n.declaration&&oh(n.declaration)?qf(ds(n.declaration.symbol)):ys(n),Gn=Jf(a);if(Gn){const Pn=Jf(n);if(Pn)xt&=Udt(Pn,Gn,d,h,x);else if(Jie(Gn))return d&&h(m.Signature_0_must_be_a_type_predicate,zh(n)),0}else xt&=c&1&&x(zn,mn,!1)||x(mn,zn,d),!xt&&d&&y&&y(mn,zn)}return xt}function Udt(n,a,c,d,h){if(n.kind!==a.kind)return c&&(d(m.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),d(m.Type_predicate_0_is_not_assignable_to_1,Bh(n),Bh(a))),0;if((n.kind===1||n.kind===3)&&n.parameterIndex!==a.parameterIndex)return c&&(d(m.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,a.parameterName),d(m.Type_predicate_0_is_not_assignable_to_1,Bh(n),Bh(a))),0;const y=n.type===a.type?-1:n.type&&a.type?h(n.type,a.type,c):0;return y===0&&c&&d(m.Type_predicate_0_is_not_assignable_to_1,Bh(n),Bh(a)),y}function Hdt(n,a){const c=q4(n),d=q4(a),h=ys(c),y=ys(d);return y===Qn||nh(y,h,Jd)||nh(h,y,Jd)?jdt(c,d,!0):!1}function Gve(n){return n!==an&&n.properties.length===0&&n.callSignatures.length===0&&n.constructSignatures.length===0&&n.indexInfos.length===0}function vv(n){return n.flags&524288?!Xd(n)&&Gve(__(n)):n.flags&67108864?!0:n.flags&1048576?St(n.types,vv):n.flags&2097152?Bn(n.types,vv):!1}function Jh(n){return!!(zr(n)&16&&(n.members&&Gve(n)||n.symbol&&n.symbol.flags&2048&&Ob(n.symbol).size===0))}function qdt(n){if(Y&&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&&St(a,Jh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function aM(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function y6e(n){return n.flags&524288&&!Xd(n)&&As(n).length===0&&yd(n).length===1&&!!Rg(n,ke)||n.flags&3145728&&Bn(n.types,y6e)||!1}function Vve(n,a,c){const d=n.flags&8?Md(n):n,h=a.flags&8?Md(a):a;if(d===h)return!0;if(d.escapedName!==h.escapedName||!(d.flags&256)||!(h.flags&256))return!1;const y=Ia(d)+","+Ia(h),x=ay.get(y);if(x!==void 0&&!(!(x&4)&&x&2&&c))return!!(x&1);const k=_r(h);for(const z of As(_r(d)))if(z.flags&8){const K=Sa(k,z.escapedName);if(!K||!(K.flags&8))return c?(c(m.Property_0_is_missing_in_type_1,Il(z),Kn(nl(h),void 0,64)),ay.set(y,6)):ay.set(y,2),!1;const ne=JD(gl(z,306)),Te=JD(gl(K,306));if(ne!==Te){const ve=typeof ne=="string",Ge=typeof Te=="string";if(ne!==void 0&&Te!==void 0){if(!c)ay.set(y,2);else{const vt=ve?`"${ag(ne)}"`:ne,xt=Ge?`"${ag(Te)}"`:Te;c(m.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,Il(h),Il(K),xt,vt),ay.set(y,6)}return!1}if(ve||Ge){if(!c)ay.set(y,2);else{const vt=ne!=null?ne:Te;N.assert(typeof vt=="string");const xt=`"${ag(vt)}"`;c(m.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,Il(h),Il(K),xt),ay.set(y,6)}return!1}}}return ay.set(y,1),!0}function n8(n,a,c,d){const h=n.flags,y=a.flags;return y&1||h&131072||n===Dt||y&2&&!(c===Bf&&h&1)?!0:y&131072?!1:!!(h&402653316&&y&4||h&128&&h&1024&&y&128&&!(y&1024)&&n.value===a.value||h&296&&y&8||h&256&&h&1024&&y&256&&!(y&1024)&&n.value===a.value||h&2112&&y&64||h&528&&y&16||h&12288&&y&4096||h&32&&y&32&&n.symbol.escapedName===a.symbol.escapedName&&Vve(n.symbol,a.symbol,d)||h&1024&&y&1024&&(h&1048576&&y&1048576&&Vve(n.symbol,a.symbol,d)||h&2944&&y&2944&&n.value===a.value&&Vve(n.symbol,a.symbol,d))||h&32768&&(!Y&&!(y&3145728)||y&49152)||h&65536&&(!Y&&!(y&3145728)||y&65536)||h&524288&&y&67108864&&!(c===Bf&&Jh(n)&&!(zr(n)&8192))||(c===Jd||c===Pp)&&(h&1||h&8&&(y&32||y&256&&y&1024)||h&256&&!(h&1024)&&(y&32||y&256&&y&1024&&n.value===a.value)||qdt(a)))}function nh(n,a,c){if(KE(n)&&(n=n.regularType),KE(a)&&(a=a.regularType),n===a)return!0;if(c!==lp){if(c===Pp&&!(a.flags&131072)&&n8(a,n,c)||n8(n,a,c))return!0}else if(!((n.flags|a.flags)&61865984)){if(n.flags!==a.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&a.flags&524288){const d=c.get(Nee(n,a,0,c,!1));if(d!==void 0)return!!(d&1)}return n.flags&469499904||a.flags&469499904?Xf(n,a,c,void 0):!1}function b6e(n,a){return zr(n)&2048&&Fye(a.escapedName)}function Xz(n,a){for(;;){const c=KE(n)?n.regularType:Hb(n)?Kdt(n,a):zr(n)&4?n.node?_y(n.target,$s(n)):Xve(n)||n:n.flags&3145728?Jdt(n,a):n.flags&33554432?a?n.baseType:sve(n):n.flags&25165824?hv(n,a):n;if(c===n)return c;n=c}}function Jdt(n,a){const c=h_(n);if(c!==n)return c;if(n.flags&2097152&&St(n.types,Jh)){const d=mo(n.types,h=>Xz(h,a));if(d!==n.types)return Ta(d)}return n}function Kdt(n,a){const c=qE(n),d=mo(c,h=>h.flags&25165824?hv(h,a):h);return c!==d?vve(n.target,d):n}function Xf(n,a,c,d,h,y,x){var k;let z,K,ne,Te,ve,Ge,vt=0,xt=0,cn=0,sn=0,rr=!1,zn=0,mn=0,Gn,Pn,qn=16e6-c.size>>3;N.assert(c!==lp||!d,"no error reporting in identity checking");const Hn=xr(n,a,3,!!d,h);if(Pn&&Vo(),rr){const tt=Nee(n,a,0,c,!1);c.set(tt,6),(k=ur)==null||k.instant(ur.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:xt,targetDepth:cn});const Et=qn<=0?m.Excessive_complexity_comparing_types_0_and_1:m.Excessive_stack_depth_comparing_types_0_and_1,rn=Xe(d||C,Et,Kn(n),Kn(a));x&&(x.errors||(x.errors=[])).push(rn)}else if(z){if(y){const rn=y();rn&&(Zoe(rn,z),z=rn)}let tt;if(h&&d&&!Hn&&n.symbol){const rn=eo(n.symbol);if(rn.originatingImport&&!Gp(rn.originatingImport)&&Xf(_r(rn.target),a,c,void 0)){const Mr=Fr(rn.originatingImport,m.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);tt=Rn(tt,Mr)}}const Et=zg(Jn(d),d,z,tt);K&&Fa(Et,...K),x&&(x.errors||(x.errors=[])).push(Et),(!x||!x.skipLogging)&&cs.add(Et)}return d&&x&&x.skipLogging&&Hn===0&&N.assert(!!x.errors,"missed opportunity to interact with error."),Hn!==0;function ir(tt){z=tt.errorInfo,Gn=tt.lastSkippedInfo,Pn=tt.incompatibleStack,zn=tt.overrideNextErrorInfo,mn=tt.skipParentCounter,K=tt.relatedInfo}function vo(){return{errorInfo:z,lastSkippedInfo:Gn,incompatibleStack:Pn==null?void 0:Pn.slice(),overrideNextErrorInfo:zn,skipParentCounter:mn,relatedInfo:K==null?void 0:K.slice()}}function yo(tt,...Et){zn++,Gn=void 0,(Pn||(Pn=[])).push([tt,...Et])}function Vo(){const tt=Pn||[];Pn=void 0;const Et=Gn;if(Gn=void 0,tt.length===1){So(...tt[0]),Et&&mp(void 0,...Et);return}let rn="";const Zn=[];for(;tt.length;){const[Mr,...An]=tt.pop();switch(Mr.code){case m.Types_of_property_0_are_incompatible.code:{rn.indexOf("new ")===0&&(rn=`(${rn})`);const Tr=""+An[0];rn.length===0?rn=`${Tr}`:tf(Tr,ps(V))?rn=`${rn}.${Tr}`:Tr[0]==="["&&Tr[Tr.length-1]==="]"?rn=`${rn}${Tr}`:rn=`${rn}[${Tr}]`;break}case m.Call_signature_return_types_0_and_1_are_incompatible.code:case m.Construct_signature_return_types_0_and_1_are_incompatible.code:case m.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(rn.length===0){let Tr=Mr;Mr.code===m.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?Tr=m.Call_signature_return_types_0_and_1_are_incompatible:Mr.code===m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(Tr=m.Construct_signature_return_types_0_and_1_are_incompatible),Zn.unshift([Tr,An[0],An[1]])}else{const Tr=Mr.code===m.Construct_signature_return_types_0_and_1_are_incompatible.code||Mr.code===m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Ur=Mr.code===m.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Mr.code===m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";rn=`${Tr}${rn}(${Ur})`}break}case m.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Zn.unshift([m.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,An[0],An[1]]);break}case m.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Zn.unshift([m.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,An[0],An[1],An[2]]);break}default:return N.fail(`Unhandled Diagnostic: ${Mr.code}`)}}rn?So(rn[rn.length-1]===")"?m.The_types_returned_by_0_are_incompatible_between_these_types:m.The_types_of_0_are_incompatible_between_these_types,rn):Zn.shift();for(const[Mr,...An]of Zn){const Tr=Mr.elidedInCompatabilityPyramid;Mr.elidedInCompatabilityPyramid=!1,So(Mr,...An),Mr.elidedInCompatabilityPyramid=Tr}Et&&mp(void 0,...Et)}function So(tt,...Et){N.assert(!!d),Pn&&Vo(),!tt.elidedInCompatabilityPyramid&&(mn===0?z=jo(z,tt,...Et):mn--)}function kc(tt,...Et){So(tt,...Et),mn++}function $f(tt){N.assert(!!z),K?K.push(tt):K=[tt]}function mp(tt,Et,rn){Pn&&Vo();const[Zn,Mr]=vx(Et,rn);let An=Et,Tr=Zn;if(r8(Et)&&!jve(rn)&&(An=yv(Et),N.assert(!Aa(An,rn),"generalized source shouldn't be assignable"),Tr=Rb(An)),(rn.flags&8388608&&!(Et.flags&8388608)?rn.objectType.flags:rn.flags)&262144&&rn!==pe&&rn!==Z){const Gi=ju(rn);let Bo;Gi&&(Aa(An,Gi)||(Bo=Aa(Et,Gi)))?So(m._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Bo?Zn:Tr,Mr,Kn(Gi)):(z=void 0,So(m._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Mr,Tr))}if(tt)tt===m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Le&&E6e(Et,rn).length&&(tt=m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(c===Pp)tt=m.Type_0_is_not_comparable_to_type_1;else if(Zn===Mr)tt=m.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Le&&E6e(Et,rn).length)tt=m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(Et.flags&128&&rn.flags&1048576){const Gi=r_t(Et,rn);if(Gi){So(m.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,Tr,Mr,Kn(Gi));return}}tt=m.Type_0_is_not_assignable_to_type_1}So(tt,Tr,Mr)}function Wn(tt,Et){const rn=Db(tt.symbol)?Kn(tt,tt.symbol.valueDeclaration):Kn(tt),Zn=Db(Et.symbol)?Kn(Et,Et.symbol.valueDeclaration):Kn(Et);(sc===tt&&ke===Et||Ic===tt&&Tt===Et||ml===tt&&ai===Et||S8e()===tt&&li===Et)&&So(m._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Zn,rn)}function nr(tt,Et,rn){return Ha(tt)?tt.target.readonly&&Zz(Et)?(rn&&So(m.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Kn(tt),Kn(Et)),!1):h1(Et):lM(tt)&&Zz(Et)?(rn&&So(m.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Kn(tt),Kn(Et)),!1):Ha(Et)?Yf(tt):!0}function po(tt,Et,rn){return xr(tt,Et,3,rn)}function xr(tt,Et,rn=3,Zn=!1,Mr,An=0){if(tt===Et)return-1;if(tt.flags&524288&&Et.flags&402784252)return c===Pp&&!(Et.flags&131072)&&n8(Et,tt,c)||n8(tt,Et,c,Zn?So:void 0)?-1:(Zn&&ko(tt,Et,tt,Et,Mr),0);const Tr=Xz(tt,!1);let Ur=Xz(Et,!0);if(Tr===Ur)return-1;if(c===lp)return Tr.flags!==Ur.flags?0:Tr.flags&67358815?-1:(ms(Tr,Ur),xi(Tr,Ur,!1,0,rn));if(Tr.flags&262144&&HT(Tr)===Ur)return-1;if(Tr.flags&470302716&&Ur.flags&1048576){const Gi=Ur.types,Bo=Gi.length===2&&Gi[0].flags&98304?Gi[1]:Gi.length===3&&Gi[0].flags&98304&&Gi[1].flags&98304?Gi[2]:void 0;if(Bo&&!(Bo.flags&98304)&&(Ur=Xz(Bo,!0),Tr===Ur))return-1}if(c===Pp&&!(Ur.flags&131072)&&n8(Ur,Tr,c)||n8(Tr,Ur,c,Zn?So:void 0))return-1;if(Tr.flags&469499904||Ur.flags&469499904){if(!(An&2)&&y1(Tr)&&zr(Tr)&8192&&Hu(Tr,Ur,Zn))return Zn&&mp(Mr,Tr,Et.aliasSymbol?Et:Ur),0;const Bo=(c!==Pp||v_(Tr))&&!(An&2)&&Tr.flags&405405692&&Tr!==Me&&Ur.flags&2621440&&T6e(Ur)&&(As(Tr).length>0||zte(Tr)),ha=!!(zr(Tr)&2048);if(Bo&&!Ydt(Tr,Ur,ha)){if(Zn){const Fo=Kn(tt.aliasSymbol?tt:Tr),Na=Kn(Et.aliasSymbol?Et:Ur),zs=$o(Tr,0),bs=$o(Tr,1);zs.length>0&&xr(ys(zs[0]),Ur,1,!1)||bs.length>0&&xr(ys(bs[0]),Ur,1,!1)?So(m.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Fo,Na):So(m.Type_0_has_no_properties_in_common_with_type_1,Fo,Na)}return 0}ms(Tr,Ur);const Ei=Tr.flags&1048576&&Tr.types.length<4&&!(Ur.flags&1048576)||Ur.flags&1048576&&Ur.types.length<4&&!(Tr.flags&469499904)?Od(Tr,Ur,Zn,An):xi(Tr,Ur,Zn,An,rn);if(Ei)return Ei}return Zn&&ko(tt,Et,Tr,Ur,Mr),0}function ko(tt,Et,rn,Zn,Mr){var An,Tr;const Ur=!!Xve(tt),Gi=!!Xve(Et);rn=tt.aliasSymbol||Ur?tt:rn,Zn=Et.aliasSymbol||Gi?Et:Zn;let Bo=zn>0;if(Bo&&zn--,rn.flags&524288&&Zn.flags&524288){const ha=z;nr(rn,Zn,!0),z!==ha&&(Bo=!!z)}if(rn.flags&524288&&Zn.flags&402784252)Wn(rn,Zn);else if(rn.symbol&&rn.flags&524288&&Me===rn)So(m.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(zr(rn)&2048&&Zn.flags&2097152){const ha=Zn.types,ga=eS(sf.IntrinsicAttributes,d),Ei=eS(sf.IntrinsicClassAttributes,d);if(!Jt(ga)&&!Jt(Ei)&&(Mn(ha,ga)||Mn(ha,Ei)))return}else z=qge(z,Et);if(!Mr&&Bo){Gn=[rn,Zn];return}if(mp(Mr,rn,Zn),rn.flags&262144&&((Tr=(An=rn.symbol)==null?void 0:An.declarations)==null?void 0:Tr[0])&&!HT(rn)){const ha=kve(rn);if(ha.constraint=fo(Zn,XE(rn,ha)),Lz(ha)){const ga=Kn(Zn,rn.symbol.declarations[0]);$f(Fr(rn.symbol.declarations[0],m.This_type_parameter_might_need_an_extends_0_constraint,ga))}}}function ms(tt,Et){if(!!ur&&tt.flags&3145728&&Et.flags&3145728){const rn=tt,Zn=Et;if(rn.objectFlags&Zn.objectFlags&32768)return;const Mr=rn.types.length,An=Zn.types.length;Mr*An>1e6&&ur.instant(ur.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:tt.id,sourceSize:Mr,targetId:Et.id,targetSize:An,pos:d==null?void 0:d.pos,end:d==null?void 0:d.end})}}function Cs(tt,Et){return ei(ad(tt,(Zn,Mr)=>{var An;Mr=wd(Mr);const Tr=Mr.flags&3145728?kz(Mr,Et):u1(Mr,Et),Ur=Tr&&_r(Tr)||((An=Tx(Mr,Et))==null?void 0:An.type)||We;return Rn(Zn,Ur)},void 0)||et)}function Hu(tt,Et,rn){var Zn;if(!hB(Et)||!de&&zr(Et)&4096)return!1;const Mr=!!(zr(tt)&2048);if((c===Jd||c===Pp)&&(fM(Me,Et)||!Mr&&vv(Et)))return!1;let An=Et,Tr;Et.flags&1048576&&(An=BWe(tt,Et,xr)||a0t(Et),Tr=An.flags&1048576?An.types:[An]);for(const Ur of As(tt))if(qa(Ur,tt.symbol)&&!b6e(tt,Ur)){if(!Gye(An,Ur.escapedName,Mr)){if(rn){const Gi=vc(An,hB);if(!d)return N.fail();if(cE(d)||dd(d)||dd(d.parent)){Ur.valueDeclaration&&F_(Ur.valueDeclaration)&&Jn(d)===Jn(Ur.valueDeclaration.name)&&(d=Ur.valueDeclaration.name);const Bo=Ti(Ur),ha=c7e(Bo,Gi),ga=ha?Ti(ha):void 0;ga?So(m.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Bo,Kn(Gi),ga):So(m.Property_0_does_not_exist_on_type_1,Bo,Kn(Gi))}else{const Bo=((Zn=tt.symbol)==null?void 0:Zn.declarations)&&eu(tt.symbol.declarations);let ha;if(Ur.valueDeclaration&&jn(Ur.valueDeclaration,ga=>ga===Bo)&&Jn(Bo)===Jn(d)){const ga=Ur.valueDeclaration;N.assertNode(ga,Fg);const Ei=ga.name;d=Ei,Ue(Ei)&&(ha=Yye(Ei,Gi))}ha!==void 0?kc(m.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Ti(Ur),Kn(Gi),ha):kc(m.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ti(Ur),Kn(Gi))}}return!0}if(Tr&&!xr(_r(Ur),Cs(Tr,Ur.escapedName),3,rn))return rn&&yo(m.Types_of_property_0_are_incompatible,Ti(Ur)),!0}return!1}function qa(tt,Et){return tt.valueDeclaration&&Et.valueDeclaration&&tt.valueDeclaration.parent===Et.valueDeclaration}function Od(tt,Et,rn,Zn){if(tt.flags&1048576){if(Et.flags&1048576){const Mr=tt.origin;if(Mr&&Mr.flags&2097152&&Et.aliasSymbol&&Mn(Mr.types,Et))return-1;const An=Et.origin;if(An&&An.flags&1048576&&tt.aliasSymbol&&Mn(An.types,tt))return-1}return c===Pp?xe(tt,Et,rn&&!(tt.flags&402784252),Zn):wr(tt,Et,rn&&!(tt.flags&402784252),Zn)}if(Et.flags&1048576)return Al(a8(tt),Et,rn&&!(tt.flags&402784252)&&!(Et.flags&402784252),Zn);if(Et.flags&2097152)return ct(tt,Et,rn,2);if(c===Pp&&Et.flags&402784252){const Mr=mo(tt.types,An=>An.flags&465829888?ju(An)||pn:An);if(Mr!==tt.types){if(tt=Ta(Mr),tt.flags&131072)return 0;if(!(tt.flags&2097152))return xr(tt,Et,1,!1)||xr(Et,tt,1,!1)}}return xe(tt,Et,!1,1)}function jl(tt,Et){let rn=-1;const Zn=tt.types;for(const Mr of Zn){const An=Al(Mr,Et,!1,0);if(!An)return 0;rn&=An}return rn}function Al(tt,Et,rn,Zn){const Mr=Et.types;if(Et.flags&1048576){if(_v(Mr,tt))return-1;if(c!==Pp&&zr(Et)&32768&&!(tt.flags&1024)&&(tt.flags&2688||(c===kh||c===Bf)&&tt.flags&256)){const Tr=tt===tt.regularType?tt.freshType:tt.regularType,Ur=tt.flags&128?ke:tt.flags&256?Tt:tt.flags&2048?kt:void 0;return Ur&&_v(Mr,Ur)||Tr&&_v(Mr,Tr)?-1:0}const An=Q6e(Et,tt);if(An){const Tr=xr(tt,An,2,!1,void 0,Zn);if(Tr)return Tr}}for(const An of Mr){const Tr=xr(tt,An,2,!1,void 0,Zn);if(Tr)return Tr}if(rn){const An=S6e(tt,Et,xr);An&&xr(tt,An,2,!0,void 0,Zn)}return 0}function ct(tt,Et,rn,Zn){let Mr=-1;const An=Et.types;for(const Tr of An){const Ur=xr(tt,Tr,2,rn,void 0,Zn);if(!Ur)return 0;Mr&=Ur}return Mr}function xe(tt,Et,rn,Zn){const Mr=tt.types;if(tt.flags&1048576&&_v(Mr,Et))return-1;const An=Mr.length;for(let Tr=0;Tr<An;Tr++){const Ur=xr(Mr[Tr],Et,1,rn&&Tr===An-1,void 0,Zn);if(Ur)return Ur}return 0}function Ln(tt,Et){return tt.flags&1048576&&Et.flags&1048576&&!(tt.types[0].flags&32768)&&Et.types[0].flags&32768?mM(Et,-32769):Et}function wr(tt,Et,rn,Zn){let Mr=-1;const An=tt.types,Tr=Ln(tt,Et);for(let Ur=0;Ur<An.length;Ur++){const Gi=An[Ur];if(Tr.flags&1048576&&An.length>=Tr.types.length&&An.length%Tr.types.length===0){const ha=xr(Gi,Tr.types[Ur%Tr.types.length],3,!1,void 0,Zn);if(ha){Mr&=ha;continue}}const Bo=xr(Gi,Et,1,rn,void 0,Zn);if(!Bo)return 0;Mr&=Bo}return Mr}function pi(tt=et,Et=et,rn=et,Zn,Mr){if(tt.length!==Et.length&&c===lp)return 0;const An=tt.length<=Et.length?tt.length:Et.length;let Tr=-1;for(let Ur=0;Ur<An;Ur++){const Gi=Ur<rn.length?rn[Ur]:1,Bo=Gi&7;if(Bo!==4){const ha=tt[Ur],ga=Et[Ur];let Ei=-1;if(Gi&8?Ei=c===lp?xr(ha,ga,3,!1):e8(ha,ga):Bo===1?Ei=xr(ha,ga,3,Zn,void 0,Mr):Bo===2?Ei=xr(ga,ha,3,Zn,void 0,Mr):Bo===3?(Ei=xr(ga,ha,3,!1),Ei||(Ei=xr(ha,ga,3,Zn,void 0,Mr))):(Ei=xr(ha,ga,3,Zn,void 0,Mr),Ei&&(Ei&=xr(ga,ha,3,Zn,void 0,Mr))),!Ei)return 0;Tr&=Ei}}return Tr}function xi(tt,Et,rn,Zn,Mr){var An,Tr,Ur;if(rr)return 0;const Gi=Nee(tt,Et,Zn,c,!1),Bo=c.get(Gi);if(Bo!==void 0&&!(rn&&Bo&2&&!(Bo&4))){if(da){const bs=Bo&24;bs&8&&fo(tt,Ps),bs&16&&fo(tt,mu)}return Bo&1?-1:0}if(qn<=0)return rr=!0,0;if(!ne)ne=[],Te=new Set,ve=[],Ge=[];else{if(Te.has(Gi))return 3;const bs=Gi.startsWith("*")?Nee(tt,Et,Zn,c,!0):void 0;if(bs&&Te.has(bs))return 3;if(xt===100||cn===100)return rr=!0,0}const ha=vt;ne[vt]=Gi,Te.add(Gi),vt++;const ga=sn;Mr&1&&(ve[xt]=tt,xt++,!(sn&1)&&sM(tt,ve,xt)&&(sn|=1)),Mr&2&&(Ge[cn]=Et,cn++,!(sn&2)&&sM(Et,Ge,cn)&&(sn|=2));let Ei,Fo=0;da&&(Ei=da,da=bs=>(Fo|=bs?16:8,Ei(bs)));let Na;return sn===3?((An=ur)==null||An.instant(ur.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:tt.id,sourceIdStack:ve.map(bs=>bs.id),targetId:Et.id,targetIdStack:Ge.map(bs=>bs.id),depth:xt,targetDepth:cn}),Na=3):((Tr=ur)==null||Tr.push(ur.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:tt.id,targetId:Et.id}),Na=Ri(tt,Et,rn,Zn),(Ur=ur)==null||Ur.pop()),da&&(da=Ei),Mr&1&&xt--,Mr&2&&cn--,sn=ga,Na?(Na===-1||xt===0&&cn===0)&&zs(Na===-1||Na===3):(c.set(Gi,(rn?4:0)|2|Fo),qn--,zs(!1)),Na;function zs(bs){for(let wc=ha;wc<vt;wc++)Te.delete(ne[wc]),bs&&(c.set(ne[wc],1|Fo),qn--);vt=ha}}function Ri(tt,Et,rn,Zn){const Mr=vo();let An=Pr(tt,Et,rn,Zn,Mr);if(c!==lp){if(!An&&(tt.flags&2097152||tt.flags&262144&&Et.flags&1048576)){const Tr=Rct(tt.flags&2097152?tt.types:[tt],!!(Et.flags&1048576));Tr&&fp(Tr,Ur=>Ur!==tt)&&(An=xr(Tr,Et,1,!1,void 0,Zn))}An&&!(Zn&2)&&Et.flags&2097152&&!$T(Et)&&tt.flags&2621440?(An&=wi(tt,Et,rn,void 0,!1,0),An&&y1(tt)&&zr(tt)&8192&&(An&=Ws(tt,Et,!1,rn,0))):An&&hee(Et)&&!h1(Et)&&tt.flags&2097152&&wd(tt).flags&3670016&&!St(tt.types,Tr=>Tr===Et||!!(zr(Tr)&262144))&&(An&=wi(tt,Et,rn,void 0,!0,Zn))}return An&&ir(Mr),An}function jr(tt,Et){const rn=wd(UT(Et)),Zn=[];return Fge(rn,8576,!1,Mr=>void Zn.push(fo(tt,$4(Et.mapper,m_(Et),Mr)))),ei(Zn)}function Pr(tt,Et,rn,Zn,Mr){let An,Tr,Ur=!1,Gi=tt.flags;const Bo=Et.flags;if(c===lp){if(Gi&3145728){let Ei=jl(tt,Et);return Ei&&(Ei&=jl(Et,tt)),Ei}if(Gi&4194304)return xr(tt.type,Et.type,3,!1);if(Gi&8388608&&(An=xr(tt.objectType,Et.objectType,3,!1))&&(An&=xr(tt.indexType,Et.indexType,3,!1))||Gi&16777216&&tt.root.isDistributive===Et.root.isDistributive&&(An=xr(tt.checkType,Et.checkType,3,!1))&&(An&=xr(tt.extendsType,Et.extendsType,3,!1))&&(An&=xr(f1(tt),f1(Et),3,!1))&&(An&=xr(m1(tt),m1(Et),3,!1))||Gi&33554432&&(An=xr(tt.baseType,Et.baseType,3,!1))&&(An&=xr(tt.constraint,Et.constraint,3,!1)))return An;if(!(Gi&524288))return 0}else if(Gi&3145728||Bo&3145728){if(An=Od(tt,Et,rn,Zn))return An;if(!(Gi&465829888||Gi&524288&&Bo&1048576||Gi&2097152&&Bo&467402752))return 0}if(Gi&17301504&&tt.aliasSymbol&&tt.aliasTypeArguments&&tt.aliasSymbol===Et.aliasSymbol&&!(Ree(tt)||Ree(Et))){const Ei=A6e(tt.aliasSymbol);if(Ei===et)return 1;const Fo=eo(tt.aliasSymbol).typeParameters,Na=Uh(Fo),zs=Fb(tt.aliasTypeArguments,Fo,Na,dr(tt.aliasSymbol.valueDeclaration)),bs=Fb(Et.aliasTypeArguments,Fo,Na,dr(tt.aliasSymbol.valueDeclaration)),wc=ga(zs,bs,Ei,Zn);if(wc!==void 0)return wc}if(L6e(tt)&&!tt.target.readonly&&(An=xr($s(tt)[0],Et,1))||L6e(Et)&&(Et.target.readonly||Zz(ju(tt)||tt))&&(An=xr(tt,$s(Et)[0],2)))return An;if(Bo&262144){if(zr(tt)&32&&!tt.declaration.nameType&&xr(th(Et),Ef(tt),3)&&!(jh(tt)&4)){const Ei=fv(tt),Fo=kp(Et,m_(tt));if(An=xr(Ei,Fo,3,rn))return An}if(c===Pp&&Gi&262144){let Ei=kd(tt);if(Ei)for(;Ei&&qm(Ei,Fo=>!!(Fo.flags&262144));){if(An=xr(Ei,Et,1,!1))return An;Ei=kd(Ei)}return 0}}else if(Bo&4194304){const Ei=Et.type;if(Gi&4194304&&(An=xr(Ei,tt.type,3,!1)))return An;if(Ha(Ei)){if(An=xr(tt,P8e(Ei),2,rn))return An}else{const Fo=Bge(Ei);if(Fo){if(xr(tt,th(Fo,Et.indexFlags|4),2,rn)===-1)return-1}else if(Xd(Ei)){const Na=my(Ei),zs=Ef(Ei);let bs;if(Na&&DD(Ei)){const wc=jr(Na,Ei);bs=ei([wc,Na])}else bs=Na||zs;if(xr(tt,bs,2,rn)===-1)return-1}}}else if(Bo&8388608){if(Gi&8388608){if((An=xr(tt.objectType,Et.objectType,3,rn))&&(An&=xr(tt.indexType,Et.indexType,3,rn)),An)return An;rn&&(Tr=z)}if(c===Jd||c===Pp){const Ei=Et.objectType,Fo=Et.indexType,Na=ju(Ei)||Ei,zs=ju(Fo)||Fo;if(!$T(Na)&&!QT(zs)){const bs=4|(Na!==Ei?2:0),wc=Bb(Na,zs,bs);if(wc){if(rn&&Tr&&ir(Mr),An=xr(tt,wc,2,rn,void 0,Zn))return An;rn&&Tr&&z&&(z=ha([Tr])<=ha([z])?Tr:z)}}}rn&&(Tr=void 0)}else if(Xd(Et)&&c!==lp){const Ei=!!Et.declaration.nameType,Fo=fv(Et),Na=jh(Et);if(!(Na&8)){if(!Ei&&Fo.flags&8388608&&Fo.objectType===tt&&Fo.indexType===m_(Et))return-1;if(!Xd(tt)){const zs=Ei?my(Et):Ef(Et),bs=th(tt,2),wc=Na&4,Xh=wc?Cz(zs,bs):void 0;if(wc?!(Xh.flags&131072):xr(zs,bs,3)){const Tv=fv(Et),pA=m_(Et),fA=mM(Tv,-98305);if(!Ei&&fA.flags&8388608&&fA.indexType===pA){if(An=xr(tt,fA.objectType,2,rn))return An}else{const DM=Ei?Xh||zs:Xh?Ta([Xh,pA]):pA,E_=kp(tt,DM);if(An=xr(E_,Tv,3,rn))return An}}Tr=z,ir(Mr)}}}else if(Bo&16777216){if(sM(Et,Ge,cn,10))return 3;const Ei=Et;if(!Ei.root.inferTypeParameters&&!cdt(Ei.root)&&!(tt.flags&16777216&&tt.root===Ei.root)){const Fo=!Aa(Z4(Ei.checkType),Z4(Ei.extendsType)),Na=!Fo&&Aa(eA(Ei.checkType),eA(Ei.extendsType));if((An=Fo?-1:xr(tt,f1(Ei),2,!1,void 0,Zn))&&(An&=Na?-1:xr(tt,m1(Ei),2,!1,void 0,Zn),An))return An}}else if(Bo&134217728){if(Gi&134217728){if(c===Pp)return Opt(tt,Et)?0:-1;fo(tt,mu)}if(Uee(tt,Et))return-1}else if(Et.flags&268435456&&!(tt.flags&268435456)&&jee(tt,Et))return-1;if(Gi&8650752){if(!(Gi&8388608&&Bo&8388608)){const Ei=HT(tt)||pn;if(An=xr(Ei,Et,1,!1,void 0,Zn))return An;if(An=xr(Xp(Ei,tt),Et,1,rn&&Ei!==pn&&!(Bo&Gi&262144),void 0,Zn))return An;if(Uge(tt)){const Fo=HT(tt.indexType);if(Fo&&(An=xr(kp(tt.objectType,Fo),Et,1,rn)))return An}}}else if(Gi&4194304){const Ei=Ave(tt.type,tt.indexFlags)&&zr(tt.type)&32;if(An=xr(ba,Et,1,rn&&!Ei))return An;if(Ei){const Fo=tt.type,Na=my(Fo),zs=Na&&DD(Fo)?jr(Na,Fo):Na||Ef(Fo);if(An=xr(zs,Et,1,rn))return An}}else if(Gi&134217728&&!(Bo&524288)){if(!(Bo&134217728)){const Ei=ju(tt);if(Ei&&Ei!==tt&&(An=xr(Ei,Et,1,rn)))return An}}else if(Gi&268435456)if(Bo&268435456){if(tt.symbol!==Et.symbol)return 0;if(An=xr(tt.type,Et.type,3,rn))return An}else{const Ei=ju(tt);if(Ei&&(An=xr(Ei,Et,1,rn)))return An}else if(Gi&16777216){if(sM(tt,ve,xt,10))return 3;if(Bo&16777216){const Na=tt.root.inferTypeParameters;let zs=tt.extendsType,bs;if(Na){const wc=s8(Na,void 0,0,po);Ev(wc.inferences,Et.extendsType,zs,1536),zs=fo(zs,wc.mapper),bs=wc.mapper}if(gv(zs,Et.extendsType)&&(xr(tt.checkType,Et.checkType,3)||xr(Et.checkType,tt.checkType,3))&&((An=xr(fo(f1(tt),bs),f1(Et),3,rn))&&(An&=xr(m1(tt),m1(Et),3,rn)),An))return An}const Ei=Gge(tt);if(Ei&&(An=xr(Ei,Et,1,rn)))return An;const Fo=!(Bo&16777216)&&Lz(tt)?U4e(tt):void 0;if(Fo&&(ir(Mr),An=xr(Fo,Et,1,rn)))return An}else{if(c!==kh&&c!==Bf&&bct(Et)&&vv(tt))return-1;if(Xd(Et))return Xd(tt)&&(An=ft(tt,Et,rn))?An:0;const Ei=!!(Gi&402784252);if(c!==lp)tt=wd(tt),Gi=tt.flags;else if(Xd(tt))return 0;if(zr(tt)&4&&zr(Et)&4&&tt.target===Et.target&&!Ha(tt)&&!(Ree(tt)||Ree(Et))){if(Mee(tt))return-1;const Fo=Hve(tt.target);if(Fo===et)return 1;const Na=ga($s(tt),$s(Et),Fo,Zn);if(Na!==void 0)return Na}else{if(lM(Et)?fp(tt,h1):Yf(Et)&&fp(tt,Fo=>Ha(Fo)&&!Fo.target.readonly))return c!==lp?xr(d1(tt,Tt)||j,d1(Et,Tt)||j,3,rn):0;if(Hb(tt)&&Ha(Et)&&!Hb(Et)){const Fo=mv(tt);if(Fo!==tt)return xr(Fo,Et,1,rn)}else if((c===kh||c===Bf)&&vv(Et)&&zr(Et)&8192&&!vv(tt))return 0}if(Gi&2621440&&Bo&524288){const Fo=rn&&z===Mr.errorInfo&&!Ei;if(An=wi(tt,Et,Fo,void 0,!1,Zn),An&&(An&=oa(tt,Et,0,Fo,Zn),An&&(An&=oa(tt,Et,1,Fo,Zn),An&&(An&=Ws(tt,Et,Ei,Fo,Zn)))),Ur&&An)z=Tr||z||Mr.errorInfo;else if(An)return An}if(Gi&2621440&&Bo&1048576){const Fo=mM(Et,36175872);if(Fo.flags&1048576){const Na=wt(tt,Fo);if(Na)return Na}}}return 0;function ha(Ei){return Ei?ad(Ei,(Fo,Na)=>Fo+1+ha(Na.next),0):0}function ga(Ei,Fo,Na,zs){if(An=pi(Ei,Fo,Na,rn,zs))return An;if(St(Na,wc=>!!(wc&24))){Tr=void 0,ir(Mr);return}const bs=Fo&&$dt(Fo,Na);if(Ur=!bs,Na!==et&&!bs){if(Ur&&!(rn&&St(Na,wc=>(wc&7)===0)))return 0;Tr=z,ir(Mr)}}}function ft(tt,Et,rn){if(c===Pp||(c===lp?jh(tt)===jh(Et):zge(tt)<=zge(Et))){let Mr;const An=Ef(Et),Tr=fo(Ef(tt),zge(tt)<0?Ps:mu);if(Mr=xr(An,Tr,3,rn)){const Ur=wp([m_(tt)],[m_(Et)]);if(fo(my(tt),Ur)===fo(my(Et),Ur))return Mr&xr(fo(fv(tt),Ur),fv(Et),3,rn)}}return 0}function wt(tt,Et){var rn;const Zn=As(tt),Mr=$6e(Zn,Et);if(!Mr)return 0;let An=1;for(const ga of Mr)if(An*=uft(kb(ga)),An>25)return(rn=ur)==null||rn.instant(ur.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:tt.id,targetId:Et.id,numCombinations:An}),0;const Tr=new Array(Mr.length),Ur=new Set;for(let ga=0;ga<Mr.length;ga++){const Ei=Mr[ga],Fo=kb(Ei);Tr[ga]=Fo.flags&1048576?Fo.types:[Fo],Ur.add(Ei.escapedName)}const Gi=ere(Tr),Bo=[];for(const ga of Gi){let Ei=!1;e:for(const Fo of Et.types){for(let Na=0;Na<Mr.length;Na++){const zs=Mr[Na],bs=Sa(Fo,zs.escapedName);if(!bs)continue e;if(zs===bs)continue;if(!_n(tt,Et,zs,bs,Xh=>ga[Na],!1,0,Y||c===Pp))continue e}Tf(Bo,Fo,Mv),Ei=!0}if(!Ei)return 0}let ha=-1;for(const ga of Bo)if(ha&=wi(tt,ga,!1,Ur,!1,0),ha&&(ha&=oa(tt,ga,0,!1,0),ha&&(ha&=oa(tt,ga,1,!1,0),ha&&!(Ha(tt)&&Ha(ga))&&(ha&=Ws(tt,ga,!1,!1,0)))),!ha)return ha;return ha}function dn(tt,Et){if(!Et||tt.length===0)return tt;let rn;for(let Zn=0;Zn<tt.length;Zn++)Et.has(tt[Zn].escapedName)?rn||(rn=tt.slice(0,Zn)):rn&&rn.push(tt[Zn]);return rn||tt}function Ut(tt,Et,rn,Zn,Mr){const An=Y&&!!(Cl(Et)&48),Tr=dp(kb(Et),!1,An),Ur=rn(tt);return xr(Ur,Tr,3,Zn,void 0,Mr)}function _n(tt,Et,rn,Zn,Mr,An,Tr,Ur){const Gi=Df(rn),Bo=Df(Zn);if(Gi&2||Bo&2){if(rn.valueDeclaration!==Zn.valueDeclaration)return An&&(Gi&2&&Bo&2?So(m.Types_have_separate_declarations_of_a_private_property_0,Ti(Zn)):So(m.Property_0_is_private_in_type_1_but_not_in_type_2,Ti(Zn),Kn(Gi&2?tt:Et),Kn(Gi&2?Et:tt))),0}else if(Bo&4){if(!npt(rn,Zn))return An&&So(m.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Ti(Zn),Kn(Dx(rn)||tt),Kn(Dx(Zn)||Et)),0}else if(Gi&4)return An&&So(m.Property_0_is_protected_in_type_1_but_public_in_type_2,Ti(Zn),Kn(tt),Kn(Et)),0;if(c===Bf&&b_(rn)&&!b_(Zn))return 0;const ha=Ut(rn,Zn,Mr,An,Tr);return ha?!Ur&&rn.flags&16777216&&Zn.flags&106500&&!(Zn.flags&16777216)?(An&&So(m.Property_0_is_optional_in_type_1_but_required_in_type_2,Ti(Zn),Kn(tt),Kn(Et)),0):ha:(An&&yo(m.Types_of_property_0_are_incompatible,Ti(Zn)),0)}function kn(tt,Et,rn,Zn){let Mr=!1;if(rn.valueDeclaration&&cd(rn.valueDeclaration)&&Qi(rn.valueDeclaration.name)&&tt.symbol&&tt.symbol.flags&32){const Tr=rn.valueDeclaration.name.escapedText,Ur=Ek(tt.symbol,Tr);if(Ur&&Sa(tt,Ur)){const Gi=O.getDeclarationName(tt.symbol.valueDeclaration),Bo=O.getDeclarationName(Et.symbol.valueDeclaration);So(m.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Fm(Tr),Fm(Gi.escapedText===""?sW:Gi),Fm(Bo.escapedText===""?sW:Bo));return}}const An=Go(sye(tt,Et,Zn,!1));if((!h||h.code!==m.Class_0_incorrectly_implements_interface_1.code&&h.code!==m.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(Mr=!0),An.length===1){const Tr=Ti(rn,void 0,0,20);So(m.Property_0_is_missing_in_type_1_but_required_in_type_2,Tr,...vx(tt,Et)),Pe(rn.declarations)&&$f(Fr(rn.declarations[0],m._0_is_declared_here,Tr)),Mr&&z&&zn++}else nr(tt,Et,!1)&&(An.length>5?So(m.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Kn(tt),Kn(Et),Wt(An.slice(0,4),Tr=>Ti(Tr)).join(", "),An.length-4):So(m.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Kn(tt),Kn(Et),Wt(An,Tr=>Ti(Tr)).join(", ")),Mr&&z&&zn++)}function wi(tt,Et,rn,Zn,Mr,An){if(c===lp)return hi(tt,Et,Zn);let Tr=-1;if(Ha(Et)){if(h1(tt)){if(!Et.target.readonly&&(lM(tt)||Ha(tt)&&tt.target.readonly))return 0;const ga=hy(tt),Ei=hy(Et),Fo=Ha(tt)?tt.target.combinedFlags&4:4,Na=Et.target.combinedFlags&4,zs=Ha(tt)?tt.target.minLength:0,bs=Et.target.minLength;if(!Fo&&ga<bs)return rn&&So(m.Source_has_0_element_s_but_target_requires_1,ga,bs),0;if(!Na&&Ei<zs)return rn&&So(m.Source_has_0_element_s_but_target_allows_only_1,zs,Ei),0;if(!Na&&(Fo||Ei<ga))return rn&&(zs<bs?So(m.Target_requires_0_element_s_but_source_may_have_fewer,bs):So(m.Target_allows_only_0_element_s_but_source_may_have_more,Ei)),0;const wc=$s(tt),Xh=$s(Et),Tv=Nut(Et.target,11),pA=K4(Et.target,11),fA=Et.target.hasRestElement;let DM=!!Zn;for(let E_=0;E_<ga;E_++){const Lx=Ha(tt)?tt.target.elementFlags[E_]:4,Km=ga-1-E_,Mt=fA&&E_>=Tv?Ei-1-Math.min(Km,pA):E_,Lr=Et.target.elementFlags[Mt];if(Lr&8&&!(Lx&8))return rn&&So(m.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Mt),0;if(Lx&8&&!(Lr&12))return rn&&So(m.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,E_,Mt),0;if(Lr&1&&!(Lx&1))return rn&&So(m.Source_provides_no_match_for_required_element_at_position_0_in_target,Mt),0;if(DM&&((Lx&12||Lr&12)&&(DM=!1),DM&&(Zn==null?void 0:Zn.has(""+E_))))continue;const fi=Jb(wc[E_],!!(Lx&Lr&2)),Kr=Xh[Mt],ci=Lx&8&&Lr&4?Uu(Kr):Jb(Kr,!!(Lr&2)),us=xr(fi,ci,3,rn,void 0,An);if(!us)return rn&&(Ei>1||ga>1)&&(fA&&E_>=Tv&&Km>=pA&&Tv!==ga-pA-1?yo(m.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Tv,ga-pA-1,Mt):yo(m.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,E_,Mt)),0;Tr&=us}return Tr}if(Et.target.combinedFlags&12)return 0}const Ur=(c===kh||c===Bf)&&!y1(tt)&&!Mee(tt)&&!Ha(tt),Gi=lye(tt,Et,Ur,!1);if(Gi)return rn&&wn(tt,Et)&&kn(tt,Et,Gi,Ur),0;if(y1(Et)){for(const ga of dn(As(tt),Zn))if(!u1(Et,ga.escapedName)&&!(_r(ga).flags&32768))return rn&&So(m.Property_0_does_not_exist_on_type_1,Ti(ga),Kn(Et)),0}const Bo=As(Et),ha=Ha(tt)&&Ha(Et);for(const ga of dn(Bo,Zn)){const Ei=ga.escapedName;if(!(ga.flags&4194304)&&(!ha||ug(Ei)||Ei==="length")&&(!Mr||ga.flags&16777216)){const Fo=Sa(tt,Ei);if(Fo&&Fo!==ga){const Na=_n(tt,Et,Fo,ga,kb,rn,An,c===Pp);if(!Na)return 0;Tr&=Na}}}return Tr}function hi(tt,Et,rn){if(!(tt.flags&524288&&Et.flags&524288))return 0;const Zn=dn(Wb(tt),rn),Mr=dn(Wb(Et),rn);if(Zn.length!==Mr.length)return 0;let An=-1;for(const Tr of Zn){const Ur=u1(Et,Tr.escapedName);if(!Ur)return 0;const Gi=Jve(Tr,Ur,xr);if(!Gi)return 0;An&=Gi}return An}function oa(tt,Et,rn,Zn,Mr){var An,Tr;if(c===lp)return ea(tt,Et,rn);if(Et===an||tt===an)return-1;const Ur=tt.symbol&&oh(tt.symbol.valueDeclaration),Gi=Et.symbol&&oh(Et.symbol.valueDeclaration),Bo=$o(tt,Ur&&rn===1?0:rn),ha=$o(Et,Gi&&rn===1?0:rn);if(rn===1&&Bo.length&&ha.length){const zs=!!(Bo[0].flags&4),bs=!!(ha[0].flags&4);if(zs&&!bs)return Zn&&So(m.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Qf(Bo[0],ha[0],Zn))return 0}let ga=-1;const Ei=rn===1?Ii:ui,Fo=zr(tt),Na=zr(Et);if(Fo&64&&Na&64&&tt.symbol===Et.symbol||Fo&4&&Na&4&&tt.target===Et.target){N.assertEqual(Bo.length,ha.length);for(let zs=0;zs<ha.length;zs++){const bs=ro(Bo[zs],ha[zs],!0,Zn,Mr,Ei(Bo[zs],ha[zs]));if(!bs)return 0;ga&=bs}}else if(Bo.length===1&&ha.length===1){const zs=c===Pp||!!V.noStrictGenericChecks,bs=$a(Bo),wc=$a(ha);if(ga=ro(bs,wc,zs,Zn,Mr,Ei(bs,wc)),!ga&&Zn&&rn===1&&Fo&Na&&(((An=wc.declaration)==null?void 0:An.kind)===176||((Tr=bs.declaration)==null?void 0:Tr.kind)===176)){const Xh=Tv=>zh(Tv,void 0,262144,rn);return So(m.Type_0_is_not_assignable_to_type_1,Xh(bs),Xh(wc)),So(m.Types_of_construct_signatures_are_incompatible),ga}}else{e:for(const zs of ha){const bs=vo();let wc=Zn;for(const Xh of Bo){const Tv=ro(Xh,zs,!0,wc,Mr,Ei(Xh,zs));if(Tv){ga&=Tv,ir(bs);continue e}wc=!1}return wc&&So(m.Type_0_provides_no_match_for_the_signature_1,Kn(tt),zh(zs,void 0,void 0,rn)),0}}return ga}function wn(tt,Et){const rn=wz(tt,0),Zn=wz(tt,1),Mr=Wb(tt);return(rn.length||Zn.length)&&!Mr.length?!!($o(Et,0).length&&rn.length||$o(Et,1).length&&Zn.length):!0}function ui(tt,Et){return tt.parameters.length===0&&Et.parameters.length===0?(rn,Zn)=>yo(m.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Kn(rn),Kn(Zn)):(rn,Zn)=>yo(m.Call_signature_return_types_0_and_1_are_incompatible,Kn(rn),Kn(Zn))}function Ii(tt,Et){return tt.parameters.length===0&&Et.parameters.length===0?(rn,Zn)=>yo(m.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Kn(rn),Kn(Zn)):(rn,Zn)=>yo(m.Construct_signature_return_types_0_and_1_are_incompatible,Kn(rn),Kn(Zn))}function ro(tt,Et,rn,Zn,Mr,An){const Tr=c===kh?16:c===Bf?24:0;return Bve(rn?q4(tt):tt,rn?q4(Et):Et,Tr,Zn,So,An,Ur,mu);function Ur(Gi,Bo,ha){return xr(Gi,Bo,3,ha,void 0,Mr)}}function ea(tt,Et,rn){const Zn=$o(tt,rn),Mr=$o(Et,rn);if(Zn.length!==Mr.length)return 0;let An=-1;for(let Tr=0;Tr<Zn.length;Tr++){const Ur=Qz(Zn[Tr],Mr[Tr],!1,!1,!1,xr);if(!Ur)return 0;An&=Ur}return An}function Rl(tt,Et,rn,Zn){let Mr=-1;const An=Et.keyType,Tr=tt.flags&2097152?Mz(tt):Wb(tt);for(const Ur of Tr)if(!b6e(tt,Ur)&&Sx(LD(Ur,8576),An)){const Gi=kb(Ur),Bo=Le||Gi.flags&32768||An===Tt||!(Ur.flags&16777216)?Gi:Em(Gi,524288),ha=xr(Bo,Et.type,3,rn,void 0,Zn);if(!ha)return rn&&So(m.Property_0_is_incompatible_with_index_signature,Ti(Ur)),0;Mr&=ha}for(const Ur of yd(tt))if(Sx(Ur.keyType,An)){const Gi=hl(Ur,Et,rn,Zn);if(!Gi)return 0;Mr&=Gi}return Mr}function hl(tt,Et,rn,Zn){const Mr=xr(tt.type,Et.type,3,rn,void 0,Zn);return!Mr&&rn&&(tt.keyType===Et.keyType?So(m._0_index_signatures_are_incompatible,Kn(tt.keyType)):So(m._0_and_1_index_signatures_are_incompatible,Kn(tt.keyType),Kn(Et.keyType))),Mr}function Ws(tt,Et,rn,Zn,Mr){if(c===lp)return Fs(tt,Et);const An=yd(Et),Tr=St(An,Gi=>Gi.keyType===ke);let Ur=-1;for(const Gi of An){const Bo=c!==Bf&&!rn&&Tr&&Gi.type.flags&1?-1:Xd(tt)&&Tr?xr(fv(tt),Gi.type,3,Zn):Zc(tt,Gi,Zn,Mr);if(!Bo)return 0;Ur&=Bo}return Ur}function Zc(tt,Et,rn,Zn){const Mr=j4(tt,Et.keyType);return Mr?hl(Mr,Et,rn,Zn):!(Zn&1)&&(c!==Bf||zr(tt)&8192)&&Fee(tt)?Rl(tt,Et,rn,Zn):(rn&&So(m.Index_signature_for_type_0_is_missing_in_type_1,Kn(Et.keyType),Kn(tt)),0)}function Fs(tt,Et){const rn=yd(tt),Zn=yd(Et);if(rn.length!==Zn.length)return 0;for(const Mr of Zn){const An=Rg(tt,Mr.keyType);if(!(An&&xr(An.type,Mr.type,3)&&An.isReadonly===Mr.isReadonly))return 0}return-1}function Qf(tt,Et,rn){if(!tt.declaration||!Et.declaration)return!0;const Zn=KA(tt.declaration,6),Mr=KA(Et.declaration,6);return Mr===2||Mr===4&&Zn!==2||Mr!==4&&!Zn?!0:(rn&&So(m.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,GT(Zn),GT(Mr)),!1)}}function jve(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!Ve(n.types,jve);if(n.flags&465829888){const a=HT(n);if(a&&a!==n)return jve(a)}return v_(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function E6e(n,a){return Ha(n)&&Ha(a)?et:As(a).filter(c=>xee(Ke(n,c.escapedName),_r(c)))}function xee(n,a){return!!n&&!!a&&wl(n,32768)&&!!o8(a)}function Xdt(n){return As(n).filter(a=>o8(_r(a)))}function S6e(n,a,c=Fve){return BWe(n,a,c)||n0t(n,a)||r0t(n,a)||i0t(n,a)||o0t(n,a)}function Uve(n,a,c){const d=n.types,h=d.map(x=>x.flags&402784252?0:-1);for(const[x,k]of a){let z=!1;for(let K=0;K<d.length;K++)if(h[K]){const ne=Rt(d[K],k);ne&&c(x(),ne)?z=!0:h[K]=3}for(let K=0;K<d.length;K++)h[K]===3&&(h[K]=z?0:-1)}const y=Mn(h,0)?ei(d.filter((x,k)=>h[k]),0):n;return y.flags&131072?n:y}function T6e(n){if(n.flags&524288){const a=__(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Bn(a.properties,c=>!!(c.flags&16777216))}return n.flags&2097152?Bn(n.types,T6e):!1}function Ydt(n,a,c){for(const d of As(n))if(Gye(a,d.escapedName,c))return!0;return!1}function Hve(n){return n===Qo||n===ra||n.objectFlags&8?ee:I6e(n.symbol,n.typeParameters)}function A6e(n){return I6e(n,eo(n).typeParameters)}function I6e(n,a=et){var c,d;const h=eo(n);if(!h.variances){(c=ur)==null||c.push(ur.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:bd(nl(n))});const y=U0;U0||(U0=!0,QI=gu.length),h.variances=et;const x=[];for(const k of a){const z=qve(k);let K=z&16384?z&8192?0:1:z&8192?2:void 0;if(K===void 0){let ne=!1,Te=!1;const ve=da;da=xt=>xt?Te=!0:ne=!0;const Ge=Yz(n,k,Dp),vt=Yz(n,k,Gs);K=(Aa(vt,Ge)?1:0)|(Aa(Ge,vt)?2:0),K===3&&Aa(Yz(n,k,Pc),Ge)&&(K=4),da=ve,(ne||Te)&&(ne&&(K|=8),Te&&(K|=16))}x.push(K)}y||(U0=!1,QI=0),h.variances=x,(d=ur)==null||d.pop({variances:x.map(N.formatVariance)})}return h.variances}function Yz(n,a,c){const d=XE(a,c),h=nl(n);if(Jt(h))return h;const y=n.flags&524288?PD(n,vy(eo(n).typeParameters,d)):_y(h,vy(h.typeParameters,d));return mt.add(bd(y)),y}function Ree(n){return mt.has(bd(n))}function qve(n){var a;return ad((a=n.symbol)==null?void 0:a.declarations,(c,d)=>c|fd(d),0)&28672}function $dt(n,a){for(let c=0;c<a.length;c++)if((a[c]&7)===1&&n[c].flags&16384)return!0;return!1}function Qdt(n){return n.flags&262144&&!kd(n)}function Zdt(n){return!!(zr(n)&4)&&!n.node}function Dee(n){return Zdt(n)&&St($s(n),a=>!!(a.flags&262144)||Dee(a))}function ept(n,a,c,d){const h=[];let y="";const x=z(n,0),k=z(a,0);return`${y}${x},${k}${c}`;function z(K,ne=0){let Te=""+K.target.id;for(const ve of $s(K)){if(ve.flags&262144){if(d||Qdt(ve)){let Ge=h.indexOf(ve);Ge<0&&(Ge=h.length,h.push(ve)),Te+="="+Ge;continue}y="*"}else if(ne<4&&Dee(ve)){Te+="<"+z(ve,ne+1)+">";continue}Te+="-"+ve.id}return Te}}function Nee(n,a,c,d,h){if(d===lp&&n.id>a.id){const x=n;n=a,a=x}const y=c?":"+c:"";return Dee(n)&&Dee(a)?ept(n,a,y,h):`${n.id},${a.id}${y}`}function $z(n,a){if(Cl(n)&6){for(const c of n.links.containingType.types){const d=Sa(c,n.escapedName),h=d&&$z(d,a);if(h)return h}return}return a(n)}function Dx(n){return n.parent&&n.parent.flags&32?nl(Md(n)):void 0}function Cee(n){const a=Dx(n),c=a&&pp(a)[0];return c&&Ke(c,n.escapedName)}function tpt(n,a){return $z(n,c=>{const d=Dx(c);return d?xD(d,a):!1})}function npt(n,a){return!$z(a,c=>Df(c)&4?!tpt(n,Dx(c)):!1)}function x6e(n,a,c){return $z(a,d=>Df(d,c)&4?!xD(n,Dx(d)):!1)?void 0:n}function sM(n,a,c,d=3){if(c>=d){if((zr(n)&96)===96&&(n=R6e(n)),n.flags&2097152)return St(n.types,k=>sM(k,a,c,d));const h=Pee(n);let y=0,x=0;for(let k=0;k<c;k++){const z=a[k];if(D6e(z,h)){if(z.id>=x&&(y++,y>=d))return!0;x=z.id}}}return!1}function R6e(n){let a;for(;(zr(n)&96)===96&&(a=UT(n))&&(a.symbol||a.flags&2097152&&St(a.types,c=>!!c.symbol));)n=a;return n}function D6e(n,a){return(zr(n)&96)===96&&(n=R6e(n)),n.flags&2097152?St(n.types,c=>D6e(c,a)):Pee(n)===a}function Pee(n){if(n.flags&524288&&!uye(n)){if(zr(n)&4&&n.node)return n.node;if(n.symbol&&!(zr(n)&16&&n.symbol.flags&32))return n.symbol;if(Ha(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 rpt(n,a){return Jve(n,a,e8)!==0}function Jve(n,a,c){if(n===a)return-1;const d=Df(n)&6,h=Df(a)&6;if(d!==h)return 0;if(d){if(HD(n)!==HD(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return b_(n)!==b_(a)?0:c(_r(n),_r(a))}function ipt(n,a,c){const d=$p(n),h=$p(a),y=ah(n),x=ah(a),k=Kh(n),z=Kh(a);return!!(d===h&&y===x&&k===z||c&&y<=x)}function Qz(n,a,c,d,h,y){if(n===a)return-1;if(!ipt(n,a,c)||Pe(n.typeParameters)!==Pe(a.typeParameters))return 0;if(a.typeParameters){const z=wp(n.typeParameters,a.typeParameters);for(let K=0;K<a.typeParameters.length;K++){const ne=n.typeParameters[K],Te=a.typeParameters[K];if(!(ne===Te||y(fo(nM(ne),z)||pn,nM(Te)||pn)&&y(fo(JT(ne),z)||pn,JT(Te)||pn)))return 0}n=OD(n,z,!0)}let x=-1;if(!d){const z=p1(n);if(z){const K=p1(a);if(K){const ne=y(z,K);if(!ne)return 0;x&=ne}}}const k=$p(a);for(let z=0;z<k;z++){const K=y_(n,z),ne=y_(a,z),Te=y(ne,K);if(!Te)return 0;x&=Te}if(!h){const z=Jf(n),K=Jf(a);x&=z||K?opt(z,K,y):y(ys(n),ys(a))}return x}function opt(n,a,c){return n&&a&&Eve(n,a)?n.type===a.type?-1:n.type&&a.type?c(n.type,a.type):0:0}function apt(n){let a;for(const c of n)if(!(c.flags&131072)){const d=yv(c);if(a!=null||(a=d),d===c||d!==a)return!1}return!0}function N6e(n){return ad(n,(a,c)=>a|(c.flags&1048576?N6e(c.types):c.flags),0)}function spt(n){if(n.length===1)return n[0];const a=Y?mo(n,d=>vc(d,h=>!(h.flags&98304))):n,c=apt(a)?ei(a):ad(a,(d,h)=>jb(d,h)?h:d);return a===n?c:tB(c,N6e(n)&98304)}function lpt(n){return ad(n,(a,c)=>jb(c,a)?c:a)}function Yf(n){return!!(zr(n)&4)&&(n.target===Qo||n.target===ra)}function lM(n){return!!(zr(n)&4)&&n.target===ra}function h1(n){return Yf(n)||Ha(n)}function Zz(n){return Yf(n)&&!lM(n)||Ha(n)&&!n.target.readonly}function eB(n){return Yf(n)?$s(n)[0]:void 0}function yy(n){return Yf(n)||!(n.flags&98304)&&Aa(n,ff)}function Kve(n){return Zz(n)||!(n.flags&98305)&&Aa(n,lc)}function Xve(n){if(!(zr(n)&4)||!(zr(n.target)&3))return;if(zr(n)&33554432)return zr(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;const a=n.target;if(zr(a)&1){const h=Ms(a);if(h&&h.expression.kind!==80&&h.expression.kind!==211)return}const c=pp(a);if(c.length!==1||Ob(n.symbol).size)return;let d=Pe(a.typeParameters)?fo(c[0],wp(a.typeParameters,$s(n).slice(0,a.typeParameters.length))):c[0];return Pe($s(n))>Pe(a.typeParameters)&&(d=Xp(d,rs($s(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=d}function C6e(n){return Y?n===Fi:n===Lt}function Mee(n){const a=eB(n);return!!a&&C6e(a)}function cM(n){let a;return Ha(n)||!!Sa(n,"0")||yy(n)&&!!(a=Ke(n,"length"))&&fp(a,c=>!!(c.flags&256))}function Lee(n){return yy(n)||cM(n)}function cpt(n,a){const c=Ke(n,""+a);if(c)return c;if(fp(n,Ha))return k6e(n,a,V.noUncheckedIndexedAccess?We:void 0)}function upt(n){return!(n.flags&240544)}function v_(n){return!!(n.flags&109472)}function P6e(n){const a=mv(n);return a.flags&2097152?St(a.types,v_):v_(a)}function dpt(n){return n.flags&2097152&&un(n.types,v_)||n}function r8(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Bn(n.types,v_):v_(n)}function yv(n){return n.flags&1056?ZZ(n):n.flags&402653312?ke:n.flags&256?Tt:n.flags&2048?kt:n.flags&512?ai:n.flags&1048576?ppt(n):n}function ppt(n){var c;const a=`B${bd(n)}`;return(c=ox(a))!=null?c:_b(a,_l(n,yv))}function Yve(n){return n.flags&402653312?ke:n.flags&288?Tt:n.flags&2048?kt:n.flags&512?ai:n.flags&1048576?_l(n,Yve):n}function $E(n){return n.flags&1056&&KE(n)?ZZ(n):n.flags&128&&KE(n)?ke:n.flags&256&&KE(n)?Tt:n.flags&2048&&KE(n)?kt:n.flags&512&&KE(n)?ai:n.flags&1048576?_l(n,$E):n}function M6e(n){return n.flags&8192?li:n.flags&1048576?_l(n,M6e):n}function $ve(n,a){return Tte(n,a)||(n=M6e($E(n))),Ed(n)}function fpt(n,a,c){if(n&&v_(n)){const d=a?c?y8(a):a:void 0;n=$ve(n,d)}return n}function Qve(n,a,c,d){if(n&&v_(n)){const h=a?nS(c,a,d):void 0;n=$ve(n,h)}return n}function Ha(n){return!!(zr(n)&4&&n.target.objectFlags&8)}function Hb(n){return Ha(n)&&!!(n.target.combinedFlags&8)}function L6e(n){return Hb(n)&&n.target.elementFlags.length===1}function kee(n){return uM(n,n.target.fixedLength)}function k6e(n,a,c){return _l(n,d=>{const h=d,y=kee(h);return y?c&&a>=yve(h.target)?ei([y,c]):y:We})}function mpt(n){const a=kee(n);return a&&Uu(a)}function uM(n,a,c=0,d=!1,h=!1){const y=hy(n)-c;if(a<y){const x=$s(n),k=[];for(let z=a;z<y;z++){const K=x[z];k.push(n.target.elementFlags[z]&8?kp(K,Tt):K)}return d?Ta(k):ei(k,h?0:1)}}function _pt(n,a){return hy(n)===hy(a)&&Bn(n.target.elementFlags,(c,d)=>(c&12)===(a.target.elementFlags[d]&12))}function w6e({value:n}){return n.base10Value==="0"}function O6e(n){return vc(n,a=>bm(a,4194304))}function hpt(n){return _l(n,gpt)}function gpt(n){return n.flags&4?Zo:n.flags&8?es:n.flags&64?nd:n===En||n===nn||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&w6e(n)?n:qr}function tB(n,a){const c=a&~n.flags&98304;return c===0?n:ei(c===32768?[n,We]:c===65536?[n,fe]:[n,We,fe])}function qb(n,a=!1){N.assert(Y);const c=a?me:We;return n===c||n.flags&1048576&&n.types[0]===c?n:ei([n,c])}function vpt(n){return Ud||(Ud=iM("NonNullable",524288,void 0)||pt),Ud!==pt?PD(Ud,[n]):Ta([n,wa])}function bv(n){return Y?iA(n,2097152):n}function W6e(n){return Y?ei([n,J]):n}function wee(n){return Y?Jee(n,J):n}function Oee(n,a,c){return c?TN(a)?qb(n):W6e(n):n}function i8(n,a){return F6(a)?bv(n):Xu(a)?wee(n):n}function Jb(n,a){return Le&&a?Jee(n,L):n}function o8(n){return n===L||!!(n.flags&1048576)&&n.types[0]===L}function Wee(n){return Le?Jee(n,L):Em(n,524288)}function ypt(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function Fee(n){const a=zr(n);return n.flags&2097152?Bn(n.types,Fee):!!(n.symbol&&(n.symbol.flags&7040)!==0&&!(n.symbol.flags&32)&&!zte(n))||!!(a&4194304)||!!(a&1024&&Fee(n.source))}function tA(n,a){const c=ts(n.flags,n.escapedName,Cl(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=a,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);const d=eo(n).nameType;return d&&(c.links.nameType=d),c}function bpt(n,a){const c=pa();for(const d of Wb(n)){const h=_r(d),y=a(h);c.set(d.escapedName,y===h?d:tA(d,y))}return c}function a8(n){if(!(y1(n)&&zr(n)&8192))return n;const a=n.regularType;if(a)return a;const c=n,d=bpt(n,a8),h=Vs(c.symbol,d,c.callSignatures,c.constructSignatures,c.indexInfos);return h.flags=c.flags,h.objectFlags|=c.objectFlags&-8193,n.regularType=h,h}function F6e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function z6e(n){if(!n.siblings){const a=[];for(const c of z6e(n.parent))if(y1(c)){const d=u1(c,n.propertyName);d&&oA(_r(d),h=>{a.push(h)})}n.siblings=a}return n.siblings}function Ept(n){if(!n.resolvedProperties){const a=new Map;for(const c of z6e(n))if(y1(c)&&!(zr(c)&2097152))for(const d of As(c))a.set(d.escapedName,d);n.resolvedProperties=Go(a.values())}return n.resolvedProperties}function Spt(n,a){if(!(n.flags&4))return n;const c=_r(n),d=a&&F6e(a,n.escapedName,void 0),h=Zve(c,d);return h===c?n:tA(n,h)}function Tpt(n){const a=Je.get(n.escapedName);if(a)return a;const c=tA(n,me);return c.flags|=16777216,Je.set(n.escapedName,c),c}function Apt(n,a){const c=pa();for(const h of Wb(n))c.set(h.escapedName,Spt(h,a));if(a)for(const h of Ept(a))c.has(h.escapedName)||c.set(h.escapedName,Tpt(h));const d=Vs(n.symbol,c,et,et,mo(yd(n),h=>Hh(h.keyType,Yp(h.type),h.isReadonly)));return d.objectFlags|=zr(n)&266240,d}function Yp(n){return Zve(n,void 0)}function Zve(n,a){if(zr(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=j;else if(y1(n))c=Apt(n,a);else if(n.flags&1048576){const d=a||F6e(void 0,void 0,n.types),h=mo(n.types,y=>y.flags&98304?y:Zve(y,d));c=ei(h,St(h,vv)?2:1)}else n.flags&2097152?c=Ta(mo(n.types,Yp)):h1(n)&&(c=_y(n.target,mo($s(n),Yp)));return c&&a===void 0&&(n.widened=c),c||n}return n}function zee(n){let a=!1;if(zr(n)&65536){if(n.flags&1048576)if(St(n.types,vv))a=!0;else for(const c of n.types)zee(c)&&(a=!0);if(h1(n))for(const c of $s(n))zee(c)&&(a=!0);if(y1(n))for(const c of Wb(n)){const d=_r(c);zr(d)&65536&&(zee(d)||Xe(c.valueDeclaration,m.Object_literal_s_property_0_implicitly_has_an_1_type,Ti(c),Kn(Yp(d))),a=!0)}}return a}function g1(n,a,c){const d=Kn(Yp(a));if(dr(n)&&!Fk(Jn(n),V))return;let h;switch(n.kind){case 226:case 172:case 171:h=de?m.Member_0_implicitly_has_an_1_type:m.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const y=n;if(Ue(y.name)){const x=u0(y.name);if((pI(y.parent)||Th(y.parent)||Ah(y.parent))&&y.parent.parameters.includes(y)&&(Tl(y,y.name.escapedText,788968,void 0,y.name.escapedText,!0)||x&&BU(x))){const k="arg"+y.parent.parameters.indexOf(y),z=ks(y.name)+(y.dotDotDotToken?"[]":"");vu(de,n,m.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,k,z);return}}h=n.dotDotDotToken?de?m.Rest_parameter_0_implicitly_has_an_any_type:m.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:de?m.Parameter_0_implicitly_has_an_1_type:m.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(h=m.Binding_element_0_implicitly_has_an_1_type,!de)return;break;case 324:Xe(n,m.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,d);return;case 330:de&&iR(n.parent)&&Xe(n.parent.tagName,m.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,d);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(de&&!n.name){c===3?Xe(n,m.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,d):Xe(n,m.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,d);return}h=de?c===3?m._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:m._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:m._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:de&&Xe(n,m.Mapped_object_type_implicitly_has_an_any_template_type);return;default:h=de?m.Variable_0_implicitly_has_an_1_type:m.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}vu(de,n,h,ks(Oo(n)),d)}function Bee(n,a,c){r(()=>{de&&zr(a)&65536&&(!c||!wye(n))&&(zee(a)||g1(n,a,c))})}function eye(n,a,c){const d=$p(n),h=$p(a),y=m8(n),x=m8(a),k=x?h-1:h,z=y?k:Math.min(d,k),K=p1(n);if(K){const ne=p1(a);ne&&c(K,ne)}for(let ne=0;ne<z;ne++)c(y_(n,ne),y_(a,ne));x&&c(xB(n,z,qT(x)&&!qm(x,Kve)),x)}function tye(n,a,c){const d=Jf(n),h=Jf(a);d&&h&&Eve(d,h)&&d.type&&h.type?c(d.type,h.type):c(ys(n),ys(a))}function s8(n,a,c,d){return nye(n.map(iye),a,c,d||Fve)}function Ipt(n,a=0){return n&&nye(Wt(n.inferences,B6e),n.signature,n.flags|a,n.compareTypes)}function nye(n,a,c,d){const h={inferences:n,signature:a,flags:c,compareTypes:d,mapper:Ps,nonFixingMapper:Ps};return h.mapper=xpt(h),h.nonFixingMapper=Rpt(h),h}function xpt(n){return Lve(Wt(n.inferences,a=>a.typeParameter),Wt(n.inferences,(a,c)=>()=>(a.isFixed||(Dpt(n),Gee(n.inferences),a.isFixed=!0),dye(n,c))))}function Rpt(n){return Lve(Wt(n.inferences,a=>a.typeParameter),Wt(n.inferences,(a,c)=>()=>dye(n,c)))}function Gee(n){for(const a of n)a.isFixed||(a.inferredType=void 0)}function rye(n,a,c){var d;((d=n.intraExpressionInferenceSites)!=null?d:n.intraExpressionInferenceSites=[]).push({node:a,type:c})}function Dpt(n){if(n.intraExpressionInferenceSites){for(const{node:a,type:c}of n.intraExpressionInferenceSites){const d=a.kind===174?k3e(a,2):$d(a,2);d&&Ev(n.inferences,c,d)}n.intraExpressionInferenceSites=void 0}}function iye(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function B6e(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 Npt(n){const a=Vn(n.inferences,jD);return a.length?nye(Wt(a,B6e),n.signature,n.flags,n.compareTypes):void 0}function oye(n){return n&&n.mapper}function v1(n){const a=zr(n);if(a&524288)return!!(a&1048576);const c=!!(n.flags&465829888||n.flags&524288&&!G6e(n)&&(a&4&&(n.node||St($s(n),v1))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!G6e(n)&&St(n.types,v1));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function G6e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){const a=gl(n.aliasSymbol,265);return!!(a&&jn(a.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function l8(n,a,c=0){return!!(n===a||n.flags&3145728&&St(n.types,d=>l8(d,a,c))||c<3&&n.flags&16777216&&(l8(f1(n),a,c+1)||l8(m1(n),a,c+1)))}function Cpt(n,a){const c=Jf(n);return c?!!c.type&&l8(c.type,a):l8(ys(n),a)}function Ppt(n){const a=pa();oA(n,d=>{if(!(d.flags&128))return;const h=bl(d.value),y=ts(4,h);y.links.type=j,d.symbol&&(y.declarations=d.symbol.declarations,y.valueDeclaration=d.symbol.valueDeclaration),a.set(h,y)});const c=n.flags&4?[Hh(ke,wa,!1)]:et;return Vs(void 0,a,et,et,c)}function V6e(n,a,c){const d=n.id+","+a.id+","+c.id;if(ac.has(d))return ac.get(d);const h=n.id+","+(a.target||a).id;if(Mn(ap,h))return;ap.push(h);const y=Mpt(n,a,c);return ap.pop(),ac.set(d,y),y}function aye(n){return!(zr(n)&262144)||y1(n)&&St(As(n),a=>aye(_r(a)))||Ha(n)&&St(qE(n),aye)}function Mpt(n,a,c){if(!(Rg(n,ke)||As(n).length!==0&&aye(n)))return;if(Yf(n))return Uu(Vee($s(n)[0],a,c),lM(n));if(Ha(n)){const h=Wt(qE(n),x=>Vee(x,a,c)),y=jh(a)&4?mo(n.target.elementFlags,x=>x&2?1:x):n.target.elementFlags;return qh(h,y,n.target.readonly,n.target.labeledElementDeclarations)}const d=Vf(1040,void 0);return d.source=n,d.mappedType=a,d.constraintType=c,d}function Lpt(n){const a=eo(n);return a.type||(a.type=Vee(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function Vee(n,a,c){const d=kp(c.type,m_(a)),h=fv(a),y=iye(d);return Ev([y],n,h),j6e(y)||pn}function*sye(n,a,c,d){const h=As(a);for(const y of h)if(!M4e(y)&&(c||!(y.flags&16777216||Cl(y)&48))){const x=Sa(n,y.escapedName);if(!x)yield y;else if(d){const k=_r(y);if(k.flags&109472){const z=_r(x);z.flags&1||Ed(z)===Ed(k)||(yield y)}}}}function lye(n,a,c,d){return q8(sye(n,a,c,d))}function kpt(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 wpt(n,a){return Ha(n)&&Ha(a)?kpt(n,a):!!lye(n,a,!1,!0)&&!!lye(a,n,!1,!1)}function j6e(n){return n.candidates?ei(n.candidates,2):n.contraCandidates?Ta(n.contraCandidates):void 0}function cye(n){return!!Zr(n).skipDirectInference}function U6e(n){return!!(n.symbol&&St(n.symbol.declarations,cye))}function Opt(n,a){const c=n.texts[0],d=a.texts[0],h=n.texts[n.texts.length-1],y=a.texts[a.texts.length-1],x=Math.min(c.length,d.length),k=Math.min(h.length,y.length);return c.slice(0,x)!==d.slice(0,x)||h.slice(h.length-k)!==y.slice(y.length-k)}function H6e(n,a){if(n==="")return!1;const c=+n;return isFinite(c)&&(!a||""+c===n)}function Wpt(n){return vee(ZU(n))}function jee(n,a){if(a.flags&1)return!0;if(a.flags&134217732)return Aa(n,a);if(a.flags&268435456){const c=[];for(;a.flags&268435456;)c.unshift(a.symbol),a=a.type;return ad(c,(h,y)=>Ix(y,h),n)===n&&jee(n,a)}return!1}function q6e(n,a){if(a.flags&2097152)return Bn(a.types,c=>c===_c||q6e(n,c));if(a.flags&4||Aa(n,a))return!0;if(n.flags&128){const c=n.value;return!!(a.flags&8&&H6e(c,!1)||a.flags&64&&h7(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&jee(Yd(c),a)||a.flags&134217728&&Uee(n,a))}if(n.flags&134217728){const c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&Aa(n.types[0],a)}return!1}function J6e(n,a){return n.flags&128?K6e([n.value],et,a):n.flags&134217728?Ni(n.texts,a.texts)?Wt(n.types,Fpt):K6e(n.texts,n.types,a):void 0}function Uee(n,a){const c=J6e(n,a);return!!c&&Bn(c,(d,h)=>q6e(d,a.types[h]))}function Fpt(n){return n.flags&402653317?n:XT(["",""],[n])}function K6e(n,a,c){const d=n.length-1,h=n[0],y=n[d],x=c.texts,k=x.length-1,z=x[0],K=x[k];if(d===0&&h.length<z.length+K.length||!h.startsWith(z)||!y.endsWith(K))return;const ne=y.slice(0,y.length-K.length),Te=[];let ve=0,Ge=z.length;for(let cn=1;cn<k;cn++){const sn=x[cn];if(sn.length>0){let rr=ve,zn=Ge;for(;zn=vt(rr).indexOf(sn,zn),!(zn>=0);){if(rr++,rr===n.length)return;zn=0}xt(rr,zn),Ge+=sn.length}else if(Ge<vt(ve).length)xt(ve,Ge+1);else if(ve<d)xt(ve+1,0);else return}return xt(d,vt(d).length),Te;function vt(cn){return cn<d?n[cn]:ne}function xt(cn,sn){const rr=cn===ve?Yd(vt(cn).slice(Ge,sn)):XT([n[ve].slice(Ge),...n.slice(ve+1,cn),vt(cn).slice(0,sn)],a.slice(ve,cn));Te.push(rr),ve=cn,Ge=sn}}function Ev(n,a,c,d=0,h=!1){let y=!1,x,k=2048,z,K,ne,Te=0;ve(a,c);function ve(Wn,nr){if(!(!v1(nr)||rM(nr))){if(Wn===Dt||Wn===Ye){const po=x;x=Wn,ve(nr,nr),x=po;return}if(Wn.aliasSymbol&&Wn.aliasSymbol===nr.aliasSymbol){if(Wn.aliasTypeArguments){const po=eo(Wn.aliasSymbol).typeParameters,xr=Uh(po),ko=Fb(Wn.aliasTypeArguments,po,xr,dr(Wn.aliasSymbol.valueDeclaration)),ms=Fb(nr.aliasTypeArguments,po,xr,dr(Wn.aliasSymbol.valueDeclaration));rr(ko,ms,A6e(Wn.aliasSymbol))}return}if(Wn===nr&&Wn.flags&3145728){for(const po of Wn.types)ve(po,po);return}if(nr.flags&1048576){const[po,xr]=sn(Wn.flags&1048576?Wn.types:[Wn],nr.types,zpt),[ko,ms]=sn(po,xr,Bpt);if(ms.length===0)return;if(nr=ei(ms),ko.length===0){Ge(Wn,nr,1);return}Wn=ei(ko)}else if(nr.flags&2097152&&!Bn(nr.types,hee)&&!(Wn.flags&1048576)){const[po,xr]=sn(Wn.flags&2097152?Wn.types:[Wn],nr.types,gv);if(po.length===0||xr.length===0)return;Wn=Ta(po),nr=Ta(xr)}if(nr.flags&41943040){if(rM(nr))return;nr=Gb(nr)}if(nr.flags&8650752){if(U6e(Wn))return;const po=Gn(nr);if(po){if(zr(Wn)&262144||Wn===gn)return;if(!po.isFixed){const ko=x||Wn;if(ko===Ye)return;(po.priority===void 0||d<po.priority)&&(po.candidates=void 0,po.contraCandidates=void 0,po.topLevel=!0,po.priority=d),d===po.priority&&(h&&!y?Mn(po.contraCandidates,ko)||(po.contraCandidates=Rn(po.contraCandidates,ko),Gee(n)):Mn(po.candidates,ko)||(po.candidates=Rn(po.candidates,ko),Gee(n))),!(d&128)&&nr.flags&262144&&po.topLevel&&!l8(c,nr)&&(po.topLevel=!1,Gee(n))}k=Math.min(k,d);return}const xr=hv(nr,!1);if(xr!==nr)ve(Wn,xr);else if(nr.flags&8388608){const ko=hv(nr.indexType,!1);if(ko.flags&465829888){const ms=K8e(hv(nr.objectType,!1),ko,!1);ms&&ms!==nr&&ve(Wn,ms)}}}if(zr(Wn)&4&&zr(nr)&4&&(Wn.target===nr.target||Yf(Wn)&&Yf(nr))&&!(Wn.node&&nr.node))rr($s(Wn),$s(nr),Hve(Wn.target));else if(Wn.flags&4194304&&nr.flags&4194304)zn(Wn.type,nr.type);else if((r8(Wn)||Wn.flags&4)&&nr.flags&4194304){const po=Ppt(Wn);vt(po,nr.type,256)}else if(Wn.flags&8388608&&nr.flags&8388608)ve(Wn.objectType,nr.objectType),ve(Wn.indexType,nr.indexType);else if(Wn.flags&268435456&&nr.flags&268435456)Wn.symbol===nr.symbol&&ve(Wn.type,nr.type);else if(Wn.flags&33554432)ve(Wn.baseType,nr),Ge(sve(Wn),nr,4);else if(nr.flags&16777216)cn(Wn,nr,ir);else if(nr.flags&3145728)qn(Wn,nr.types,nr.flags);else if(Wn.flags&1048576){const po=Wn.types;for(const xr of po)ve(xr,nr)}else if(nr.flags&134217728)vo(Wn,nr);else{if(Wn=h_(Wn),Xd(Wn)&&Xd(nr)&&cn(Wn,nr,yo),!(d&512&&Wn.flags&467927040)){const po=wd(Wn);if(po!==Wn&&!(po.flags&2621440))return ve(po,nr);Wn=po}Wn.flags&2621440&&cn(Wn,nr,Vo)}}}function Ge(Wn,nr,po){const xr=d;d|=po,ve(Wn,nr),d=xr}function vt(Wn,nr,po){const xr=d;d|=po,zn(Wn,nr),d=xr}function xt(Wn,nr,po,xr){const ko=d;d|=xr,qn(Wn,nr,po),d=ko}function cn(Wn,nr,po){const xr=Wn.id+","+nr.id,ko=z&&z.get(xr);if(ko!==void 0){k=Math.min(k,ko);return}(z||(z=new Map)).set(xr,-1);const ms=k;k=2048;const Cs=Te;(K!=null?K:K=[]).push(Wn),(ne!=null?ne:ne=[]).push(nr),sM(Wn,K,K.length,2)&&(Te|=1),sM(nr,ne,ne.length,2)&&(Te|=2),Te!==3?po(Wn,nr):k=-1,ne.pop(),K.pop(),Te=Cs,z.set(xr,k),k=Math.min(k,ms)}function sn(Wn,nr,po){let xr,ko;for(const ms of nr)for(const Cs of Wn)po(Cs,ms)&&(ve(Cs,ms),xr=Lg(xr,Cs),ko=Lg(ko,ms));return[xr?Vn(Wn,ms=>!Mn(xr,ms)):Wn,ko?Vn(nr,ms=>!Mn(ko,ms)):nr]}function rr(Wn,nr,po){const xr=Wn.length<nr.length?Wn.length:nr.length;for(let ko=0;ko<xr;ko++)ko<po.length&&(po[ko]&7)===2?zn(Wn[ko],nr[ko]):ve(Wn[ko],nr[ko])}function zn(Wn,nr){h=!h,ve(Wn,nr),h=!h}function mn(Wn,nr){oe||d&1024?zn(Wn,nr):ve(Wn,nr)}function Gn(Wn){if(Wn.flags&8650752){for(const nr of n)if(Wn===nr.typeParameter)return nr}}function Pn(Wn){let nr;for(const po of Wn){const xr=po.flags&2097152&&un(po.types,ko=>!!Gn(ko));if(!xr||nr&&xr!==nr)return;nr=xr}return nr}function qn(Wn,nr,po){let xr=0;if(po&1048576){let ko;const ms=Wn.flags&1048576?Wn.types:[Wn],Cs=new Array(ms.length);let Hu=!1;for(const qa of nr)if(Gn(qa))ko=qa,xr++;else for(let Od=0;Od<ms.length;Od++){const jl=k;k=2048,ve(ms[Od],qa),k===d&&(Cs[Od]=!0),Hu=Hu||k===-1,k=Math.min(k,jl)}if(xr===0){const qa=Pn(nr);qa&&Ge(Wn,qa,1);return}if(xr===1&&!Hu){const qa=qi(ms,(Od,jl)=>Cs[jl]?void 0:Od);if(qa.length){ve(ei(qa),ko);return}}}else for(const ko of nr)Gn(ko)?xr++:ve(Wn,ko);if(po&2097152?xr===1:xr>0)for(const ko of nr)Gn(ko)&&Ge(Wn,ko,1)}function Hn(Wn,nr,po){if(po.flags&1048576||po.flags&2097152){let xr=!1;for(const ko of po.types)xr=Hn(Wn,nr,ko)||xr;return xr}if(po.flags&4194304){const xr=Gn(po.type);if(xr&&!xr.isFixed&&!U6e(Wn)){const ko=V6e(Wn,nr,po);ko&&Ge(ko,xr.typeParameter,zr(Wn)&262144?16:8)}return!0}if(po.flags&262144){Ge(th(Wn,Wn.pattern?2:0),po,32);const xr=HT(po);if(xr&&Hn(Wn,nr,xr))return!0;const ko=Wt(As(Wn),_r),ms=Wt(yd(Wn),Cs=>Cs!==Jr?Cs.type:qr);return ve(ei(Ro(ko,ms)),fv(nr)),!0}return!1}function ir(Wn,nr){if(Wn.flags&16777216)ve(Wn.checkType,nr.checkType),ve(Wn.extendsType,nr.extendsType),ve(f1(Wn),f1(nr)),ve(m1(Wn),m1(nr));else{const po=[f1(nr),m1(nr)];xt(Wn,po,nr.flags,h?64:0)}}function vo(Wn,nr){const po=J6e(Wn,nr),xr=nr.types;if(po||Bn(nr.texts,ko=>ko.length===0))for(let ko=0;ko<xr.length;ko++){const ms=po?po[ko]:qr,Cs=xr[ko];if(ms.flags&128&&Cs.flags&8650752){const Hu=Gn(Cs),qa=Hu?ju(Hu.typeParameter):void 0;if(qa&&!Nt(qa)){const Od=qa.flags&1048576?qa.types:[qa];let jl=ad(Od,(Al,ct)=>Al|ct.flags,0);if(!(jl&4)){const Al=ms.value;jl&296&&!H6e(Al,!0)&&(jl&=-297),jl&2112&&!h7(Al,!0)&&(jl&=-2113);const ct=ad(Od,(xe,Ln)=>Ln.flags&jl?xe.flags&4?xe:Ln.flags&4?ms:xe.flags&134217728?xe:Ln.flags&134217728&&Uee(ms,Ln)?ms:xe.flags&268435456?xe:Ln.flags&268435456&&Al===U8e(Ln.symbol,Al)?ms:xe.flags&128?xe:Ln.flags&128&&Ln.value===Al?Ln:xe.flags&8?xe:Ln.flags&8?g_(+Al):xe.flags&32?xe:Ln.flags&32?g_(+Al):xe.flags&256?xe:Ln.flags&256&&Ln.value===+Al?Ln:xe.flags&64?xe:Ln.flags&64?Wpt(Al):xe.flags&2048?xe:Ln.flags&2048&&Q1(Ln.value)===Al?Ln:xe.flags&16?xe:Ln.flags&16?Al==="true"?or:Al==="false"?nn:ai:xe.flags&512?xe:Ln.flags&512&&Ln.intrinsicName===Al?Ln:xe.flags&32768?xe:Ln.flags&32768&&Ln.intrinsicName===Al?Ln:xe.flags&65536?xe:Ln.flags&65536&&Ln.intrinsicName===Al?Ln:xe:xe,qr);if(!(ct.flags&131072)){ve(ct,Cs);continue}}}}ve(ms,Cs)}}function yo(Wn,nr){ve(Ef(Wn),Ef(nr)),ve(fv(Wn),fv(nr));const po=my(Wn),xr=my(nr);po&&xr&&ve(po,xr)}function Vo(Wn,nr){var po,xr;if(zr(Wn)&4&&zr(nr)&4&&(Wn.target===nr.target||Yf(Wn)&&Yf(nr))){rr($s(Wn),$s(nr),Hve(Wn.target));return}if(Xd(Wn)&&Xd(nr)&&yo(Wn,nr),zr(nr)&32&&!nr.declaration.nameType){const ko=Ef(nr);if(Hn(Wn,nr,ko))return}if(!wpt(Wn,nr)){if(h1(Wn)){if(Ha(nr)){const ko=hy(Wn),ms=hy(nr),Cs=$s(nr),Hu=nr.target.elementFlags;if(Ha(Wn)&&_pt(Wn,nr)){for(let jl=0;jl<ms;jl++)ve($s(Wn)[jl],Cs[jl]);return}const qa=Ha(Wn)?Math.min(Wn.target.fixedLength,nr.target.fixedLength):0,Od=Math.min(Ha(Wn)?K4(Wn.target,3):0,nr.target.hasRestElement?K4(nr.target,3):0);for(let jl=0;jl<qa;jl++)ve($s(Wn)[jl],Cs[jl]);if(!Ha(Wn)||ko-qa-Od===1&&Wn.target.elementFlags[qa]&4){const jl=$s(Wn)[qa];for(let Al=qa;Al<ms-Od;Al++)ve(Hu[Al]&8?Uu(jl):jl,Cs[Al])}else{const jl=ms-qa-Od;if(jl===2){if(Hu[qa]&Hu[qa+1]&8){const Al=Gn(Cs[qa]);Al&&Al.impliedArity!==void 0&&(ve(oM(Wn,qa,Od+ko-Al.impliedArity),Cs[qa]),ve(oM(Wn,qa+Al.impliedArity,Od),Cs[qa+1]))}else if(Hu[qa]&8&&Hu[qa+1]&4){const Al=(po=Gn(Cs[qa]))==null?void 0:po.typeParameter,ct=Al&&ju(Al);if(ct&&Ha(ct)&&!ct.target.hasRestElement){const xe=ct.target.fixedLength;ve(oM(Wn,qa,ko-(qa+xe)),Cs[qa]),ve(uM(Wn,qa+xe,Od),Cs[qa+1])}}else if(Hu[qa]&4&&Hu[qa+1]&8){const Al=(xr=Gn(Cs[qa+1]))==null?void 0:xr.typeParameter,ct=Al&&ju(Al);if(ct&&Ha(ct)&&!ct.target.hasRestElement){const xe=ct.target.fixedLength,Ln=ko-K4(nr.target,3),wr=Ln-xe,pi=qh($s(Wn).slice(wr,Ln),Wn.target.elementFlags.slice(wr,Ln),!1,Wn.target.labeledElementDeclarations&&Wn.target.labeledElementDeclarations.slice(wr,Ln));ve(uM(Wn,qa,Od+xe),Cs[qa]),ve(pi,Cs[qa+1])}}}else if(jl===1&&Hu[qa]&8){const Al=nr.target.elementFlags[ms-1]&2,ct=oM(Wn,qa,Od);Ge(ct,Cs[qa],Al?2:0)}else if(jl===1&&Hu[qa]&4){const Al=uM(Wn,qa,Od);Al&&ve(Al,Cs[qa])}}for(let jl=0;jl<Od;jl++)ve($s(Wn)[ko-jl-1],Cs[ms-jl-1]);return}if(Yf(nr)){mp(Wn,nr);return}}So(Wn,nr),kc(Wn,nr,0),kc(Wn,nr,1),mp(Wn,nr)}}function So(Wn,nr){const po=Wb(nr);for(const xr of po){const ko=Sa(Wn,xr.escapedName);ko&&!St(ko.declarations,cye)&&ve(_r(ko),_r(xr))}}function kc(Wn,nr,po){const xr=$o(Wn,po),ko=xr.length;if(ko>0){const ms=$o(nr,po),Cs=ms.length;for(let Hu=0;Hu<Cs;Hu++){const qa=Math.max(ko-Cs+Hu,0);$f(qct(xr[qa]),q4(ms[Hu]))}}}function $f(Wn,nr){if(!(Wn.flags&64)){const po=y,xr=nr.declaration?nr.declaration.kind:0;y=y||xr===174||xr===173||xr===176,eye(Wn,nr,mn),y=po}tye(Wn,nr,ve)}function mp(Wn,nr){const po=zr(Wn)&zr(nr)&32?8:0,xr=yd(nr);if(Fee(Wn))for(const ko of xr){const ms=[];for(const Cs of As(Wn))if(Sx(LD(Cs,8576),ko.keyType)){const Hu=_r(Cs);ms.push(Cs.flags&16777216?Wee(Hu):Hu)}for(const Cs of yd(Wn))Sx(Cs.keyType,ko.keyType)&&ms.push(Cs.type);ms.length&&Ge(ei(ms),ko.type,po)}for(const ko of xr){const ms=j4(Wn,ko.keyType);ms&&Ge(ms.type,ko.type,po)}}}function zpt(n,a){return a===L?n===a:gv(n,a)||!!(a.flags&4&&n.flags&128||a.flags&8&&n.flags&256)}function Bpt(n,a){return!!(n.flags&524288&&a.flags&524288&&n.symbol&&n.symbol===a.symbol||n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===a.aliasSymbol)}function Gpt(n){const a=kd(n);return!!a&&wl(a.flags&16777216?Gge(a):a,406978556)}function y1(n){return!!(zr(n)&128)}function uye(n){return!!(zr(n)&16512)}function Vpt(n){if(n.length>1){const a=Vn(n,uye);if(a.length){const c=ei(a,2);return Ro(Vn(n,d=>!uye(d)),[c])}}return n}function jpt(n){return n.priority&416?Ta(n.contraCandidates):lpt(n.contraCandidates)}function Upt(n,a){const c=Vpt(n.candidates),d=Gpt(n.typeParameter)||qT(n.typeParameter),h=!d&&n.topLevel&&(n.isFixed||!Cpt(a,n.typeParameter)),y=d?mo(c,Ed):h?mo(c,$E):c,x=n.priority&416?ei(y,2):spt(y);return Yp(x)}function dye(n,a){const c=n.inferences[a];if(!c.inferredType){let d,h;if(n.signature){const x=c.candidates?Upt(c,n.signature):void 0,k=c.contraCandidates?jpt(c):void 0;if(x||k){const z=x&&(!k||!(x.flags&131072)&&St(c.contraCandidates,K=>jb(x,K))&&Bn(n.inferences,K=>K!==c&&kd(K.typeParameter)!==c.typeParameter||Bn(K.candidates,ne=>jb(ne,x))));d=z?x:k,h=z?k:x}else if(n.flags&1)d=Ao;else{const z=JT(c.typeParameter);z&&(d=fo(z,Edt(bdt(n,a),n.nonFixingMapper)))}}else d=j6e(c);c.inferredType=d||pye(!!(n.flags&2));const y=kd(c.typeParameter);if(y){const x=fo(y,n.nonFixingMapper);(!d||!n.compareTypes(d,Xp(x,d)))&&(c.inferredType=h&&n.compareTypes(h,Xp(x,h))?h:x)}}return c.inferredType}function pye(n){return n?j:pn}function fye(n){const a=[];for(let c=0;c<n.inferences.length;c++)a.push(dye(n,c));return a}function X6e(n){switch(n.escapedText){case"document":case"console":return m.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return V.types?m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return V.types?m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return V.types?m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Bun":return V.types?m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return m.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(ca(n.parent))return m.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return n.parent.kind===304?m.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:m.Cannot_find_name_0}}function Hm(n){const a=Zr(n);return a.resolvedSymbol||(a.resolvedSymbol=!Hl(n)&&Tl(n,n.escapedText,1160127,X6e(n),n,!$3(n),!1)||pt),a.resolvedSymbol}function mye(n){return!!(n.flags&33554432||jn(n,a=>gd(a)||Lm(a)||Ap(a)))}function Hee(n,a,c,d){switch(n.kind){case 80:if(!JA(n)){const x=Hm(n);return x!==pt?`${d?fs(d):"-1"}|${bd(a)}|${bd(c)}|${Ia(x)}`:void 0}case 110:return`0|${d?fs(d):"-1"}|${bd(a)}|${bd(c)}`;case 235:case 217:return Hee(n.expression,a,c,d);case 166:const h=Hee(n.left,a,c,d);return h&&h+"."+n.right.escapedText;case 211:case 212:const y=nA(n);if(y!==void 0){const x=Hee(n.expression,a,c,d);return x&&x+"."+y}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${fs(n)}#${bd(a)}`}}function Du(n,a){switch(a.kind){case 217:case 235:return Du(n,a.expression);case 226:return Wc(a)&&Du(n,a.left)||vr(a)&&a.operatorToken.kind===28&&Du(n,a.right)}switch(n.kind){case 236:return a.kind===236&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 80:case 81:return JA(n)?a.kind===110:a.kind===80&&Hm(n)===Hm(a)||(Wi(a)||os(a))&&vf(Hm(n))===Cr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return Du(n.expression,a);case 211:case 212:const c=nA(n),d=js(a)?nA(a):void 0;return c!==void 0&&d!==void 0&&d===c&&Du(n.expression,a.expression);case 166:return js(a)&&n.right.escapedText===nA(a)&&Du(n.left,a.expression);case 226:return vr(n)&&n.operatorToken.kind===28&&Du(n.right,a)}return!1}function nA(n){if(Br(n))return n.name.escapedText;if(el(n))return Hpt(n);if(os(n)){const a=ls(n);return a?bl(a):void 0}if(No(n))return""+n.parent.parameters.indexOf(n)}function _ye(n){return n.flags&8192?n.escapedName:n.flags&384?bl(""+n.value):void 0}function Hpt(n){return nf(n.argumentExpression)?bl(n.argumentExpression.text):Jl(n.argumentExpression)?qpt(n.argumentExpression):void 0}function qpt(n){const a=Ys(n,111551,!0);if(!a||!(_M(a)||a.flags&8))return;const c=a.valueDeclaration;if(c===void 0)return;const d=no(c);if(d){const h=_ye(d);if(h!==void 0)return h}if(ES(c)&&iv(c,n)){const h=rk(c);if(h){const y=na(c.parent)?Q_(c):Cu(h);return y&&_ye(y)}if(dE(c))return f2(c.name)}}function Y6e(n,a){for(;js(n);)if(n=n.expression,Du(n,a))return!0;return!1}function rA(n,a){for(;Xu(n);)if(n=n.expression,Du(n,a))return!0;return!1}function dM(n,a){if(n&&n.flags&1048576){const c=$4e(n,a);if(c&&Cl(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!kD(_r(c))),!!c.links.isDiscriminantProperty}return!1}function $6e(n,a){let c;for(const d of n)if(dM(a,d.escapedName)){if(c){c.push(d);continue}c=[d]}return c}function Jpt(n,a){const c=new Map;let d=0;for(const h of n)if(h.flags&61603840){const y=Ke(h,a);if(y){if(!r8(y))return;let x=!1;oA(y,k=>{const z=bd(Ed(k)),K=c.get(z);K?K!==pn&&(c.set(z,pn),x=!0):c.set(z,h)}),x||d++}}return d>=10&&d*2>=n.length?c:void 0}function nB(n){const a=n.types;if(!(a.length<10||zr(n)&32768||Ca(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){const c=Ve(a,h=>h.flags&59506688?Ve(As(h),y=>v_(_r(y))?y.escapedName:void 0):void 0),d=c&&Jpt(a,c);n.keyPropertyName=d?c:"",n.constituentMap=d}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function rB(n,a){var c;const d=(c=n.constituentMap)==null?void 0:c.get(bd(Ed(a)));return d!==pn?d:void 0}function Q6e(n,a){const c=nB(n),d=c&&Ke(a,c);return d&&rB(n,d)}function Kpt(n,a){const c=nB(n),d=c&&un(a.properties,y=>y.symbol&&y.kind===303&&y.symbol.escapedName===c&&dB(y.initializer)),h=d&&LB(d.initializer);return h&&rB(n,h)}function Z6e(n,a){return Du(n,a)||Y6e(n,a)}function e3e(n,a){if(n.arguments){for(const c of n.arguments)if(Z6e(a,c)||rA(c,a))return!0}return!!(n.expression.kind===211&&Z6e(a,n.expression.expression))}function hye(n){return(!n.id||n.id<0)&&(n.id=wle,wle++),n.id}function Xpt(n,a){if(!(n.flags&1048576))return Aa(n,a);for(const c of n.types)if(Aa(c,a))return!0;return!1}function Ypt(n,a){var d;if(n===a)return n;if(a.flags&131072)return a;const c=`A${bd(n)},${bd(a)}`;return(d=ox(c))!=null?d:_b(c,$pt(n,a))}function $pt(n,a){const c=vc(n,h=>Xpt(a,h)),d=a.flags&512&&KE(a)?_l(c,Rx):c;return Aa(a,d)?d:n}function gye(n){const a=__(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&jb(n,Ot))}function pM(n,a){return vye(n,a)&a}function bm(n,a){return pM(n,a)!==0}function vye(n,a){n.flags&467927040&&(n=ju(n)||pn);const c=n.flags;if(c&268435460)return Y?16317953:16776705;if(c&134217856){const d=c&128&&n.value==="";return Y?d?12123649:7929345:d?12582401:16776705}if(c&40)return Y?16317698:16776450;if(c&256){const d=n.value===0;return Y?d?12123394:7929090:d?12582146:16776450}if(c&64)return Y?16317188:16775940;if(c&2048){const d=w6e(n);return Y?d?12122884:7928580:d?12581636:16775940}return c&16?Y?16316168:16774920:c&528?Y?n===nn||n===En?12121864:7927560:n===nn||n===En?12580616:16774920:c&524288?(a&(Y?83427327:83886079))===0?0:zr(n)&16&&vv(n)?Y?83427327:83886079:gye(n)?Y?7880640:16728e3:Y?7888800:16736160:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?Y?7925520:16772880:c&67108864?Y?7888800:16736160:c&131072?0:c&1048576?ad(n.types,(d,h)=>d|vye(h,a),0):c&2097152?Qpt(n,a):83886079}function Qpt(n,a){const c=wl(n,402784252);let d=0,h=134217727;for(const y of n.types)if(!(c&&y.flags&524288)){const x=vye(y,a);d|=x,h&=x}return d&8256|h&134209471}function Em(n,a){return vc(n,c=>bm(c,a))}function iA(n,a){const c=t3e(Em(Y&&n.flags&2?fl:n,a));if(Y)switch(a){case 524288:return _l(c,d=>bm(d,65536)?Ta([d,bm(d,131072)&&!wl(c,65536)?ei([wa,fe]):wa]):d);case 1048576:return _l(c,d=>bm(d,131072)?Ta([d,bm(d,65536)&&!wl(c,32768)?ei([wa,We]):wa]):d);case 2097152:case 4194304:return _l(c,d=>bm(d,262144)?vpt(d):d)}return c}function t3e(n){return n===fl?pn:n}function yye(n,a){return a?ei([_i(n),Cu(a)]):n}function n3e(n,a){var c;const d=gy(a);if(!cm(d))return _t;const h=um(d);return Ke(n,h)||c8((c=Tx(n,h))==null?void 0:c.type)||_t}function r3e(n,a){return fp(n,cM)&&cpt(n,a)||c8(Ey(65,n,We,void 0))||_t}function c8(n){return n&&(V.noUncheckedIndexedAccess?ei([n,L]):n)}function i3e(n){return Uu(Ey(65,n,We,void 0)||_t)}function Zpt(n){return n.parent.kind===209&&bye(n.parent)||n.parent.kind===303&&bye(n.parent.parent)?yye(iB(n),n.right):Cu(n.right)}function bye(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function eft(n,a){return r3e(iB(n),n.elements.indexOf(a))}function tft(n){return i3e(iB(n.parent))}function o3e(n){return n3e(iB(n.parent),n.name)}function nft(n){return yye(o3e(n),n.objectAssignmentInitializer)}function iB(n){const{parent:a}=n;switch(a.kind){case 249:return ke;case 250:return zB(a)||_t;case 226:return Zpt(a);case 220:return We;case 209:return eft(a,n);case 230:return tft(a);case 303:return o3e(a);case 304:return nft(a)}return _t}function rft(n){const a=n.parent,c=s3e(a.parent),d=a.kind===206?n3e(c,n.propertyName||n.name):n.dotDotDotToken?i3e(c):r3e(c,a.elements.indexOf(n));return yye(d,n.initializer)}function a3e(n){return Zr(n).resolvedType||Cu(n)}function ift(n){return n.initializer?a3e(n.initializer):n.parent.parent.kind===249?ke:n.parent.parent.kind===250&&zB(n.parent.parent)||_t}function s3e(n){return n.kind===260?ift(n):rft(n)}function oft(n){return n.kind===260&&n.initializer&&Cb(n.initializer)||n.kind!==208&&n.parent.kind===226&&Cb(n.parent.right)}function QE(n){switch(n.kind){case 217:return QE(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return QE(n.left);case 28:return QE(n.right)}}return n}function l3e(n){const{parent:a}=n;return a.kind===217||a.kind===226&&a.operatorToken.kind===64&&a.left===n||a.kind===226&&a.operatorToken.kind===28&&a.right===n?l3e(a):n}function aft(n){return n.kind===296?Ed(Cu(n.expression)):qr}function qee(n){const a=Zr(n);if(!a.switchTypes){a.switchTypes=[];for(const c of n.caseBlock.clauses)a.switchTypes.push(aft(c))}return a.switchTypes}function c3e(n){if(St(n.caseBlock.clauses,c=>c.kind===296&&!hs(c.expression)))return;const a=[];for(const c of n.caseBlock.clauses){const d=c.kind===296?c.expression.text:void 0;a.push(d&&!Mn(a,d)?d:void 0)}return a}function sft(n,a){return n.flags&1048576?!Ve(n.types,c=>!Mn(a,c)):Mn(a,n)}function fM(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&lft(n,a))}function lft(n,a){if(n.flags&1048576){for(const c of n.types)if(!_v(a.types,c))return!1;return!0}return n.flags&1056&&ZZ(n)===a?!0:_v(a.types,n)}function oA(n,a){return n.flags&1048576?Ve(n.types,a):a(n)}function qm(n,a){return n.flags&1048576?St(n.types,a):a(n)}function fp(n,a){return n.flags&1048576?Bn(n.types,a):a(n)}function cft(n,a){return n.flags&3145728?Bn(n.types,a):a(n)}function vc(n,a){if(n.flags&1048576){const c=n.types,d=Vn(c,a);if(d===c)return n;const h=n.origin;let y;if(h&&h.flags&1048576){const x=h.types,k=Vn(x,z=>!!(z.flags&1048576)||a(z));if(x.length-k.length===c.length-d.length){if(k.length===1)return k[0];y=bve(1048576,k)}}return Sve(d,n.objectFlags&16809984,void 0,void 0,y)}return n.flags&131072||a(n)?n:qr}function Jee(n,a){return vc(n,c=>c!==a)}function uft(n){return n.flags&1048576?n.types.length:1}function _l(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);const d=n.origin,h=d&&d.flags&1048576?d.types:n.types;let y,x=!1;for(const k of h){const z=k.flags&1048576?_l(k,a,c):a(k);x||(x=k!==z),z&&(y?y.push(z):y=[z])}return x?y&&ei(y,c?0:1):n}function u3e(n,a,c,d){return n.flags&1048576&&c?ei(Wt(n.types,a),1,c,d):_l(n,a)}function mM(n,a){return vc(n,c=>(c.flags&a)!==0)}function d3e(n,a){return wl(n,134217804)&&wl(a,402655616)?_l(n,c=>c.flags&4?mM(a,402653316):YT(c)&&!wl(a,402653188)?mM(a,128):c.flags&8?mM(a,264):c.flags&64?mM(a,2112):c):n}function WD(n){return n.flags===0}function aA(n){return n.flags===0?n.type:n}function FD(n,a){return a?{flags:0,type:n.flags&131072?Ao:n}:n}function dft(n){const a=Vf(256);return a.elementType=n,a}function Eye(n){return On[n.id]||(On[n.id]=dft(n))}function p3e(n,a){const c=a8(yv(LB(a)));return fM(c,n.elementType)?n:Eye(ei([n.elementType,c]))}function pft(n){return n.flags&131072?$c:Uu(n.flags&1048576?ei(n.types,2):n)}function fft(n){return n.finalArrayType||(n.finalArrayType=pft(n.elementType))}function oB(n){return zr(n)&256?fft(n):n}function mft(n){return zr(n)&256?n.elementType:qr}function _ft(n){let a=!1;for(const c of n)if(!(c.flags&131072)){if(!(zr(c)&256))return!1;a=!0}return a}function f3e(n){const a=l3e(n),c=a.parent,d=Br(c)&&(c.name.escapedText==="length"||c.parent.kind===213&&Ue(c.name)&&mU(c.name)),h=c.kind===212&&c.expression===a&&c.parent.kind===226&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!og(c.parent)&&Nu(Cu(c.argumentExpression),296);return d||h}function hft(n){return(Wi(n)||qo(n)||Sp(n)||No(n))&&!!(Su(n)||dr(n)&&Wy(n)&&n.initializer&&Z1(n.initializer)&&lm(n.initializer))}function Kee(n,a){if(n=Xl(n),n.flags&8752)return _r(n);if(n.flags&7){if(Cl(n)&262144){const d=n.links.syntheticOrigin;if(d&&Kee(d))return _r(n)}const c=n.valueDeclaration;if(c){if(hft(c))return _r(n);if(Wi(c)&&c.parent.parent.kind===250){const d=c.parent.parent,h=aB(d.expression,void 0);if(h){const y=d.awaitModifier?15:13;return Ey(y,h,We,void 0)}}a&&Fa(a,Fr(c,m._0_needs_an_explicit_type_annotation,Ti(n)))}}}function aB(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:const c=vf(Hm(n));return Kee(c,a);case 110:return Wft(n);case 108:return Dye(n);case 211:{const d=aB(n.expression,a);if(d){const h=n.name;let y;if(Qi(h)){if(!d.symbol)return;y=Sa(d,Ek(d.symbol,h.escapedText))}else y=Sa(d,h.escapedText);return y&&Kee(y,a)}return}case 217:return aB(n.expression,a)}}function sB(n){const a=Zr(n);let c=a.effectsSignature;if(c===void 0){let d;if(vr(n)){const x=zD(n.right);d=ybe(x)}else n.parent.kind===244?d=aB(n.expression,void 0):n.expression.kind!==108&&(Xu(n)?d=rh(i8(Eo(n.expression),n.expression),n.expression):d=zD(n.expression));const h=$o(d&&wd(d)||pn,0),y=h.length===1&&!h[0].typeParameters?h[0]:St(h,m3e)?GD(n):void 0;c=a.effectsSignature=y&&m3e(y)?y:fn}return c===fn?void 0:c}function m3e(n){return!!(Jf(n)||n.declaration&&(ND(n.declaration)||pn).flags&131072)}function gft(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];const c=Ss(a.expression);return js(c)?Ss(c.expression):void 0}function vft(n){const a=jn(n,hj),c=Jn(n),d=bh(c,a.statements.pos);cs.add(ru(c,d.start,d.length,m.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function lB(n){const a=Xee(n,!1);return Ct=n,jt=a,a}function cB(n){const a=Ss(n,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(cB(a.left)||cB(a.right))||a.operatorToken.kind===57&&cB(a.left)&&cB(a.right))}function Xee(n,a){for(;;){if(n===Ct)return jt;const c=n.flags;if(c&4096){if(!a){const d=hye(n),h=gT[d];return h!==void 0?h:gT[d]=Xee(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){const d=sB(n.node);if(d){const h=Jf(d);if(h&&h.kind===3&&!h.type){const y=n.node.arguments[h.parameterIndex];if(y&&cB(y))return!1}if(ys(d).flags&131072)return!1}n=n.antecedent}else{if(c&4)return St(n.antecedents,d=>Xee(d,!1));if(c&8){const d=n.antecedents;if(d===void 0||d.length===0)return!1;n=d[0]}else if(c&128){if(n.clauseStart===n.clauseEnd&&X7e(n.switchStatement))return!1;n=n.antecedent}else if(c&1024){Ct=void 0;const d=n.target,h=d.antecedents;d.antecedents=n.antecedents;const y=Xee(n.antecedent,!1);return d.antecedents=h,y}else return!(c&1)}}}function Yee(n,a){for(;;){const c=n.flags;if(c&4096){if(!a){const d=hye(n),h=ix[d];return h!==void 0?h:ix[d]=Yee(n,!0)}a=!1}if(c&496)n=n.antecedent;else if(c&512){if(n.node.expression.kind===108)return!0;n=n.antecedent}else{if(c&4)return Bn(n.antecedents,d=>Yee(d,!1));if(c&8)n=n.antecedents[0];else if(c&1024){const d=n.target,h=d.antecedents;d.antecedents=n.antecedents;const y=Yee(n.antecedent,!1);return d.antecedents=h,y}else return!!(c&1)}}}function _3e(n){switch(n.kind){case 110:return!0;case 80:if(!JA(n)){const c=Hm(n);return _M(c)||Qee(c)&&!h3e(c)}break;case 211:case 212:return _3e(n.expression)&&b_(Zr(n).resolvedSymbol||pt);case 206:case 207:const a=C_(n.parent);return No(a)||yae(a)?!Sye(a):Wi(a)&&HB(a)}return!1}function Kb(n,a,c=a,d,h=(y=>(y=ni(n,fk))==null?void 0:y.flowNode)()){let y,x=!1,k=0;if(ze)return _t;if(!h)return a;Qe++;const z=ev,K=aA(ve(h));ev=z;const ne=zr(K)&256&&f3e(n)?$c:oB(K);if(ne===vi||n.parent&&n.parent.kind===235&&!(ne.flags&131072)&&Em(ne,2097152).flags&131072)return a;return ne===q?pn:ne;function Te(){return x?y:(x=!0,y=Hee(n,a,c,d))}function ve(ft){var wt;if(k===2e3)return(wt=ur)==null||wt.instant(ur.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:ft.id}),ze=!0,vft(n),_t;k++;let dn;for(;;){const Ut=ft.flags;if(Ut&4096){for(let kn=z;kn<ev;kn++)if(nx[kn]===ft)return k--,rx[kn];dn=ft}let _n;if(Ut&16){if(_n=vt(ft),!_n){ft=ft.antecedent;continue}}else if(Ut&512){if(_n=cn(ft),!_n){ft=ft.antecedent;continue}}else if(Ut&96)_n=rr(ft);else if(Ut&128)_n=zn(ft);else if(Ut&12){if(ft.antecedents.length===1){ft=ft.antecedents[0];continue}_n=Ut&4?mn(ft):Gn(ft)}else if(Ut&256){if(_n=sn(ft),!_n){ft=ft.antecedent;continue}}else if(Ut&1024){const kn=ft.target,wi=kn.antecedents;kn.antecedents=ft.antecedents,_n=ve(ft.antecedent),kn.antecedents=wi}else if(Ut&2){const kn=ft.node;if(kn&&kn!==d&&n.kind!==211&&n.kind!==212&&!(n.kind===110&&kn.kind!==219)){ft=kn.flowNode;continue}_n=c}else _n=A8(a);return dn&&(nx[ev]=dn,rx[ev]=_n,ev++),k--,_n}}function Ge(ft){const wt=ft.node;return Tye(wt.kind===260||wt.kind===208?s3e(wt):iB(wt),n)}function vt(ft){const wt=ft.node;if(Du(n,wt)){if(!lB(ft))return vi;if(HA(wt)===2){const Ut=ve(ft.antecedent);return FD(yv(aA(Ut)),WD(Ut))}if(a===ot||a===$c){if(oft(wt))return Eye(qr);const Ut=$E(Ge(ft));return Aa(Ut,a)?Ut:lc}const dn=aU(wt)?yv(a):a;return dn.flags&1048576?Ypt(dn,Ge(ft)):dn}if(Y6e(n,wt)){if(!lB(ft))return vi;if(Wi(wt)&&(dr(wt)||HB(wt))){const dn=ik(wt);if(dn&&(dn.kind===218||dn.kind===219))return ve(ft.antecedent)}return a}if(Wi(wt)&&wt.parent.parent.kind===249&&(Du(n,wt.parent.parent.expression)||rA(wt.parent.parent.expression,n)))return Hye(oB(aA(ve(ft.antecedent))))}function xt(ft,wt){const dn=Ss(wt,!0);if(dn.kind===97)return vi;if(dn.kind===226){if(dn.operatorToken.kind===56)return xt(xt(ft,dn.left),dn.right);if(dn.operatorToken.kind===57)return ei([xt(ft,dn.left),xt(ft,dn.right)])}return jr(ft,dn,!0)}function cn(ft){const wt=sB(ft.node);if(wt){const dn=Jf(wt);if(dn&&(dn.kind===2||dn.kind===3)){const Ut=ve(ft.antecedent),_n=oB(aA(Ut)),kn=dn.type?Ri(_n,dn,ft.node,!0):dn.kind===3&&dn.parameterIndex>=0&&dn.parameterIndex<ft.node.arguments.length?xt(_n,ft.node.arguments[dn.parameterIndex]):_n;return kn===_n?Ut:FD(kn,WD(Ut))}if(ys(wt).flags&131072)return vi}}function sn(ft){if(a===ot||a===$c){const wt=ft.node,dn=wt.kind===213?wt.expression.expression:wt.left.expression;if(Du(n,QE(dn))){const Ut=ve(ft.antecedent),_n=aA(Ut);if(zr(_n)&256){let kn=_n;if(wt.kind===213)for(const wi of wt.arguments)kn=p3e(kn,wi);else{const wi=LB(wt.left.argumentExpression);Nu(wi,296)&&(kn=p3e(kn,wt.right))}return kn===_n?Ut:FD(kn,WD(Ut))}return Ut}}}function rr(ft){const wt=ve(ft.antecedent),dn=aA(wt);if(dn.flags&131072)return wt;const Ut=(ft.flags&32)!==0,_n=oB(dn),kn=jr(_n,ft.node,Ut);return kn===_n?wt:FD(kn,WD(wt))}function zn(ft){const wt=Ss(ft.switchStatement.expression),dn=ve(ft.antecedent);let Ut=aA(dn);if(Du(n,wt))Ut=Cs(Ut,ft.switchStatement,ft.clauseStart,ft.clauseEnd);else if(wt.kind===221&&Du(n,wt.expression))Ut=Od(Ut,ft.switchStatement,ft.clauseStart,ft.clauseEnd);else if(wt.kind===112)Ut=jl(Ut,ft.switchStatement,ft.clauseStart,ft.clauseEnd);else{Y&&(rA(wt,n)?Ut=ms(Ut,ft.switchStatement,ft.clauseStart,ft.clauseEnd,kn=>!(kn.flags&163840)):wt.kind===221&&rA(wt.expression,n)&&(Ut=ms(Ut,ft.switchStatement,ft.clauseStart,ft.clauseEnd,kn=>!(kn.flags&131072||kn.flags&128&&kn.value==="undefined"))));const _n=Hn(wt,Ut);_n&&(Ut=yo(Ut,_n,ft.switchStatement,ft.clauseStart,ft.clauseEnd))}return FD(Ut,WD(dn))}function mn(ft){const wt=[];let dn=!1,Ut=!1,_n;for(const kn of ft.antecedents){if(!_n&&kn.flags&128&&kn.clauseStart===kn.clauseEnd){_n=kn;continue}const wi=ve(kn),hi=aA(wi);if(hi===a&&a===c)return hi;Tf(wt,hi),fM(hi,c)||(dn=!0),WD(wi)&&(Ut=!0)}if(_n){const kn=ve(_n),wi=aA(kn);if(!(wi.flags&131072)&&!Mn(wt,wi)&&!X7e(_n.switchStatement)){if(wi===a&&a===c)return wi;wt.push(wi),fM(wi,c)||(dn=!0),WD(kn)&&(Ut=!0)}}return FD(Pn(wt,dn?2:1),Ut)}function Gn(ft){const wt=hye(ft),dn=ZI[wt]||(ZI[wt]=new Map),Ut=Te();if(!Ut)return a;const _n=dn.get(Ut);if(_n)return _n;for(let wn=q_;wn<_f;wn++)if(aD[wn]===ft&&ex[wn]===Ut&&tx[wn].length)return FD(Pn(tx[wn],1),!0);const kn=[];let wi=!1,hi;for(const wn of ft.antecedents){let ui;if(!hi)ui=hi=ve(wn);else{aD[_f]=ft,ex[_f]=Ut,tx[_f]=kn,_f++;const ro=vn;vn=void 0,ui=ve(wn),vn=ro,_f--;const ea=dn.get(Ut);if(ea)return ea}const Ii=aA(ui);if(Tf(kn,Ii),fM(Ii,c)||(wi=!0),Ii===a)break}const oa=Pn(kn,wi?2:1);return WD(hi)?FD(oa,!0):(dn.set(Ut,oa),oa)}function Pn(ft,wt){if(_ft(ft))return Eye(ei(Wt(ft,mft)));const dn=t3e(ei(mo(ft,oB),wt));return dn!==a&&dn.flags&a.flags&1048576&&Ni(dn.types,a.types)?a:dn}function qn(ft){if(na(n)||Z1(n)||Cm(n)){if(Ue(ft)){const dn=Hm(ft).valueDeclaration;if(dn&&(os(dn)||No(dn))&&n===dn.parent&&!dn.initializer&&!dn.dotDotDotToken)return dn}}else if(js(ft)){if(Du(n,ft.expression))return ft}else if(Ue(ft)){const wt=Hm(ft);if(_M(wt)){const dn=wt.valueDeclaration;if(Wi(dn)&&!dn.type&&dn.initializer&&js(dn.initializer)&&Du(n,dn.initializer.expression))return dn.initializer;if(os(dn)&&!dn.initializer){const Ut=dn.parent.parent;if(Wi(Ut)&&!Ut.type&&Ut.initializer&&(Ue(Ut.initializer)||js(Ut.initializer))&&Du(n,Ut.initializer))return dn}}}}function Hn(ft,wt){if(a.flags&1048576||wt.flags&1048576){const dn=qn(ft);if(dn){const Ut=nA(dn);if(Ut){const _n=a.flags&1048576&&fM(wt,a)?a:wt;if(dM(_n,Ut))return dn}}}}function ir(ft,wt,dn){const Ut=nA(wt);if(Ut===void 0)return ft;const _n=Xu(wt),kn=Y&&(_n||Eae(wt))&&wl(ft,98304);let wi=Ke(kn?Em(ft,2097152):ft,Ut);if(!wi)return ft;wi=kn&&_n?qb(wi):wi;const hi=dn(wi);return vc(ft,oa=>{const wn=Rt(oa,Ut)||pn;return!(wn.flags&131072)&&!(hi.flags&131072)&&Jz(hi,wn)})}function vo(ft,wt,dn,Ut,_n){if((dn===37||dn===38)&&ft.flags&1048576){const kn=nB(ft);if(kn&&kn===nA(wt)){const wi=rB(ft,Cu(Ut));if(wi)return dn===(_n?37:38)?wi:v_(Ke(wi,kn)||pn)?Jee(ft,wi):ft}}return ir(ft,wt,kn=>po(kn,dn,Ut,_n))}function yo(ft,wt,dn,Ut,_n){if(Ut<_n&&ft.flags&1048576&&nB(ft)===nA(wt)){const kn=qee(dn).slice(Ut,_n),wi=ei(Wt(kn,hi=>rB(ft,hi)||pn));if(wi!==pn)return wi}return ir(ft,wt,kn=>Cs(kn,dn,Ut,_n))}function Vo(ft,wt,dn){if(Du(n,wt))return iA(ft,dn?4194304:8388608);Y&&dn&&rA(wt,n)&&(ft=iA(ft,2097152));const Ut=Hn(wt,ft);return Ut?ir(ft,Ut,_n=>Em(_n,dn?4194304:8388608)):ft}function So(ft,wt,dn){const Ut=Sa(ft,wt);return Ut?!!(Ut.flags&16777216||Cl(Ut)&48)||dn:!!Tx(ft,wt)||!dn}function kc(ft,wt,dn){const Ut=um(wt);if(qm(ft,kn=>So(kn,Ut,!0)))return vc(ft,kn=>So(kn,Ut,dn));if(dn){const kn=Tut();if(kn)return Ta([ft,PD(kn,[wt,pn])])}return ft}function $f(ft,wt,dn,Ut,_n){return _n=_n!==(dn.kind===112)!=(Ut!==38&&Ut!==36),jr(ft,wt,_n)}function mp(ft,wt,dn){switch(wt.operatorToken.kind){case 64:case 76:case 77:case 78:return Vo(jr(ft,wt.right,dn),wt.left,dn);case 35:case 36:case 37:case 38:const Ut=wt.operatorToken.kind,_n=QE(wt.left),kn=QE(wt.right);if(_n.kind===221&&hs(kn))return xr(ft,_n,Ut,kn,dn);if(kn.kind===221&&hs(_n))return xr(ft,kn,Ut,_n,dn);if(Du(n,_n))return po(ft,Ut,kn,dn);if(Du(n,kn))return po(ft,Ut,_n,dn);Y&&(rA(_n,n)?ft=nr(ft,Ut,kn,dn):rA(kn,n)&&(ft=nr(ft,Ut,_n,dn)));const wi=Hn(_n,ft);if(wi)return vo(ft,wi,Ut,kn,dn);const hi=Hn(kn,ft);if(hi)return vo(ft,hi,Ut,_n,dn);if(Al(_n))return ct(ft,Ut,kn,dn);if(Al(kn))return ct(ft,Ut,_n,dn);if(DN(kn)&&!js(_n))return $f(ft,_n,kn,Ut,dn);if(DN(_n)&&!js(kn))return $f(ft,kn,_n,Ut,dn);break;case 104:return xe(ft,wt,dn);case 103:if(Qi(wt.left))return Wn(ft,wt,dn);const oa=QE(wt.right);if(o8(ft)&&js(n)&&Du(n.expression,oa)){const wn=Cu(wt.left);if(cm(wn)&&nA(n)===um(wn))return Em(ft,dn?524288:65536)}if(Du(n,oa)){const wn=Cu(wt.left);if(cm(wn))return kc(ft,wn,dn)}break;case 28:return jr(ft,wt.right,dn);case 56:return dn?jr(jr(ft,wt.left,!0),wt.right,!0):ei([jr(ft,wt.left,!1),jr(ft,wt.right,!1)]);case 57:return dn?ei([jr(ft,wt.left,!0),jr(ft,wt.right,!0)]):jr(jr(ft,wt.left,!1),wt.right,!1)}return ft}function Wn(ft,wt,dn){const Ut=QE(wt.right);if(!Du(n,Ut))return ft;N.assertNode(wt.left,Qi);const _n=cte(wt.left);if(_n===void 0)return ft;const kn=_n.parent,wi=Ec(N.checkDefined(_n.valueDeclaration,"should always have a declaration"))?_r(kn):nl(kn);return wr(ft,wi,dn,!0)}function nr(ft,wt,dn,Ut){const _n=wt===35||wt===37,kn=wt===35||wt===36?98304:32768,wi=Cu(dn);return _n!==Ut&&fp(wi,oa=>!!(oa.flags&kn))||_n===Ut&&fp(wi,oa=>!(oa.flags&(3|kn)))?iA(ft,2097152):ft}function po(ft,wt,dn,Ut){if(ft.flags&1)return ft;(wt===36||wt===38)&&(Ut=!Ut);const _n=Cu(dn),kn=wt===35||wt===36;if(_n.flags&98304){if(!Y)return ft;const wi=kn?Ut?262144:2097152:_n.flags&65536?Ut?131072:1048576:Ut?65536:524288;return iA(ft,wi)}if(Ut){if(!kn&&(ft.flags&2||qm(ft,Jh))){if(_n.flags&469893116||Jh(_n))return _n;if(_n.flags&524288)return ya}const wi=vc(ft,hi=>Jz(hi,_n)||kn&&ypt(hi,_n));return d3e(wi,_n)}return v_(_n)?vc(ft,wi=>!(P6e(wi)&&Jz(wi,_n))):ft}function xr(ft,wt,dn,Ut,_n){(dn===36||dn===38)&&(_n=!_n);const kn=QE(wt.expression);if(!Du(n,kn)){Y&&rA(kn,n)&&_n===(Ut.text!=="undefined")&&(ft=iA(ft,2097152));const wi=Hn(kn,ft);return wi?ir(ft,wi,hi=>ko(hi,Ut,_n)):ft}return ko(ft,Ut,_n)}function ko(ft,wt,dn){return dn?Hu(ft,wt.text):iA(ft,sJ.get(wt.text)||32768)}function ms(ft,wt,dn,Ut,_n){return dn!==Ut&&Bn(qee(wt).slice(dn,Ut),_n)?Em(ft,2097152):ft}function Cs(ft,wt,dn,Ut){const _n=qee(wt);if(!_n.length)return ft;const kn=_n.slice(dn,Ut),wi=dn===Ut||Mn(kn,qr);if(ft.flags&2&&!wi){let ui;for(let Ii=0;Ii<kn.length;Ii+=1){const ro=kn[Ii];if(ro.flags&469893116)ui!==void 0&&ui.push(ro);else if(ro.flags&524288)ui===void 0&&(ui=kn.slice(0,Ii)),ui.push(ya);else return ft}return ei(ui===void 0?kn:ui)}const hi=ei(kn),oa=hi.flags&131072?qr:d3e(vc(ft,ui=>Jz(hi,ui)),hi);if(!wi)return oa;const wn=vc(ft,ui=>!(P6e(ui)&&Mn(_n,Ed(dpt(ui)))));return oa.flags&131072?wn:ei([oa,wn])}function Hu(ft,wt){switch(wt){case"string":return qa(ft,ke,1);case"number":return qa(ft,Tt,2);case"bigint":return qa(ft,kt,4);case"boolean":return qa(ft,ai,8);case"symbol":return qa(ft,li,16);case"object":return ft.flags&1?ft:ei([qa(ft,ya,32),qa(ft,fe,131072)]);case"function":return ft.flags&1?ft:qa(ft,Ot,64);case"undefined":return qa(ft,We,65536)}return qa(ft,ya,128)}function qa(ft,wt,dn){return _l(ft,Ut=>nh(Ut,wt,Bf)?bm(Ut,dn)?Ut:qr:jb(wt,Ut)?wt:bm(Ut,dn)?Ta([Ut,wt]):qr)}function Od(ft,wt,dn,Ut){const _n=c3e(wt);if(!_n)return ft;const kn=Ji(wt.caseBlock.clauses,oa=>oa.kind===297);if(dn===Ut||kn>=dn&&kn<Ut){const oa=K7e(dn,Ut,_n);return vc(ft,wn=>pM(wn,oa)===oa)}const hi=_n.slice(dn,Ut);return ei(Wt(hi,oa=>oa?Hu(ft,oa):qr))}function jl(ft,wt,dn,Ut){const _n=Ji(wt.caseBlock.clauses,hi=>hi.kind===297),kn=dn===Ut||_n>=dn&&_n<Ut;for(let hi=0;hi<dn;hi++){const oa=wt.caseBlock.clauses[hi];oa.kind===296&&(ft=jr(ft,oa.expression,!1))}if(kn){for(let hi=Ut;hi<wt.caseBlock.clauses.length;hi++){const oa=wt.caseBlock.clauses[hi];oa.kind===296&&(ft=jr(ft,oa.expression,!1))}return ft}const wi=wt.caseBlock.clauses.slice(dn,Ut);return ei(Wt(wi,hi=>hi.kind===296?jr(ft,hi.expression,!0):qr))}function Al(ft){return(Br(ft)&&Rr(ft.name)==="constructor"||el(ft)&&hs(ft.argumentExpression)&&ft.argumentExpression.text==="constructor")&&Du(n,ft.expression)}function ct(ft,wt,dn,Ut){if(Ut?wt!==35&&wt!==37:wt!==36&&wt!==38)return ft;const _n=Cu(dn);if(!Xbe(_n)&&!Ua(_n))return ft;const kn=Sa(_n,"prototype");if(!kn)return ft;const wi=_r(kn),hi=Nt(wi)?void 0:wi;if(!hi||hi===Me||hi===Ot)return ft;if(Nt(ft))return hi;return vc(ft,wn=>oa(wn,hi));function oa(wn,ui){return wn.flags&524288&&zr(wn)&1||ui.flags&524288&&zr(ui)&1?wn.symbol===ui.symbol:jb(wn,ui)}}function xe(ft,wt,dn){const Ut=QE(wt.left);if(!Du(n,Ut))return dn&&Y&&rA(Ut,n)?iA(ft,2097152):ft;const _n=wt.right,kn=Cu(_n);if(!_1(kn,Me))return ft;const wi=sB(wt),hi=wi&&Jf(wi);if(hi&&hi.kind===1&&hi.parameterIndex===0)return wr(ft,hi.type,dn,!0);if(!_1(kn,Ot))return ft;const oa=_l(kn,Ln);return Nt(ft)&&(oa===Me||oa===Ot)||!dn&&!(oa.flags&524288&&!Jh(oa))?ft:wr(ft,oa,dn,!0)}function Ln(ft){const wt=Ke(ft,"prototype");if(wt&&!Nt(wt))return wt;const dn=$o(ft,1);return dn.length?ei(Wt(dn,Ut=>ys(q4(Ut)))):wa}function wr(ft,wt,dn,Ut){var kn;const _n=ft.flags&1048576?`N${bd(ft)},${bd(wt)},${(dn?1:0)|(Ut?2:0)}`:void 0;return(kn=ox(_n))!=null?kn:_b(_n,pi(ft,wt,dn,Ut))}function pi(ft,wt,dn,Ut){if(!dn){if(ft===wt)return qr;if(Ut)return vc(ft,oa=>!_1(oa,wt));const hi=wr(ft,wt,!0,!1);return vc(ft,oa=>!fM(oa,hi))}if(ft.flags&3||ft===wt)return wt;const _n=Ut?_1:jb,kn=ft.flags&1048576?nB(ft):void 0,wi=_l(wt,hi=>{const oa=kn&&Ke(hi,kn),wn=oa&&rB(ft,oa),ui=_l(wn||ft,Ut?Ii=>_1(Ii,hi)?Ii:_1(hi,Ii)?hi:qr:Ii=>qz(Ii,hi)?Ii:qz(hi,Ii)?hi:jb(Ii,hi)?Ii:jb(hi,Ii)?hi:qr);return ui.flags&131072?_l(ft,Ii=>wl(Ii,465829888)&&_n(hi,ju(Ii)||pn)?Ta([Ii,hi]):qr):ui});return wi.flags&131072?jb(wt,ft)?wt:Aa(ft,wt)?ft:Aa(wt,ft)?wt:Ta([ft,wt]):wi}function xi(ft,wt,dn){if(e3e(wt,n)){const Ut=dn||!hS(wt)?sB(wt):void 0,_n=Ut&&Jf(Ut);if(_n&&(_n.kind===0||_n.kind===1))return Ri(ft,_n,wt,dn)}if(o8(ft)&&js(n)&&Br(wt.expression)){const Ut=wt.expression;if(Du(n.expression,QE(Ut.expression))&&Ue(Ut.name)&&Ut.name.escapedText==="hasOwnProperty"&&wt.arguments.length===1){const _n=wt.arguments[0];if(hs(_n)&&nA(n)===bl(_n.text))return Em(ft,dn?524288:65536)}}return ft}function Ri(ft,wt,dn,Ut){if(wt.type&&!(Nt(ft)&&(wt.type===Me||wt.type===Ot))){const _n=gft(wt,dn);if(_n){if(Du(n,_n))return wr(ft,wt.type,Ut,!1);Y&&rA(_n,n)&&(Ut&&!bm(wt.type,65536)||!Ut&&fp(wt.type,gB))&&(ft=iA(ft,2097152));const kn=Hn(_n,ft);if(kn)return ir(ft,kn,wi=>wr(wi,wt.type,Ut,!1))}}return ft}function jr(ft,wt,dn){if(F6(wt)||vr(wt.parent)&&(wt.parent.operatorToken.kind===61||wt.parent.operatorToken.kind===78)&&wt.parent.left===wt)return Pr(ft,wt,dn);switch(wt.kind){case 80:if(!Du(n,wt)&&M<5){const Ut=Hm(wt);if(_M(Ut)){const _n=Ut.valueDeclaration;if(_n&&Wi(_n)&&!_n.type&&_n.initializer&&_3e(n)){M++;const kn=jr(ft,_n.initializer,dn);return M--,kn}}}case 110:case 108:case 211:case 212:return Vo(ft,wt,dn);case 213:return xi(ft,wt,dn);case 217:case 235:return jr(ft,wt.expression,dn);case 226:return mp(ft,wt,dn);case 224:if(wt.operator===54)return jr(ft,wt.operand,!dn);break}return ft}function Pr(ft,wt,dn){if(Du(n,wt))return iA(ft,dn?2097152:262144);const Ut=Hn(wt,ft);return Ut?ir(ft,Ut,_n=>Em(_n,dn?2097152:262144)):ft}}function yft(n,a){if(n=vf(n),(a.kind===80||a.kind===81)&&(eC(a)&&(a=a.parent),rg(a)&&(!og(a)||YA(a)))){const c=wee(YA(a)&&a.kind===211?ste(a,void 0,!0):Cu(a));if(vf(Zr(a).resolvedSymbol)===n)return c}return Gg(a)&&Fv(a.parent)&&Um(a.parent)?Az(a.parent.symbol):MU(a)&&YA(a.parent)?jE(n):kb(n)}function u8(n){return jn(n.parent,a=>ta(a)&&!xS(a)||a.kind===268||a.kind===312||a.kind===172)}function h3e(n){return!g3e(n,void 0)}function g3e(n,a){const c=jn(n.valueDeclaration,$ee);if(!c)return!1;const d=Zr(c);return d.flags&131072||(d.flags|=131072,bft(c)||y3e(c)),!n.lastAssignmentPos||a&&n.lastAssignmentPos<a.pos}function Sye(n){return N.assert(Wi(n)||No(n)),v3e(n.name)}function v3e(n){return n.kind===80?h3e(Cr(n.parent)):St(n.elements,a=>a.kind!==232&&v3e(a.name))}function bft(n){return!!jn(n.parent,a=>$ee(a)&&!!(Zr(a).flags&131072))}function $ee(n){return Js(n)||io(n)}function y3e(n){switch(n.kind){case 80:if(og(n)){const c=Hm(n);if(Qee(c)&&c.lastAssignmentPos!==Number.MAX_VALUE){const d=jn(n,$ee),h=jn(c.valueDeclaration,$ee);c.lastAssignmentPos=d===h?Eft(n,c.valueDeclaration):Number.MAX_VALUE}}return;case 281:const a=n.parent.parent;if(!n.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){const c=Ys(n.propertyName||n.name,111551,!0,!0);c&&Qee(c)&&(c.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}Xi(n)||Uo(n,y3e)}function Eft(n,a){let c=n.pos;for(;n&&n.pos>a.pos;){switch(n.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:c=n.end}n=n.parent}return c}function _M(n){return n.flags&3&&(Vye(n)&6)!==0}function Qee(n){const a=n.valueDeclaration&&C_(n.valueDeclaration);return!!a&&(No(a)||Wi(a)&&(uE(a.parent)||Sft(a)))}function Sft(n){return!!(n.parent.flags&1)&&!(c0(n)&32||n.parent.parent.kind===243&&wh(n.parent.parent.parent))}function Tft(n){const a=Zr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!Gh(n,9))return ID(n.symbol),!0;const c=!!bm(vM(n,0),16777216);if(!$_())return ID(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function Aft(n,a){return Y&&a.kind===169&&a.initializer&&bm(n,16777216)&&!Tft(a)?Em(n,524288):n}function Ift(n,a){const c=a.parent;return c.kind===211||c.kind===166||c.kind===213&&c.expression===a||c.kind===212&&c.expression===a&&!(qm(n,E3e)&&QT(Cu(c.argumentExpression)))}function b3e(n){return n.flags&2097152?St(n.types,b3e):!!(n.flags&465829888&&mv(n).flags&1146880)}function E3e(n){return n.flags&2097152?St(n.types,E3e):!!(n.flags&465829888&&!wl(mv(n),98304))}function xft(n,a){const c=(Ue(n)||Br(n)||el(n))&&!((W_(n.parent)||JS(n.parent))&&n.parent.tagName===n)&&(a&&a&32?$d(n,8):$d(n,void 0));return c&&!kD(c)}function Tye(n,a,c){return!(c&&c&2)&&qm(n,b3e)&&(Ift(n,a)||xft(a,c))?_l(n,mv):n}function S3e(n){return!!jn(n,a=>{const c=a.parent;return c===void 0?"quit":zl(c)?c.expression===a&&Jl(a):$u(c)?c.name===a||c.propertyName===a:!1})}function Zee(n,a){if(!!It&&PT(n,111551)&&!kS(a)){const c=Vc(n);Ru(n,!0)&1160127&&(dm(V)||tE(V)&&S3e(a)||!I8(vf(c))?Tb(n):cu(n))}}function Rft(n,a,c){var d;const h=_r(n,c),y=n.valueDeclaration;if(y){if(os(y)&&!y.initializer&&!y.dotDotDotToken&&y.parent.elements.length>=2){const x=y.parent.parent,k=C_(x);if(k.kind===260&&oS(k)&6||k.kind===169){const z=Zr(x);if(!(z.flags&4194304)){z.flags|=4194304;const K=Gr(x,0),ne=K&&_l(K,mv);if(z.flags&=-4194305,ne&&ne.flags&1048576&&!(k.kind===169&&Sye(k))){const Te=y.parent,ve=Kb(Te,ne,ne,void 0,a.flowNode);return ve.flags&131072?qr:jm(y,ve,!0)}}}}if(No(y)&&!y.type&&!y.initializer&&!y.dotDotDotToken){const x=y.parent;if(x.parameters.length>=2&&Tee(x)){const k=p8(x);if(k&&k.parameters.length===1&&Zu(k)){const z=eM(fo(_r(k.parameters[0]),(d=ZE(x))==null?void 0:d.nonFixingMapper));if(z.flags&1048576&&fp(z,Ha)&&!St(x.parameters,Sye)){const K=Kb(x,z,z,void 0,a.flowNode),ne=x.parameters.indexOf(y)-(J1(x)?1:0);return kp(K,g_(ne))}}}}}return h}function Dft(n,a){if(JA(n))return uB(n);const c=Hm(n);if(c===pt)return _t;if(c===Ft){if(o7e(n))return Xe(n,m.arguments_cannot_be_referenced_in_property_initializers),_t;let mn=Vp(n);if(mn)for(se<2&&(mn.kind===219?Xe(n,m.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Qr(mn,1024)&&Xe(n,m.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Zr(mn).flags|=512;mn&&Ks(mn);)mn=Vp(mn),mn&&(Zr(mn).flags|=512);return _r(c)}Cft(n)&&Zee(c,n);const d=vf(c),h=jbe(d,n);hb(h)&&Ive(n,h)&&h.declarations&&cy(n,h.declarations,n.escapedText);let y=d.valueDeclaration;if(y&&d.flags&32&&di(y)&&y.name!==n){let mn=zd(n,!1,!1);for(;mn.kind!==312&&mn.parent!==y;)mn=zd(mn,!1,!1);mn.kind!==312&&(Zr(y).flags|=262144,Zr(mn).flags|=262144,Zr(n).flags|=536870912)}Lft(n,c);let x=Rft(d,n,a);const k=HA(n);if(k){if(!(d.flags&3)&&!(dr(n)&&d.flags&512)){const mn=d.flags&384?m.Cannot_assign_to_0_because_it_is_an_enum:d.flags&32?m.Cannot_assign_to_0_because_it_is_a_class:d.flags&1536?m.Cannot_assign_to_0_because_it_is_a_namespace:d.flags&16?m.Cannot_assign_to_0_because_it_is_a_function:d.flags&2097152?m.Cannot_assign_to_0_because_it_is_an_import:m.Cannot_assign_to_0_because_it_is_not_a_variable;return Xe(n,mn,Ti(c)),_t}if(b_(d))return d.flags&3?Xe(n,m.Cannot_assign_to_0_because_it_is_a_constant,Ti(c)):Xe(n,m.Cannot_assign_to_0_because_it_is_a_read_only_property,Ti(c)),_t}const z=d.flags&2097152;if(d.flags&3){if(k===1)return aU(n)?yv(x):x}else if(z)y=zm(c);else return x;if(!y)return x;x=Tye(x,n,a);const K=C_(y).kind===169,ne=u8(y);let Te=u8(n);const ve=Te!==ne,Ge=n.parent&&n.parent.parent&&Xv(n.parent)&&bye(n.parent.parent),vt=c.flags&134217728,xt=x===ot||x===$c,cn=xt&&n.parent.kind===235;for(;Te!==ne&&(Te.kind===218||Te.kind===219||p3(Te))&&(_M(d)&&x!==$c||Qee(d)&&g3e(d,n));)Te=u8(Te);const sn=K||z||ve||Ge||vt||Nft(n,y)||x!==ot&&x!==$c&&(!Y||(x.flags&16387)!==0||kS(n)||mye(n)||n.parent.kind===281)||n.parent.kind===235||y.kind===260&&y.exclamationToken||y.flags&33554432,rr=cn?We:sn?K?Aft(x,y):x:xt?We:qb(x),zn=cn?bv(Kb(n,x,rr,Te)):Kb(n,x,rr,Te);if(!f3e(n)&&(x===ot||x===$c)){if(zn===ot||zn===$c)return de&&(Xe(Oo(y),m.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ti(c),Kn(zn)),Xe(n,m.Variable_0_implicitly_has_an_1_type,Ti(c),Kn(zn))),A8(zn)}else if(!sn&&!aM(x)&&aM(zn))return Xe(n,m.Variable_0_is_used_before_being_assigned,Ti(c)),x;return k?yv(zn):zn}function Nft(n,a){if(os(a)){const c=jn(n,os);return c&&C_(c)===C_(a)}}function Cft(n){var a;const c=n.parent;if(c){if(Br(c)&&c.expression===n||$u(c)&&c.isTypeOnly)return!1;const d=(a=c.parent)==null?void 0:a.parent;if(d&&rc(d)&&d.isTypeOnly)return!1}return!0}function Pft(n,a){return!!jn(n,c=>c===a?"quit":ta(c)||c.parent&&qo(c.parent)&&!Ec(c.parent)&&c.parent.initializer===c)}function Mft(n,a){return jn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function Aye(n){return jn(n,a=>!a||_U(a)?"quit":wy(a,!1))}function Lft(n,a){if(se>=2||(a.flags&34)===0||!a.valueDeclaration||io(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;const c=yh(a.valueDeclaration),d=Pft(n,c),h=Aye(c);if(h){if(d){let y=!0;if(HS(c)){const x=b0(a.valueDeclaration,261);if(x&&x.parent===c){const k=Mft(n.parent,c);if(k){const z=Zr(k);z.flags|=8192;const K=z.capturedBlockScopeBindings||(z.capturedBlockScopeBindings=[]);Tf(K,a),k===c.initializer&&(y=!1)}}}y&&(Zr(h).flags|=4096)}if(HS(c)){const y=b0(a.valueDeclaration,261);y&&y.parent===c&&wft(n,c)&&(Zr(a.valueDeclaration).flags|=65536)}Zr(a.valueDeclaration).flags|=32768}d&&(Zr(a.valueDeclaration).flags|=16384)}function kft(n,a){const c=Zr(n);return!!c&&Mn(c.capturedBlockScopeBindings,Cr(a))}function wft(n,a){let c=n;for(;c.parent.kind===217;)c=c.parent;let d=!1;if(og(c))d=!0;else if(c.parent.kind===224||c.parent.kind===225){const h=c.parent;d=h.operator===46||h.operator===47}return d?!!jn(c,h=>h===a?"quit":h===a.statement):!1}function Iye(n,a){if(Zr(n).flags|=2,a.kind===172||a.kind===176){const c=a.parent;Zr(c).flags|=4}else Zr(a).flags|=4}function T3e(n){return IS(n)?n:ta(n)?void 0:Uo(n,T3e)}function xye(n){const a=Cr(n),c=nl(a);return Hf(c)===je}function A3e(n,a,c){const d=a.parent;H1(d)&&!xye(d)&&fk(n)&&n.flowNode&&!Yee(n.flowNode,!1)&&Xe(n,c)}function Oft(n,a){qo(a)&&Ec(a)&&re&&a.initializer&&EL(a.initializer,n.pos)&&If(a.parent)&&Xe(n,m.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function uB(n){const a=kS(n);let c=zd(n,!0,!0),d=!1,h=!1;for(c.kind===176&&A3e(n,c,m.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=zd(c,!1,!h),d=!0),c.kind===167){c=zd(c,!d,!1),h=!0;continue}break}if(Oft(n,c),h)Xe(n,m.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 267:Xe(n,m.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Xe(n,m.this_cannot_be_referenced_in_current_location);break;case 176:I3e(n,c)&&Xe(n,m.this_cannot_be_referenced_in_constructor_arguments);break}!a&&d&&se<2&&Iye(n,c);const y=Rye(n,!0,c);if(ie){const x=_r(it);if(y===x&&d)Xe(n,m.The_containing_arrow_function_captures_the_global_value_of_this);else if(!y){const k=Xe(n,m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!io(c)){const z=Rye(c);z&&z!==x&&Fa(k,Fr(c,m.An_outer_value_of_this_is_shadowed_by_this_container))}}}return y||j}function Rye(n,a=!0,c=zd(n,!1,!1)){const d=dr(n);if(ta(c)&&(!Cye(n)||J1(c))){let h=Nge(c)||d&&zft(c);if(!h){const y=Fft(c);if(d&&y){const x=Eo(y).symbol;x&&x.members&&x.flags&16&&(h=nl(x).thisType)}else oh(c)&&(h=nl(ds(c.symbol)).thisType);h||(h=N3e(c))}if(h)return Kb(n,h)}if(di(c.parent)){const h=Cr(c.parent),y=la(c)?_r(h):nl(h).thisType;return Kb(n,y)}if(io(c))if(c.commonJsModuleIndicator){const h=Cr(c);return h&&_r(h)}else{if(c.externalModuleIndicator)return We;if(a)return _r(it)}}function Wft(n){const a=zd(n,!1,!1);if(ta(a)){const c=vm(a);if(c.thisParameter)return Kee(c.thisParameter)}if(di(a.parent)){const c=Cr(a.parent);return la(a)?_r(c):nl(c).thisType}}function Fft(n){if(n.kind===218&&vr(n.parent)&&ql(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&vr(n.parent.parent)&&ql(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&vr(n.parent.parent.parent)&&ql(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&Tc(n.parent)&&Ue(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&za(n.parent.parent)&&ca(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&ql(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Ql(n)&&Ue(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&za(n.parent)&&ca(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&ql(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function zft(n){const a=k6(n);if(a&&a.typeExpression)return Ai(a.typeExpression);const c=tM(n);if(c)return p1(c)}function I3e(n,a){return!!jn(n,c=>Js(c)?"quit":c.kind===169&&c.parent===a)}function Dye(n){const a=n.parent.kind===213&&n.parent.expression===n,c=$L(n,!0);let d=c,h=!1,y=!1;if(!a){for(;d&&d.kind===219;)Qr(d,1024)&&(y=!0),d=$L(d,!0),h=se<2;d&&Qr(d,1024)&&(y=!0)}let x=0;if(!d||!ne(d)){const Te=jn(n,ve=>ve===d?"quit":ve.kind===167);return Te&&Te.kind===167?Xe(n,m.super_cannot_be_referenced_in_a_computed_property_name):a?Xe(n,m.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!d||!d.parent||!(di(d.parent)||d.parent.kind===210)?Xe(n,m.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Xe(n,m.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),_t}if(!a&&c.kind===176&&A3e(n,d,m.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),la(d)||a?(x=32,!a&&se>=2&&se<=8&&(qo(d)||Pl(d))&&wie(n.parent,Te=>{(!io(Te)||Bp(Te))&&(Zr(Te).flags|=2097152)})):x=16,Zr(n).flags|=x,d.kind===174&&y&&(Bd(n.parent)&&og(n.parent)?Zr(d).flags|=256:Zr(d).flags|=128),h&&Iye(n.parent,d),d.parent.kind===210)return se<2?(Xe(n,m.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),_t):j;const k=d.parent;if(!H1(k))return Xe(n,m.super_can_only_be_referenced_in_a_derived_class),_t;if(xye(k))return a?_t:je;const z=nl(Cr(k)),K=z&&pp(z)[0];if(!K)return _t;if(d.kind===176&&I3e(n,d))return Xe(n,m.super_cannot_be_referenced_in_constructor_arguments),_t;return x===32?Hf(z):Xp(K,z.thisType);function ne(Te){return a?Te.kind===176:di(Te.parent)||Te.parent.kind===210?la(Te)?Te.kind===174||Te.kind===173||Te.kind===177||Te.kind===178||Te.kind===172||Te.kind===175:Te.kind===174||Te.kind===173||Te.kind===177||Te.kind===178||Te.kind===172||Te.kind===171||Te.kind===176:!1}}function x3e(n){return(n.kind===174||n.kind===177||n.kind===178)&&n.parent.kind===210?n.parent:n.kind===218&&n.parent.kind===303?n.parent.parent:void 0}function R3e(n){return zr(n)&4&&n.target===Kl?$s(n)[0]:void 0}function Bft(n){return _l(n,a=>a.flags&2097152?Ve(a.types,R3e):R3e(a))}function D3e(n,a){let c=n,d=a;for(;d;){const h=Bft(d);if(h)return h;if(c.parent.kind!==303)break;c=c.parent.parent,d=E1(c,void 0)}}function N3e(n){if(n.kind===219)return;if(Tee(n)){const c=p8(n);if(c){const d=c.thisParameter;if(d)return _r(d)}}const a=dr(n);if(ie||a){const c=x3e(n);if(c){const h=E1(c,void 0),y=D3e(c,h);return y?fo(y,oye(ZE(c))):Yp(h?bv(h):uc(c))}const d=Bv(n.parent);if(Wc(d)){const h=d.left;if(js(h)){const{expression:y}=h;if(a&&Ue(y)){const x=Jn(d);if(x.commonJsModuleIndicator&&Hm(y)===x.symbol)return}return Yp(uc(y))}}}}function C3e(n){const a=n.parent;if(!Tee(a))return;const c=xS(a);if(c&&c.arguments){const h=_te(c),y=a.parameters.indexOf(n);if(n.dotDotDotToken)return nbe(h,y,h.length,j,void 0,0);const x=Zr(c),k=x.resolvedSignature;x.resolvedSignature=gt;const z=y<h.length?$E(Eo(h[y])):n.initializer?void 0:Lt;return x.resolvedSignature=k,z}const d=p8(a);if(d){const h=a.parameters.indexOf(n)-(J1(a)?1:0);return n.dotDotDotToken&&il(a.parameters)===n?xB(d,h):tS(d,h)}}function Nye(n,a){const c=Su(n)||(dr(n)?b7(n):void 0);if(c)return Ai(c);switch(n.kind){case 169:return C3e(n);case 208:return Gft(n,a);case 172:if(la(n))return Vft(n,a)}}function Gft(n,a){const c=n.parent.parent,d=n.propertyName||n.name,h=Nye(c,a)||c.kind!==208&&c.initializer&&vM(c,n.dotDotDotToken?32:0);if(!h||na(d)||HL(d))return;if(c.name.kind===207){const x=p2(n.parent.elements,n);return x<0?void 0:Lye(h,x)}const y=gy(d);if(cm(y)){const x=um(y);return Ke(h,x)}}function Vft(n,a){const c=bt(n.parent)&&$d(n.parent,a);if(!!c)return b1(c,Cr(n).escapedName)}function jft(n,a){const c=n.parent;if(Wy(c)&&n===c.initializer){const d=Nye(c,a);if(d)return d;if(!(a&8)&&na(c.name)&&c.name.elements.length>0)return P(c.name,!0,!1)}}function Uft(n,a){const c=Vp(n);if(c){let d=ete(c,a);if(d){const h=Jc(c);if(h&1){const y=(h&2)!==0;d.flags&1048576&&(d=vc(d,k=>!!nS(1,k,y)));const x=nS(1,d,(h&2)!==0);if(!x)return;d=x}if(h&2){const y=_l(d,by);return y&&ei([y,H7e(y)])}return d}}}function Hft(n,a){const c=$d(n,a);if(c){const d=by(c);return d&&ei([d,H7e(d)])}}function qft(n,a){const c=Vp(n);if(c){const d=Jc(c);let h=ete(c,a);if(h){const y=(d&2)!==0;return!n.asteriskToken&&h.flags&1048576&&(h=vc(h,x=>!!nS(1,x,y))),n.asteriskToken?h:nS(0,h,y)}}}function Cye(n){let a=!1;for(;n.parent&&!ta(n.parent);){if(No(n.parent)&&(a||n.parent.initializer===n))return!0;os(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function P3e(n,a){const c=!!(Jc(a)&2),d=ete(a,void 0);if(d)return nS(n,d,c)||void 0}function ete(n,a){const c=ND(n);if(c)return c;const d=wye(n);if(d&&!iee(d)){const y=ys(d),x=Jc(n);return x&1?vc(y,k=>!!(k.flags&58998787)||Tbe(k,x,void 0)):x&2?vc(y,k=>!!(k.flags&58998787)||!!EM(k)):y}const h=xS(n);if(h)return $d(h,a)}function M3e(n,a){const d=_te(n).indexOf(a);return d===-1?void 0:Pye(n,d)}function Pye(n,a){if(Gp(n))return a===0?ke:a===1?b8e(!1):j;const c=Zr(n).resolvedSignature===Er?Er:GD(n);if(dd(n)&&a===0)return ite(c,n);const d=c.parameters.length-1;return Zu(c)&&a>=d?kp(_r(c.parameters[d]),g_(a-d),256):y_(c,a)}function Jft(n){const a=_be(n);return a?KT(a):void 0}function Kft(n,a){if(n.parent.kind===215)return M3e(n.parent,a)}function Xft(n,a){const c=n.parent,{left:d,operatorToken:h,right:y}=c;switch(h.kind){case 64:case 77:case 76:case 78:return n===y?$ft(c):void 0;case 57:case 61:const x=$d(c,a);return n===y&&(x&&x.pattern||!x&&!noe(c))?Cu(d):x;case 56:case 28:return n===y?$d(c,a):void 0;default:return}}function Yft(n){if(x_(n)&&n.symbol)return n.symbol;if(Ue(n))return Hm(n);if(Br(n)){const c=Cu(n.expression);return Qi(n.name)?a(c,n.name):Sa(c,n.name.escapedText)}if(el(n)){const c=uc(n.argumentExpression);if(!cm(c))return;const d=Cu(n.expression);return Sa(d,um(c))}return;function a(c,d){const h=lte(d.escapedText,d);return h&&qye(c,h)}}function $ft(n){var a,c;const d=ql(n);switch(d){case 0:case 4:const h=Yft(n.left),y=h&&h.valueDeclaration;if(y&&(qo(y)||Sp(y))){const z=Su(y);return z&&fo(Ai(z),eo(h).mapper)||(qo(y)?y.initializer&&Cu(n.left):void 0)}return d===0?Cu(n.left):L3e(n);case 5:if(tte(n,d))return L3e(n);if(!x_(n.left)||!n.left.symbol)return Cu(n.left);{const z=n.left.symbol.valueDeclaration;if(!z)return;const K=sa(n.left,js),ne=Su(z);if(ne)return Ai(ne);if(Ue(K.expression)){const Te=K.expression,ve=Tl(Te,Te.escapedText,111551,void 0,Te.escapedText,!0);if(ve){const Ge=ve.valueDeclaration&&Su(ve.valueDeclaration);if(Ge){const vt=Bg(K);if(vt!==void 0)return b1(Ai(Ge),vt)}return}}return dr(z)||z===n.left?void 0:Cu(n.left)}case 1:case 6:case 3:case 2:let x;d!==2&&(x=x_(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),x||(x=(c=n.symbol)==null?void 0:c.valueDeclaration);const k=x&&Su(x);return k?Ai(k):void 0;case 7:case 8:case 9:return N.fail("Does not apply");default:return N.assertNever(d)}}function tte(n,a=ql(n)){if(a===4)return!0;if(!dr(n)||a!==5||!Ue(n.left.expression))return!1;const c=n.left.expression.escapedText,d=Tl(n.left,c,111551,void 0,void 0,!0,!0);return g3(d==null?void 0:d.valueDeclaration)}function L3e(n){if(!n.symbol)return Cu(n.left);if(n.symbol.valueDeclaration){const h=Su(n.symbol.valueDeclaration);if(h){const y=Ai(h);if(y)return y}}const a=sa(n.left,js);if(!Cm(zd(a.expression,!1,!1)))return;const c=uB(a.expression),d=Bg(a);return d!==void 0&&b1(c,d)||void 0}function Qft(n){return!!(Cl(n)&262144&&!n.links.type&&yx(n,0)>=0)}function b1(n,a,c){return _l(n,d=>{var h;if(Xd(d)&&!d.declaration.nameType){const y=Ef(d),x=ju(y)||y,k=c||Yd(Ki(a));if(Aa(k,x))return _ee(d,k)}else if(d.flags&3670016){const y=Sa(d,a);if(y)return Qft(y)?void 0:Jb(_r(y),!!(y&&y.flags&16777216));if(Ha(d)&&ug(a)&&+a>=0){const x=uM(d,d.target.fixedLength,0,!1,!0);if(x)return x}return(h=Kge(Xge(d),c||Yd(Ki(a))))==null?void 0:h.type}},!0)}function k3e(n,a){if(N.assert(Cm(n)),!(n.flags&67108864))return Mye(n,a)}function Mye(n,a){const c=n.parent,d=Tc(n)&&Nye(n,a);if(d)return d;const h=E1(c,a);if(h){if(RD(n)){const y=Cr(n);return b1(h,y.escapedName,eo(y).nameType)}if(Gy(n)){const y=Oo(n);if(y&&ss(y)){const x=Eo(y.expression),k=cm(x)&&b1(h,um(x));if(k)return k}}if(n.name){const y=gy(n.name);return _l(h,x=>{var k;return(k=Kge(Xge(x),y))==null?void 0:k.type},!0)}}}function Zft(n){let a,c;for(let d=0;d<n.length;d++)t_(n[d])&&(a!=null||(a=d),c=d);return{first:a,last:c}}function Lye(n,a,c,d,h){return n&&_l(n,y=>{if(Ha(y)){if((d===void 0||a<d)&&a<y.target.fixedLength)return Jb($s(y)[a],!!y.target.elementFlags[a]);const x=c!==void 0&&(h===void 0||a>h)?c-a:0,k=x>0&&y.target.hasRestElement?K4(y.target,3):0;return x>0&&x<=k?$s(y)[hy(y)-x]:uM(y,d===void 0?y.target.fixedLength:Math.min(y.target.fixedLength,d),c===void 0||h===void 0?k:Math.min(k,c-h),!1,!0)}return(!d||a<d)&&b1(y,""+a)||kbe(1,y,We,void 0,!1)},!0)}function emt(n,a){const c=n.parent;return n===c.whenTrue||n===c.whenFalse?$d(c,a):void 0}function tmt(n,a,c){const d=E1(n.openingElement.attributes,c),h=mB(sA(n));if(!(d&&!Nt(d)&&h&&h!==""))return;const y=P2(n.children),x=y.indexOf(a),k=b1(d,h);return k&&(y.length===1?k:_l(k,z=>yy(z)?kp(z,g_(x)):z,!0))}function nmt(n,a){const c=n.parent;return H6(c)?$d(n,a):pg(c)?tmt(c,n,a):void 0}function w3e(n,a){if(F_(n)){const c=E1(n.parent,a);return!c||Nt(c)?void 0:b1(c,yC(n.name))}else return $d(n.parent,a)}function dB(n){switch(n.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return dB(n.expression);case 294:return!n.expression||dB(n.expression)}return!1}function rmt(n,a){return Kpt(a,n)||Uve(a,Ro(Wt(Vn(n.properties,c=>c.symbol?c.kind===303?dB(c.initializer)&&dM(a,c.symbol.escapedName):c.kind===304?dM(a,c.symbol.escapedName):!1:!1),c=>[()=>LB(c.kind===303?c.initializer:c.name),c.symbol.escapedName]),Wt(Vn(As(a),c=>{var d;return!!(c.flags&16777216)&&!!((d=n==null?void 0:n.symbol)!=null&&d.members)&&!n.symbol.members.has(c.escapedName)&&dM(a,c.escapedName)}),c=>[()=>We,c.escapedName])),Aa)}function imt(n,a){const c=mB(sA(n));return Uve(a,Ro(Wt(Vn(n.properties,d=>!!d.symbol&&d.kind===291&&dM(a,d.symbol.escapedName)&&(!d.initializer||dB(d.initializer))),d=>[d.initializer?()=>LB(d.initializer):()=>or,d.symbol.escapedName]),Wt(Vn(As(a),d=>{var h;if(!(d.flags&16777216)||!((h=n==null?void 0:n.symbol)!=null&&h.members))return!1;const y=n.parent.parent;return d.escapedName===c&&pg(y)&&P2(y.children).length?!1:!n.symbol.members.has(d.escapedName)&&dM(a,d.escapedName)}),d=>[()=>We,d.escapedName])),Aa)}function E1(n,a){const c=Cm(n)?k3e(n,a):$d(n,a),d=nte(c,n,a);if(d&&!(a&&a&2&&d.flags&8650752)){const h=_l(d,y=>zr(y)&32?y:wd(y),!0);return h.flags&1048576&&za(n)?rmt(n,h):h.flags&1048576&&cE(n)?imt(n,h):h}}function nte(n,a,c){if(n&&wl(n,465829888)){const d=ZE(a);if(d&&c&1&&St(d.inferences,Ght))return rte(n,d.nonFixingMapper);if(d!=null&&d.returnMapper){const h=rte(n,d.returnMapper);return h.flags&1048576&&_v(h.types,En)&&_v(h.types,pr)?vc(h,y=>y!==En&&y!==pr):h}}return n}function rte(n,a){return n.flags&465829888?fo(n,a):n.flags&1048576?ei(Wt(n.types,c=>rte(c,a)),0):n.flags&2097152?Ta(Wt(n.types,c=>rte(c,a))):n}function $d(n,a){var y;var c;if(n.flags&67108864)return;const d=W3e(n,!a);if(d>=0)return bn[d];const{parent:h}=n;switch(h.kind){case 260:case 169:case 172:case 171:case 208:return jft(n,a);case 219:case 253:return Uft(n,a);case 229:return qft(h,a);case 223:return Hft(h,a);case 213:case 214:return M3e(h,n);case 170:return Jft(h);case 216:case 234:return Wg(h.type)?$d(h,a):Ai(h.type);case 226:return Xft(n,a);case 303:case 304:return Mye(h,a);case 305:return $d(h.parent,a);case 209:{const x=h,k=E1(x,a),z=p2(x.elements,n),K=(y=(c=Zr(x)).spreadIndices)!=null?y:c.spreadIndices=Zft(x.elements);return Lye(k,z,x.elements.length,K.first,K.last)}case 227:return emt(n,a);case 239:return N.assert(h.parent.kind===228),Kft(h.parent,n);case 217:{if(dr(h)){if(nH(h))return Ai(rH(h));const x=d0(h);if(x&&!Wg(x.typeExpression.type))return Ai(x.typeExpression.type)}return $d(h,a)}case 235:return $d(h,a);case 238:return Ai(h.type);case 277:return no(h);case 294:return nmt(h,a);case 291:case 293:return w3e(h,a);case 286:case 285:return lmt(h,a);case 301:return smt(h)}}function O3e(n){pB(n,$d(n,void 0),!0)}function pB(n,a,c){$n[mi]=n,bn[mi]=a,er[mi]=c,mi++}function d8(){mi--}function W3e(n,a){for(let c=mi-1;c>=0;c--)if(n===$n[c]&&(a||!er[c]))return c;return-1}function omt(n,a){fr[gr]=n,ti[gr]=a,gr++}function amt(){gr--}function ZE(n){for(let a=gr-1;a>=0;a--)if(U1(n,fr[a]))return ti[a]}function smt(n){return b1(dve(!1),S7(n))}function lmt(n,a){if(W_(n)&&a!==4){const c=W3e(n.parent,!a);if(c>=0)return bn[c]}return Pye(n,0)}function ite(n,a){return b7e(a)!==0?cmt(n,a):pmt(n,a)}function cmt(n,a){let c=fbe(n,pn);c=F3e(a,sA(a),c);const d=eS(sf.IntrinsicAttributes,a);return Jt(d)||(c=Cz(d,c)),c}function umt(n,a){if(n.compositeSignatures){const d=[];for(const h of n.compositeSignatures){const y=ys(h);if(Nt(y))return y;const x=Ke(y,a);if(!x)return;d.push(x)}return Ta(d)}const c=ys(n);return Nt(c)?c:Ke(c,a)}function dmt(n){if(Nx(n.tagName)){const c=J3e(n),d=hte(n,c);return KT(d)}const a=uc(n.tagName);if(a.flags&128){const c=q3e(a,n);if(!c)return _t;const d=hte(n,c);return KT(d)}return a}function F3e(n,a,c){const d=Mmt(a);if(d){const h=dmt(n),y=Y3e(d,dr(n),h,c);if(y)return y}return c}function pmt(n,a){const c=sA(a),d=kmt(c);let h=d===void 0?fbe(n,pn):d===""?ys(n):umt(n,d);if(!h)return!!d&&!!Pe(a.attributes.properties)&&Xe(a,m.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Ki(d)),pn;if(h=F3e(a,c,h),Nt(h))return h;{let y=h;const x=eS(sf.IntrinsicClassAttributes,a);if(!Jt(x)){const z=Wr(x.symbol),K=ys(n);let ne;if(z){const Te=Fb([K],z,Uh(z),dr(a));ne=fo(x,wp(z,Te))}else ne=x;y=Cz(ne,y)}const k=eS(sf.IntrinsicAttributes,a);return Jt(k)||(y=Cz(k,y)),y}}function fmt(n){return md(V,"noImplicitAny")?ad(n,(a,c)=>a===c||!a?a:W4e(a.typeParameters,c.typeParameters)?hmt(a,c):void 0):void 0}function mmt(n,a,c){if(!n||!a)return n||a;const d=ei([_r(n),fo(_r(a),c)]);return tA(n,d)}function _mt(n,a,c){const d=$p(n),h=$p(a),y=d>=h?n:a,x=y===n?a:n,k=y===n?d:h,z=Kh(n)||Kh(a),K=z&&!Kh(y),ne=new Array(k+(K?1:0));for(let Te=0;Te<k;Te++){let ve=tS(y,Te);y===a&&(ve=fo(ve,c));let Ge=tS(x,Te)||pn;x===a&&(Ge=fo(Ge,c));const vt=ei([ve,Ge]),xt=z&&!K&&Te===k-1,cn=Te>=ah(y)&&Te>=ah(x),sn=Te>=d?void 0:gM(n,Te),rr=Te>=h?void 0:gM(a,Te),zn=sn===rr?sn:sn?rr?void 0:sn:rr,mn=ts(1|(cn&&!xt?16777216:0),zn||`arg${Te}`);mn.links.type=xt?Uu(vt):vt,ne[Te]=mn}if(K){const Te=ts(1,"args");Te.links.type=Uu(y_(x,k)),x===a&&(Te.links.type=fo(Te.links.type,c)),ne[k]=Te}return ne}function hmt(n,a){const c=n.typeParameters||a.typeParameters;let d;n.typeParameters&&a.typeParameters&&(d=wp(a.typeParameters,n.typeParameters));const h=n.declaration,y=_mt(n,a,d),x=mmt(n.thisParameter,a.thisParameter,d),k=Math.max(n.minArgumentCount,a.minArgumentCount),z=xg(h,c,x,y,void 0,void 0,k,(n.flags|a.flags)&167);return z.compositeKind=2097152,z.compositeSignatures=Ro(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),d&&(z.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?YE(n.mapper,d):d),z}function kye(n,a){const c=$o(n,0),d=Vn(c,h=>!gmt(h,a));return d.length===1?d[0]:fmt(d)}function gmt(n,a){let c=0;for(;c<a.parameters.length;c++){const d=a.parameters[c];if(d.initializer||d.questionToken||d.dotDotDotToken||Gk(d))break}return a.parameters.length&&K1(a.parameters[0])&&c--,!Kh(n)&&$p(n)<c}function wye(n){return Z1(n)||Cm(n)?p8(n):void 0}function p8(n){N.assert(n.kind!==174||Cm(n));const a=tM(n);if(a)return a;const c=E1(n,1);if(!c)return;if(!(c.flags&1048576))return kye(c,n);let d;const h=c.types;for(const y of h){const x=kye(y,n);if(x)if(!d)d=[x];else if(Qz(d[0],x,!1,!0,!0,e8))d.push(x);else return}if(d)return d.length===1?d[0]:w4e(d[0],d)}function vmt(n,a){se<2&&Lc(n,V.downlevelIteration?1536:1024);const c=Eo(n.expression,a);return Ey(33,c,We,n.expression)}function ymt(n){return n.isSpread?kp(n.type,Tt):n.type}function hM(n){return n.kind===208&&!!n.initializer||n.kind===226&&n.operatorToken.kind===64}function bmt(n){const a=Bv(n.parent);return t_(a)&&I_(a.parent)}function z3e(n,a,c){const d=n.elements,h=d.length,y=[],x=[];O3e(n);const k=og(n),z=yM(n),K=E1(n,void 0),ne=bmt(n)||!!K&&qm(K,ve=>cM(ve)||Xd(ve)&&!ve.nameType&&!!Q4(ve.target||ve));let Te=!1;for(let ve=0;ve<h;ve++){const Ge=d[ve];if(Ge.kind===230){se<2&&Lc(Ge,V.downlevelIteration?1536:1024);const vt=Eo(Ge.expression,a,c);if(yy(vt))y.push(vt),x.push(8);else if(k){const xt=d1(vt,Tt)||kbe(65,vt,We,void 0,!1)||pn;y.push(xt),x.push(4)}else y.push(Ey(33,vt,We,Ge.expression)),x.push(4)}else if(Le&&Ge.kind===232)Te=!0,y.push(me),x.push(2);else{const vt=bM(Ge,a,c);if(y.push(dp(vt,!0,Te)),x.push(Te?2:1),ne&&a&&a&2&&!(a&4)&&Kf(Ge)){const xt=ZE(n);N.assert(xt),rye(xt,Ge,vt)}}}return d8(),k?qh(y,x):B3e(c||z||ne?qh(y,x,z&&!(K&&qm(K,Kve))):Uu(y.length?ei(mo(y,(ve,Ge)=>x[Ge]&8?Bb(ve,Tt)||j:ve),2):Y?Fi:Lt,z))}function B3e(n){if(!(zr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=l8e(n),a.objectFlags|=147456),a}function Emt(n){switch(n.kind){case 167:return Smt(n);case 80:return ug(n.escapedText);case 9:case 11:return ug(n.text);default:return!1}}function Smt(n){return Nu(Dg(n),296)}function Dg(n){const a=Zr(n.expression);if(!a.resolvedType){if((Ap(n.parent.parent)||di(n.parent.parent)||gd(n.parent.parent))&&vr(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return a.resolvedType=_t;if(a.resolvedType=Eo(n.expression),qo(n.parent)&&!Ec(n.parent)&&iu(n.parent.parent)){const c=yh(n.parent.parent),d=Aye(c);d&&(Zr(d).flags|=4096,Zr(n).flags|=32768,Zr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Nu(a.resolvedType,402665900)&&!Aa(a.resolvedType,Qt))&&Xe(n,m.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function Tmt(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return ug(n.escapedName)||c&&cd(c)&&Emt(c.name)}function G3e(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return Sk(n)||c&&cd(c)&&ss(c.name)&&Nu(Dg(c.name),4096)}function Oye(n,a,c,d){const h=[];for(let x=a;x<c.length;x++){const k=c[x];(d===ke&&!G3e(k)||d===Tt&&Tmt(k)||d===li&&G3e(k))&&h.push(_r(c[x]))}const y=h.length?ei(h,2):We;return Hh(d,y,yM(n))}function Wye(n){N.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=eo(n);if(!a.immediateTarget){const c=zm(n);if(!c)return N.fail();a.immediateTarget=qp(c,!0)}return a.immediateTarget}function Amt(n,a=0){var c;const d=og(n);Cbt(n,d);const h=Y?pa():void 0;let y=pa(),x=[],k=wa;O3e(n);const z=E1(n,void 0),K=z&&z.pattern&&(z.pattern.kind===206||z.pattern.kind===210),ne=yM(n),Te=ne?8:0,ve=dr(n)&&!S3(n),Ge=ve?aj(n):void 0,vt=!z&&ve&&!Ge;let xt=Se,cn=!1,sn=!1,rr=!1,zn=!1;for(const Pn of n.properties)Pn.name&&ss(Pn.name)&&Dg(Pn.name);let mn=0;for(const Pn of n.properties){let qn=Cr(Pn);const Hn=Pn.name&&Pn.name.kind===167?Dg(Pn.name):void 0;if(Pn.kind===303||Pn.kind===304||Cm(Pn)){let ir=Pn.kind===303?a5e(Pn,a):Pn.kind===304?bM(!d&&Pn.objectAssignmentInitializer?Pn.objectAssignmentInitializer:Pn.name,a):s5e(Pn,a);if(ve){const Vo=uv(Pn);Vo?(od(ir,Vo,Pn),ir=Vo):Ge&&Ge.typeExpression&&od(ir,Ai(Ge.typeExpression),Pn)}xt|=zr(ir)&458752;const vo=Hn&&cm(Hn)?Hn:void 0,yo=vo?ts(4|qn.flags,um(vo),Te|4096):ts(4|qn.flags,qn.escapedName,Te);if(vo&&(yo.links.nameType=vo),d)(Pn.kind===303&&hM(Pn.initializer)||Pn.kind===304&&Pn.objectAssignmentInitializer)&&(yo.flags|=16777216);else if(K&&!(zr(z)&512)){const Vo=Sa(z,qn.escapedName);Vo?yo.flags|=Vo.flags&16777216:!V.suppressExcessPropertyErrors&&!Rg(z,ke)&&Xe(Pn.name,m.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ti(qn),Kn(z))}if(yo.declarations=qn.declarations,yo.parent=qn.parent,qn.valueDeclaration&&(yo.valueDeclaration=qn.valueDeclaration),yo.links.type=ir,yo.links.target=qn,qn=yo,h==null||h.set(yo.escapedName,yo),z&&a&2&&!(a&4)&&(Pn.kind===303||Pn.kind===174)&&Kf(Pn)){const Vo=ZE(n);N.assert(Vo);const So=Pn.kind===303?Pn.initializer:Pn;rye(Vo,So,ir)}}else if(Pn.kind===305){se<2&&Lc(Pn,2),x.length>0&&(k=JE(k,Gn(),n.symbol,xt,ne),x=[],y=pa(),sn=!1,rr=!1,zn=!1);const ir=h_(Eo(Pn.expression,a&2));if(fB(ir)){const vo=Cve(ir,ne);if(h&&j3e(vo,h,Pn),mn=x.length,Jt(k))continue;k=JE(k,vo,n.symbol,xt,ne)}else Xe(Pn,m.Spread_types_may_only_be_created_from_object_types),k=_t;continue}else N.assert(Pn.kind===177||Pn.kind===178),Cx(Pn);Hn&&!(Hn.flags&8576)?Aa(Hn,Qt)&&(Aa(Hn,Tt)?rr=!0:Aa(Hn,li)?zn=!0:sn=!0,d&&(cn=!0)):y.set(qn.escapedName,qn),x.push(qn)}if(d8(),K){const Pn=jn(z.pattern.parent,Hn=>Hn.kind===260||Hn.kind===226||Hn.kind===169);if(jn(n,Hn=>Hn===Pn||Hn.kind===305).kind!==305)for(const Hn of As(z))!y.get(Hn.escapedName)&&!Sa(k,Hn.escapedName)&&(Hn.flags&16777216||Xe(Hn.valueDeclaration||((c=ni(Hn,gh))==null?void 0:c.links.bindingElement),m.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),y.set(Hn.escapedName,Hn),x.push(Hn))}if(Jt(k))return _t;if(k!==wa)return x.length>0&&(k=JE(k,Gn(),n.symbol,xt,ne),x=[],y=pa(),sn=!1,rr=!1),_l(k,Pn=>Pn===wa?Gn():Pn);return Gn();function Gn(){const Pn=[];sn&&Pn.push(Oye(n,mn,x,ke)),rr&&Pn.push(Oye(n,mn,x,Tt)),zn&&Pn.push(Oye(n,mn,x,li));const qn=Vs(n.symbol,y,et,et,Pn);return qn.objectFlags|=xt|128|131072,vt&&(qn.objectFlags|=4096),cn&&(qn.objectFlags|=512),d&&(qn.pattern=n),qn}}function fB(n){const a=O6e(_l(n,mv));return!!(a.flags&126615553||a.flags&3145728&&Bn(a.types,fB))}function Imt(n){Bye(n)}function xmt(n,a){return Cx(n),_B(n)||j}function Rmt(n){Bye(n.openingElement),Nx(n.closingElement.tagName)?ate(n.closingElement):Eo(n.closingElement.tagName),ote(n)}function Dmt(n,a){return Cx(n),_B(n)||j}function Nmt(n){Bye(n.openingFragment);const a=Jn(n);return o7(V)&&(V.jsxFactory||a.pragmas.has("jsx"))&&!V.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Xe(n,V.jsxFactory?m.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:m.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),ote(n),_B(n)||j}function Fye(n){return n.includes("-")}function Nx(n){return Ue(n)&&L2(n.escapedText)||n_(n)}function V3e(n,a){return n.initializer?bM(n.initializer,a):or}function Cmt(n,a=0){const c=n.attributes,d=$d(c,0),h=Y?pa():void 0;let y=pa(),x=yl,k=!1,z,K=!1,ne=2048;const Te=mB(sA(n));for(const vt of c.properties){const xt=vt.symbol;if(F_(vt)){const cn=V3e(vt,a);ne|=zr(cn)&458752;const sn=ts(4|xt.flags,xt.escapedName);if(sn.declarations=xt.declarations,sn.parent=xt.parent,xt.valueDeclaration&&(sn.valueDeclaration=xt.valueDeclaration),sn.links.type=cn,sn.links.target=xt,y.set(sn.escapedName,sn),h==null||h.set(sn.escapedName,sn),yC(vt.name)===Te&&(K=!0),d){const rr=Sa(d,xt.escapedName);rr&&rr.declarations&&hb(rr)&&Ue(vt.name)&&cy(vt.name,rr.declarations,vt.name.escapedText)}if(d&&a&2&&!(a&4)&&Kf(vt)){const rr=ZE(c);N.assert(rr);const zn=vt.initializer.expression;rye(rr,zn,cn)}}else{N.assert(vt.kind===293),y.size>0&&(x=JE(x,Ge(),c.symbol,ne,!1),y=pa());const cn=h_(Eo(vt.expression,a&2));Nt(cn)&&(k=!0),fB(cn)?(x=JE(x,cn,c.symbol,ne,!1),h&&j3e(cn,h,vt)):(Xe(vt.expression,m.Spread_types_may_only_be_created_from_object_types),z=z?Ta([z,cn]):cn)}}k||y.size>0&&(x=JE(x,Ge(),c.symbol,ne,!1));const ve=n.parent.kind===284?n.parent:void 0;if(ve&&ve.openingElement===n&&P2(ve.children).length>0){const vt=ote(ve,a);if(!k&&Te&&Te!==""){K&&Xe(c,m._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Ki(Te));const xt=E1(n.attributes,void 0),cn=xt&&b1(xt,Te),sn=ts(4,Te);sn.links.type=vt.length===1?vt[0]:cn&&qm(cn,cM)?qh(vt):Uu(ei(vt)),sn.valueDeclaration=O.createPropertySignature(void 0,Ki(Te),void 0,void 0),Qa(sn.valueDeclaration,c),sn.valueDeclaration.symbol=sn;const rr=pa();rr.set(Te,sn),x=JE(x,Vs(c.symbol,rr,et,et,et),c.symbol,ne,!1)}}if(k)return j;if(z&&x!==yl)return Ta([z,x]);return z||(x===yl?Ge():x);function Ge(){ne|=Se;const vt=Vs(c.symbol,y,et,et,et);return vt.objectFlags|=ne|128|131072,vt}}function ote(n,a){const c=[];for(const d of n.children)if(d.kind===12)d.containsOnlyTriviaWhiteSpaces||c.push(ke);else{if(d.kind===294&&!d.expression)continue;c.push(bM(d,a))}return c}function j3e(n,a,c){for(const d of As(n))if(!(d.flags&16777216)){const h=a.get(d.escapedName);if(h){const y=Xe(h.valueDeclaration,m._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Ki(h.escapedName));Fa(y,Fr(c,m.This_spread_always_overwrites_this_property))}}}function Pmt(n,a){return Cmt(n.parent,a)}function eS(n,a){const c=sA(a),d=c&&Lp(c),h=d&&Kd(d,n,788968);return h?nl(h):_t}function ate(n){const a=Zr(n);if(!a.resolvedSymbol){const c=eS(sf.IntrinsicElements,n);if(Jt(c))return de&&Xe(n,m.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Ki(sf.IntrinsicElements)),a.resolvedSymbol=pt;{if(!Ue(n.tagName)&&!n_(n.tagName))return N.fail();const d=n_(n.tagName)?tI(n.tagName):n.tagName.escapedText,h=Sa(c,d);if(h)return a.jsxFlags|=1,a.resolvedSymbol=h;const y=gWe(c,Yd(Ki(d)));return y?(a.jsxFlags|=2,a.resolvedSymbol=y):Rt(c,d)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(Xe(n,m.Property_0_does_not_exist_on_type_1,iH(n.tagName),"JSX."+sf.IntrinsicElements),a.resolvedSymbol=pt)}}return a.resolvedSymbol}function zye(n){const a=n&&Jn(n),c=a&&Zr(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;const d=s7(a7(V,a),V);if(!d)return;const y=_d(V)===1?m.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:m.Cannot_find_module_0_or_its_corresponding_type_declarations,x=V.importHelpers?1:0,k=a==null?void 0:a.imports[x];k&&N.assert(Zs(k)&&k.text===d,`Expected sourceFile.imports[${x}] to be the synthesized JSX runtime import`);const z=X_(k||n,d,y,n),K=z&&z!==pt?ds(Xl(z)):void 0;return c&&(c.jsxImplicitImportContainer=K||!1),K}function sA(n){const a=n&&Zr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let d=zye(n);if(!d||d===pt){const h=J0(n);d=Tl(n,h,1920,void 0,h,!1)}if(d){const h=Xl(Kd(Lp(Xl(d)),sf.JSX,1920));if(h&&h!==pt)return a&&(a.jsxNamespace=h),h}a&&(a.jsxNamespace=!1)}const c=Xl(iM(sf.JSX,1920,void 0));if(c!==pt)return c}function U3e(n,a){const c=a&&Kd(a.exports,n,788968),d=c&&nl(c),h=d&&As(d);if(h){if(h.length===0)return"";if(h.length===1)return h[0].escapedName;h.length>1&&c.declarations&&Xe(c.declarations[0],m.The_global_type_JSX_0_may_not_have_more_than_one_property,Ki(n))}}function Mmt(n){return n&&Kd(n.exports,sf.LibraryManagedAttributes,788968)}function Lmt(n){return n&&Kd(n.exports,sf.ElementType,788968)}function kmt(n){return U3e(sf.ElementAttributesPropertyNameContainer,n)}function mB(n){return U3e(sf.ElementChildrenAttributeNameContainer,n)}function H3e(n,a){if(n.flags&4)return[gt];if(n.flags&128){const h=q3e(n,a);return h?[hte(a,h)]:(Xe(a,m.Property_0_does_not_exist_on_type_1,n.value,"JSX."+sf.IntrinsicElements),et)}const c=wd(n);let d=$o(c,1);return d.length===0&&(d=$o(c,0)),d.length===0&&c.flags&1048576&&(d=Oge(Wt(c.types,h=>H3e(h,a)))),d}function q3e(n,a){const c=eS(sf.IntrinsicElements,a);if(!Jt(c)){const d=n.value,h=Sa(c,bl(d));if(h)return _r(h);const y=d1(c,ke);return y||void 0}return j}function wmt(n,a,c){if(n===1){const h=X3e(c);h&&Xf(a,h,Jd,c.tagName,m.Its_return_type_0_is_not_a_valid_JSX_element,d)}else if(n===0){const h=K3e(c);h&&Xf(a,h,Jd,c.tagName,m.Its_instance_type_0_is_not_a_valid_JSX_element,d)}else{const h=X3e(c),y=K3e(c);if(!h||!y)return;const x=ei([h,y]);Xf(a,x,Jd,c.tagName,m.Its_element_type_0_is_not_a_valid_JSX_element,d)}function d(){const h=bc(c.tagName);return jo(void 0,m._0_cannot_be_used_as_a_JSX_component,h)}}function J3e(n){var a;N.assert(Nx(n.tagName));const c=Zr(n);if(!c.resolvedJsxElementAttributesType){const d=ate(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=_r(d)||_t;if(c.jsxFlags&2){const h=n_(n.tagName)?tI(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=Tx(eS(sf.IntrinsicElements,n),h))==null?void 0:a.type)||_t}else return c.resolvedJsxElementAttributesType=_t}return c.resolvedJsxElementAttributesType}function K3e(n){const a=eS(sf.ElementClass,n);if(!Jt(a))return a}function _B(n){return eS(sf.Element,n)}function X3e(n){const a=_B(n);if(a)return ei([a,fe])}function Omt(n){const a=sA(n);if(!a)return;const c=Lmt(a);if(!c)return;const d=Y3e(c,dr(n));if(!(!d||Jt(d)))return d}function Y3e(n,a,...c){const d=nl(n);if(n.flags&524288){const h=eo(n).typeParameters;if(Pe(h)>=c.length){const y=Fb(c,h,c.length,a);return Pe(y)===0?d:PD(n,y)}}if(Pe(d.typeParameters)>=c.length){const h=Fb(c,d.typeParameters,c.length,a);return _y(d,h)}}function Wmt(n){const a=eS(sf.IntrinsicElements,n);return a?As(a):et}function Fmt(n){(V.jsx||0)===0&&Xe(n,m.Cannot_use_JSX_unless_the_jsx_flag_is_provided),_B(n)===void 0&&de&&Xe(n,m.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Bye(n){const a=dd(n);if(a&&Pbt(n),Fmt(n),!zye(n)){const c=cs&&V.jsx===2?m.Cannot_find_name_0:void 0,d=J0(n),h=a?n.tagName:n;let y;if(EI(n)&&d==="null"||(y=Tl(h,d,111551,c,d,!0)),y&&(y.isReferenced=-1,It&&y.flags&2097152&&!Gf(y)&&Tb(y)),EI(n)){const x=Jn(n),k=ax(x);k&&Tl(h,k,111551,c,k,!0)}}if(a){const c=n,d=GD(c);vte(d,n);const h=Omt(c);if(h!==void 0){const y=c.tagName,x=Nx(y)?Yd(iH(y)):Eo(y);Xf(x,h,Jd,y,m.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const k=bc(y);return jo(void 0,m._0_cannot_be_used_as_a_JSX_component,k)})}else wmt(b7e(c),ys(d),c)}}function Gye(n,a,c){if(n.flags&524288){if(u1(n,a)||Tx(n,a)||G4(a)&&Rg(n,ke)||c&&Fye(a))return!0}else if(n.flags&3145728&&hB(n)){for(const d of n.types)if(Gye(d,a,c))return!0}return!1}function hB(n){return!!(n.flags&524288&&!(zr(n)&512)||n.flags&67108864||n.flags&1048576&&St(n.types,hB)||n.flags&2097152&&Bn(n.types,hB))}function zmt(n,a){if(Lbt(n),n.expression){const c=Eo(n.expression,a);return n.dotDotDotToken&&c!==j&&!Yf(c)&&Xe(n,m.JSX_spread_child_must_be_an_array_type),c}else return _t}function Vye(n){return n.valueDeclaration?oS(n.valueDeclaration):0}function jye(n){if(n.flags&8192||Cl(n)&4)return!0;if(dr(n.valueDeclaration)){const a=n.valueDeclaration.parent;return a&&vr(a)&&ql(a)===3}}function Uye(n,a,c,d,h,y=!0){const x=y?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return $3e(n,a,c,d,h,x)}function $3e(n,a,c,d,h,y){var x;const k=Df(h,c);if(a){if(se<2&&Q3e(h))return y&&Xe(y,m.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(k&64)return y&&Xe(y,m.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Ti(h),Kn(Dx(h))),!1;if(!(k&256)&&((x=h.declarations)==null?void 0:x.some(tie)))return y&&Xe(y,m.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Ti(h)),!1}if(k&64&&Q3e(h)&&(QL(n)||Zie(n)||pm(n.parent)&&g3(n.parent.parent))){const K=jg(Md(h));if(K&&Cyt(n))return y&&Xe(y,m.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Ti(h),am(K.name)),!1}if(!(k&6))return!0;if(k&2){const K=jg(Md(h));return qbe(n,K)?!0:(y&&Xe(y,m.Property_0_is_private_and_only_accessible_within_class_1,Ti(h),Kn(Dx(h))),!1)}if(a)return!0;let z=_We(n,K=>{const ne=nl(Cr(K));return x6e(ne,h,c)});return!z&&(z=Bmt(n),z=z&&x6e(z,h,c),k&256||!z)?(y&&Xe(y,m.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Ti(h),Kn(Dx(h)||d)),!1):k&256?!0:(d.flags&262144&&(d=d.isThisType?kd(d):ju(d)),!d||!xD(d,z)?(y&&Xe(y,m.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Ti(h),Kn(z),Kn(d)),!1):!0)}function Bmt(n){const a=Gmt(n);let c=(a==null?void 0:a.type)&&Ai(a.type);if(c&&c.flags&262144&&(c=kd(c)),c&&zr(c)&7)return fy(c)}function Gmt(n){const a=zd(n,!1,!1);return a&&ta(a)?J1(a):void 0}function Q3e(n){return!!$z(n,a=>!(a.flags&8192))}function zD(n){return rh(Eo(n),n)}function gB(n){return bm(n,50331648)}function Hye(n){return gB(n)?bv(n):n}function Vmt(n,a){const c=Jl(n)?vp(n):void 0;if(n.kind===106){Xe(n,m.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(Ue(n)&&c==="undefined"){Xe(n,m.The_value_0_cannot_be_used_here,"undefined");return}Xe(n,a&16777216?a&33554432?m._0_is_possibly_null_or_undefined:m._0_is_possibly_undefined:m._0_is_possibly_null,c)}else Xe(n,a&16777216?a&33554432?m.Object_is_possibly_null_or_undefined:m.Object_is_possibly_undefined:m.Object_is_possibly_null)}function jmt(n,a){Xe(n,a&16777216?a&33554432?m.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:m.Cannot_invoke_an_object_which_is_possibly_undefined:m.Cannot_invoke_an_object_which_is_possibly_null)}function Z3e(n,a,c){if(Y&&n.flags&2){if(Jl(a)){const h=vp(a);if(h.length<100)return Xe(a,m._0_is_of_type_unknown,h),_t}return Xe(a,m.Object_is_of_type_unknown),_t}const d=pM(n,50331648);if(d&50331648){c(a,d);const h=bv(n);return h.flags&229376?_t:h}return n}function rh(n,a){return Z3e(n,a,Vmt)}function e7e(n,a){const c=rh(n,a);if(c.flags&16384){if(Jl(a)){const d=vp(a);if(Ue(a)&&d==="undefined")return Xe(a,m.The_value_0_cannot_be_used_here,d),c;if(d.length<100)return Xe(a,m._0_is_possibly_undefined,d),c}Xe(a,m.Object_is_possibly_undefined)}return c}function ste(n,a,c){return n.flags&64?Umt(n,a):Jye(n,n.expression,zD(n.expression),n.name,a,c)}function Umt(n,a){const c=Eo(n.expression),d=i8(c,n.expression);return Oee(Jye(n,n.expression,rh(d,n.expression),n.name,a),n,d!==c)}function t7e(n,a){const c=E3(n)&&X1(n.left)?rh(uB(n.left),n.left):zD(n.left);return Jye(n,n.left,c,n.right,a)}function n7e(n){for(;n.parent.kind===217;)n=n.parent;return I_(n.parent)&&n.parent.expression===n}function lte(n,a){for(let c=_3(a);c;c=du(c)){const{symbol:d}=c,h=Ek(d,n),y=d.members&&d.members.get(h)||d.exports&&d.exports.get(h);if(y)return y}}function Hmt(n){if(!du(n))return Sn(n,m.Private_identifiers_are_not_allowed_outside_class_bodies);if(!y5(n.parent)){if(!rg(n))return Sn(n,m.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const a=vr(n.parent)&&n.parent.operatorToken.kind===103;if(!cte(n)&&!a)return Sn(n,m.Cannot_find_name_0,Rr(n))}return!1}function qmt(n){Hmt(n);const a=cte(n);return a&&yB(a,void 0,!1),j}function cte(n){if(!rg(n))return;const a=Zr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=lte(n.escapedText,n)),a.resolvedSymbol}function qye(n,a){return Sa(n,a.escapedName)}function Jmt(n,a,c){let d;const h=As(n);h&&Ve(h,x=>{const k=x.valueDeclaration;if(k&&cd(k)&&Qi(k.name)&&k.name.escapedText===a.escapedText)return d=x,!0});const y=Fm(a);if(d){const x=N.checkDefined(d.valueDeclaration),k=N.checkDefined(du(x));if(c!=null&&c.valueDeclaration){const z=c.valueDeclaration,K=du(z);if(N.assert(!!K),jn(K,ne=>k===ne)){const ne=Xe(a,m.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,y,Kn(n));return Fa(ne,Fr(z,m.The_shadowing_declaration_of_0_is_defined_here,y),Fr(x,m.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,y)),!0}}return Xe(a,m.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,y,Fm(k.name||sW)),!0}return!1}function r7e(n,a){return(TD(a)||QL(n)&&XP(a))&&zd(n,!0,!1)===YP(a)}function Jye(n,a,c,d,h,y){const x=Zr(a).resolvedSymbol,k=HA(n),z=wd(k!==0||n7e(n)?Yp(c):c),K=Nt(z)||z===Ao;let ne;if(Qi(d)){se<99&&(k!==0&&Lc(n,1048576),k!==1&&Lc(n,524288));const ve=lte(d.escapedText,d);if(k&&ve&&ve.valueDeclaration&&Ql(ve.valueDeclaration)&&Sn(d,m.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Rr(d)),K){if(ve)return Jt(z)?_t:z;if(_3(d)===void 0)return Sn(d,m.Private_identifiers_are_not_allowed_outside_class_bodies),j}if(ne=ve&&qye(c,ve),ne===void 0){if(Jmt(c,d,ve))return _t;const Ge=_3(d);Ge&&GL(Jn(Ge),V.checkJs)&&Sn(d,m.Private_field_0_must_be_declared_in_an_enclosing_class,Rr(d))}else ne.flags&65536&&!(ne.flags&32768)&&k!==1&&Xe(n,m.Private_accessor_was_defined_without_a_getter)}else{if(K)return Ue(a)&&x&&Zee(x,n),Jt(z)?_t:z;ne=Sa(z,d.escapedText,Ete(z),n.kind===166)}Ue(a)&&x&&(dm(V)||!(ne&&(I8(ne)||ne.flags&8&&n.parent.kind===306))||tE(V)&&S3e(n))&&Zee(x,n);let Te;if(ne){const ve=jbe(ne,d);if(hb(ve)&&Ive(n,ve)&&ve.declarations&&cy(d,ve.declarations,d.escapedText),Kmt(ne,n,d),yB(ne,n,u7e(a,x)),Zr(n).resolvedSymbol=ne,Uye(n,a.kind===108,YA(n),z,ne),Z7e(n,ne,k))return Xe(d,m.Cannot_assign_to_0_because_it_is_a_read_only_property,Rr(d)),_t;Te=r7e(n,ne)?ot:y||$3(n)?jE(ne):_r(ne)}else{const ve=!Qi(d)&&(k===0||!$T(c)||gC(c))?Tx(z,d.escapedText):void 0;if(!(ve&&ve.type)){const Ge=Kye(n,c.symbol,!0);return!Ge&&X4(c)?j:c.symbol===it?(it.exports.has(d.escapedText)&&it.exports.get(d.escapedText).flags&418?Xe(d,m.Property_0_does_not_exist_on_type_1,Ki(d.escapedText),Kn(c)):de&&Xe(d,m.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Kn(c)),j):(d.escapedText&&!AT(n)&&a7e(d,gC(c)?z:c,Ge),_t)}ve.isReadonly&&(og(n)||sU(n))&&Xe(n,m.Index_signature_in_type_0_only_permits_reading,Kn(z)),Te=V.noUncheckedIndexedAccess&&!og(n)?ei([ve.type,L]):ve.type,V.noPropertyAccessFromIndexSignature&&Br(n)&&Xe(d,m.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Ki(d.escapedText)),ve.declaration&&ly(ve.declaration)&&cy(d,[ve.declaration],d.escapedText)}return i7e(n,ne,Te,d,h)}function Kye(n,a,c){var d;const h=Jn(n);if(h&&V.checkJs===void 0&&h.checkJsDirective===void 0&&(h.scriptKind===1||h.scriptKind===2)){const y=Ve(a==null?void 0:a.declarations,Jn),x=!(a!=null&&a.valueDeclaration)||!di(a.valueDeclaration)||((d=a.valueDeclaration.heritageClauses)==null?void 0:d.length)||zv(!1,a.valueDeclaration);return!(h!==y&&!!y&&wh(y))&&!(c&&a&&a.flags&32&&x)&&!(!!n&&c&&Br(n)&&n.expression.kind===110&&x)}return!1}function i7e(n,a,c,d,h){const y=HA(n);if(y===1)return Jb(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!Ote(a.declarations))return c;if(c===ot)return AD(n,a);c=Tye(c,n,h);let x=!1;if(Y&&Ie&&js(n)&&n.expression.kind===110){const z=a&&a.valueDeclaration;if(z&&nWe(z)&&!la(z)){const K=u8(n);K.kind===176&&K.parent===z.parent&&!(z.flags&33554432)&&(x=!0)}}else Y&&a&&a.valueDeclaration&&Br(a.valueDeclaration)&&lk(a.valueDeclaration)&&u8(n)===u8(a.valueDeclaration)&&(x=!0);const k=Kb(n,c,x?qb(c):c);return x&&!aM(c)&&aM(k)?(Xe(d,m.Property_0_is_used_before_being_assigned,Ti(a)),c):y?yv(k):k}function Kmt(n,a,c){const{valueDeclaration:d}=n;if(!d||Jn(a).isDeclarationFile)return;let h;const y=Rr(c);o7e(a)&&!Oct(d)&&!(js(a)&&js(a.expression))&&!iv(d,c)&&!(Ql(d)&&Hte(d)&256)&&(_e||!Xmt(n))?h=Xe(c,m.Property_0_is_used_before_its_initialization,y):d.kind===263&&a.parent.kind!==183&&!(d.flags&33554432)&&!iv(d,c)&&(h=Xe(c,m.Class_0_used_before_its_declaration,y)),h&&Fa(h,Fr(d,m._0_is_declared_here,y))}function o7e(n){return!!jn(n,a=>{switch(a.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return Yo(a.parent)&&Pl(a.parent.parent)?!0:"quit";default:return rg(a)?!1:"quit"}})}function Xmt(n){if(!(n.parent.flags&32))return!1;let a=_r(n.parent);for(;;){if(a=a.symbol&&Ymt(a),!a)return!1;const c=Sa(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function Ymt(n){const a=pp(n);if(a.length!==0)return Ta(a)}function a7e(n,a,c){let d,h;if(!Qi(n)&&a.flags&1048576&&!(a.flags&402784252)){for(const x of a.types)if(!Sa(x,n.escapedText)&&!Tx(x,n.escapedText)){d=jo(d,m.Property_0_does_not_exist_on_type_1,ks(n),Kn(x));break}}if(s7e(n.escapedText,a)){const x=ks(n),k=Kn(a);d=jo(d,m.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,x,k,k+"."+x)}else{const x=y8(a);if(x&&Sa(x,n.escapedText))d=jo(d,m.Property_0_does_not_exist_on_type_1,ks(n),Kn(a)),h=Fr(n,m.Did_you_forget_to_use_await);else{const k=ks(n),z=Kn(a),K=Zmt(k,a);if(K!==void 0)d=jo(d,m.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,k,z,K);else{const ne=Xye(n,a);if(ne!==void 0){const Te=Il(ne),ve=c?m.Property_0_may_not_exist_on_type_1_Did_you_mean_2:m.Property_0_does_not_exist_on_type_1_Did_you_mean_2;d=jo(d,ve,k,z,Te),h=ne.valueDeclaration&&Fr(ne.valueDeclaration,m._0_is_declared_here,Te)}else{const Te=$mt(a)?m.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:m.Property_0_does_not_exist_on_type_1;d=jo(qge(d,a),Te,k,z)}}}}const y=zg(Jn(n),n,d);h&&Fa(y,h),l_(!c||d.code!==m.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,y)}function $mt(n){return V.lib&&!V.lib.includes("dom")&&cft(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Ki(a.symbol.escapedName)))&&vv(n)}function s7e(n,a){const c=a.symbol&&Sa(_r(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&la(c.valueDeclaration)}function Qmt(n){const a=Fm(n),d=I7().get(a);return d&&TG(d.keys())}function Zmt(n,a){const c=wd(a).symbol;if(!c)return;const d=Il(c),y=I7().get(d);if(y){for(const[x,k]of y)if(Mn(k,n))return x}}function l7e(n,a){return vB(n,As(a),106500)}function Xye(n,a){let c=As(a);if(typeof n!="string"){const d=n.parent;Br(d)&&(c=Vn(c,h=>d7e(d,a,h))),n=Rr(n)}return vB(n,c,111551)}function c7e(n,a){const c=wo(n)?n:Rr(n),d=As(a),h=c==="for"?un(d,y=>Il(y)==="htmlFor"):c==="class"?un(d,y=>Il(y)==="className"):void 0;return h!=null?h:vB(c,d,111551)}function Yye(n,a){const c=Xye(n,a);return c&&Il(c)}function $ye(n,a,c){return N.assert(a!==void 0,"outername should always be defined"),Hp(n,a,c,void 0,a,!1,!1,!0,(h,y,x)=>{N.assertEqual(a,y,"name should equal outerName");const k=Kd(h,y,x);if(k)return k;let z;return h===be?z=Vi(["string","number","boolean","object","bigint","symbol"],ne=>h.has(ne.charAt(0).toUpperCase()+ne.slice(1))?ts(524288,ne):void 0).concat(Go(h.values())):z=Go(h.values()),vB(Ki(y),z,x)})}function e_t(n,a,c){const d=$ye(n,a,c);return d&&Il(d)}function ute(n,a){return a.exports&&vB(Rr(n),wT(a),2623475)}function t_t(n,a){const c=ute(n,a);return c&&Il(c)}function n_t(n,a,c){function d(x){const k=u1(n,x);if(k){const z=cA(_r(k));return!!z&&ah(z)>=1&&Aa(c,y_(z,0))}return!1}const h=og(a)?"set":"get";if(!d(h))return;let y=Ck(a.expression);return y===void 0?y=h:y+="."+h,y}function r_t(n,a){const c=a.types.filter(d=>!!(d.flags&128));return cN(n.value,c,d=>d.value)}function vB(n,a,c){return cN(n,a,d);function d(h){const y=Il(h);if(!ho(y,'"')){if(h.flags&c)return y;if(h.flags&2097152){const x=MT(h);if(x&&x.flags&c)return y}}}}function yB(n,a,c){const d=n&&n.flags&106500&&n.valueDeclaration;if(!d)return;const h=bp(d,2),y=n.valueDeclaration&&cd(n.valueDeclaration)&&Qi(n.valueDeclaration.name);if(!(!h&&!y)&&!(a&&$3(a)&&!(n.flags&65536))){if(c){const x=jn(a,Js);if(x&&x.symbol===n)return}(Cl(n)&1?eo(n).target:n).isReferenced=-1}}function u7e(n,a){return n.kind===110||!!a&&Jl(n)&&a===Hm(jp(n))}function i_t(n,a){switch(n.kind){case 211:return Qye(n,n.expression.kind===108,a,Yp(Eo(n.expression)));case 166:return Qye(n,!1,a,Yp(Eo(n.left)));case 205:return Qye(n,!1,a,Ai(n))}}function d7e(n,a,c){return Zye(n,n.kind===211&&n.expression.kind===108,!1,a,c)}function Qye(n,a,c,d){if(Nt(d))return!0;const h=Sa(d,c);return!!h&&Zye(n,a,!1,d,h)}function Zye(n,a,c,d,h){if(Nt(d))return!0;if(h.valueDeclaration&&ud(h.valueDeclaration)){const y=du(h.valueDeclaration);return!Xu(n)&&!!jn(n,x=>x===y)}return $3e(n,a,c,d,h)}function o_t(n){const a=n.initializer;if(a.kind===261){const c=a.declarations[0];if(c&&!na(c.name))return Cr(c)}else if(a.kind===80)return Hm(a)}function a_t(n){return yd(n).length===1&&!!Rg(n,Tt)}function s_t(n){const a=Ss(n);if(a.kind===80){const c=Hm(a);if(c.flags&3){let d=n,h=n.parent;for(;h;){if(h.kind===249&&d===h.statement&&o_t(h)===c&&a_t(Cu(h.expression)))return!0;d=h,h=h.parent}}}return!1}function l_t(n,a){return n.flags&64?c_t(n,a):p7e(n,zD(n.expression),a)}function c_t(n,a){const c=Eo(n.expression),d=i8(c,n.expression);return Oee(p7e(n,rh(d,n.expression),a),n,d!==c)}function p7e(n,a,c){const d=HA(n)!==0||n7e(n)?Yp(a):a,h=n.argumentExpression,y=Eo(h);if(Jt(d)||d===Ao)return d;if(Ete(d)&&!hs(h))return Xe(h,m.A_const_enum_member_can_only_be_accessed_using_a_string_literal),_t;const x=s_t(h)?Tt:y,k=og(n)?4|($T(d)&&!gC(d)?2:0):32,z=Bb(d,x,k,n)||_t;return b5e(i7e(n,Zr(n).resolvedSymbol,z,h,c),n)}function f7e(n){return I_(n)||oE(n)||dd(n)}function lA(n){return f7e(n)&&Ve(n.typeArguments,Pa),n.kind===215?Eo(n.template):dd(n)?Eo(n.attributes):vr(n)?Eo(n.left):I_(n)&&Ve(n.arguments,a=>{Eo(a)}),gt}function ih(n){return lA(n),fn}function u_t(n,a,c){let d,h,y=0,x,k=-1,z;N.assert(!a.length);for(const K of n){const ne=K.declaration&&Cr(K.declaration),Te=K.declaration&&K.declaration.parent;!h||ne===h?d&&Te===d?x=x+1:(d=Te,x=y):(x=y=a.length,d=Te),h=ne,oJ(K)?(k++,z=k,y++):z=x,a.splice(z,0,c?ict(K,c):K)}}function dte(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function pte(n){return Ji(n,dte)}function m7e(n){return!!(n.flags&16384)}function d_t(n){return!!(n.flags&49155)}function fte(n,a,c,d=!1){let h,y=!1,x=$p(c),k=ah(c);if(n.kind===215)if(h=a.length,n.template.kind===228){const z=rs(n.template.templateSpans);y=Hl(z.literal)||!!z.literal.isUnterminated}else{const z=n.template;N.assert(z.kind===15),y=!!z.isUnterminated}else if(n.kind===170)h=S7e(n,c);else if(n.kind===226)h=1;else if(dd(n)){if(y=n.attributes.end===n.end,y)return!0;h=k===0?a.length:1,x=a.length===0?x:1,k=Math.min(k,1)}else if(n.arguments){h=d?a.length+1:a.length,y=n.arguments.end===n.end;const z=pte(a);if(z>=0)return z>=ah(c)&&(Kh(c)||z<$p(c))}else return N.assert(n.kind===214),ah(c)===0;if(!Kh(c)&&h>x)return!1;if(y||h>=k)return!0;for(let z=h;z<k;z++){const K=y_(c,z);if(vc(K,dr(n)&&!Y?d_t:m7e).flags&131072)return!1}return!0}function ebe(n,a){const c=Pe(n.typeParameters),d=Uh(n.typeParameters);return!St(a)||a.length>=d&&a.length<=c}function _7e(n,a){let c;return!!(n.target&&(c=tS(n.target,a))&&kD(c))}function cA(n){return f8(n,0,!1)}function h7e(n){return f8(n,0,!1)||f8(n,1,!1)}function f8(n,a,c){if(n.flags&524288){const d=__(n);if(c||d.properties.length===0&&d.indexInfos.length===0){if(a===0&&d.callSignatures.length===1&&d.constructSignatures.length===0)return d.callSignatures[0];if(a===1&&d.constructSignatures.length===1&&d.callSignatures.length===0)return d.constructSignatures[0]}}}function g7e(n,a,c,d){const h=s8(n.typeParameters,n,0,d),y=m8(a),x=c&&(y&&y.flags&262144?c.nonFixingMapper:c.mapper),k=x?OD(a,x):a;return eye(k,n,(z,K)=>{Ev(h.inferences,z,K)}),c||tye(a,n,(z,K)=>{Ev(h.inferences,z,K,128)}),H4(n,fye(h),dr(a.declaration))}function p_t(n,a,c,d){const h=ite(a,n),y=VD(n.attributes,h,d,c);return Ev(d.inferences,y,h),fye(d)}function v7e(n){if(!n)return Qn;const a=Eo(n);return koe(n)?a:SN(n.parent)?bv(a):Xu(n.parent)?wee(a):a}function tbe(n,a,c,d,h){if(dd(n))return p_t(n,a,d,h);if(n.kind!==170&&n.kind!==226){const z=Bn(a.typeParameters,ne=>!!JT(ne)),K=$d(n,z?8:0);if(K){const ne=ys(a);if(v1(ne)){const Te=ZE(n);if(!(!z&&$d(n,8)!==K)){const xt=oye(Ipt(Te,1)),cn=fo(K,xt),sn=cA(cn),rr=sn&&sn.typeParameters?KT(Zge(sn,sn.typeParameters)):cn;Ev(h.inferences,rr,ne,128)}const Ge=s8(a.typeParameters,a,h.flags),vt=fo(K,Te&&Te.returnMapper);Ev(Ge.inferences,vt,ne),h.returnMapper=St(Ge.inferences,jD)?oye(Npt(Ge)):void 0}}}const y=_8(a),x=y?Math.min($p(a)-1,c.length):c.length;if(y&&y.flags&262144){const z=un(h.inferences,K=>K.typeParameter===y);z&&(z.impliedArity=Ji(c,dte,x)<0?c.length-x:void 0)}const k=p1(a);if(k&&v1(k)){const z=E7e(n);Ev(h.inferences,v7e(z),k)}for(let z=0;z<x;z++){const K=c[z];if(K.kind!==232){const ne=y_(a,z);if(v1(ne)){const Te=VD(K,ne,h,d);Ev(h.inferences,Te,ne)}}}if(y&&v1(y)){const z=nbe(c,x,c.length,y,h,d);Ev(h.inferences,z,y)}return fye(h)}function y7e(n){return n.flags&1048576?_l(n,y7e):n.flags&1||Zz(ju(n)||n)?n:Ha(n)?qh(qE(n),n.target.elementFlags,!1,n.target.labeledElementDeclarations):qh([n],[8])}function nbe(n,a,c,d,h,y){const x=qT(d);if(a>=c-1){const ne=n[c-1];if(dte(ne)){const Te=ne.kind===237?ne.type:VD(ne.expression,d,h,y);return yy(Te)?y7e(Te):Uu(Ey(33,Te,We,ne.kind===230?ne.expression:ne),x)}}const k=[],z=[],K=[];for(let ne=a;ne<c;ne++){const Te=n[ne];if(dte(Te)){const ve=Te.kind===237?Te.type:Eo(Te.expression);yy(ve)?(k.push(ve),z.push(8)):(k.push(Ey(33,ve,We,Te.kind===230?Te.expression:Te)),z.push(4))}else{const ve=Ha(d)?Lye(d,ne-a,c-a)||pn:kp(d,g_(ne-a),256),Ge=VD(Te,ve,h,y),vt=x||wl(ve,406978556);k.push(vt?Ed(Ge):$E(Ge)),z.push(1)}Te.kind===237&&Te.tupleNameSource?K.push(Te.tupleNameSource):K.push(void 0)}return qh(k,z,x&&!qm(d,Kve),K)}function rbe(n,a,c,d){const h=dr(n.declaration),y=n.typeParameters,x=Fb(Wt(a,Ai),y,Uh(y),h);let k;for(let z=0;z<a.length;z++){N.assert(y[z]!==void 0,"Should not call checkTypeArguments with too many type arguments");const K=kd(y[z]);if(K){const ne=c&&d?()=>jo(void 0,m.Type_0_does_not_satisfy_the_constraint_1):void 0,Te=d||m.Type_0_does_not_satisfy_the_constraint_1;k||(k=wp(y,x));const ve=x[z];if(!od(ve,Xp(fo(K,k),ve),c?a[z]:void 0,Te,ne))return}}return x}function b7e(n){if(Nx(n.tagName))return 2;const a=wd(Eo(n.tagName));return Pe($o(a,1))?0:Pe($o(a,0))?1:2}function f_t(n,a,c,d,h,y,x){const k=ite(a,n),z=VD(n.attributes,k,void 0,d),K=d&4?a8(z):z;return ne()&&zve(K,k,c,h?n.tagName:void 0,n.attributes,void 0,y,x);function ne(){var Te;if(zye(n))return!0;const ve=(W_(n)||JS(n))&&!(Nx(n.tagName)||n_(n.tagName))?Eo(n.tagName):void 0;if(!ve)return!0;const Ge=$o(ve,0);if(!Pe(Ge))return!0;const vt=RWe(n);if(!vt)return!0;const xt=Ys(vt,111551,!0,!1,n);if(!xt)return!0;const cn=_r(xt),sn=$o(cn,0);if(!Pe(sn))return!0;let rr=!1,zn=0;for(const Gn of sn){const Pn=y_(Gn,0),qn=$o(Pn,0);if(!!Pe(qn))for(const Hn of qn){if(rr=!0,Kh(Hn))return!0;const ir=$p(Hn);ir>zn&&(zn=ir)}}if(!rr)return!0;let mn=1/0;for(const Gn of Ge){const Pn=ah(Gn);Pn<mn&&(mn=Pn)}if(mn<=zn)return!0;if(h){const Gn=Fr(n.tagName,m.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,vp(n.tagName),mn,vp(vt),zn),Pn=(Te=Jm(n.tagName))==null?void 0:Te.valueDeclaration;Pn&&Fa(Gn,Fr(Pn,m._0_is_declared_here,vp(n.tagName))),x&&x.skipLogging&&(x.errors||(x.errors=[])).push(Gn),x.skipLogging||cs.add(Gn)}return!1}}function mte(n){return n=Ss(n),VH(n)?Ss(n.expression):n}function bB(n,a,c,d,h,y,x){const k={errors:void 0,skipLogging:!0};if(dd(n))return f_t(n,c,d,h,y,x,k)?void 0:(N.assert(!y||!!k.errors,"jsx should have errors when reporting errors"),k.errors||et);const z=p1(c);if(z&&z!==Qn&&!(iE(n)||ca(n)&&Bd(n.expression))){const Ge=E7e(n),vt=v7e(Ge),xt=y?Ge||n:void 0,cn=m.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Xf(vt,z,d,xt,cn,x,k))return N.assert(!y||!!k.errors,"this parameter should have errors when reporting errors"),k.errors||et}const K=m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,ne=_8(c),Te=ne?Math.min($p(c)-1,a.length):a.length;for(let Ge=0;Ge<Te;Ge++){const vt=a[Ge];if(vt.kind!==232){const xt=y_(c,Ge),cn=VD(vt,xt,void 0,h),sn=h&4?a8(cn):cn,rr=mte(vt);if(!zve(sn,xt,d,y?rr:void 0,rr,K,x,k))return N.assert(!y||!!k.errors,"parameter should have errors when reporting errors"),ve(vt,sn,xt),k.errors||et}}if(ne){const Ge=nbe(a,Te,a.length,ne,void 0,h),vt=a.length-Te,xt=y?vt===0?n:vt===1?mte(a[Te]):Eh(EB(n,Ge),a[Te].pos,a[a.length-1].end):void 0;if(!Xf(Ge,ne,d,xt,K,void 0,k))return N.assert(!y||!!k.errors,"rest parameter should have errors when reporting errors"),ve(xt,Ge,ne),k.errors||et}return;function ve(Ge,vt,xt){if(Ge&&y&&k.errors&&k.errors.length){if(EM(xt))return;const cn=EM(vt);cn&&nh(cn,xt,d)&&Fa(k.errors[0],Fr(Ge,m.Did_you_forget_to_use_await))}}}function E7e(n){if(n.kind===226)return n.right;const a=n.kind===213?n.expression:n.kind===215?n.tag:n.kind===170&&!re?n.expression:void 0;if(a){const c=ic(a);if(js(c))return c.expression}}function EB(n,a,c,d){const h=Dh.createSyntheticExpression(a,c,d);return ut(h,n),Qa(h,n),h}function _te(n){if(n.kind===215){const d=n.template,h=[EB(d,Zct())];return d.kind===228&&Ve(d.templateSpans,y=>{h.push(y.expression)}),h}if(n.kind===170)return m_t(n);if(n.kind===226)return[n.left];if(dd(n))return n.attributes.properties.length>0||W_(n)&&n.parent.children.length>0?[n.attributes]:et;const a=n.arguments||et,c=pte(a);if(c>=0){const d=a.slice(0,c);for(let h=c;h<a.length;h++){const y=a[h],x=y.kind===230&&(_f?Eo(y.expression):uc(y.expression));x&&Ha(x)?Ve(qE(x),(k,z)=>{var K;const ne=x.target.elementFlags[z],Te=EB(y,ne&4?Uu(k):k,!!(ne&12),(K=x.target.labeledElementDeclarations)==null?void 0:K[z]);d.push(Te)}):d.push(y)}return d}return a}function m_t(n){const a=n.expression,c=_be(n);if(c){const d=[];for(const h of c.parameters){const y=_r(h);d.push(EB(a,y))}return d}return N.fail()}function S7e(n,a){return V.experimentalDecorators?__t(n,a):2}function __t(n,a){switch(n.parent.kind){case 263:case 231:return 1;case 172:return P_(n.parent)?3:2;case 174:case 177:case 178:return se===0||a.parameters.length<=2?2:3;case 169:return 3;default:return N.fail()}}function T7e(n){const a=Jn(n),{start:c,length:d}=AS(a,Br(n.expression)?n.expression.name:n.expression);return{start:c,length:d,sourceFile:a}}function SB(n,a,...c){if(ca(n)){const{sourceFile:d,start:h,length:y}=T7e(n);return"message"in a?ru(d,h,y,a,...c):jj(d,a)}else return"message"in a?Fr(n,a,...c):zg(Jn(n),n,a)}function h_t(n){return I_(n)?Br(n.expression)?n.expression.name:n.expression:oE(n)?Br(n.tag)?n.tag.name:n.tag:dd(n)?n.tagName:n}function g_t(n){if(!ca(n)||!Ue(n.expression))return!1;const a=Tl(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a==null?void 0:a.valueDeclaration;if(!c||!No(c)||!Z1(c.parent)||!iE(c.parent.parent)||!Ue(c.parent.parent.expression))return!1;const d=pve(!1);return d?Jm(c.parent.parent.expression,!0)===d:!1}function A7e(n,a,c,d){var h;const y=pte(c);if(y>-1)return Fr(c[y],m.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let x=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,z=Number.NEGATIVE_INFINITY,K=Number.POSITIVE_INFINITY,ne;for(const xt of a){const cn=ah(xt),sn=$p(xt);cn<x&&(x=cn,ne=xt),k=Math.max(k,sn),cn<c.length&&cn>z&&(z=cn),c.length<sn&&sn<K&&(K=sn)}const Te=St(a,Kh),ve=Te?x:x<k?x+"-"+k:x,Ge=!Te&&ve===1&&c.length===0&&g_t(n);if(Ge&&dr(n))return SB(n,m.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);const vt=Au(n)?Te?m.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:m.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:Te?m.Expected_at_least_0_arguments_but_got_1:Ge?m.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:m.Expected_0_arguments_but_got_1;if(x<c.length&&c.length<k){if(d){let xt=jo(void 0,m.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c.length,z,K);return xt=jo(xt,d),SB(n,xt)}return SB(n,m.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c.length,z,K)}else if(c.length<x){let xt;if(d){let sn=jo(void 0,vt,ve,c.length);sn=jo(sn,d),xt=SB(n,sn)}else xt=SB(n,vt,ve,c.length);const cn=(h=ne==null?void 0:ne.declaration)==null?void 0:h.parameters[ne.thisParameter?c.length+1:c.length];if(cn){const sn=na(cn.name)?[m.An_argument_matching_this_binding_pattern_was_not_provided]:eg(cn)?[m.Arguments_for_the_rest_parameter_0_were_not_provided,Rr(jp(cn.name))]:[m.An_argument_for_0_was_not_provided,cn.name?Rr(jp(cn.name)):c.length],rr=Fr(cn,...sn);return Fa(xt,rr)}return xt}else{const xt=O.createNodeArray(c.slice(k)),cn=$a(xt).pos;let sn=rs(xt).end;if(sn===cn&&sn++,Eh(xt,cn,sn),d){let rr=jo(void 0,vt,ve,c.length);return rr=jo(rr,d),qL(Jn(n),xt,rr)}return m2(Jn(n),xt,vt,ve,c.length)}}function v_t(n,a,c,d){const h=c.length;if(a.length===1){const k=a[0],z=Uh(k.typeParameters),K=Pe(k.typeParameters);if(d){let ne=jo(void 0,m.Expected_0_type_arguments_but_got_1,z<K?z+"-"+K:z,h);return ne=jo(ne,d),qL(Jn(n),c,ne)}return m2(Jn(n),c,m.Expected_0_type_arguments_but_got_1,z<K?z+"-"+K:z,h)}let y=-1/0,x=1/0;for(const k of a){const z=Uh(k.typeParameters),K=Pe(k.typeParameters);z>h?x=Math.min(x,z):K<h&&(y=Math.max(y,K))}if(y!==-1/0&&x!==1/0){if(d){let k=jo(void 0,m.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,h,y,x);return k=jo(k,d),qL(Jn(n),c,k)}return m2(Jn(n),c,m.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,h,y,x)}if(d){let k=jo(void 0,m.Expected_0_type_arguments_but_got_1,y===-1/0?x:y,h);return k=jo(k,d),qL(Jn(n),c,k)}return m2(Jn(n),c,m.Expected_0_type_arguments_but_got_1,y===-1/0?x:y,h)}function BD(n,a,c,d,h,y){const x=n.kind===215,k=n.kind===170,z=dd(n),K=n.kind===226,ne=!U&&!c;let Te;!k&&!K&&!IS(n)&&(Te=n.typeArguments,(x||z||n.expression.kind!==108)&&Ve(Te,Pa));const ve=c||[];u_t(a,ve,h),N.assert(ve.length,"Revert #54442 and add a testcase with whatever triggered this");const Ge=_te(n),vt=ve.length===1&&!ve[0].typeParameters;let xt=!k&&!vt&&St(Ge,Kf)?4:0,cn,sn,rr,zn;const mn=!!(d&16)&&n.kind===213&&n.arguments.hasTrailingComma;if(ve.length>1&&(zn=Pn(ve,kh,vt,mn)),zn||(zn=Pn(ve,Jd,vt,mn)),zn)return zn;if(zn=y_t(n,ve,Ge,!!c,d),Zr(n).resolvedSignature=zn,ne)if(!y&&K&&(y=m.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),cn)if(cn.length===1||cn.length>3){const qn=cn[cn.length-1];let Hn;cn.length>3&&(Hn=jo(Hn,m.The_last_overload_gave_the_following_error),Hn=jo(Hn,m.No_overload_matches_this_call)),y&&(Hn=jo(Hn,y));const ir=bB(n,Ge,qn,Jd,0,!0,()=>Hn);if(ir)for(const vo of ir)qn.declaration&&cn.length>3&&Fa(vo,Fr(qn.declaration,m.The_last_overload_is_declared_here)),Gn(qn,vo),cs.add(vo);else N.fail("No error for last overload signature")}else{const qn=[];let Hn=0,ir=Number.MAX_VALUE,vo=0,yo=0;for(const mp of cn){const nr=bB(n,Ge,mp,Jd,0,!0,()=>jo(void 0,m.Overload_0_of_1_2_gave_the_following_error,yo+1,ve.length,zh(mp)));nr?(nr.length<=ir&&(ir=nr.length,vo=yo),Hn=Math.max(Hn,nr.length),qn.push(nr)):N.fail("No error for 3 or fewer overload signatures"),yo++}const Vo=Hn>1?qn[vo]:Oa(qn);N.assert(Vo.length>0,"No errors reported for 3 or fewer overload signatures");let So=jo(Wt(Vo,Fie),m.No_overload_matches_this_call);y&&(So=jo(So,y));const kc=[...qi(Vo,mp=>mp.relatedInformation)];let $f;if(Bn(Vo,mp=>mp.start===Vo[0].start&&mp.length===Vo[0].length&&mp.file===Vo[0].file)){const{file:mp,start:Wn,length:nr}=Vo[0];$f={file:mp,start:Wn,length:nr,code:So.code,category:So.category,messageText:So,relatedInformation:kc}}else $f=zg(Jn(n),h_t(n),So,kc);Gn(cn[0],$f),cs.add($f)}else if(sn)cs.add(A7e(n,[sn],Ge,y));else if(rr)rbe(rr,n.typeArguments,!0,y);else{const qn=Vn(a,Hn=>ebe(Hn,Te));qn.length===0?cs.add(v_t(n,a,Te,y)):cs.add(A7e(n,qn,Ge,y))}return zn;function Gn(qn,Hn){var ir,vo;const yo=cn,Vo=sn,So=rr,kc=((vo=(ir=qn.declaration)==null?void 0:ir.symbol)==null?void 0:vo.declarations)||et,mp=kc.length>1?un(kc,Wn=>Js(Wn)&&nm(Wn.body)):void 0;if(mp){const Wn=vm(mp),nr=!Wn.typeParameters;Pn([Wn],Jd,nr)&&Fa(Hn,Fr(mp,m.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}cn=yo,sn=Vo,rr=So}function Pn(qn,Hn,ir,vo=!1){if(cn=void 0,sn=void 0,rr=void 0,ir){const yo=qn[0];if(St(Te)||!fte(n,Ge,yo,vo))return;if(bB(n,Ge,yo,Hn,0,!1,void 0)){cn=[yo];return}return yo}for(let yo=0;yo<qn.length;yo++){const Vo=qn[yo];if(!ebe(Vo,Te)||!fte(n,Ge,Vo,vo))continue;let So,kc;if(Vo.typeParameters){let $f;if(St(Te)){if($f=rbe(Vo,Te,!1),!$f){rr=Vo;continue}}else kc=s8(Vo.typeParameters,Vo,dr(n)?2:0),$f=tbe(n,Vo,Ge,xt|8,kc),xt|=kc.flags&4?8:0;if(So=H4(Vo,$f,dr(Vo.declaration),kc&&kc.inferredTypeParameters),_8(Vo)&&!fte(n,Ge,So,vo)){sn=So;continue}}else So=Vo;if(bB(n,Ge,So,Hn,xt,!1,void 0)){(cn||(cn=[])).push(So);continue}if(xt){if(xt=0,kc){const $f=tbe(n,Vo,Ge,xt,kc);if(So=H4(Vo,$f,dr(Vo.declaration),kc.inferredTypeParameters),_8(Vo)&&!fte(n,Ge,So,vo)){sn=So;continue}}if(bB(n,Ge,So,Hn,xt,!1,void 0)){(cn||(cn=[])).push(So);continue}}return qn[yo]=So,So}}}function y_t(n,a,c,d,h){return N.assert(a.length>0),Cx(n),d||a.length===1||a.some(y=>!!y.typeParameters)?S_t(n,a,c,h):b_t(a)}function b_t(n){const a=Vi(n,z=>z.thisParameter);let c;a.length&&(c=I7e(a,a.map(IB)));const{min:d,max:h}=pae(n,E_t),y=[];for(let z=0;z<h;z++){const K=Vi(n,ne=>Zu(ne)?z<ne.parameters.length-1?ne.parameters[z]:rs(ne.parameters):z<ne.parameters.length?ne.parameters[z]:void 0);N.assert(K.length!==0),y.push(I7e(K,Vi(n,ne=>tS(ne,z))))}const x=Vi(n,z=>Zu(z)?rs(z.parameters):void 0);let k=128;if(x.length!==0){const z=Uu(ei(Vi(n,i8e),2));y.push(x7e(x,z)),k|=1}return n.some(oJ)&&(k|=2),xg(n[0].declaration,void 0,c,y,Ta(n.map(ys)),void 0,d,k)}function E_t(n){const a=n.parameters.length;return Zu(n)?a-1:a}function I7e(n,a){return x7e(n,ei(a,2))}function x7e(n,a){return tA($a(n),a)}function S_t(n,a,c,d){const h=I_t(a,on===void 0?c.length:on),y=a[h],{typeParameters:x}=y;if(!x)return y;const k=f7e(n)?n.typeArguments:void 0,z=k?oee(y,T_t(k,x,dr(n))):A_t(n,x,y,c,d);return a[h]=z,z}function T_t(n,a,c){const d=n.map(Px);for(;d.length>a.length;)d.pop();for(;d.length<a.length;)d.push(JT(a[d.length])||kd(a[d.length])||pye(c));return d}function A_t(n,a,c,d,h){const y=s8(a,c,dr(n)?2:0),x=tbe(n,c,d,h|4|8,y);return oee(c,x)}function I_t(n,a){let c=-1,d=-1;for(let h=0;h<n.length;h++){const y=n[h],x=$p(y);if(Kh(y)||x>=a)return h;x>d&&(d=x,c=h)}return c}function x_t(n,a,c){if(n.expression.kind===108){const z=Dye(n.expression);if(Nt(z)){for(const K of n.arguments)Eo(K);return gt}if(!Jt(z)){const K=D_(du(n));if(K){const ne=Vh(z,K.typeArguments,K);return BD(n,ne,a,c,0)}}return lA(n)}let d,h=Eo(n.expression);if(hS(n)){const z=i8(h,n.expression);d=z===h?0:TN(n)?16:8,h=z}else d=0;if(h=Z3e(h,n.expression,jmt),h===Ao)return Ar;const y=wd(h);if(Jt(y))return ih(n);const x=$o(y,0),k=$o(y,1).length;if(TB(h,y,x.length,k))return!Jt(h)&&n.typeArguments&&Xe(n,m.Untyped_function_calls_may_not_accept_type_arguments),lA(n);if(!x.length){if(k)Xe(n,m.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Kn(h));else{let z;if(n.arguments.length===1){const K=Jn(n).text;Ku(K.charCodeAt(Wa(K,n.expression.end,!0)-1))&&(z=Fr(n.expression,m.Are_you_missing_a_semicolon))}obe(n.expression,y,0,z)}return ih(n)}return c&8&&!n.typeArguments&&x.some(R_t)?(c5e(n,c),Er):x.some(z=>dr(z.declaration)&&!!ij(z.declaration))?(Xe(n,m.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Kn(h)),ih(n)):BD(n,x,a,c,d)}function R_t(n){return!!(n.typeParameters&&Xbe(ys(n)))}function TB(n,a,c,d){return Nt(n)||Nt(a)&&!!(n.flags&262144)||!c&&!d&&!(a.flags&1048576)&&!(h_(a).flags&131072)&&Aa(n,Ot)}function D_t(n,a,c){if(n.arguments&&se<1){const x=pte(n.arguments);x>=0&&Xe(n.arguments[x],m.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let d=zD(n.expression);if(d===Ao)return Ar;if(d=wd(d),Jt(d))return ih(n);if(Nt(d))return n.typeArguments&&Xe(n,m.Untyped_function_calls_may_not_accept_type_arguments),lA(n);const h=$o(d,1);if(h.length){if(!N_t(n,h[0]))return ih(n);if(R7e(h,k=>!!(k.flags&4)))return Xe(n,m.Cannot_create_an_instance_of_an_abstract_class),ih(n);const x=d.symbol&&jg(d.symbol);return x&&Qr(x,64)?(Xe(n,m.Cannot_create_an_instance_of_an_abstract_class),ih(n)):BD(n,h,a,c,0)}const y=$o(d,0);if(y.length){const x=BD(n,y,a,c,0);return de||(x.declaration&&!oh(x.declaration)&&ys(x)!==Qn&&Xe(n,m.Only_a_void_function_can_be_called_with_the_new_keyword),p1(x)===Qn&&Xe(n,m.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),x}return obe(n.expression,d,1),ih(n)}function R7e(n,a){return Do(n)?St(n,c=>R7e(c,a)):n.compositeKind===1048576?St(n.compositeSignatures,a):a(n)}function ibe(n,a){const c=pp(a);if(!Pe(c))return!1;const d=c[0];if(d.flags&2097152){const h=d.types,y=z4e(h);let x=0;for(const k of d.types){if(!y[x]&&zr(k)&3&&(k.symbol===n||ibe(n,k)))return!0;x++}return!1}return d.symbol===n?!0:ibe(n,d)}function N_t(n,a){if(!a||!a.declaration)return!0;const c=a.declaration,d=KA(c,6);if(!d||c.kind!==176)return!0;const h=jg(c.parent.symbol),y=nl(c.parent.symbol);if(!qbe(n,h)){const x=du(n);if(x&&d&4){const k=Px(x);if(ibe(c.parent.symbol,k))return!0}return d&2&&Xe(n,m.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Kn(y)),d&4&&Xe(n,m.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Kn(y)),!1}return!0}function D7e(n,a,c){let d;const h=c===0,y=dA(a),x=y&&$o(y,c).length>0;if(a.flags&1048576){const z=a.types;let K=!1;for(const ne of z)if($o(ne,c).length!==0){if(K=!0,d)break}else if(d||(d=jo(d,h?m.Type_0_has_no_call_signatures:m.Type_0_has_no_construct_signatures,Kn(ne)),d=jo(d,h?m.Not_all_constituents_of_type_0_are_callable:m.Not_all_constituents_of_type_0_are_constructable,Kn(a))),K)break;K||(d=jo(void 0,h?m.No_constituent_of_type_0_is_callable:m.No_constituent_of_type_0_is_constructable,Kn(a))),d||(d=jo(d,h?m.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:m.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Kn(a)))}else d=jo(d,h?m.Type_0_has_no_call_signatures:m.Type_0_has_no_construct_signatures,Kn(a));let k=h?m.This_expression_is_not_callable:m.This_expression_is_not_constructable;if(ca(n.parent)&&n.parent.arguments.length===0){const{resolvedSymbol:z}=Zr(n);z&&z.flags&32768&&(k=m.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:jo(d,k),relatedMessage:x?m.Did_you_forget_to_use_await:void 0}}function obe(n,a,c,d){const{messageChain:h,relatedMessage:y}=D7e(n,a,c),x=zg(Jn(n),n,h);if(y&&Fa(x,Fr(n,y)),ca(n.parent)){const{start:k,length:z}=T7e(n.parent);x.start=k,x.length=z}cs.add(x),N7e(a,c,d?Fa(x,d):x)}function N7e(n,a,c){if(!n.symbol)return;const d=eo(n.symbol).originatingImport;if(d&&!Gp(d)){const h=$o(_r(eo(n.symbol).target),a);if(!h||!h.length)return;Fa(c,Fr(d,m.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function C_t(n,a,c){const d=Eo(n.tag),h=wd(d);if(Jt(h))return ih(n);const y=$o(h,0),x=$o(h,1).length;if(TB(d,h,y.length,x))return lA(n);if(!y.length){if(hd(n.parent)){const k=Fr(n.tag,m.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return cs.add(k),ih(n)}return obe(n.tag,h,0),ih(n)}return BD(n,y,a,c,0)}function P_t(n){switch(n.parent.kind){case 263:case 231:return m.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return m.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return m.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return m.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return N.fail()}}function M_t(n,a,c){const d=Eo(n.expression),h=wd(d);if(Jt(h))return ih(n);const y=$o(h,0),x=$o(h,1).length;if(TB(d,h,y.length,x))return lA(n);if(w_t(n,y)&&!Vd(n.expression)){const z=bc(n.expression,!1);return Xe(n,m._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,z),ih(n)}const k=P_t(n);if(!y.length){const z=D7e(n.expression,h,0),K=jo(z.messageChain,k),ne=zg(Jn(n.expression),n.expression,K);return z.relatedMessage&&Fa(ne,Fr(n.expression,z.relatedMessage)),cs.add(ne),N7e(h,0,ne),ih(n)}return BD(n,y,a,c,0,k)}function hte(n,a){const c=sA(n),d=c&&Lp(c),h=d&&Kd(d,sf.Element,788968),y=h&&At.symbolToEntityName(h,788968,n),x=O.createFunctionTypeNode(void 0,[O.createParameterDeclaration(void 0,void 0,"props",void 0,At.typeToTypeNode(a,n))],y?O.createTypeReferenceNode(y,void 0):O.createKeywordTypeNode(133)),k=ts(1,"props");return k.links.type=a,xg(x,void 0,void 0,[k],h?nl(h):_t,void 0,1,0)}function L_t(n,a,c){if(Nx(n.tagName)){const x=J3e(n),k=hte(n,x);return Ub(VD(n.attributes,ite(k,n),void 0,0),x,n.tagName,n.attributes),Pe(n.typeArguments)&&(Ve(n.typeArguments,Pa),cs.add(m2(Jn(n),n.typeArguments,m.Expected_0_type_arguments_but_got_1,0,Pe(n.typeArguments)))),k}const d=Eo(n.tagName),h=wd(d);if(Jt(h))return ih(n);const y=H3e(d,n);return TB(d,h,y.length,0)?lA(n):y.length===0?(Xe(n.tagName,m.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,bc(n.tagName)),ih(n)):BD(n,y,a,c,0)}function k_t(n,a,c){const d=Eo(n.right);if(!Nt(d)){const h=ybe(d);if(h){const y=wd(h);if(Jt(y))return ih(n);const x=$o(y,0),k=$o(y,1);if(TB(h,y,x.length,k.length))return lA(n);if(x.length)return BD(n,x,a,c,0)}else if(!(zte(d)||jb(d,Ot)))return Xe(n.right,m.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),ih(n)}return gt}function w_t(n,a){return a.length&&Bn(a,c=>c.minArgumentCount===0&&!Zu(c)&&c.parameters.length<S7e(n,c))}function O_t(n,a,c){switch(n.kind){case 213:return x_t(n,a,c);case 214:return D_t(n,a,c);case 215:return C_t(n,a,c);case 170:return M_t(n,a,c);case 286:case 285:return L_t(n,a,c);case 226:return k_t(n,a,c)}N.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function GD(n,a,c){const d=Zr(n),h=d.resolvedSignature;if(h&&h!==Er&&!a)return h;d.resolvedSignature=Er;let y=O_t(n,a,c||0);return y!==Er&&(d.resolvedSignature!==Er&&(y=d.resolvedSignature),d.resolvedSignature=q_===_f?y:h),y}function oh(n){var a;if(!n||!dr(n))return!1;const c=Dc(n)||Us(n)?n:(Wi(n)||Tc(n))&&n.initializer&&Us(n.initializer)?n.initializer:void 0;if(c){if(ij(n))return!0;if(Tc(Bv(c.parent)))return!1;const d=Cr(c);return!!((a=d==null?void 0:d.members)!=null&&a.size)}return!1}function abe(n,a){var c,d;if(a){const h=eo(a);if(!h.inferredClassSymbol||!h.inferredClassSymbol.has(Ia(n))){const y=gh(n)?n:TT(n);return y.exports=y.exports||pa(),y.members=y.members||pa(),y.flags|=a.flags&32,(c=a.exports)!=null&&c.size&&u_(y.exports,a.exports),(d=a.members)!=null&&d.size&&u_(y.members,a.members),(h.inferredClassSymbol||(h.inferredClassSymbol=new Map)).set(Ia(y),y),y}return h.inferredClassSymbol.get(Ia(n))}}function W_t(n){var a;const c=n&&gte(n,!0),d=(a=c==null?void 0:c.exports)==null?void 0:a.get("prototype"),h=(d==null?void 0:d.valueDeclaration)&&F_t(d.valueDeclaration);return h?Cr(h):void 0}function gte(n,a){if(!n.parent)return;let c,d;if(Wi(n.parent)&&n.parent.initializer===n){if(!dr(n)&&!(HB(n.parent)&&Js(n)))return;c=n.parent.name,d=n.parent}else if(vr(n.parent)){const h=n.parent,y=n.parent.operatorToken.kind;if(y===64&&(a||h.right===n))c=h.left,d=c;else if((y===57||y===61)&&(Wi(h.parent)&&h.parent.initializer===h?(c=h.parent.name,d=h.parent):vr(h.parent)&&h.parent.operatorToken.kind===64&&(a||h.parent.right===h)&&(c=h.parent.left,d=c),!c||!NS(c)||!S2(c,h.left)))return}else a&&Dc(n)&&(c=n.name,d=n);if(!(!d||!c||!a&&!g0(n,jy(c))))return gf(d)}function F_t(n){if(!n.parent)return!1;let a=n.parent;for(;a&&a.kind===211;)a=a.parent;if(a&&vr(a)&&jy(a.left)&&a.operatorToken.kind===64){const c=tU(a);return za(c)&&c}}function z_t(n,a){var c,d,h;UB(n,n.typeArguments);const y=GD(n,void 0,a);if(y===Er)return Ao;if(vte(y,n),n.expression.kind===108)return Qn;if(n.kind===214){const k=y.declaration;if(k&&k.kind!==176&&k.kind!==180&&k.kind!==185&&!(D0(k)&&((d=(c=R2(k))==null?void 0:c.parent)==null?void 0:d.kind)===176)&&!x2(k)&&!oh(k))return de&&Xe(n,m.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),j}if(dr(n)&&L7e(n))return n8e(n.arguments[0]);const x=ys(y);if(x.flags&12288&&C7e(n))return Mve(Bv(n.parent));if(n.kind===213&&!n.questionDotToken&&n.parent.kind===244&&x.flags&16384&&Jf(y)){if(!ZN(n.expression))Xe(n.expression,m.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!sB(n)){const k=Xe(n.expression,m.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);aB(n.expression,k)}}if(dr(n)){const k=gte(n,!1);if((h=k==null?void 0:k.exports)!=null&&h.size){const z=Vs(k,k.exports,et,et,et);return z.objectFlags|=4096,Ta([x,z])}}return x}function vte(n,a){if(!(n.flags&128)&&n.declaration&&n.declaration.flags&536870912){const c=AB(a),d=Ck(v3(a));jP(c,n.declaration,d,zh(n))}}function AB(n){switch(n=Ss(n),n.kind){case 213:case 170:case 214:return AB(n.expression);case 215:return AB(n.tag);case 286:case 285:return AB(n.tagName);case 212:return n.argumentExpression;case 211:return n.name;case 183:const a=n;return xd(a.typeName)?a.typeName.right:a;default:return n}}function C7e(n){if(!ca(n))return!1;let a=n.expression;if(Br(a)&&a.name.escapedText==="for"&&(a=a.expression),!Ue(a)||a.escapedText!=="Symbol")return!1;const c=E8e(!1);return c?c===Tl(a,"Symbol",111551,void 0,void 0,!1):!1}function B_t(n){if(t0t(n),n.arguments.length===0)return NB(n,j);const a=n.arguments[0],c=uc(a),d=n.arguments.length>1?uc(n.arguments[1]):void 0;for(let y=2;y<n.arguments.length;++y)uc(n.arguments[y]);if((c.flags&32768||c.flags&65536||!Aa(c,ke))&&Xe(a,m.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Kn(c)),d){const y=b8e(!0);y!==wa&&od(d,tB(y,32768),n.arguments[1])}const h=vd(n,a);if(h){const y=up(h,a,!0,!1);if(y)return NB(n,P7e(_r(y),y,h,a)||M7e(_r(y),y,h,a))}return NB(n,j)}function sbe(n,a,c){const d=pa(),h=ts(2097152,"default");return h.parent=a,h.links.nameType=Yd("default"),h.links.aliasTarget=Xl(n),d.set("default",h),Vs(c,d,et,et,et)}function P7e(n,a,c,d){if(dy(d)&&n&&!Jt(n)){const y=n;if(!y.defaultOnlyType){const x=sbe(a,c);y.defaultOnlyType=x}return y.defaultOnlyType}}function M7e(n,a,c,d){var h;if(Q&&n&&!Jt(n)){const y=n;if(!y.syntheticType){const x=(h=c.declarations)==null?void 0:h.find(io);if(K_(x,c,!1,d)){const z=ts(2048,"__type"),K=sbe(a,c,z);z.links.type=K,y.syntheticType=fB(n)?JE(n,K,z,0,!1):K}else y.syntheticType=n}return y.syntheticType}return n}function L7e(n){if(!Ad(n,!0))return!1;if(!Ue(n.expression))return N.fail();const a=Tl(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(a===yt)return!0;if(a.flags&2097152)return!1;const c=a.flags&16?262:a.flags&3?260:0;if(c!==0){const d=gl(a,c);return!!d&&!!(d.flags&33554432)}return!1}function G_t(n){Rbt(n)||UB(n,n.typeArguments),se<2&&Lc(n,262144);const a=GD(n);return vte(a,n),ys(a)}function V_t(n,a){if(n.kind===216){const c=Jn(n);c&&Rc(c.fileName,[".cts",".mts"])&&Sn(n,m.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return k7e(n,a)}function lbe(n){switch(n.kind){case 11:case 15:case 9:case 10:case 112:case 97:case 209:case 210:case 228:return!0;case 217:return lbe(n.expression);case 224:const a=n.operator,c=n.operand;return a===41&&(c.kind===9||c.kind===10)||a===40&&c.kind===9;case 211:case 212:const d=Ss(n.expression),h=Jl(d)?Ys(d,111551,!0):void 0;return!!(h&&h.flags&384)}return!1}function k7e(n,a){const{type:c,expression:d}=w7e(n),h=Eo(d,a);if(Wg(c))return lbe(d)||Xe(d,m.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Ed(h);const y=Zr(n);return y.assertionExpressionType=h,Pa(c),Cx(n),Ai(c)}function w7e(n){let a,c;switch(n.kind){case 234:case 216:a=n.type,c=n.expression;break;case 217:a=D5(n),c=n.expression;break}return{type:a,expression:c}}function j_t(n){const{type:a}=w7e(n),c=Vd(n)?a:n,d=Zr(n);N.assertIsDefined(d.assertionExpressionType);const h=a8(yv(d.assertionExpressionType)),y=Ai(a);Jt(y)||r(()=>{const x=Yp(h);Aee(y,x)||v6e(h,y,c,m.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function U_t(n){const a=Eo(n.expression),c=i8(a,n.expression);return Oee(bv(c),n,c!==a)}function H_t(n){return n.flags&64?U_t(n):bv(Eo(n.expression))}function O7e(n){if(CWe(n),Ve(n.typeArguments,Pa),n.kind===233){const c=Bv(n.parent);c.kind===226&&c.operatorToken.kind===104&&U1(n,c.right)&&Xe(n,m.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const a=n.kind===233?Eo(n.expression):X1(n.exprName)?uB(n.exprName):Eo(n.exprName);return W7e(a,n)}function W7e(n,a){const c=a.typeArguments;if(n===Ao||Jt(n)||!St(c))return n;let d=!1,h;const y=k(n),x=d?h:n;return x&&cs.add(m2(Jn(a),c,m.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Kn(x))),y;function k(K){let ne=!1,Te=!1;const ve=Ge(K);return d||(d=Te),ne&&!Te&&(h!=null||(h=K)),ve;function Ge(vt){if(vt.flags&524288){const xt=__(vt),cn=z(xt.callSignatures),sn=z(xt.constructSignatures);if(ne||(ne=xt.callSignatures.length!==0||xt.constructSignatures.length!==0),Te||(Te=cn.length!==0||sn.length!==0),cn!==xt.callSignatures||sn!==xt.constructSignatures){const rr=Vs(ts(0,"__instantiationExpression"),xt.members,cn,sn,xt.indexInfos);return rr.objectFlags|=8388608,rr.node=a,rr}}else if(vt.flags&58982400){const xt=ju(vt);if(xt){const cn=Ge(xt);if(cn!==xt)return cn}}else{if(vt.flags&1048576)return _l(vt,k);if(vt.flags&2097152)return Ta(mo(vt.types,Ge))}return vt}}function z(K){const ne=Vn(K,Te=>!!Te.typeParameters&&ebe(Te,c));return mo(ne,Te=>{const ve=rbe(Te,c,!0);return ve?H4(Te,ve,dr(Te.declaration)):Te})}}function q_t(n){return Pa(n.type),cbe(n.expression,n.type)}function cbe(n,a,c){const d=Eo(n,c),h=Ai(a);if(Jt(h))return h;const y=jn(a.parent,x=>x.kind===238||x.kind===357);return Ub(d,h,y,n,m.Type_0_does_not_satisfy_the_expected_type_1),d}function J_t(n){return jbt(n),n.keywordToken===105?ube(n):n.keywordToken===102?K_t(n):N.assertNever(n.keywordToken)}function F7e(n){switch(n.keywordToken){case 102:return y8e();case 105:const a=ube(n);return Jt(a)?_t:dht(a);default:N.assertNever(n.keywordToken)}}function ube(n){const a=Qie(n);if(a)if(a.kind===176){const c=Cr(a.parent);return _r(c)}else{const c=Cr(a);return _r(c)}else return Xe(n,m.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),_t}function K_t(n){G===100||G===199?Jn(n).impliedNodeFormat!==99&&Xe(n,m.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):G<6&&G!==4&&Xe(n,m.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const a=Jn(n);return N.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?v8e():_t}function IB(n){const a=n.valueDeclaration;return dp(_r(n),!1,!!a&&(Wy(a)||vC(a)))}function dbe(n,a,c="arg"){return n?(N.assert(Ue(n.name)),n.name.escapedText):`${c}_${a}`}function gM(n,a,c){const d=n.parameters.length-(Zu(n)?1:0);if(a<d)return n.parameters[a].escapedName;const h=n.parameters[d]||pt,y=c||_r(h);if(Ha(y)){const x=y.target.labeledElementDeclarations,k=a-d;return dbe(x==null?void 0:x[k],k,h.escapedName)}return h.escapedName}function X_t(n,a){var c;if(((c=n.declaration)==null?void 0:c.kind)===324)return;const d=n.parameters.length-(Zu(n)?1:0);if(a<d){const k=n.parameters[a],z=z7e(k);return z?{parameter:z,parameterName:k.escapedName,isRestParameter:!1}:void 0}const h=n.parameters[d]||pt,y=z7e(h);if(!y)return;const x=_r(h);if(Ha(x)){const k=x.target.labeledElementDeclarations,z=a-d,K=k==null?void 0:k[z],ne=!!(K!=null&&K.dotDotDotToken);return K?(N.assert(Ue(K.name)),{parameter:K.name,parameterName:K.name.escapedText,isRestParameter:ne}):void 0}if(a===d)return{parameter:y,parameterName:h.escapedName,isRestParameter:!0}}function z7e(n){return n.valueDeclaration&&No(n.valueDeclaration)&&Ue(n.valueDeclaration.name)&&n.valueDeclaration.name}function B7e(n){return n.kind===202||No(n)&&n.name&&Ue(n.name)}function Y_t(n,a){const c=n.parameters.length-(Zu(n)?1:0);if(a<c){const y=n.parameters[a].valueDeclaration;return y&&B7e(y)?y:void 0}const d=n.parameters[c]||pt,h=_r(d);if(Ha(h)){const y=h.target.labeledElementDeclarations,x=a-c;return y&&y[x]}return d.valueDeclaration&&B7e(d.valueDeclaration)?d.valueDeclaration:void 0}function y_(n,a){return tS(n,a)||j}function tS(n,a){const c=n.parameters.length-(Zu(n)?1:0);if(a<c)return IB(n.parameters[a]);if(Zu(n)){const d=_r(n.parameters[c]),h=a-c;if(!Ha(d)||d.target.hasRestElement||h<d.target.fixedLength)return kp(d,g_(h))}}function xB(n,a,c){const d=$p(n),h=ah(n),y=m8(n);if(y&&a>=d-1)return a===d-1?y:Uu(kp(y,Tt));const x=[],k=[],z=[];for(let K=a;K<d;K++)!y||K<d-1?(x.push(y_(n,K)),k.push(K<h?1:2)):(x.push(y),k.push(8)),z.push(Y_t(n,K));return qh(x,k,c,z)}function G7e(n,a){const c=xB(n,a),d=c&&eB(c);return d&&Nt(d)?j:c}function $p(n){const a=n.parameters.length;if(Zu(n)){const c=_r(n.parameters[a-1]);if(Ha(c))return a+c.target.fixedLength-(c.target.hasRestElement?0:1)}return a}function ah(n,a){const c=a&1,d=a&2;if(d||n.resolvedMinArgumentCount===void 0){let h;if(Zu(n)){const y=_r(n.parameters[n.parameters.length-1]);if(Ha(y)){const x=Ji(y.target.elementFlags,z=>!(z&1)),k=x<0?y.target.fixedLength:x;k>0&&(h=n.parameters.length-1+k)}}if(h===void 0){if(!c&&n.flags&32)return 0;h=n.minArgumentCount}if(d)return h;for(let y=h-1;y>=0;y--){const x=y_(n,y);if(vc(x,m7e).flags&131072)break;h=y}n.resolvedMinArgumentCount=h}return n.resolvedMinArgumentCount}function Kh(n){if(Zu(n)){const a=_r(n.parameters[n.parameters.length-1]);return!Ha(a)||a.target.hasRestElement}return!1}function m8(n){if(Zu(n)){const a=_r(n.parameters[n.parameters.length-1]);if(!Ha(a))return Nt(a)?lc:a;if(a.target.hasRestElement)return oM(a,a.target.fixedLength)}}function _8(n){const a=m8(n);return a&&!Yf(a)&&!Nt(a)?a:void 0}function pbe(n){return fbe(n,qr)}function fbe(n,a){return n.parameters.length>0?y_(n,0):a}function V7e(n,a,c){const d=n.parameters.length-(Zu(n)?1:0);for(let h=0;h<d;h++){const y=n.parameters[h].valueDeclaration,x=Su(y);if(x){const k=dp(Ai(x),!1,vC(y)),z=y_(a,h);Ev(c.inferences,k,z)}}}function $_t(n,a){if(a.typeParameters)if(!n.typeParameters)n.typeParameters=a.typeParameters;else return;if(a.thisParameter){const d=n.thisParameter;(!d||d.valueDeclaration&&!d.valueDeclaration.type)&&(d||(n.thisParameter=tA(a.thisParameter,void 0)),RB(n.thisParameter,_r(a.thisParameter)))}const c=n.parameters.length-(Zu(n)?1:0);for(let d=0;d<c;d++){const h=n.parameters[d],y=h.valueDeclaration;if(!Su(y)){let x=tS(a,d);if(x&&y.initializer){let k=vM(y,0);!Aa(k,x)&&Aa(x,k=Ste(y,k))&&(x=k)}RB(h,x)}}if(Zu(n)){const d=rs(n.parameters);if(d.valueDeclaration?!Su(d.valueDeclaration):!!(Cl(d)&65536)){const h=xB(a,c);RB(d,h)}}}function Q_t(n){n.thisParameter&&RB(n.thisParameter);for(const a of n.parameters)RB(a)}function RB(n,a){const c=eo(n);if(c.type)a&&N.assertEqual(c.type,a,"Parameter symbol already has a cached type which differs from newly assigned type");else{const d=n.valueDeclaration;c.type=dp(a||(d?B(d,!0):_r(n)),!1,!!d&&!d.initializer&&vC(d)),d&&d.name.kind!==80&&(c.type===pn&&(c.type=P(d.name)),j7e(d.name,c.type))}}function j7e(n,a){for(const c of n.elements)if(!Kc(c)){const d=jm(c,a,!1);c.name.kind===80?eo(Cr(c)).type=d:j7e(c.name,d)}}function Z_t(n){return CD(mut(!0),[n])}function eht(n,a){return CD(_ut(!0),[n,a])}function tht(n,a){return CD(hut(!0),[n,a])}function nht(n,a){return CD(gut(!0),[n,a])}function rht(n,a){return CD(vut(!0),[n,a])}function iht(n,a){return CD(Eut(!0),[n,a])}function oht(n,a,c){const d=`${a?"p":"P"}${c?"s":"S"}${n.id}`;let h=Ba.get(d);if(!h){const y=pa();y.set("name",ET("name",n)),y.set("private",ET("private",a?or:nn)),y.set("static",ET("static",c?or:nn)),h=Vs(void 0,y,et,et,et),Ba.set(d,h)}return h}function U7e(n,a,c){const d=Ec(n),h=Qi(n.name),y=h?Yd(Rr(n.name)):gy(n.name),x=Ql(n)?eht(a,c):rf(n)?tht(a,c):Tp(n)?nht(a,c):Fd(n)?rht(a,c):qo(n)?iht(a,c):N.failBadSyntaxKind(n),k=oht(y,h,d);return Ta([x,k])}function aht(n,a){return CD(yut(!0),[n,a])}function sht(n,a){return CD(but(!0),[n,a])}function lht(n,a){const c=c_("this",n),d=c_("value",a);return Dbe(void 0,c,[d],a,void 0,1)}function mbe(n,a,c){const d=c_("target",n),h=c_("context",a),y=ei([c,Qn]);return E8(void 0,void 0,[d,h],y)}function cht(n){const{parent:a}=n,c=Zr(a);if(!c.decoratorSignature)switch(c.decoratorSignature=gt,a.kind){case 263:case 231:{const h=_r(Cr(a)),y=Z_t(h);c.decoratorSignature=mbe(h,y,h);break}case 174:case 177:case 178:{const d=a;if(!di(d.parent))break;const h=Ql(d)?KT(vm(d)):Px(d),y=Ec(d)?_r(Cr(d.parent)):qf(Cr(d.parent)),x=rf(d)?T5e(h):Tp(d)?A5e(h):h,k=U7e(d,y,h),z=rf(d)?T5e(h):Tp(d)?A5e(h):h;c.decoratorSignature=mbe(x,k,z);break}case 172:{const d=a;if(!di(d.parent))break;const h=Px(d),y=Ec(d)?_r(Cr(d.parent)):qf(Cr(d.parent)),x=P_(d)?aht(y,h):We,k=U7e(d,y,h),z=P_(d)?sht(y,h):lht(y,h);c.decoratorSignature=mbe(x,k,z);break}}return c.decoratorSignature===gt?void 0:c.decoratorSignature}function uht(n){const{parent:a}=n,c=Zr(a);if(!c.decoratorSignature)switch(c.decoratorSignature=gt,a.kind){case 263:case 231:{const h=_r(Cr(a)),y=c_("target",h);c.decoratorSignature=E8(void 0,void 0,[y],ei([h,Qn]));break}case 169:{const d=a;if(!Wl(d.parent)&&!(Ql(d.parent)||Tp(d.parent)&&di(d.parent.parent))||J1(d.parent)===d)break;const h=J1(d.parent)?d.parent.parameters.indexOf(d)-1:d.parent.parameters.indexOf(d);N.assert(h>=0);const y=Wl(d.parent)?_r(Cr(d.parent.parent)):yWe(d.parent),x=Wl(d.parent)?We:bWe(d.parent),k=g_(h),z=c_("target",y),K=c_("propertyKey",x),ne=c_("parameterIndex",k);c.decoratorSignature=E8(void 0,void 0,[z,K,ne],Qn);break}case 174:case 177:case 178:case 172:{const d=a;if(!di(d.parent))break;const h=yWe(d),y=c_("target",h),x=bWe(d),k=c_("propertyKey",x),z=qo(d)?Qn:x8e(Px(d));if(se!==0&&(!qo(a)||P_(a))){const ne=x8e(Px(d)),Te=c_("descriptor",ne);c.decoratorSignature=E8(void 0,void 0,[y,k,Te],ei([z,Qn]))}else c.decoratorSignature=E8(void 0,void 0,[y,k],ei([z,Qn]));break}}return c.decoratorSignature===gt?void 0:c.decoratorSignature}function _be(n){return re?uht(n):cht(n)}function DB(n){const a=Fz(!0);return a!==Wo?(n=by(SM(n))||pn,_y(a,[n])):pn}function H7e(n){const a=T8e(!0);return a!==Wo?(n=by(SM(n))||pn,_y(a,[n])):pn}function NB(n,a){const c=DB(a);return c===pn?(Xe(n,Gp(n)?m.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:m.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),_t):(pve(!0)||Xe(n,Gp(n)?m.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:m.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),c)}function dht(n){const a=ts(0,"NewTargetExpression"),c=ts(4,"target",8);c.parent=a,c.links.type=n;const d=pa([c]);return a.members=d,Vs(a,d,et,et,et)}function yte(n,a){if(!n.body)return _t;const c=Jc(n),d=(c&2)!==0,h=(c&1)!==0;let y,x,k,z=Qn;if(n.body.kind!==241)y=uc(n.body,a&&a&-9),d&&(y=SM(b8(y,!1,n,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(h){const K=$7e(n,a);K?K.length>0&&(y=ei(K,2)):z=qr;const{yieldTypes:ne,nextTypes:Te}=pht(n,a);x=St(ne)?ei(ne,2):void 0,k=St(Te)?Ta(Te):void 0}else{const K=$7e(n,a);if(!K)return c&2?NB(n,qr):qr;if(K.length===0){const ne=ete(n,void 0),Te=ne&&(BB(ne,c)||Qn).flags&32768?We:Qn;return c&2?NB(n,Te):Te}y=ei(K,2)}if(y||x||k){if(x&&Bee(n,x,3),y&&Bee(n,y,1),k&&Bee(n,k,2),y&&v_(y)||x&&v_(x)||k&&v_(k)){const K=wye(n),ne=K?K===vm(n)?h?void 0:y:nte(ys(K),n,void 0):void 0;h?(x=Qve(x,ne,0,d),y=Qve(y,ne,1,d),k=Qve(k,ne,2,d)):y=fpt(y,ne,d)}x&&(x=Yp(x)),y&&(y=Yp(y)),k&&(k=Yp(k))}return h?q7e(x||qr,y||z,k||P3e(2,n)||pn,d):d?DB(y||z):y||z}function q7e(n,a,c,d){const h=d?xl:Zl,y=h.getGlobalGeneratorType(!1);if(n=h.resolveIterationType(n,void 0)||pn,a=h.resolveIterationType(a,void 0)||pn,c=h.resolveIterationType(c,void 0)||pn,y===Wo){const x=h.getGlobalIterableIteratorType(!1),k=x!==Wo?F5e(x,h):void 0,z=k?k.returnType:j,K=k?k.nextType:We;return Aa(a,z)&&Aa(K,c)?x!==Wo?J4(x,[n]):(h.getGlobalIterableIteratorType(!0),wa):(h.getGlobalGeneratorType(!0),wa)}return J4(y,[n,a,c])}function pht(n,a){const c=[],d=[],h=(Jc(n)&2)!==0;return Gie(n.body,y=>{const x=y.expression?Eo(y.expression,a):Lt;Tf(c,J7e(y,x,j,h));let k;if(y.asteriskToken){const z=Mte(x,h?19:17,y.expression);k=z&&z.nextType}else k=$d(y,void 0);k&&Tf(d,k)}),{yieldTypes:c,nextTypes:d}}function J7e(n,a,c,d){const h=n.expression||n,y=n.asteriskToken?Ey(d?19:17,a,c,h):a;return d?dA(y,h,n.asteriskToken?m.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:m.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):y}function K7e(n,a,c){let d=0;for(let h=0;h<c.length;h++){const y=h<n||h>=a?c[h]:void 0;d|=y!==void 0?sJ.get(y)||32768:0}return d}function X7e(n){const a=Zr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;const c=fht(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function fht(n){if(n.expression.kind===221){const d=c3e(n);if(!d)return!1;const h=mv(uc(n.expression.expression)),y=K7e(0,0,d);return h.flags&3?(556800&y)===556800:!qm(h,x=>pM(x,y)===y)}const a=uc(n.expression);if(!r8(a))return!1;const c=qee(n);return!c.length||St(c,upt)?!1:sft(_l(a,Ed),c)}function Y7e(n){return n.endFlowNode&&lB(n.endFlowNode)}function $7e(n,a){const c=Jc(n),d=[];let h=Y7e(n),y=!1;if(B1(n.body,x=>{let k=x.expression;if(k){if(k=Ss(k,!0),c&2&&k.kind===223&&(k=Ss(k.expression,!0)),k.kind===213&&k.expression.kind===80&&uc(k.expression).symbol===n.symbol){y=!0;return}let z=uc(k,a&&a&-9);c&2&&(z=SM(b8(z,!1,n,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),z.flags&131072&&(y=!0),Tf(d,z)}else h=!0}),!(d.length===0&&!h&&(y||mht(n))))return Y&&d.length&&h&&!(oh(n)&&d.some(x=>x.symbol===n.symbol))&&Tf(d,We),d}function mht(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function hbe(n,a){r(c);return;function c(){const d=Jc(n),h=a&&BB(a,d);if(h&&(wl(h,16384)||h.flags&32769)||n.kind===173||Hl(n.body)||n.body.kind!==241||!Y7e(n))return;const y=n.flags&1024,x=lm(n)||n;if(h&&h.flags&131072)Xe(x,m.A_function_returning_never_cannot_have_a_reachable_end_point);else if(h&&!y)Xe(x,m.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(h&&Y&&!Aa(We,h))Xe(x,m.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(V.noImplicitReturns){if(!h){if(!y)return;const k=ys(vm(n));if(q5e(n,k))return}Xe(x,m.Not_all_code_paths_return_a_value)}}}function Q7e(n,a){if(N.assert(n.kind!==174||Cm(n)),Cx(n),Us(n)&&TM(n,n.name),a&&a&4&&Kf(n)){if(!lm(n)&&!g7(n)){const d=p8(n);if(d&&v1(ys(d))){const h=Zr(n);if(h.contextFreeType)return h.contextFreeType;const y=yte(n,a),x=xg(void 0,void 0,void 0,et,y,void 0,0,64),k=Vs(n.symbol,X,[x],et,et);return k.objectFlags|=262144,h.contextFreeType=k}}return an}return!jte(n)&&n.kind===218&&Qbe(n),_ht(n,a),_r(Cr(n))}function _ht(n,a){const c=Zr(n);if(!(c.flags&64)){const d=p8(n);if(!(c.flags&64)){c.flags|=64;const h=eu($o(_r(Cr(n)),0));if(!h)return;if(Kf(n))if(d){const y=ZE(n);let x;if(a&&a&2){V7e(h,d,y);const k=m8(d);k&&k.flags&262144&&(x=OD(d,y.nonFixingMapper))}x||(x=y?OD(d,y.mapper):d),$_t(h,x)}else Q_t(h);else if(d&&!n.typeParameters&&d.parameters.length>n.parameters.length){const y=ZE(n);a&&a&2&&V7e(h,d,y)}if(d&&!ND(n)&&!h.resolvedReturnType){const y=yte(n,a);h.resolvedReturnType||(h.resolvedReturnType=y)}g8(n)}}}function hht(n){N.assert(n.kind!==174||Cm(n));const a=Jc(n),c=ND(n);if(hbe(n,c),n.body)if(lm(n)||ys(vm(n)),n.body.kind===241)Pa(n.body);else{const d=Eo(n.body),h=c&&BB(c,a);if(h){const y=mte(n.body);if((a&3)===2){const x=b8(d,!1,y,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Ub(x,h,y,y)}else Ub(d,h,y,y)}}}function bte(n,a,c,d=!1){if(!Aa(a,Gl)){const h=d&&EM(a);return K0(n,!!h&&Aa(h,Gl),c),!1}return!0}function ght(n){if(!ca(n)||!DS(n))return!1;const a=uc(n.arguments[2]);if(Ke(a,"value")){const h=Sa(a,"writable"),y=h&&_r(h);if(!y||y===nn||y===En)return!0;if(h&&h.valueDeclaration&&Tc(h.valueDeclaration)){const x=h.valueDeclaration.initializer,k=Eo(x);if(k===nn||k===En)return!0}return!1}return!Sa(a,"set")}function b_(n){return!!(Cl(n)&8||n.flags&4&&Df(n)&8||n.flags&3&&Vye(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||St(n.declarations,ght))}function Z7e(n,a,c){var d,h;if(c===0)return!1;if(b_(a)){if(a.flags&4&&js(n)&&n.expression.kind===110){const y=Vp(n);if(!(y&&(y.kind===176||oh(y))))return!0;if(a.valueDeclaration){const x=vr(a.valueDeclaration),k=y.parent===a.valueDeclaration.parent,z=y===a.valueDeclaration.parent,K=x&&((d=a.parent)==null?void 0:d.valueDeclaration)===y.parent,ne=x&&((h=a.parent)==null?void 0:h.valueDeclaration)===y;return!(k||z||K||ne)}}return!0}if(js(n)){const y=Ss(n.expression);if(y.kind===80){const x=Zr(y).resolvedSymbol;if(x.flags&2097152){const k=zm(x);return!!k&&k.kind===274}}}return!1}function h8(n,a,c){const d=ic(n,7);return d.kind!==80&&!js(d)?(Xe(n,a),!1):d.flags&64?(Xe(n,c),!1):!0}function vht(n){Eo(n.expression);const a=Ss(n.expression);if(!js(a))return Xe(a,m.The_operand_of_a_delete_operator_must_be_a_property_reference),ai;Br(a)&&Qi(a.name)&&Xe(a,m.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const c=Zr(a),d=vf(c.resolvedSymbol);return d&&(b_(d)?Xe(a,m.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):yht(a,d)),ai}function yht(n,a){const c=_r(a);Y&&!(c.flags&131075)&&!(Le?a.flags&16777216:bm(c,16777216))&&Xe(n,m.The_operand_of_a_delete_operator_must_be_optional)}function bht(n){return Eo(n.expression),sD}function Eht(n){return Cx(n),Lt}function e5e(n){let a=!1;const c=m3(n);if(c&&Pl(c)){const d=Qy(n)?m.await_expression_cannot_be_used_inside_a_class_static_block:m.await_using_statements_cannot_be_used_inside_a_class_static_block;Xe(n,d),a=!0}else if(!(n.flags&65536))if(h3(n)){const d=Jn(n);if(!rS(d)){let h;if(!BA(d,V)){h!=null||(h=bh(d,n.pos));const y=Qy(n)?m.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:m.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,x=ru(d,h.start,h.length,y);cs.add(x),a=!0}switch(G){case 100:case 199:if(d.impliedNodeFormat===1){h!=null||(h=bh(d,n.pos)),cs.add(ru(d,h.start,h.length,m.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),a=!0;break}case 7:case 99:case 200:case 4:if(se>=4)break;default:h!=null||(h=bh(d,n.pos));const y=Qy(n)?m.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:m.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;cs.add(ru(d,h.start,h.length,y)),a=!0;break}}}else{const d=Jn(n);if(!rS(d)){const h=bh(d,n.pos),y=Qy(n)?m.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:m.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,x=ru(d,h.start,h.length,y);if(c&&c.kind!==176&&(Jc(c)&2)===0){const k=Fr(c,m.Did_you_mean_to_mark_this_function_as_async);Fa(x,k)}cs.add(x),a=!0}}return Qy(n)&&Cye(n)&&(Xe(n,m.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function Sht(n){r(()=>e5e(n));const a=Eo(n.expression),c=b8(a,!0,n,m.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c===a&&!Jt(c)&&!(a.flags&3)&&l_(!1,Fr(n,m.await_has_no_effect_on_the_type_of_this_expression)),c}function Tht(n){const a=Eo(n.operand);if(a===Ao)return Ao;switch(n.operand.kind){case 9:switch(n.operator){case 41:return Rx(g_(-n.operand.text));case 40:return Rx(g_(+n.operand.text))}break;case 10:if(n.operator===41)return Rx(vee({negative:!0,base10Value:pC(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return rh(a,n.operand),CB(a,12288)&&Xe(n.operand,m.The_0_operator_cannot_be_applied_to_type_symbol,ma(n.operator)),n.operator===40?(CB(a,2112)&&Xe(n.operand,m.Operator_0_cannot_be_applied_to_type_1,ma(n.operator),Kn(yv(a))),Tt):gbe(a);case 54:Lbe(a,n.operand);const c=pM(a,12582912);return c===4194304?nn:c===8388608?or:ai;case 46:case 47:return bte(n.operand,rh(a,n.operand),m.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&h8(n.operand,m.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,m.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),gbe(a)}return _t}function Aht(n){const a=Eo(n.operand);return a===Ao?Ao:(bte(n.operand,rh(a,n.operand),m.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&h8(n.operand,m.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,m.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),gbe(a))}function gbe(n){return wl(n,2112)?Nu(n,3)||wl(n,296)?Gl:kt:Tt}function CB(n,a){if(wl(n,a))return!0;const c=mv(n);return!!c&&wl(c,a)}function wl(n,a){if(n.flags&a)return!0;if(n.flags&3145728){const c=n.types;for(const d of c)if(wl(d,a))return!0}return!1}function Nu(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&Aa(n,Tt)||!!(a&2112)&&Aa(n,kt)||!!(a&402653316)&&Aa(n,ke)||!!(a&528)&&Aa(n,ai)||!!(a&16384)&&Aa(n,Qn)||!!(a&131072)&&Aa(n,qr)||!!(a&65536)&&Aa(n,fe)||!!(a&32768)&&Aa(n,We)||!!(a&4096)&&Aa(n,li)||!!(a&67108864)&&Aa(n,ya)}function PB(n,a,c){return n.flags&1048576?Bn(n.types,d=>PB(d,a,c)):Nu(n,a,c)}function Ete(n){return!!(zr(n)&16)&&!!n.symbol&&vbe(n.symbol)}function vbe(n){return(n.flags&128)!==0}function ybe(n){const a=B5e("hasInstance"),c=u1(n,a);if(c){const d=_r(c);if(d&&$o(d,0).length!==0)return d}}function Iht(n,a,c,d,h){if(c===Ao||d===Ao)return Ao;!Nt(c)&&PB(c,402784252)&&Xe(n,m.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),N.assert(q3(n.parent));const y=GD(n.parent,void 0,h);if(y===Er)return Ao;const x=ys(y);return od(x,ai,a,m.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),ai}function xht(n){return qm(n,a=>a===Ll||!!(a.flags&2097152)&&Jh(mv(a)))}function Rht(n,a,c,d){if(c===Ao||d===Ao)return Ao;if(Qi(n)){if(se<99&&Lc(n,2097152),!Zr(n).resolvedSymbol&&du(n)){const h=Kye(n,d.symbol,!0);a7e(n,d,h)}}else od(rh(c,n),Qt,n);return od(rh(d,a),ya,a)&&xht(d)&&Xe(a,m.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Kn(d)),ai}function Dht(n,a,c){const d=n.properties;if(Y&&d.length===0)return rh(a,n);for(let h=0;h<d.length;h++)t5e(n,a,h,d,c);return a}function t5e(n,a,c,d,h=!1){const y=n.properties,x=y[c];if(x.kind===303||x.kind===304){const k=x.name,z=gy(k);if(cm(z)){const Te=um(z),ve=Sa(a,Te);ve&&(yB(ve,x,h),Uye(x,!1,!0,a,ve))}const K=kp(a,z,32,k),ne=to(x,K);return uA(x.kind===304?x:x.initializer,ne)}else if(x.kind===305)if(c<y.length-1)Xe(x,m.A_rest_element_must_be_last_in_a_destructuring_pattern);else{se<99&&Lc(x,4);const k=[];if(d)for(const K of d)Xv(K)||k.push(K.name);const z=zi(a,k,a.symbol);return Mx(d,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),uA(x.expression,z)}else Xe(x,m.Property_assignment_expected)}function Nht(n,a,c){const d=n.elements;se<2&&V.downlevelIteration&&Lc(n,512);const h=Ey(193,a,We,n)||_t;let y=V.noUncheckedIndexedAccess?void 0:h;for(let x=0;x<d.length;x++){let k=h;n.elements[x].kind===230&&(k=y=y!=null?y:Ey(65,a,We,n)||_t),n5e(n,a,x,k,c)}return a}function n5e(n,a,c,d,h){const y=n.elements,x=y[c];if(x.kind!==232){if(x.kind!==230){const k=g_(c);if(yy(a)){const z=32|(hM(x)?16:0),K=Bb(a,k,z,EB(x,k))||_t,ne=hM(x)?Em(K,524288):K,Te=to(x,ne);return uA(x,Te,h)}return uA(x,d,h)}if(c<y.length-1)Xe(x,m.A_rest_element_must_be_last_in_a_destructuring_pattern);else{const k=x.expression;if(k.kind===226&&k.operatorToken.kind===64)Xe(k.operatorToken,m.A_rest_element_cannot_have_an_initializer);else{Mx(n.elements,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);const z=fp(a,Ha)?_l(a,K=>oM(K,c)):Uu(d);return uA(k,z,h)}}}}function uA(n,a,c,d){let h;if(n.kind===304){const y=n;y.objectAssignmentInitializer&&(Y&&!bm(Eo(y.objectAssignmentInitializer),16777216)&&(a=Em(a,524288)),Lht(y.name,y.equalsToken,y.objectAssignmentInitializer,c)),h=n.name}else h=n;return h.kind===226&&h.operatorToken.kind===64&&(Ne(h,c),h=h.left,Y&&(a=Em(a,524288))),h.kind===210?Dht(h,a,d):h.kind===209?Nht(h,a,c):Cht(h,a,c)}function Cht(n,a,c){const d=Eo(n,c),h=n.parent.kind===305?m.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:m.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,y=n.parent.kind===305?m.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:m.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return h8(n,h,y)&&Ub(a,d,n,n),o2(n)&&Lc(n.parent,1048576),a}function MB(n){switch(n=Ss(n),n.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return MB(n.whenTrue)&&MB(n.whenFalse);case 226:return Vv(n.operatorToken.kind)?!1:MB(n.left)&&MB(n.right);case 224:case 225:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function bbe(n,a){return(a.flags&98304)!==0||Aee(n,a)}function Pht(){const n=M5(a,c,d,h,y,x);return(ve,Ge)=>{const vt=n(ve,Ge);return N.assertIsDefined(vt),vt};function a(ve,Ge,vt){return Ge?(Ge.stackIndex++,Ge.skip=!1,K(Ge,void 0),Te(Ge,void 0)):Ge={checkMode:vt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},dr(ve)&&GA(ve)?(Ge.skip=!0,Te(Ge,Eo(ve.right,vt)),Ge):(Mht(ve),ve.operatorToken.kind===64&&(ve.left.kind===210||ve.left.kind===209)&&(Ge.skip=!0,Te(Ge,uA(ve.left,Eo(ve.right,vt),vt,ve.right.kind===110))),Ge)}function c(ve,Ge,vt){if(!Ge.skip)return k(Ge,ve)}function d(ve,Ge,vt){if(!Ge.skip){const xt=ne(Ge);N.assertIsDefined(xt),K(Ge,xt),Te(Ge,void 0);const cn=ve.kind;if(Rk(cn)){let sn=vt.parent;for(;sn.kind===217||Dk(sn);)sn=sn.parent;(cn===56||US(sn))&&Mbe(vt.left,xt,US(sn)?sn.thenStatement:void 0),Lbe(xt,vt.left)}}}function h(ve,Ge,vt){if(!Ge.skip)return k(Ge,ve)}function y(ve,Ge){let vt;if(Ge.skip)vt=ne(Ge);else{const xt=z(Ge);N.assertIsDefined(xt);const cn=ne(Ge);N.assertIsDefined(cn),vt=r5e(ve.left,ve.operatorToken,ve.right,xt,cn,Ge.checkMode,ve)}return Ge.skip=!1,K(Ge,void 0),Te(Ge,void 0),Ge.stackIndex--,vt}function x(ve,Ge,vt){return Te(ve,Ge),ve}function k(ve,Ge){if(vr(Ge))return Ge;Te(ve,Eo(Ge,ve.checkMode))}function z(ve){return ve.typeStack[ve.stackIndex]}function K(ve,Ge){ve.typeStack[ve.stackIndex]=Ge}function ne(ve){return ve.typeStack[ve.stackIndex+1]}function Te(ve,Ge){ve.typeStack[ve.stackIndex+1]=Ge}}function Mht(n){const{left:a,operatorToken:c,right:d}=n;c.kind===61&&(vr(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&Sn(a,m._0_and_1_operations_cannot_be_mixed_without_parentheses,ma(a.operatorToken.kind),ma(c.kind)),vr(d)&&(d.operatorToken.kind===57||d.operatorToken.kind===56)&&Sn(d,m._0_and_1_operations_cannot_be_mixed_without_parentheses,ma(d.operatorToken.kind),ma(c.kind)))}function Lht(n,a,c,d,h){const y=a.kind;if(y===64&&(n.kind===210||n.kind===209))return uA(n,Eo(c,d),d,c.kind===110);let x;Rk(y)?x=AM(n,d):x=Eo(n,d);const k=Eo(c,d);return r5e(n,a,c,x,k,d,h)}function r5e(n,a,c,d,h,y,x){const k=a.kind;switch(k){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(d===Ao||h===Ao)return Ao;d=rh(d,n),h=rh(h,c);let mn;if(d.flags&528&&h.flags&528&&(mn=ve(a.kind))!==void 0)return Xe(x||a,m.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,ma(a.kind),ma(mn)),Tt;{const qn=bte(n,d,m.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Hn=bte(c,h,m.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let ir;if(Nu(d,3)&&Nu(h,3)||!(wl(d,2112)||wl(h,2112)))ir=Tt;else if(z(d,h)){switch(k){case 50:case 73:cn();break;case 43:case 68:se<3&&Xe(x,m.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}ir=kt}else cn(z),ir=_t;return qn&&Hn&&Ge(ir),ir}case 40:case 65:if(d===Ao||h===Ao)return Ao;!Nu(d,402653316)&&!Nu(h,402653316)&&(d=rh(d,n),h=rh(h,c));let Gn;return Nu(d,296,!0)&&Nu(h,296,!0)?Gn=Tt:Nu(d,2112,!0)&&Nu(h,2112,!0)?Gn=kt:Nu(d,402653316,!0)||Nu(h,402653316,!0)?Gn=ke:(Nt(d)||Nt(h))&&(Gn=Jt(d)||Jt(h)?_t:j),Gn&&!Te(k)?Gn:Gn?(k===65&&Ge(Gn),Gn):(cn((Hn,ir)=>Nu(Hn,402655727)&&Nu(ir,402655727)),j);case 30:case 32:case 33:case 34:return Te(k)&&(d=Yve(rh(d,n)),h=Yve(rh(h,c)),xt((qn,Hn)=>{if(Nt(qn)||Nt(Hn))return!0;const ir=Aa(qn,Gl),vo=Aa(Hn,Gl);return ir&&vo||!ir&&!vo&&Jz(qn,Hn)})),ai;case 35:case 36:case 37:case 38:if(!(y&&y&64)){if((fj(n)||fj(c))&&(!dr(n)||k===37||k===38)){const qn=k===35||k===37;Xe(x,m.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,qn?"false":"true")}rr(x,k,n,c),xt((qn,Hn)=>bbe(qn,Hn)||bbe(Hn,qn))}return ai;case 104:return Iht(n,c,d,h,y);case 103:return Rht(n,c,d,h);case 56:case 77:{const qn=bm(d,4194304)?ei([hpt(Y?d:yv(h)),h]):d;return k===77&&Ge(h),qn}case 57:case 76:{const qn=bm(d,8388608)?ei([bv(O6e(d)),h],2):d;return k===76&&Ge(h),qn}case 61:case 78:{const qn=bm(d,262144)?ei([bv(d),h],2):d;return k===78&&Ge(h),qn}case 64:const Pn=vr(n.parent)?ql(n.parent):0;return K(Pn,h),vt(Pn)?((!(h.flags&524288)||Pn!==2&&Pn!==6&&!vv(h)&&!gye(h)&&!(zr(h)&1))&&Ge(h),d):(Ge(h),h);case 28:if(!V.allowUnreachableCode&&MB(n)&&!ne(n.parent)){const qn=Jn(n),Hn=qn.text,ir=Wa(Hn,n.pos);qn.parseDiagnostics.some(yo=>yo.code!==m.JSX_expressions_must_have_one_parent_element.code?!1:tj(yo,ir))||Xe(n,m.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return h;default:return N.fail()}function z(mn,Gn){return Nu(mn,2112)&&Nu(Gn,2112)}function K(mn,Gn){if(mn===2)for(const Pn of Wb(Gn)){const qn=_r(Pn);if(qn.symbol&&qn.symbol.flags&32){const Hn=Pn.escapedName,ir=Tl(Pn.valueDeclaration,Hn,788968,void 0,Hn,!1);(ir==null?void 0:ir.declarations)&&ir.declarations.some(YS)&&(hm(ir,m.Duplicate_identifier_0,Ki(Hn),Pn),hm(Pn,m.Duplicate_identifier_0,Ki(Hn),ir))}}}function ne(mn){return mn.parent.kind===217&&Ep(mn.left)&&mn.left.text==="0"&&(ca(mn.parent.parent)&&mn.parent.parent.expression===mn.parent||mn.parent.parent.kind===215)&&(js(mn.right)||Ue(mn.right)&&mn.right.escapedText==="eval")}function Te(mn){const Gn=CB(d,12288)?n:CB(h,12288)?c:void 0;return Gn?(Xe(Gn,m.The_0_operator_cannot_be_applied_to_type_symbol,ma(mn)),!1):!0}function ve(mn){switch(mn){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Ge(mn){Vv(k)&&r(Gn);function Gn(){let Pn=d;if(QC(a.kind)&&n.kind===211&&(Pn=ste(n,void 0,!0)),h8(n,m.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,m.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let qn;if(Le&&Br(n)&&wl(mn,32768)){const Hn=Ke(Cu(n.expression),n.name.escapedText);xee(mn,Hn)&&(qn=m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Ub(mn,Pn,n,c,qn)}}}function vt(mn){var Gn;switch(mn){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const Pn=gf(n),qn=GA(c);return!!qn&&za(qn)&&!!((Gn=Pn==null?void 0:Pn.exports)!=null&&Gn.size);default:return!1}}function xt(mn){return mn(d,h)?!1:(cn(mn),!0)}function cn(mn){let Gn=!1;const Pn=x||a;if(mn){const yo=by(d),Vo=by(h);Gn=!(yo===d&&Vo===h)&&!!(yo&&Vo)&&mn(yo,Vo)}let qn=d,Hn=h;!Gn&&mn&&([qn,Hn]=kht(d,h,mn));const[ir,vo]=vx(qn,Hn);sn(Pn,Gn,ir,vo)||K0(Pn,Gn,m.Operator_0_cannot_be_applied_to_types_1_and_2,ma(a.kind),ir,vo)}function sn(mn,Gn,Pn,qn){switch(a.kind){case 37:case 35:case 38:case 36:return K0(mn,Gn,m.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Pn,qn);default:return}}function rr(mn,Gn,Pn,qn){const Hn=zn(Ss(Pn)),ir=zn(Ss(qn));if(Hn||ir){const vo=Xe(mn,m.This_condition_will_always_return_0,ma(Gn===37||Gn===35?97:112));if(Hn&&ir)return;const yo=Gn===38||Gn===36?ma(54):"",Vo=Hn?qn:Pn,So=Ss(Vo);Fa(vo,Fr(Vo,m.Did_you_mean_0,`${yo}Number.isNaN(${Jl(So)?vp(So):"..."})`))}}function zn(mn){if(Ue(mn)&&mn.escapedText==="NaN"){const Gn=Sut();return!!Gn&&Gn===Hm(mn)}return!1}}function kht(n,a,c){let d=n,h=a;const y=yv(n),x=yv(a);return c(y,x)||(d=y,h=x),[d,h]}function wht(n){r(ve);const a=Vp(n);if(!a)return j;const c=Jc(a);if(!(c&1))return j;const d=(c&2)!==0;n.asteriskToken&&(d&&se<99&&Lc(n,26624),!d&&se<2&&V.downlevelIteration&&Lc(n,256));let h=ND(a);h&&h.flags&1048576&&(h=vc(h,Ge=>Tbe(Ge,c,void 0)));const y=h&&H5e(h,d),x=y&&y.yieldType||j,k=y&&y.nextType||j,z=d?dA(k)||j:k,K=n.expression?Eo(n.expression):Lt,ne=J7e(n,K,z,d);if(h&&ne&&Ub(ne,x,n.expression||n,n.expression),n.asteriskToken)return wbe(d?19:17,1,K,n.expression)||j;if(h)return nS(2,h,d)||j;let Te=P3e(2,a);return Te||(Te=j,r(()=>{if(de&&!gae(n)){const Ge=$d(n,void 0);(!Ge||Nt(Ge))&&Xe(n,m.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Te;function ve(){n.flags&16384||yu(n,m.A_yield_expression_is_only_allowed_in_a_generator_body),Cye(n)&&Xe(n,m.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Oht(n,a){const c=AM(n.condition,a);Mbe(n.condition,c,n.whenTrue);const d=Eo(n.whenTrue,a),h=Eo(n.whenFalse,a);return ei([d,h],2)}function i5e(n){const a=n.parent;return Vd(a)&&i5e(a)||el(a)&&a.argumentExpression===n}function Wht(n){const a=[n.head.text],c=[];for(const h of n.templateSpans){const y=Eo(h.expression);CB(y,12288)&&Xe(h.expression,m.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(h.literal.text),c.push(Aa(y,ao)?y:ke)}if(yM(n)||i5e(n)||qm($d(n,void 0)||pn,Fht))return XT(a,c);const d=n.parent.kind!==215&&aWe(n);return d?Rx(Yd(d)):ke}function Fht(n){return!!(n.flags&134217856||n.flags&58982400&&wl(ju(n)||pn,402653316))}function zht(n){return cE(n)&&!JS(n.parent)?n.parent.parent:n}function VD(n,a,c,d){const h=zht(n);pB(h,a,!1),omt(h,c);const y=Eo(n,d|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);const x=wl(y,2944)&&Tte(y,nte(a,n,void 0))?Ed(y):y;return amt(),d8(),x}function uc(n,a){if(a)return Eo(n,a);const c=Zr(n);if(!c.resolvedType){const d=q_,h=vn;q_=_f,vn=void 0,c.resolvedType=Eo(n,a),vn=h,q_=d}return c.resolvedType}function o5e(n){return n=Ss(n,!0),n.kind===216||n.kind===234||aR(n)}function vM(n,a,c){const d=rk(n);if(dr(n)){const y=b7(n);if(y)return cbe(d,y,a)}const h=Sbe(d)||(c?VD(d,c,void 0,a||0):uc(d,a));return No(n)&&n.name.kind===207&&Ha(h)&&!h.target.hasRestElement&&hy(h)<n.name.elements.length?Bht(h,n.name):h}function Bht(n,a){const c=a.elements,d=qE(n).slice(),h=n.target.elementFlags.slice();for(let y=hy(n);y<c.length;y++){const x=c[y];(y<c.length-1||!(x.kind===208&&x.dotDotDotToken))&&(d.push(!Kc(x)&&hM(x)?QP(x,!1,!1):j),h.push(2),!Kc(x)&&!hM(x)&&g1(x,j))}return qh(d,h,n.target.readonly)}function Ste(n,a){const c=oS(n)&6||s3(n)?a:$E(a);if(dr(n)){if(C6e(c))return g1(n,j),j;if(Mee(c))return g1(n,lc),lc}return c}function Tte(n,a){if(a){if(a.flags&3145728){const c=a.types;return St(c,d=>Tte(n,d))}if(a.flags&58982400){const c=ju(a)||pn;return wl(c,4)&&wl(n,128)||wl(c,8)&&wl(n,256)||wl(c,64)&&wl(n,2048)||wl(c,4096)&&wl(n,8192)||Tte(n,c)}return!!(a.flags&406847616&&wl(n,128)||a.flags&256&&wl(n,256)||a.flags&2048&&wl(n,2048)||a.flags&512&&wl(n,512)||a.flags&8192&&wl(n,8192))}return!1}function yM(n){const a=n.parent;return bS(a)&&Wg(a.type)||aR(a)&&Wg(D5(a))||lbe(n)&&qT($d(n,0))||(Vd(a)||hd(a)||t_(a))&&yM(a)||(Tc(a)||ip(a)||MC(a))&&yM(a.parent)}function bM(n,a,c){const d=Eo(n,a,c);return yM(n)||Uie(n)?Ed(d):o5e(n)?d:$ve(d,nte($d(n,void 0),n,void 0))}function a5e(n,a){return n.name.kind===167&&Dg(n.name),bM(n.initializer,a)}function s5e(n,a){LWe(n),n.name.kind===167&&Dg(n.name);const c=Q7e(n,a);return l5e(n,c,a)}function l5e(n,a,c){if(c&&c&10){const d=f8(a,0,!0),h=f8(a,1,!0),y=d||h;if(y&&y.typeParameters){const x=E1(n,2);if(x){const k=f8(bv(x),d?0:1,!1);if(k&&!k.typeParameters){if(c&8)return c5e(n,c),an;const z=ZE(n),K=z.signature&&ys(z.signature),ne=K&&h7e(K);if(ne&&!ne.typeParameters&&!Bn(z.inferences,jD)){const Te=Uht(z,y.typeParameters),ve=Zge(y,Te),Ge=Wt(z.inferences,vt=>iye(vt.typeParameter));if(eye(ve,k,(vt,xt)=>{Ev(Ge,vt,xt,0,!0)}),St(Ge,jD)&&(tye(ve,k,(vt,xt)=>{Ev(Ge,vt,xt)}),!Vht(z.inferences,Ge)))return jht(z.inferences,Ge),z.inferredTypeParameters=Ro(z.inferredTypeParameters,Te),KT(ve)}return KT(g7e(y,k,z))}}}}return a}function c5e(n,a){if(a&2){const c=ZE(n);c.flags|=4}}function jD(n){return!!(n.candidates||n.contraCandidates)}function Ght(n){return!!(n.candidates||n.contraCandidates||J4e(n.typeParameter))}function Vht(n,a){for(let c=0;c<n.length;c++)if(jD(n[c])&&jD(a[c]))return!0;return!1}function jht(n,a){for(let c=0;c<n.length;c++)!jD(n[c])&&jD(a[c])&&(n[c]=a[c])}function Uht(n,a){const c=[];let d,h;for(const y of a){const x=y.symbol.escapedName;if(Ebe(n.inferredTypeParameters,x)||Ebe(c,x)){const k=Hht(Ro(n.inferredTypeParameters,c),x),z=ts(262144,k),K=yf(z);K.target=y,d=Rn(d,y),h=Rn(h,K),c.push(K)}else c.push(y)}if(h){const y=wp(d,h);for(const x of h)x.mapper=y}return c}function Ebe(n,a){return St(n,c=>c.symbol.escapedName===a)}function Hht(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;const d=a.slice(0,c);for(let h=1;;h++){const y=d+h;if(!Ebe(n,y))return y}}function u5e(n){const a=cA(n);if(a&&!a.typeParameters)return ys(a)}function qht(n){const a=Eo(n.expression),c=i8(a,n.expression),d=u5e(a);return d&&Oee(d,n,c!==a)}function Cu(n){const a=Sbe(n);if(a)return a;if(n.flags&268435456&&vn){const h=vn[fs(n)];if(h)return h}const c=Qe,d=Eo(n,64);if(Qe!==c){const h=vn||(vn=[]);h[fs(n)]=d,hae(n,n.flags|268435456)}return d}function Sbe(n){let a=Ss(n,!0);if(aR(a)){const c=D5(a);if(!Wg(c))return Ai(c)}if(a=Ss(n),Qy(a)){const c=Sbe(a.expression);return c?dA(c):void 0}if(ca(a)&&a.expression.kind!==108&&!Ad(a,!0)&&!C7e(a))return hS(a)?qht(a):u5e(zD(a.expression));if(bS(a)&&!Wg(a.type))return Ai(a.type);if(w1(n)||DN(n))return Eo(n)}function LB(n){const a=Zr(n);if(a.contextFreeType)return a.contextFreeType;pB(n,j,!1);const c=a.contextFreeType=Eo(n,4);return d8(),c}function Eo(n,a,c){var d,h;(d=ur)==null||d.push(ur.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const y=C;C=n,I=0;const x=Xht(n,a,c),k=l5e(n,x,a);return Ete(k)&&Jht(n,k),C=y,(h=ur)==null||h.pop(),k}function Jht(n,a){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&Wte(n)||n.parent.kind===186&&n.parent.exprName===n||n.parent.kind===281||Xe(n,m.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),dm(V)&&(N.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!T0(n)&&Xe(n,m.Cannot_access_ambient_const_enums_when_0_is_enabled,Ze))}function Kht(n,a){if(zp(n)){if(nH(n))return cbe(n.expression,rH(n),a);if(aR(n))return k7e(n,a)}return Eo(n.expression,a)}function Xht(n,a,c){const d=n.kind;if(i)switch(d){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(d){case 80:return Dft(n,a);case 81:return qmt(n);case 110:return uB(n);case 108:return Dye(n);case 106:return je;case 15:case 11:return cye(n)?Ye:Rx(Yd(n.text));case 9:return n0e(n),Rx(g_(+n.text));case 10:return $bt(n),Rx(vee({negative:!1,base10Value:pC(n.text)}));case 112:return or;case 97:return nn;case 228:return Wht(n);case 14:return Sl;case 209:return z3e(n,a,c);case 210:return Amt(n,a);case 211:return ste(n,a);case 166:return t7e(n,a);case 212:return l_t(n,a);case 213:if(n.expression.kind===102)return B_t(n);case 214:return z_t(n,a);case 215:return G_t(n);case 217:return Kht(n,a);case 231:return Ovt(n);case 218:case 219:return Q7e(n,a);case 221:return bht(n);case 216:case 234:return V_t(n,a);case 235:return H_t(n);case 233:return O7e(n);case 238:return q_t(n);case 236:return J_t(n);case 220:return vht(n);case 222:return Eht(n);case 223:return Sht(n);case 224:return Tht(n);case 225:return Aht(n);case 226:return Ne(n,a);case 227:return Oht(n,a);case 230:return vmt(n,a);case 232:return Lt;case 229:return wht(n);case 237:return ymt(n);case 294:return zmt(n,a);case 284:return Dmt(n);case 285:return xmt(n);case 288:return Nmt(n);case 292:return Pmt(n,a);case 286:N.fail("Shouldn't ever directly check a JsxOpeningElement")}return _t}function d5e(n){Cg(n),n.expression&&yu(n.expression,m.Type_expected),Pa(n.constraint),Pa(n.default);const a=jT(Cr(n));ju(a),Nct(a)||Xe(n.default,m.Type_parameter_0_has_a_circular_default,Kn(a));const c=kd(a),d=JT(a);c&&d&&od(d,Xp(fo(c,XE(a,d)),d),n.default,m.Type_0_does_not_satisfy_the_constraint_1),Cx(n),r(()=>IM(n.name,m.Type_parameter_name_cannot_be_0))}function Yht(n){var a,c;if(gd(n.parent)||di(n.parent)||Lm(n.parent)){const d=jT(Cr(n)),h=qve(d)&24576;if(h){const y=Cr(n.parent);if(Lm(n.parent)&&!(zr(nl(y))&52))Xe(n,m.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(h===8192||h===16384){(a=ur)==null||a.push(ur.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:bd(nl(y)),id:bd(d)});const x=Yz(y,d,h===16384?Z:pe),k=Yz(y,d,h===16384?pe:Z),z=d;W=d,od(x,k,n,m.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),W=z,(c=ur)==null||c.pop()}}}}function p5e(n){Cg(n),FB(n);const a=Vp(n);Qr(n,31)&&(a.kind===176&&nm(a.body)||Xe(n,m.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&Ue(n.name)&&n.name.escapedText==="constructor"&&Xe(n.name,m.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&vC(n)&&na(n.name)&&a.body&&Xe(n,m.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&Ue(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&Xe(n,m.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&Xe(n,m.A_constructor_cannot_have_a_this_parameter),a.kind===219&&Xe(n,m.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&Xe(n,m.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!na(n.name)&&!Aa(h_(_r(n.symbol)),ff)&&Xe(n,m.A_rest_parameter_must_be_of_an_array_type)}function $ht(n){const a=Qht(n);if(!a){Xe(n,m.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const c=vm(a),d=Jf(c);if(!d)return;Pa(n.type);const{parameterName:h}=n;if(d.kind===0||d.kind===2)yee(h);else if(d.parameterIndex>=0){if(Zu(c)&&d.parameterIndex===c.parameters.length-1)Xe(h,m.A_type_predicate_cannot_reference_a_rest_parameter);else if(d.type){const y=()=>jo(void 0,m.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);od(d.type,_r(c.parameters[d.parameterIndex]),n.type,void 0,y)}}else if(h){let y=!1;for(const{name:x}of a.parameters)if(na(x)&&f5e(x,h,d.parameterName)){y=!0;break}y||Xe(n.parameterName,m.Cannot_find_parameter_0,d.parameterName)}}function Qht(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const a=n.parent;if(n===a.type)return a}}function f5e(n,a,c){for(const d of n.elements){if(Kc(d))continue;const h=d.name;if(h.kind===80&&h.escapedText===c)return Xe(a,m.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((h.kind===207||h.kind===206)&&f5e(h,a,c))return!0}}function g8(n){n.kind===181?Ibt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&jte(n);const a=Jc(n);a&4||((a&3)===3&&se<99&&Lc(n,6144),(a&3)===2&&se<4&&Lc(n,64),(a&3)!==0&&se<2&&Lc(n,128)),GB(My(n)),Lvt(n),Ve(n.parameters,p5e),n.type&&Pa(n.type),r(c);function c(){Ygt(n);let d=lm(n),h=d;if(dr(n)){const y=d0(n);if(y&&y.typeExpression&&Cf(y.typeExpression.type)){const x=cA(Ai(y.typeExpression));x&&x.declaration&&(d=lm(x.declaration),h=y.typeExpression.type)}}if(de&&!d)switch(n.kind){case 180:Xe(n,m.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:Xe(n,m.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(d&&h){const y=Jc(n);if((y&5)===1){const x=Ai(d);x===Qn?Xe(h,m.A_generator_cannot_have_a_void_type_annotation):Tbe(x,y,h)}else(y&3)===2&&Ngt(n,d,h)}n.kind!==181&&n.kind!==324&&Xb(n)}}function Tbe(n,a,c){const d=nS(0,n,(a&2)!==0)||j,h=nS(1,n,(a&2)!==0)||d,y=nS(2,n,(a&2)!==0)||pn,x=q7e(d,h,y,!!(a&2));return od(x,n,c)}function Zht(n){const a=new Map,c=new Map,d=new Map;for(const y of n.members)if(y.kind===176)for(const x of y.parameters)gp(x,y)&&!na(x.name)&&h(a,x.name,x.name.escapedText,3);else{const x=la(y),k=y.name;if(!k)continue;const z=Qi(k),K=z&&x?16:0,ne=z?d:x?c:a,Te=k&&r0e(k);if(Te)switch(y.kind){case 177:h(ne,k,Te,1|K);break;case 178:h(ne,k,Te,2|K);break;case 172:h(ne,k,Te,3|K);break;case 174:h(ne,k,Te,8|K);break}}function h(y,x,k,z){const K=y.get(k);if(K)if((K&16)!==(z&16))Xe(x,m.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,bc(x));else{const ne=!!(K&8),Te=!!(z&8);ne||Te?ne!==Te&&Xe(x,m.Duplicate_identifier_0,bc(x)):K&z&-17?Xe(x,m.Duplicate_identifier_0,bc(x)):y.set(k,K|z)}else y.set(k,z)}}function egt(n){for(const a of n.members){const c=a.name;if(la(a)&&c){const h=r0e(c);switch(h){case"name":case"length":case"caller":case"arguments":if(_e)break;case"prototype":const y=m.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,x=i1(Cr(n));Xe(c,y,h,x);break}}}}function m5e(n){const a=new Map;for(const c of n.members)if(c.kind===171){let d;const h=c.name;switch(h.kind){case 11:case 9:d=h.text;break;case 80:d=Rr(h);break;default:continue}a.get(d)?(Xe(Oo(c.symbol.valueDeclaration),m.Duplicate_identifier_0,d),Xe(c.name,m.Duplicate_identifier_0,d)):a.set(d,!0)}}function Abe(n){if(n.kind===264){const c=Cr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}const a=eve(Cr(n));if(a!=null&&a.declarations){const c=new Map;for(const d of a.declarations)d.parameters.length===1&&d.parameters[0].type&&oA(Ai(d.parameters[0].type),h=>{const y=c.get(bd(h));y?y.declarations.push(d):c.set(bd(h),{type:h,declarations:[d]})});c.forEach(d=>{if(d.declarations.length>1)for(const h of d.declarations)Xe(h,m.Duplicate_index_signature_for_type_0,Kn(d.type))})}}function _5e(n){!Cg(n)&&!Jbt(n)&&Ute(n.name),FB(n),Ibe(n),Qr(n,64)&&n.kind===172&&n.initializer&&Xe(n,m.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,ks(n.name))}function tgt(n){return Qi(n.name)&&Xe(n,m.Private_identifiers_are_not_allowed_outside_class_bodies),_5e(n)}function ngt(n){LWe(n)||Ute(n.name),Ql(n)&&n.asteriskToken&&Ue(n.name)&&Rr(n.name)==="constructor"&&Xe(n.name,m.Class_constructor_may_not_be_a_generator),D5e(n),Qr(n,64)&&n.kind===174&&n.body&&Xe(n,m.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,ks(n.name)),Qi(n.name)&&!du(n)&&Xe(n,m.Private_identifiers_are_not_allowed_outside_class_bodies),Ibe(n)}function Ibe(n){if(Qi(n.name)&&se<99){for(let a=yh(n);a;a=yh(a))Zr(a).flags|=1048576;if(iu(n.parent)){const a=Aye(n.parent);a&&(Zr(n.name).flags|=32768,Zr(a).flags|=4096)}}}function rgt(n){Cg(n),Uo(n,Pa)}function igt(n){g8(n),Hbt(n)||qbt(n),Pa(n.body);const a=Cr(n),c=gl(a,n.kind);if(n===c&&xte(a),Hl(n.body))return;r(h);return;function d(y){return ud(y)?!0:y.kind===172&&!la(y)&&!!y.initializer}function h(){const y=n.parent;if(H1(y)){Iye(n.parent,y);const x=xye(y),k=T3e(n.body);if(k){if(x&&Xe(k,m.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!ye&&(St(n.parent.members,d)||St(n.parameters,K=>Qr(K,31))))if(!ogt(k,n.body))Xe(k,m.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let K;for(const ne of n.body.statements){if(ou(ne)&&IS(ic(ne.expression))){K=ne;break}if(h5e(ne))break}K===void 0&&Xe(n,m.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else x||Xe(n,m.Constructors_for_derived_classes_must_contain_a_super_call)}}}function ogt(n,a){const c=Bv(n.parent);return ou(c)&&c.parent===a}function h5e(n){return n.kind===108||n.kind===110?!0:$ie(n)?!1:!!Uo(n,h5e)}function g5e(n){Ue(n.name)&&Rr(n.name)==="constructor"&&di(n.parent)&&Xe(n.name,m.Class_constructor_may_not_be_an_accessor),r(a),Pa(n.body),Ibe(n);function a(){if(!jte(n)&&!kbt(n)&&Ute(n.name),wB(n),g8(n),n.kind===177&&!(n.flags&33554432)&&nm(n.body)&&n.flags&512&&(n.flags&1024||Xe(n.name,m.A_get_accessor_must_return_a_value)),n.name.kind===167&&Dg(n.name),RD(n)){const d=Cr(n),h=gl(d,177),y=gl(d,178);if(h&&y&&!(qD(h)&1)){Zr(h).flags|=1;const x=fd(h),k=fd(y);(x&64)!==(k&64)&&(Xe(h.name,m.Accessors_must_both_be_abstract_or_non_abstract),Xe(y.name,m.Accessors_must_both_be_abstract_or_non_abstract)),(x&4&&!(k&6)||x&2&&!(k&2))&&(Xe(h.name,m.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Xe(y.name,m.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const c=l1(Cr(n));n.kind===177&&hbe(n,c)}}function agt(n){wB(n)}function sgt(n,a,c){return n.typeArguments&&c<n.typeArguments.length?Ai(n.typeArguments[c]):Ate(n,a)[c]}function Ate(n,a){return Fb(Wt(n.typeArguments,Ai),a,Uh(a),dr(n))}function v5e(n,a){let c,d,h=!0;for(let y=0;y<a.length;y++){const x=kd(a[y]);x&&(c||(c=Ate(n,a),d=wp(a,c)),h=h&&od(c[y],fo(x,d),n.typeArguments[y],m.Type_0_does_not_satisfy_the_constraint_1))}return h}function lgt(n,a){if(!Jt(n))return a.flags&524288&&eo(a).typeParameters||(zr(n)&4?n.target.localTypeParameters:void 0)}function xbe(n){const a=Ai(n);if(!Jt(a)){const c=Zr(n).resolvedSymbol;if(c)return lgt(a,c)}}function Rbe(n){if(UB(n,n.typeArguments),n.kind===183&&!dr(n)&&!tk(n)&&n.typeArguments&&n.typeName.end!==n.typeArguments.pos){const a=Jn(n);Bie(a,n.typeName.end)===25&&iS(n,Wa(a.text,n.typeName.end),1,m.JSDoc_types_can_only_be_used_inside_documentation_comments)}Ve(n.typeArguments,Pa),y5e(n)}function y5e(n){const a=Ai(n);if(!Jt(a)){n.typeArguments&&r(()=>{const d=xbe(n);d&&v5e(n,d)});const c=Zr(n).resolvedSymbol;c&&St(c.declarations,d=>H2(d)&&!!(d.flags&536870912))&&cy(AB(n),c.declarations,c.escapedName)}}function cgt(n){const a=ni(n.parent,X6);if(!a)return;const c=xbe(a);if(!c)return;const d=kd(c[a.typeArguments.indexOf(n)]);return d&&fo(d,wp(c,Ate(a,c)))}function ugt(n){h8e(n)}function dgt(n){Ve(n.members,Pa),r(a);function a(){const c=r6e(n);Lte(c,c.symbol),Abe(n),m5e(n)}}function pgt(n){Pa(n.elementType)}function fgt(n){let a=!1,c=!1;for(const d of n.elements){let h=_ve(d);if(h&8){const y=Ai(d.type);if(!yy(y)){Xe(d,m.A_rest_element_type_must_be_an_array_type);break}(Yf(y)||Ha(y)&&y.target.combinedFlags&4)&&(h|=4)}if(h&4){if(c){Sn(d,m.A_rest_element_cannot_follow_another_rest_element);break}c=!0}else if(h&2){if(c){Sn(d,m.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(h&1&&a){Sn(d,m.A_required_element_cannot_follow_an_optional_element);break}}Ve(n.elements,Pa),Ai(n)}function mgt(n){Ve(n.types,Pa),Ai(n)}function b5e(n,a){if(!(n.flags&8388608))return n;const c=n.objectType,d=n.indexType,h=Xd(c)&&nee(c)===2?G8e(c,0):th(c,0),y=!!Rg(c,Tt);if(fp(d,x=>Aa(x,h)||y&&Sx(x,Tt)))return a.kind===212&&og(a)&&zr(c)&32&&jh(c)&1&&Xe(a,m.Index_signature_in_type_0_only_permits_reading,Kn(c)),n;if($T(c)){const x=mee(d,a);if(x){const k=oA(wd(c),z=>Sa(z,x));if(k&&Df(k)&6)return Xe(a,m.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Ki(x)),_t}}return Xe(a,m.Type_0_cannot_be_used_to_index_type_1,Kn(d),Kn(c)),_t}function _gt(n){Pa(n.objectType),Pa(n.indexType),b5e($8e(n),n)}function hgt(n){ggt(n),Pa(n.typeParameter),Pa(n.nameType),Pa(n.type),n.type||g1(n,j);const a=Rve(n),c=my(a);if(c)od(c,ba,n.nameType);else{const d=Ef(a);od(d,ba,i2(n.typeParameter))}}function ggt(n){var a;if((a=n.members)!=null&&a.length)return Sn(n.members[0],m.A_mapped_type_may_not_declare_properties_or_methods)}function vgt(n){yee(n)}function ygt(n){Obt(n),Pa(n.type)}function bgt(n){Uo(n,Pa)}function Egt(n){jn(n,c=>c.parent&&c.parent.kind===194&&c.parent.extendsType===c)||Sn(n,m.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Pa(n.typeParameter);const a=Cr(n.typeParameter);if(a.declarations&&a.declarations.length>1){const c=eo(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;const d=jT(a),h=yie(a,168);if(!X5e(h,[d],y=>[y])){const y=Ti(a);for(const x of h)Xe(x.name,m.All_declarations_of_0_must_have_identical_constraints,y)}}}Xb(n)}function Sgt(n){for(const a of n.templateSpans){Pa(a.type);const c=Ai(a.type);od(c,ao,a.type)}Ai(n)}function Tgt(n){Pa(n.argument),n.attributes&&ER(n.attributes,Sn),y5e(n)}function Agt(n){n.dotDotDotToken&&n.questionToken&&Sn(n,m.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&Sn(n.type,m.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===191&&Sn(n.type,m.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Pa(n.type),Ai(n)}function kB(n){return(bp(n,2)||ud(n))&&!!(n.flags&33554432)}function Ite(n,a){let c=Hte(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){const d=Vj(n);d&&d.flags&128&&!(c&128)&&!(O_(n.parent)&&nc(n.parent.parent)&&R_(n.parent.parent))&&(c|=32),c|=128}return c&a}function xte(n){r(()=>Igt(n))}function Igt(n){function a(mn,Gn){return Gn!==void 0&&Gn.parent===mn[0].parent?Gn:mn[0]}function c(mn,Gn,Pn,qn,Hn){if((qn^Hn)!==0){const vo=Ite(a(mn,Gn),Pn);Ve(mn,yo=>{const Vo=Ite(yo,Pn)^vo;Vo&32?Xe(Oo(yo),m.Overload_signatures_must_all_be_exported_or_non_exported):Vo&128?Xe(Oo(yo),m.Overload_signatures_must_all_be_ambient_or_non_ambient):Vo&6?Xe(Oo(yo)||yo,m.Overload_signatures_must_all_be_public_private_or_protected):Vo&64&&Xe(Oo(yo),m.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function d(mn,Gn,Pn,qn){if(Pn!==qn){const Hn=jA(a(mn,Gn));Ve(mn,ir=>{jA(ir)!==Hn&&Xe(Oo(ir),m.Overload_signatures_must_all_be_optional_or_required)})}}const h=230;let y=0,x=h,k=!1,z=!0,K=!1,ne,Te,ve;const Ge=n.declarations,vt=(n.flags&16384)!==0;function xt(mn){if(mn.name&&Hl(mn.name))return;let Gn=!1;const Pn=Uo(mn.parent,Hn=>{if(Gn)return Hn;Gn=Hn===mn});if(Pn&&Pn.pos===mn.end&&Pn.kind===mn.kind){const Hn=Pn.name||Pn,ir=Pn.name;if(mn.name&&ir&&(Qi(mn.name)&&Qi(ir)&&mn.name.escapedText===ir.escapedText||ss(mn.name)&&ss(ir)&&gv(Dg(mn.name),Dg(ir))||N_(mn.name)&&N_(ir)&&HN(mn.name)===HN(ir))){if((mn.kind===174||mn.kind===173)&&la(mn)!==la(Pn)){const yo=la(mn)?m.Function_overload_must_be_static:m.Function_overload_must_not_be_static;Xe(Hn,yo)}return}if(nm(Pn.body)){Xe(Hn,m.Function_implementation_name_must_be_0,ks(mn.name));return}}const qn=mn.name||mn;vt?Xe(qn,m.Constructor_implementation_is_missing):Qr(mn,64)?Xe(qn,m.All_declarations_of_an_abstract_method_must_be_consecutive):Xe(qn,m.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let cn=!1,sn=!1,rr=!1;const zn=[];if(Ge)for(const mn of Ge){const Gn=mn,Pn=Gn.flags&33554432,qn=Gn.parent&&(Gn.parent.kind===264||Gn.parent.kind===187)||Pn;if(qn&&(ve=void 0),(Gn.kind===263||Gn.kind===231)&&!Pn&&(rr=!0),Gn.kind===262||Gn.kind===174||Gn.kind===173||Gn.kind===176){zn.push(Gn);const Hn=Ite(Gn,h);y|=Hn,x&=Hn,k=k||jA(Gn),z=z&&jA(Gn);const ir=nm(Gn.body);ir&&ne?vt?sn=!0:cn=!0:(ve==null?void 0:ve.parent)===Gn.parent&&ve.end!==Gn.pos&&xt(ve),ir?ne||(ne=Gn):K=!0,ve=Gn,qn||(Te=Gn)}dr(mn)&&ta(mn)&&mn.jsDoc&&(K=Pe(oU(mn))>0)}if(sn&&Ve(zn,mn=>{Xe(mn,m.Multiple_constructor_implementations_are_not_allowed)}),cn&&Ve(zn,mn=>{Xe(Oo(mn)||mn,m.Duplicate_function_implementation)}),rr&&!vt&&n.flags&16&&Ge){const mn=Vn(Ge,Gn=>Gn.kind===263).map(Gn=>Fr(Gn,m.Consider_adding_a_declare_modifier_to_this_class));Ve(Ge,Gn=>{const Pn=Gn.kind===263?m.Class_declaration_cannot_implement_overload_list_for_0:Gn.kind===262?m.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Pn&&Fa(Xe(Oo(Gn)||Gn,Pn,Il(n)),...mn)})}if(Te&&!Te.body&&!Qr(Te,64)&&!Te.questionToken&&xt(Te),K&&(Ge&&(c(Ge,ne,h,y,x),d(Ge,ne,k,z)),ne)){const mn=UE(n),Gn=vm(ne);for(const Pn of mn)if(!Hdt(Gn,Pn)){const qn=Pn.declaration&&D0(Pn.declaration)?Pn.declaration.parent.tagName:Pn.declaration;Fa(Xe(qn,m.This_overload_signature_is_not_compatible_with_its_implementation_signature),Fr(ne,m.The_implementation_signature_is_declared_here));break}}}function v8(n){r(()=>xgt(n))}function xgt(n){let a=n.localSymbol;if(!a&&(a=Cr(n),!a.exportSymbol)||gl(a,n.kind)!==n)return;let c=0,d=0,h=0;for(const K of a.declarations){const ne=z(K),Te=Ite(K,2080);Te&32?Te&2048?h|=ne:c|=ne:d|=ne}const y=c|d,x=c&d,k=h&y;if(x||k)for(const K of a.declarations){const ne=z(K),Te=Oo(K);ne&k?Xe(Te,m.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,ks(Te)):ne&x&&Xe(Te,m.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,ks(Te))}function z(K){let ne=K;switch(ne.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return Ou(ne)||Xg(ne)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const Te=ne,ve=zl(Te)?Te.expression:Te.right;if(!Jl(ve))return 1;ne=ve;case 271:case 274:case 273:let Ge=0;const vt=Vc(Cr(ne));return Ve(vt.declarations,xt=>{Ge|=z(xt)}),Ge;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return N.failBadSyntaxKind(ne)}}}function EM(n,a,c,...d){const h=y8(n,a);return h&&dA(h,a,c,...d)}function y8(n,a,c){if(Nt(n))return;const d=n;if(d.promisedTypeOfPromise)return d.promisedTypeOfPromise;if(wb(n,Fz(!1)))return d.promisedTypeOfPromise=$s(n)[0];if(PB(mv(n),402915324))return;const h=Ke(n,"then");if(Nt(h))return;const y=h?$o(h,0):et;if(y.length===0){a&&Xe(a,m.A_promise_must_have_a_then_method);return}let x,k;for(const ne of y){const Te=p1(ne);Te&&Te!==Qn&&!nh(n,Te,kh)?x=Te:k=Rn(k,ne)}if(!k){N.assertIsDefined(x),c&&(c.value=x),a&&Xe(a,m.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Kn(n),Kn(x));return}const z=Em(ei(Wt(k,pbe)),2097152);if(Nt(z))return;const K=$o(z,0);if(K.length===0){a&&Xe(a,m.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return d.promisedTypeOfPromise=ei(Wt(K,pbe),2)}function b8(n,a,c,d,...h){return(a?dA(n,c,d,...h):by(n,c,d,...h))||_t}function E5e(n){if(PB(mv(n),402915324))return!1;const a=Ke(n,"then");return!!a&&$o(Em(a,2097152),0).length>0}function Rte(n){var a;if(n.flags&16777216){const c=mve(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function SM(n){return n.flags&1048576?_l(n,SM):Rte(n)?n.aliasTypeArguments[0]:n}function S5e(n){if(Nt(n)||Rte(n))return!1;if($T(n)){const a=ju(n);if(a?a.flags&3||vv(a)||qm(a,E5e):wl(n,8650752))return!0}return!1}function Rgt(n){const a=mve(!0);if(a)return PD(a,[SM(n)])}function Dgt(n){if(S5e(n)){const a=Rgt(n);if(a)return a}return N.assert(Rte(n)||y8(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function dA(n,a,c,...d){const h=by(n,a,c,...d);return h&&Dgt(h)}function by(n,a,c,...d){if(Nt(n)||Rte(n))return n;const h=n;if(h.awaitedTypeOfType)return h.awaitedTypeOfType;if(n.flags&1048576){if(H0.lastIndexOf(n.id)>=0){a&&Xe(a,m.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const k=a?K=>by(K,a,c,...d):by;H0.push(n.id);const z=_l(n,k);return H0.pop(),h.awaitedTypeOfType=z}if(S5e(n))return h.awaitedTypeOfType=n;const y={value:void 0},x=y8(n,void 0,y);if(x){if(n.id===x.id||H0.lastIndexOf(x.id)>=0){a&&Xe(a,m.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}H0.push(n.id);const k=by(x,a,c,...d);return H0.pop(),k?h.awaitedTypeOfType=k:void 0}if(E5e(n)){if(a){N.assertIsDefined(c);let k;y.value&&(k=jo(k,m.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Kn(n),Kn(y.value))),k=jo(k,c,...d),cs.add(zg(Jn(a),a,k))}return}return h.awaitedTypeOfType=n}function Ngt(n,a,c){const d=Ai(a);if(se>=2){if(Jt(d))return;const y=Fz(!0);if(y!==Wo&&!wb(d,y)){h(m.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,c,Kn(by(d)||Qn));return}}else{if(Pgt(a),Jt(d))return;const y=ZL(a);if(y===void 0){h(m.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,Kn(d));return}const x=Ys(y,111551,!0),k=x?_r(x):_t;if(Jt(k)){y.kind===80&&y.escapedText==="Promise"&&fy(d)===Fz(!1)?Xe(c,m.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):h(m.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,vp(y));return}const z=tut(!0);if(z===wa){h(m.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,vp(y));return}const K=m.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!od(k,z,c,K,()=>a===c?void 0:jo(void 0,m.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const Te=y&&jp(y),ve=Kd(n.locals,Te.escapedText,111551);if(ve){Xe(ve.valueDeclaration,m.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Rr(Te),vp(y));return}}b8(d,!1,n,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function h(y,x,k,z){if(x===k)Xe(k,y,z);else{const K=Xe(k,m.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Fa(K,Fr(x,y,z))}}}function Cgt(n){const a=GD(n);vte(a,n);const c=ys(a);if(c.flags&1)return;const d=_be(n);if(!(d!=null&&d.resolvedReturnType))return;let h;const y=d.resolvedReturnType;switch(n.parent.kind){case 263:case 231:h=m.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!re){h=m.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:h=m.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:h=m.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return N.failBadSyntaxKind(n.parent)}od(c,y,n.expression,h)}function E8(n,a,c,d,h,y=c.length,x=0){const k=O.createFunctionTypeNode(void 0,et,O.createKeywordTypeNode(133));return xg(k,n,a,c,d,h,y,x)}function Dbe(n,a,c,d,h,y,x){const k=E8(n,a,c,d,h,y,x);return KT(k)}function T5e(n){return Dbe(void 0,void 0,et,n)}function A5e(n){const a=c_("value",n);return Dbe(void 0,void 0,[a],Qn)}function Pgt(n){I5e(n&&ZL(n),!1)}function I5e(n,a){if(!n)return;const c=jp(n),d=(n.kind===80?788968:1920)|2097152,h=Tl(c,c.escapedText,d,void 0,void 0,!0);if(h&&h.flags&2097152){if(It&&Vm(h)&&!I8(Vc(h))&&!Gf(h))Tb(h);else if(a&&dm(V)&&Wu(V)>=5&&!Vm(h)&&!St(h.declarations,m0)){const y=Xe(n,m.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),x=un(h.declarations||et,yb);x&&Fa(y,Fr(x,m._0_was_imported_here,Rr(c)))}}}function UD(n){const a=Nbe(n);a&&ep(a)&&I5e(a,!0)}function Nbe(n){if(n)switch(n.kind){case 193:case 192:return x5e(n.types);case 194:return x5e([n.trueType,n.falseType]);case 196:case 202:return Nbe(n.type);case 183:return n.typeName}}function x5e(n){let a;for(let c of n){for(;c.kind===196||c.kind===202;)c=c.type;if(c.kind===146||!Y&&(c.kind===201&&c.literal.kind===106||c.kind===157))continue;const d=Nbe(c);if(!d)return;if(a){if(!Ue(a)||!Ue(d)||a.escapedText!==d.escapedText)return}else a=d}return a}function Dte(n){const a=Su(n);return eg(n)?qj(a):a}function wB(n){if(!QS(n)||!If(n)||!n.modifiers||!y3(re,n,n.parent,n.parent.parent))return;const a=un(n.modifiers,Au);if(!!a){if(re?(Lc(a,8),n.kind===169&&Lc(a,32)):se<99&&(Lc(a,8),Nc(n)?n.name?Y5e(n)&&Lc(a,8388608):Lc(a,8388608):iu(n)||(Qi(n.name)&&(Ql(n)||ky(n)||Fd(n))&&Lc(a,8388608),ss(n.name)&&Lc(a,16777216))),V.emitDecoratorMetadata)switch(Lc(a,16),n.kind){case 263:const c=sg(n);if(c)for(const x of c.parameters)UD(Dte(x));break;case 177:case 178:const d=n.kind===177?178:177,h=gl(Cr(n),d);UD(Um(n)||h&&Um(h));break;case 174:for(const x of n.parameters)UD(Dte(x));UD(lm(n));break;case 172:UD(Su(n));break;case 169:UD(Dte(n));const y=n.parent;for(const x of y.parameters)UD(Dte(x));UD(lm(y));break}for(const c of n.modifiers)Au(c)&&Cgt(c)}}function Mgt(n){r(a);function a(){D5e(n),Qbe(n),TM(n,n.name)}}function Lgt(n){n.typeExpression||Xe(n.name,m.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&IM(n.name,m.Type_alias_name_cannot_be_0),Pa(n.typeExpression),GB(My(n))}function kgt(n){Pa(n.constraint);for(const a of n.typeParameters)Pa(a)}function wgt(n){Pa(n.typeExpression)}function Ogt(n){Pa(n.typeExpression);const a=y0(n);if(a){const c=w6(a,I5);if(Pe(c)>1)for(let d=1;d<Pe(c);d++){const h=c[d].tagName;Xe(h,m._0_tag_already_specified,Rr(h))}}}function Wgt(n){n.name&&jB(n.name,!0)}function Fgt(n){Pa(n.typeExpression)}function zgt(n){Pa(n.typeExpression)}function Bgt(n){r(a),g8(n);function a(){!n.type&&!x2(n)&&g1(n,j)}}function Ggt(n){const a=y0(n);a&&Ks(a)&&Xe(n.tagName,m.An_arrow_function_cannot_have_a_this_parameter)}function Vgt(n){const a=y0(n);(!a||!Nc(a)&&!iu(a))&&Xe(a,m.JSDoc_0_is_not_attached_to_a_class,Rr(n.tagName))}function jgt(n){const a=y0(n);if(!a||!Nc(a)&&!iu(a)){Xe(a,m.JSDoc_0_is_not_attached_to_a_class,Rr(n.tagName));return}const c=f0(a).filter(TI);N.assert(c.length>0),c.length>1&&Xe(c[1],m.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const d=R5e(n.class.expression),h=H1(a);if(h){const y=R5e(h.expression);y&&d.escapedText!==y.escapedText&&Xe(d,m.JSDoc_0_1_does_not_match_the_extends_2_clause,Rr(n.tagName),Rr(d),Rr(y))}}function Ugt(n){const a=CS(n);a&&ud(a)&&Xe(n,m.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function R5e(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function D5e(n){var a;wB(n),g8(n);const c=Jc(n);if(n.name&&n.name.kind===167&&Dg(n.name),RD(n)){const y=Cr(n),x=n.localSymbol||y,k=(a=x.declarations)==null?void 0:a.find(z=>z.kind===n.kind&&!(z.flags&524288));n===k&&xte(x),y.parent&&xte(y)}const d=n.kind===173?void 0:n.body;if(Pa(d),hbe(n,ND(n)),r(h),dr(n)){const y=d0(n);y&&y.typeExpression&&!kye(Ai(y.typeExpression),n)&&Xe(y.typeExpression.type,m.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function h(){lm(n)||(Hl(d)&&!kB(n)&&g1(n,j),c&1&&nm(d)&&ys(vm(n)))}}function Xb(n){r(a);function a(){const c=Jn(n);let d=mf.get(c.path);d||(d=[],mf.set(c.path,d)),d.push(n)}}function N5e(n,a){for(const c of n)switch(c.kind){case 263:case 231:Hgt(c,a),Cbe(c,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:M5e(c,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&M5e(c,a),Cbe(c,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:Cbe(c,a);break;case 195:qgt(c,a);break;default:N.assertNever(c,"Node should not have been registered for unused identifiers check")}}function C5e(n,a,c){const d=Oo(n)||n,h=H2(n)?m._0_is_declared_but_never_used:m._0_is_declared_but_its_value_is_never_read;c(n,0,Fr(d,h,a))}function S8(n){return Ue(n)&&Rr(n).charCodeAt(0)===95}function Hgt(n,a){for(const c of n.members)switch(c.kind){case 174:case 172:case 177:case 178:if(c.kind===178&&c.symbol.flags&32768)break;const d=Cr(c);!d.isReferenced&&(bp(c,2)||cd(c)&&Qi(c.name))&&!(c.flags&33554432)&&a(c,0,Fr(c.name,m._0_is_declared_but_its_value_is_never_read,Ti(d)));break;case 176:for(const h of c.parameters)!h.symbol.isReferenced&&Qr(h,2)&&a(h,0,Fr(h.name,m.Property_0_is_declared_but_its_value_is_never_read,Il(h.symbol)));break;case 181:case 240:case 175:break;default:N.fail("Unexpected class member")}}function qgt(n,a){const{typeParameter:c}=n;Pbe(c)&&a(n,1,Fr(n,m._0_is_declared_but_its_value_is_never_read,Rr(c.name)))}function Cbe(n,a){const c=Cr(n).declarations;if(!c||rs(c)!==n)return;const d=My(n),h=new Set;for(const y of d){if(!Pbe(y))continue;const x=Rr(y.name),{parent:k}=y;if(k.kind!==195&&k.typeParameters.every(Pbe)){if(Rv(h,k)){const z=Jn(k),K=fm(k)?$U(k):QU(z,k.typeParameters),Te=k.typeParameters.length===1?[m._0_is_declared_but_its_value_is_never_read,x]:[m.All_type_parameters_are_unused];a(y,1,ru(z,K.pos,K.end-K.pos,...Te))}}else a(y,1,Fr(y,m._0_is_declared_but_its_value_is_never_read,x))}}function Pbe(n){return!(ds(n.symbol).isReferenced&262144)&&!S8(n.name)}function OB(n,a,c,d){const h=String(d(a)),y=n.get(h);y?y[1].push(c):n.set(h,[a,[c]])}function P5e(n){return ni(C_(n),No)}function Jgt(n){return os(n)?pm(n.parent)?!!(n.propertyName&&S8(n.name)):S8(n.name):Ou(n)||(Wi(n)&&s2(n.parent.parent)||L5e(n))&&S8(n.name)}function M5e(n,a){const c=new Map,d=new Map,h=new Map;n.locals.forEach(y=>{if(!(y.flags&262144?!(y.flags&3&&!(y.isReferenced&3)):y.isReferenced||y.exportSymbol)&&y.declarations){for(const x of y.declarations)if(!Jgt(x))if(L5e(x))OB(c,Xgt(x),x,fs);else if(os(x)&&pm(x.parent)){const k=rs(x.parent.elements);(x===k||!rs(x.parent.elements).dotDotDotToken)&&OB(d,x.parent,x,fs)}else if(Wi(x)){const k=oS(x)&7,z=Oo(x);(k!==4&&k!==6||!z||!S8(z))&&OB(h,x.parent,x,fs)}else{const k=y.valueDeclaration&&P5e(y.valueDeclaration),z=y.valueDeclaration&&Oo(y.valueDeclaration);k&&z?!gp(k,k.parent)&&!K1(k)&&!S8(z)&&(os(x)&&rE(x.parent)?OB(d,x.parent,x,fs):a(k,1,Fr(z,m._0_is_declared_but_its_value_is_never_read,Il(y)))):C5e(x,Il(y),a)}}}),c.forEach(([y,x])=>{const k=y.parent;if((y.name?1:0)+(y.namedBindings?y.namedBindings.kind===274?1:y.namedBindings.elements.length:0)===x.length)a(k,0,x.length===1?Fr(k,m._0_is_declared_but_its_value_is_never_read,Rr($a(x).name)):Fr(k,m.All_imports_in_import_declaration_are_unused));else for(const K of x)C5e(K,Rr(K.name),a)}),d.forEach(([y,x])=>{const k=P5e(y.parent)?1:0;if(y.elements.length===x.length)x.length===1&&y.parent.kind===260&&y.parent.parent.kind===261?OB(h,y.parent.parent,y.parent,fs):a(y,k,x.length===1?Fr(y,m._0_is_declared_but_its_value_is_never_read,WB($a(x).name)):Fr(y,m.All_destructured_elements_are_unused));else for(const z of x)a(z,k,Fr(z,m._0_is_declared_but_its_value_is_never_read,WB(z.name)))}),h.forEach(([y,x])=>{if(y.declarations.length===x.length)a(y,0,x.length===1?Fr($a(x).name,m._0_is_declared_but_its_value_is_never_read,WB($a(x).name)):Fr(y.parent.kind===243?y.parent:y,m.All_variables_are_unused));else for(const k of x)a(k,0,Fr(k,m._0_is_declared_but_its_value_is_never_read,WB(k.name)))})}function Kgt(){var n;for(const a of vg)if(!((n=Cr(a))!=null&&n.isReferenced)){const c=n2(a);N.assert(q1(c),"Only parameter declaration should be checked here");const d=Fr(a.name,m._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,ks(a.name),ks(a.propertyName));c.type||Fa(d,ru(Jn(c),c.end,1,m.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,ks(a.propertyName))),cs.add(d)}}function WB(n){switch(n.kind){case 80:return Rr(n);case 207:case 206:return WB(sa($a(n.elements),os).name);default:return N.assertNever(n)}}function L5e(n){return n.kind===273||n.kind===276||n.kind===274}function Xgt(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function Nte(n){if(n.kind===241&&Sv(n),hj(n)){const a=ze;Ve(n.statements,Pa),ze=a}else Ve(n.statements,Pa);n.locals&&Xb(n)}function Ygt(n){se>=2||!Aj(n)||n.flags&33554432||Hl(n.body)||Ve(n.parameters,a=>{a.name&&!na(a.name)&&a.name.escapedText===Ft.escapedName&&s_("noEmit",a,m.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function T8(n,a,c){if((a==null?void 0:a.escapedText)!==c||n.kind===172||n.kind===171||n.kind===174||n.kind===173||n.kind===177||n.kind===178||n.kind===303||n.flags&33554432||(Ih(n)||au(n)||rp(n))&&m0(n))return!1;const d=C_(n);return!(No(d)&&Hl(d.parent.body))}function $gt(n){jn(n,a=>qD(a)&4?(n.kind!==80?Xe(Oo(n),m.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Xe(n,m.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Qgt(n){jn(n,a=>qD(a)&8?(n.kind!==80?Xe(Oo(n),m.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Xe(n,m.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function Zgt(n,a){if(G>=5&&!(G>=100&&Jn(n).impliedNodeFormat===1)||!a||!T8(n,a,"require")&&!T8(n,a,"exports")||nc(n)&&Xg(n)!==1)return;const c=$(n);c.kind===312&&Bp(c)&&s_("noEmit",a,m.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,ks(a),ks(a))}function evt(n,a){if(!a||se>=4||!T8(n,a,"Promise")||nc(n)&&Xg(n)!==1)return;const c=$(n);c.kind===312&&Bp(c)&&c.flags&4096&&s_("noEmit",a,m.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,ks(a),ks(a))}function tvt(n,a){se<=8&&(T8(n,a,"WeakMap")||T8(n,a,"WeakSet"))&&fb.push(n)}function nvt(n){const a=yh(n);qD(a)&1048576&&(N.assert(cd(n)&&Ue(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),s_("noEmit",n,m.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function rvt(n,a){a&&se>=2&&se<=8&&T8(n,a,"Reflect")&&mb.push(n)}function ivt(n){let a=!1;if(iu(n)){for(const c of n.members)if(qD(c)&2097152){a=!0;break}}else if(Us(n))qD(n)&2097152&&(a=!0);else{const c=yh(n);c&&qD(c)&2097152&&(a=!0)}a&&(N.assert(cd(n)&&Ue(n.name),"The target of a Reflect collision check should be an identifier"),s_("noEmit",n,m.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,ks(n.name),"Reflect"))}function TM(n,a){!a||(Zgt(n,a),evt(n,a),tvt(n,a),rvt(n,a),di(n)?(IM(a,m.Class_name_cannot_be_0),n.flags&33554432||Mvt(a)):x0(n)&&IM(a,m.Enum_name_cannot_be_0))}function ovt(n){if((oS(n)&7)!==0||q1(n))return;const a=Cr(n);if(a.flags&1){if(!Ue(n.name))return N.fail();const c=Tl(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&Vye(c)&7){const d=b0(c.valueDeclaration,261),h=d.parent.kind===243&&d.parent.parent?d.parent.parent:void 0;if(!(h&&(h.kind===241&&ta(h.parent)||h.kind===268||h.kind===267||h.kind===312))){const x=Ti(c);Xe(n,m.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,x,x)}}}}function A8(n){return n===ot?j:n===$c?lc:n}function FB(n){var a;if(wB(n),os(n)||Pa(n.type),!n.name)return;if(n.name.kind===167&&(Dg(n.name),ES(n)&&n.initializer&&uc(n.initializer)),os(n)){if(n.propertyName&&Ue(n.name)&&q1(n)&&Hl(Vp(n).body)){vg.push(n);return}pm(n.parent)&&n.dotDotDotToken&&se<5&&Lc(n,4),n.propertyName&&n.propertyName.kind===167&&Dg(n.propertyName);const h=n.parent.parent,y=n.dotDotDotToken?32:0,x=Gr(h,y),k=n.propertyName||n.name;if(x&&!na(k)){const z=gy(k);if(cm(z)){const K=um(z),ne=Sa(x,K);ne&&(yB(ne,void 0,!1),Uye(n,!!h.initializer&&h.initializer.kind===108,!1,x,ne))}}}if(na(n.name)&&(n.name.kind===207&&se<2&&V.downlevelIteration&&Lc(n,512),Ve(n.name.elements,Pa)),n.initializer&&q1(n)&&Hl(Vp(n).body)){Xe(n,m.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(na(n.name)){if(mye(n))return;const h=ES(n)&&n.initializer&&n.parent.parent.kind!==249,y=!St(n.name.elements,e6(Kc));if(h||y){const x=B(n);if(h){const k=uc(n.initializer);Y&&y?e7e(k,n):Ub(k,B(n),n,n.initializer)}y&&(rE(n.name)?Ey(65,x,We,n):Y&&e7e(x,n))}return}const c=Cr(n);if(c.flags&2097152&&(V1(n)||toe(n))){kte(n);return}const d=A8(_r(c));if(n===c.valueDeclaration){const h=ES(n)&&rk(n);if(h&&!(dr(n)&&za(h)&&(h.properties.length===0||jy(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==249){const x=uc(h);Ub(x,d,n,h,void 0);const k=oS(n)&7;if(k===6){const z=uut(!0),K=A8e(!0);if(z!==wa&&K!==wa){const ne=ei([z,K,fe,We]);od(x,ne,h,m.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(k===4){const z=A8e(!0);if(z!==wa){const K=ei([z,fe,We]);od(x,K,h,m.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}c.declarations&&c.declarations.length>1&&St(c.declarations,y=>y!==n&&g2(y)&&!w5e(y,n))&&Xe(n.name,m.All_declarations_of_0_must_have_identical_modifiers,ks(n.name))}else{const h=A8(B(n));!Jt(d)&&!Jt(h)&&!gv(d,h)&&!(c.flags&67108864)&&k5e(c.valueDeclaration,d,n,h),ES(n)&&n.initializer&&Ub(uc(n.initializer),h,n,n.initializer,void 0),c.valueDeclaration&&!w5e(n,c.valueDeclaration)&&Xe(n.name,m.All_declarations_of_0_must_have_identical_modifiers,ks(n.name))}n.kind!==172&&n.kind!==171&&(v8(n),(n.kind===260||n.kind===208)&&ovt(n),TM(n,n.name))}function k5e(n,a,c,d){const h=Oo(c),y=c.kind===172||c.kind===171?m.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:m.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,x=ks(h),k=Xe(h,y,x,Kn(a),Kn(d));n&&Fa(k,Fr(n,m._0_was_also_declared_here,x))}function w5e(n,a){if(n.kind===169&&a.kind===260||n.kind===260&&a.kind===169)return!0;if(jA(n)!==jA(a))return!1;const c=1358;return KA(n,c)===KA(a,c)}function avt(n){var a,c;(a=ur)==null||a.push(ur.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),Gbt(n),FB(n),(c=ur)==null||c.pop()}function svt(n){return Fbt(n),FB(n)}function Cte(n){const a=Ov(n)&7;(a===4||a===6)&&Lc(n,33554432),Ve(n.declarations,Pa)}function lvt(n){!Cg(n)&&!t0e(n.declarationList)&&Vbt(n),Cte(n.declarationList)}function cvt(n){Sv(n),Eo(n.expression)}function uvt(n){Sv(n);const a=AM(n.expression);Mbe(n.expression,a,n.thenStatement),Pa(n.thenStatement),n.thenStatement.kind===242&&Xe(n.thenStatement,m.The_body_of_an_if_statement_cannot_be_the_empty_statement),Pa(n.elseStatement)}function Mbe(n,a,c){if(!Y)return;d(n,c);function d(y,x){for(y=Ss(y),h(y,x);vr(y)&&(y.operatorToken.kind===57||y.operatorToken.kind===61);)y=Ss(y.left),h(y,x)}function h(y,x){const k=Dk(y)?Ss(y.right):y;if(ig(k))return;if(Dk(k)){d(k,x);return}const z=k===y?a:AM(k),K=Br(k)&&o5e(k.expression);if(!bm(z,4194304)||K)return;const ne=$o(z,0),Te=!!EM(z);if(ne.length===0&&!Te)return;const ve=Ue(k)?k:Br(k)?k.name:void 0,Ge=ve&&Jm(ve);if(!Ge&&!Te)return;Ge&&vr(y.parent)&&pvt(y.parent,Ge)||Ge&&x&&dvt(y,x,ve,Ge)||(Te?K0(k,!0,m.This_condition_will_always_return_true_since_this_0_is_always_defined,Rb(z)):Xe(k,m.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function dvt(n,a,c,d){return!!Uo(a,function h(y){if(Ue(y)){const x=Jm(y);if(x&&x===d){if(Ue(n)||Ue(c)&&vr(c.parent))return!0;let k=c.parent,z=y.parent;for(;k&&z;){if(Ue(k)&&Ue(z)||k.kind===110&&z.kind===110)return Jm(k)===Jm(z);if(Br(k)&&Br(z)){if(Jm(k.name)!==Jm(z.name))return!1;z=z.expression,k=k.expression}else if(ca(k)&&ca(z))z=z.expression,k=k.expression;else return!1}}}return Uo(y,h)})}function pvt(n,a){for(;vr(n)&&n.operatorToken.kind===56;){if(Uo(n.right,function d(h){if(Ue(h)){const y=Jm(h);if(y&&y===a)return!0}return Uo(h,d)}))return!0;n=n.parent}return!1}function fvt(n){Sv(n),Pa(n.statement),AM(n.expression)}function mvt(n){Sv(n),AM(n.expression),Pa(n.statement)}function Lbe(n,a){return n.flags&16384&&Xe(a,m.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function AM(n,a){return Lbe(Eo(n,a),n)}function _vt(n){Sv(n)||n.initializer&&n.initializer.kind===261&&t0e(n.initializer),n.initializer&&(n.initializer.kind===261?Cte(n.initializer):Eo(n.initializer)),n.condition&&AM(n.condition),n.incrementor&&Eo(n.incrementor),Pa(n.statement),n.locals&&Xb(n)}function hvt(n){MWe(n);const a=m3(n);if(n.awaitModifier?a&&Pl(a)?Sn(n.awaitModifier,m.for_await_loops_cannot_be_used_inside_a_class_static_block):(Jc(a)&6)===2&&se<99&&Lc(n,16384):V.downlevelIteration&&se<2&&Lc(n,256),n.initializer.kind===261)Cte(n.initializer);else{const c=n.initializer,d=zB(n);if(c.kind===209||c.kind===210)uA(c,d||_t);else{const h=Eo(c);h8(c,m.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,m.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),d&&Ub(d,h,c,n.expression)}}Pa(n.statement),n.locals&&Xb(n)}function gvt(n){MWe(n);const a=Hye(Eo(n.expression));if(n.initializer.kind===261){const c=n.initializer.declarations[0];c&&na(c.name)&&Xe(c.name,m.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Cte(n.initializer)}else{const c=n.initializer,d=Eo(c);c.kind===209||c.kind===210?Xe(c,m.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Aa($ut(a),d)?h8(c,m.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,m.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Xe(c,m.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===qr||!Nu(a,126091264))&&Xe(n.expression,m.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Kn(a)),Pa(n.statement),n.locals&&Xb(n)}function zB(n){const a=n.awaitModifier?15:13;return Ey(a,zD(n.expression),We,n.expression)}function Ey(n,a,c,d){return Nt(a)?a:kbe(n,a,c,d,!0)||j}function kbe(n,a,c,d,h){const y=(n&2)!==0;if(a===qr){zbe(d,a,y);return}const x=se>=2,k=!x&&V.downlevelIteration,z=V.noUncheckedIndexedAccess&&!!(n&128);if(x||k||y){const vt=Mte(a,n,x?d:void 0);if(h&&vt){const xt=n&8?m.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?m.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?m.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?m.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;xt&&od(c,vt.nextType,d,xt)}if(vt||x)return z?c8(vt&&vt.yieldType):vt&&vt.yieldType}let K=a,ne=!1,Te=!1;if(n&4){if(K.flags&1048576){const vt=a.types,xt=Vn(vt,cn=>!(cn.flags&402653316));xt!==vt&&(K=ei(xt,2))}else K.flags&402653316&&(K=qr);if(Te=K!==a,Te&&(se<1&&d&&(Xe(d,m.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),ne=!0),K.flags&131072))return z?c8(ke):ke}if(!yy(K)){if(d&&!ne){const vt=!!(n&4)&&!Te,[xt,cn]=Ge(vt,k);K0(d,cn&&!!EM(K),xt,Kn(K))}return Te?z?c8(ke):ke:void 0}const ve=d1(K,Tt);if(Te&&ve)return ve.flags&402653316&&!V.noUncheckedIndexedAccess?ke:ei(z?[ve,ke,We]:[ve,ke],2);return n&128?c8(ve):ve;function Ge(vt,xt){var cn;return xt?vt?[m.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[m.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:wbe(n,0,a,void 0)?[m.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:vvt((cn=a.symbol)==null?void 0:cn.escapedName)?[m.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:vt?[m.Type_0_is_not_an_array_type_or_a_string_type,!0]:[m.Type_0_is_not_an_array_type,!0]}}function vvt(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 wbe(n,a,c,d){if(Nt(c))return;const h=Mte(c,n,d);return h&&h[Xxe(a)]}function Sy(n=qr,a=qr,c=pn){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){const d=ym([n,a,c]);let h=Di.get(d);return h||(h={yieldType:n,returnType:a,nextType:c},Di.set(d,h)),h}return{yieldType:n,returnType:a,nextType:c}}function O5e(n){let a,c,d;for(const h of n)if(!(h===void 0||h===br)){if(h===Jo)return Jo;a=Rn(a,h.yieldType),c=Rn(c,h.returnType),d=Rn(d,h.nextType)}return a||c||d?Sy(a&&ei(a),c&&ei(c),d&&Ta(d)):br}function Pte(n,a){return n[a]}function Ng(n,a,c){return n[a]=c}function Mte(n,a,c){var d,h;if(Nt(n))return Jo;if(!(n.flags&1048576)){const K=c?{errors:void 0}:void 0,ne=W5e(n,a,c,K);if(ne===br){if(c){const Te=zbe(c,n,!!(a&2));K!=null&&K.errors&&Fa(Te,...K.errors)}return}else if((d=K==null?void 0:K.errors)!=null&&d.length)for(const Te of K.errors)cs.add(Te);return ne}const y=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",x=Pte(n,y);if(x)return x===br?void 0:x;let k;for(const K of n.types){const ne=c?{errors:void 0}:void 0,Te=W5e(K,a,c,ne);if(Te===br){if(c){const ve=zbe(c,n,!!(a&2));ne!=null&&ne.errors&&Fa(ve,...ne.errors)}Ng(n,y,br);return}else if((h=ne==null?void 0:ne.errors)!=null&&h.length)for(const ve of ne.errors)cs.add(ve);k=Rn(k,Te)}const z=k?O5e(k):br;return Ng(n,y,z),z===br?void 0:z}function Obe(n,a){if(n===br)return br;if(n===Jo)return Jo;const{yieldType:c,returnType:d,nextType:h}=n;return a&&mve(!0),Sy(dA(c,a)||j,dA(d,a)||j,h)}function W5e(n,a,c,d){if(Nt(n))return Jo;let h=!1;if(a&2){const y=Wbe(n,xl)||z5e(n,xl);if(y)if(y===br&&c)h=!0;else return a&8?Obe(y,c):y}if(a&1){let y=Wbe(n,Zl)||z5e(n,Zl);if(y)if(y===br&&c)h=!0;else if(a&2){if(y!==br)return y=Obe(y,c),h?y:Ng(n,"iterationTypesOfAsyncIterable",y)}else return y}if(a&2){const y=Fbe(n,xl,c,d,h);if(y!==br)return y}if(a&1){let y=Fbe(n,Zl,c,d,h);if(y!==br)return a&2?(y=Obe(y,c),h?y:Ng(n,"iterationTypesOfAsyncIterable",y)):y}return br}function Wbe(n,a){return Pte(n,a.iterableCacheKey)}function F5e(n,a){const c=Wbe(n,a)||Fbe(n,a,void 0,void 0,!1);return c===br?Gc:c}function z5e(n,a){let c;if(wb(n,c=a.getGlobalIterableType(!1))||wb(n,c=a.getGlobalIterableIteratorType(!1))){const[d]=$s(n),{returnType:h,nextType:y}=F5e(c,a);return Ng(n,a.iterableCacheKey,Sy(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(h,void 0)||h,y))}if(wb(n,a.getGlobalGeneratorType(!1))){const[d,h,y]=$s(n);return Ng(n,a.iterableCacheKey,Sy(a.resolveIterationType(d,void 0)||d,a.resolveIterationType(h,void 0)||h,y))}}function B5e(n){const a=E8e(!1),c=a&&Ke(_r(a),bl(n));return c&&cm(c)?um(c):`__@${n}`}function Fbe(n,a,c,d,h){var ne;const y=Sa(n,B5e(a.iteratorSymbolName)),x=y&&!(y.flags&16777216)?_r(y):void 0;if(Nt(x))return h?Jo:Ng(n,a.iterableCacheKey,Jo);const k=x?$o(x,0):void 0;if(!St(k))return h?br:Ng(n,a.iterableCacheKey,br);const z=Ta(Wt(k,ys)),K=(ne=G5e(z,a,c,d,h))!=null?ne:br;return h?K:Ng(n,a.iterableCacheKey,K)}function zbe(n,a,c){const d=c?m.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:m.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,h=!!EM(a)||!c&&pw(n.parent)&&n.parent.expression===n&&fee(!1)!==Wo&&Aa(a,fee(!1));return K0(n,h,d,Kn(a))}function yvt(n,a,c,d){return G5e(n,a,c,d,!1)}function G5e(n,a,c,d,h){if(Nt(n))return Jo;let y=V5e(n,a)||bvt(n,a);return y===br&&c&&(y=void 0,h=!0),y!=null||(y=U5e(n,a,c,d,h)),y===br?void 0:y}function V5e(n,a){return Pte(n,a.iteratorCacheKey)}function bvt(n,a){const c=a.getGlobalIterableIteratorType(!1);if(wb(n,c)){const[d]=$s(n),h=V5e(c,a)||U5e(c,a,void 0,void 0,!1),{returnType:y,nextType:x}=h===br?Gc:h;return Ng(n,a.iteratorCacheKey,Sy(d,y,x))}if(wb(n,a.getGlobalIteratorType(!1))||wb(n,a.getGlobalGeneratorType(!1))){const[d,h,y]=$s(n);return Ng(n,a.iteratorCacheKey,Sy(d,h,y))}}function j5e(n,a){const c=Ke(n,"done")||nn;return Aa(a===0?nn:or,c)}function Evt(n){return j5e(n,0)}function Svt(n){return j5e(n,1)}function Tvt(n){if(Nt(n))return Jo;const a=Pte(n,"iterationTypesOfIteratorResult");if(a)return a;if(wb(n,lut(!1))){const x=$s(n)[0];return Ng(n,"iterationTypesOfIteratorResult",Sy(x,void 0,void 0))}if(wb(n,cut(!1))){const x=$s(n)[0];return Ng(n,"iterationTypesOfIteratorResult",Sy(void 0,x,void 0))}const c=vc(n,Evt),d=c!==qr?Ke(c,"value"):void 0,h=vc(n,Svt),y=h!==qr?Ke(h,"value"):void 0;return!d&&!y?Ng(n,"iterationTypesOfIteratorResult",br):Ng(n,"iterationTypesOfIteratorResult",Sy(d,y||Qn,void 0))}function Bbe(n,a,c,d,h){var mn,Gn;var y,x,k,z;const K=Sa(n,c);if(!K&&c!=="next")return;const ne=K&&!(c==="next"&&K.flags&16777216)?c==="next"?_r(K):Em(_r(K),2097152):void 0;if(Nt(ne))return c==="next"?Jo:kl;const Te=ne?$o(ne,0):et;if(Te.length===0){if(d){const Pn=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;h?((mn=h.errors)!=null||(h.errors=[]),h.errors.push(Fr(d,Pn,c))):Xe(d,Pn,c)}return c==="next"?br:void 0}if((ne==null?void 0:ne.symbol)&&Te.length===1){const Pn=a.getGlobalGeneratorType(!1),qn=a.getGlobalIteratorType(!1),Hn=((x=(y=Pn.symbol)==null?void 0:y.members)==null?void 0:x.get(c))===ne.symbol,ir=!Hn&&((z=(k=qn.symbol)==null?void 0:k.members)==null?void 0:z.get(c))===ne.symbol;if(Hn||ir){const vo=Hn?Pn:qn,{mapper:yo}=ne;return Sy(Vb(vo.typeParameters[0],yo),Vb(vo.typeParameters[1],yo),c==="next"?Vb(vo.typeParameters[2],yo):void 0)}}let ve,Ge;for(const Pn of Te)c!=="throw"&&St(Pn.parameters)&&(ve=Rn(ve,y_(Pn,0))),Ge=Rn(Ge,ys(Pn));let vt,xt;if(c!=="throw"){const Pn=ve?ei(ve):pn;if(c==="next")xt=Pn;else if(c==="return"){const qn=a.resolveIterationType(Pn,d)||j;vt=Rn(vt,qn)}}let cn;const sn=Ge?Ta(Ge):qr,rr=a.resolveIterationType(sn,d)||j,zn=Tvt(rr);return zn===br?(d&&(h?((Gn=h.errors)!=null||(h.errors=[]),h.errors.push(Fr(d,a.mustHaveAValueDiagnostic,c))):Xe(d,a.mustHaveAValueDiagnostic,c)),cn=j,vt=Rn(vt,j)):(cn=zn.yieldType,vt=Rn(vt,zn.returnType)),Sy(cn,ei(vt),xt)}function U5e(n,a,c,d,h){const y=O5e([Bbe(n,a,"next",c,d),Bbe(n,a,"return",c,d),Bbe(n,a,"throw",c,d)]);return h?y:Ng(n,a.iteratorCacheKey,y)}function nS(n,a,c){if(Nt(a))return;const d=H5e(a,c);return d&&d[Xxe(n)]}function H5e(n,a){if(Nt(n))return Jo;const c=a?2:1,d=a?xl:Zl;return Mte(n,c,void 0)||yvt(n,d,void 0,void 0)}function Avt(n){Sv(n)||Wbt(n)}function BB(n,a){const c=!!(a&1),d=!!(a&2);if(c){const h=nS(1,n,d);return h?d?by(SM(h)):h:_t}return d?by(n)||_t:n}function q5e(n,a){const c=BB(a,Jc(n));return!!(c&&(wl(c,16384)||c.flags&32769))}function Ivt(n){var y;if(Sv(n))return;const a=m3(n);if(a&&Pl(a)){yu(n,m.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){yu(n,m.A_return_statement_can_only_be_used_within_a_function_body);return}const c=vm(a),d=ys(c),h=Jc(a);if(Y||n.expression||d.flags&131072){const x=n.expression?uc(n.expression):We;if(a.kind===178)n.expression&&Xe(n,m.Setters_cannot_return_a_value);else if(a.kind===176)n.expression&&!Ub(x,d,n,n.expression)&&Xe(n,m.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(ND(a)){const k=(y=BB(d,h))!=null?y:d,z=h&2?b8(x,!1,n,m.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):x;k&&Ub(z,k,n,n.expression)}}else a.kind!==176&&V.noImplicitReturns&&!q5e(a,d)&&Xe(n,m.Not_all_code_paths_return_a_value)}function xvt(n){Sv(n)||n.flags&65536&&yu(n,m.with_statements_are_not_allowed_in_an_async_function_block),Eo(n.expression);const a=Jn(n);if(!rS(a)){const c=bh(a,n.pos).start,d=n.statement.pos;iS(a,c,d-c,m.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function Rvt(n){Sv(n);let a,c=!1;const d=Eo(n.expression);Ve(n.caseBlock.clauses,h=>{h.kind===297&&!c&&(a===void 0?a=h:(Sn(h,m.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),h.kind===296&&r(y(h)),Ve(h.statements,Pa),V.noFallthroughCasesInSwitch&&h.fallthroughFlowNode&&lB(h.fallthroughFlowNode)&&Xe(h,m.Fallthrough_case_in_switch);function y(x){return()=>{const k=Eo(x.expression);bbe(d,k)||v6e(k,d,x.expression,void 0)}}}),n.caseBlock.locals&&Xb(n.caseBlock)}function Dvt(n){Sv(n)||jn(n.parent,a=>ta(a)?"quit":a.kind===256&&a.label.escapedText===n.label.escapedText?(Sn(n.label,m.Duplicate_label_0,bc(n.label)),!0):!1),Pa(n.statement)}function Nvt(n){Sv(n)||Ue(n.expression)&&!n.expression.escapedText&&Qbt(n,m.Line_break_not_permitted_here),n.expression&&Eo(n.expression)}function Cvt(n){Sv(n),Nte(n.tryBlock);const a=n.catchClause;if(a){if(a.variableDeclaration){const c=a.variableDeclaration;FB(c);const d=Su(c);if(d){const h=Ai(d);h&&!(h.flags&3)&&yu(d,m.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)yu(c.initializer,m.Catch_clause_variable_cannot_have_an_initializer);else{const h=a.block.locals;h&&vh(a.locals,y=>{const x=h.get(y);(x==null?void 0:x.valueDeclaration)&&(x.flags&2)!==0&&Sn(x.valueDeclaration,m.Cannot_redeclare_identifier_0_in_catch_clause,Ki(y))})}}Nte(a.block)}n.finallyBlock&&Nte(n.finallyBlock)}function Lte(n,a,c){const d=yd(n);if(d.length===0)return;for(const y of Wb(n))c&&y.flags&4194304||J5e(n,y,LD(y,8576,!0),kb(y));const h=a.valueDeclaration;if(h&&di(h)){for(const y of h.members)if(!la(y)&&!RD(y)){const x=Cr(y);J5e(n,x,Cu(y.name.expression),kb(x))}}if(d.length>1)for(const y of d)Pvt(n,y)}function J5e(n,a,c,d){const h=a.valueDeclaration,y=Oo(h);if(y&&Qi(y))return;const x=Yge(n,c),k=zr(n)&2?gl(n.symbol,264):void 0,z=h&&h.kind===226||y&&y.kind===167?h:void 0,K=Md(a)===n.symbol?h:void 0;for(const ne of x){const Te=ne.declaration&&Md(Cr(ne.declaration))===n.symbol?ne.declaration:void 0,ve=K||Te||(k&&!St(pp(n),Ge=>!!u1(Ge,a.escapedName)&&!!d1(Ge,ne.keyType))?k:void 0);if(ve&&!Aa(d,ne.type)){const Ge=bT(ve,m.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Ti(a),Kn(d),Kn(ne.keyType),Kn(ne.type));z&&ve!==z&&Fa(Ge,Fr(z,m._0_is_declared_here,Ti(a))),cs.add(Ge)}}}function Pvt(n,a){const c=a.declaration,d=Yge(n,a.keyType),h=zr(n)&2?gl(n.symbol,264):void 0,y=c&&Md(Cr(c))===n.symbol?c:void 0;for(const x of d){if(x===a)continue;const k=x.declaration&&Md(Cr(x.declaration))===n.symbol?x.declaration:void 0,z=y||k||(h&&!St(pp(n),K=>!!Rg(K,a.keyType)&&!!d1(K,x.keyType))?h:void 0);z&&!Aa(a.type,x.type)&&Xe(z,m._0_index_type_1_is_not_assignable_to_2_index_type_3,Kn(a.keyType),Kn(a.type),Kn(x.keyType),Kn(x.type))}}function IM(n,a){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Xe(n,a,n.escapedText)}}function Mvt(n){se>=1&&n.escapedText==="Object"&&(G<5||Jn(n).impliedNodeFormat===1)&&Xe(n,m.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,pN[G])}function Lvt(n){const a=Vn(f0(n),i_);if(!Pe(a))return;const c=dr(n),d=new Set,h=new Set;if(Ve(n.parameters,({name:x},k)=>{Ue(x)&&d.add(x.escapedText),na(x)&&h.add(k)}),Qge(n)){const x=a.length-1,k=a[x];c&&k&&Ue(k.name)&&k.typeExpression&&k.typeExpression.type&&!d.has(k.name.escapedText)&&!h.has(x)&&!Yf(Ai(k.typeExpression.type))&&Xe(k.name,m.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Rr(k.name))}else Ve(a,({name:x,isNameFirst:k},z)=>{h.has(z)||Ue(x)&&d.has(x.escapedText)||(xd(x)?c&&Xe(x,m.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,vp(x),vp(x.left)):k||vu(c,x,m.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Rr(x)))})}function GB(n){let a=!1;if(n)for(let d=0;d<n.length;d++){const h=n[d];d5e(h),r(c(h,d))}function c(d,h){return()=>{d.default?(a=!0,kvt(d.default,n,h)):a&&Xe(d,m.Required_type_parameters_may_not_follow_optional_type_parameters);for(let y=0;y<h;y++)n[y].symbol===d.symbol&&Xe(d.name,m.Duplicate_identifier_0,ks(d.name))}}}function kvt(n,a,c){d(n);function d(h){if(h.kind===183){const y=lve(h);if(y.flags&262144)for(let x=c;x<a.length;x++)y.symbol===Cr(a[x])&&Xe(h,m.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}Uo(h,d)}}function K5e(n){if(n.declarations&&n.declarations.length===1)return;const a=eo(n);if(!a.typeParametersChecked){a.typeParametersChecked=!0;const c=Vvt(n);if(!c||c.length<=1)return;const d=nl(n);if(!X5e(c,d.localTypeParameters,My)){const h=Ti(n);for(const y of c)Xe(y.name,m.All_declarations_of_0_must_have_identical_type_parameters,h)}}}function X5e(n,a,c){const d=Pe(a),h=Uh(a);for(const y of n){const x=c(y),k=x.length;if(k<h||k>d)return!1;for(let z=0;z<k;z++){const K=x[z],ne=a[z];if(K.name.escapedText!==ne.symbol.escapedName)return!1;const Te=i2(K),ve=Te&&Ai(Te),Ge=kd(ne);if(ve&&Ge&&!gv(ve,Ge))return!1;const vt=K.default&&Ai(K.default),xt=JT(ne);if(vt&&xt&&!gv(vt,xt))return!1}}return!0}function Y5e(n){var h;const a=!re&&se<99&&zv(!1,n),c=se<=9,d=!ye;if(a||c)for(const y of n.members){if(a&&Kj(!1,y,n))return(h=eu(Py(n)))!=null?h:n;if(c){if(Pl(y))return y;if(la(y)&&(ud(y)||d&&Yw(y)))return y}}}function wvt(n){var h;if(n.name)return;const a=Sse(n);if(!fU(a))return;const c=!re&&se<99;let d;c&&zv(!1,n)?d=(h=eu(Py(n)))!=null?h:n:d=Y5e(n),d&&(Lc(d,8388608),(Tc(a)||qo(a)||os(a))&&ss(a.name)&&Lc(d,16777216))}function Ovt(n){return $5e(n),Cx(n),wvt(n),_r(Cr(n))}function Wvt(n){Ve(n.members,Pa),Xb(n)}function Fvt(n){const a=un(n.modifiers,Au);re&&a&&St(n.members,c=>Ec(c)&&ud(c))&&Sn(a,m.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!Qr(n,2048)&&yu(n,m.A_class_declaration_without_the_default_modifier_must_have_a_name),$5e(n),Ve(n.members,Pa),Xb(n)}function $5e(n){Sbt(n),wB(n),TM(n,n.name),GB(My(n)),v8(n);const a=Cr(n),c=nl(a),d=Xp(c),h=_r(a);K5e(a),xte(a),Zht(n),!!(n.flags&33554432)||egt(n);const x=D_(n);if(x){Ve(x.typeArguments,Pa),se<2&&Lc(x.parent,1);const K=H1(n);K&&K!==x&&Eo(K.expression);const ne=pp(c);ne.length&&r(()=>{const Te=ne[0],ve=Hf(c),Ge=wd(ve);if(Bvt(Ge,x),Pa(x.expression),St(x.typeArguments)){Ve(x.typeArguments,Pa);for(const xt of id(Ge,x.typeArguments,x))if(!v5e(x,xt.typeParameters))break}const vt=Xp(Te,c.thisType);if(od(d,vt,void 0)?od(h,p6e(Ge),n.name||n,m.Class_static_side_0_incorrectly_extends_base_class_static_side_1):eWe(n,d,vt,m.Class_0_incorrectly_extends_base_class_1),ve.flags&8650752&&(ki(h)?$o(ve,1).some(cn=>cn.flags&4)&&!Qr(n,64)&&Xe(n.name||n,m.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Xe(n.name||n,m.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(Ge.symbol&&Ge.symbol.flags&32)&&!(ve.flags&8650752)){const xt=Vh(Ge,x.typeArguments,x);Ve(xt,cn=>!oh(cn.declaration)&&!gv(ys(cn),Te))&&Xe(x.expression,m.Base_constructors_must_all_have_the_same_return_type)}jvt(c,Te)})}zvt(n,c,d,h);const k=N2(n);if(k)for(const K of k)(!Jl(K.expression)||Xu(K.expression))&&Xe(K.expression,m.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Rbe(K),r(z(K));r(()=>{Lte(c,a),Lte(h,a,!0),Abe(n),qvt(n)});function z(K){return()=>{const ne=h_(Ai(K));if(!Jt(ne))if(Rz(ne)){const Te=ne.symbol&&ne.symbol.flags&32?m.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:m.Class_0_incorrectly_implements_interface_1,ve=Xp(ne,c.thisType);od(d,ve,void 0)||eWe(n,d,ve,Te)}else Xe(K,m.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function zvt(n,a,c,d){const y=D_(n)&&pp(a),x=y!=null&&y.length?Xp($a(y),a.thisType):void 0,k=Hf(a);for(const z of n.members)RU(z)||(Wl(z)&&Ve(z.parameters,K=>{gp(K,z)&&Q5e(n,d,k,x,a,c,K,!0)}),Q5e(n,d,k,x,a,c,z,!1))}function Q5e(n,a,c,d,h,y,x,k,z=!0){const K=x.name&&Jm(x.name)||Jm(x);return K?Z5e(n,a,c,d,h,y,U3(x),Y1(x),la(x),k,Il(K),z?x:void 0):0}function Z5e(n,a,c,d,h,y,x,k,z,K,ne,Te){const ve=dr(n),Ge=!!(n.flags&33554432);if(d&&(x||V.noImplicitOverride)){const vt=bl(ne),xt=z?a:y,cn=z?c:d,sn=Sa(xt,vt),rr=Sa(cn,vt),zn=Kn(d);if(sn&&!rr&&x){if(Te){const mn=l7e(ne,cn);mn?Xe(Te,ve?m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,zn,Ti(mn)):Xe(Te,ve?m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,zn)}return 2}else if(sn&&(rr==null?void 0:rr.declarations)&&V.noImplicitOverride&&!Ge){const mn=St(rr.declarations,Y1);if(x)return 0;if(mn){if(k&&mn)return Te&&Xe(Te,m.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,zn),1}else{if(Te){const Gn=K?ve?m.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:m.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:ve?m.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:m.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Xe(Te,Gn,zn)}return 1}}}else if(x){if(Te){const vt=Kn(h);Xe(Te,ve?m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:m.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,vt)}return 2}return 0}function eWe(n,a,c,d){let h=!1;for(const y of n.members){if(la(y))continue;const x=y.name&&Jm(y.name)||Jm(y);if(x){const k=Sa(a,x.escapedName),z=Sa(c,x.escapedName);if(k&&z){const K=()=>jo(void 0,m.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Ti(x),Kn(a),Kn(c));od(_r(k),_r(z),y.name||y,void 0,K)||(h=!0)}}}h||od(a,c,n.name||n,d)}function Bvt(n,a){const c=$o(n,1);if(c.length){const d=c[0].declaration;if(d&&bp(d,2)){const h=jg(n.symbol);qbe(a,h)||Xe(a,m.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Jp(n.symbol))}}}function Gvt(n,a,c){if(!a.name)return 0;const d=Cr(n),h=nl(d),y=Xp(h),x=_r(d),z=D_(n)&&pp(h),K=z!=null&&z.length?Xp($a(z),h.thisType):void 0,ne=Hf(h),Te=a.parent?U3(a):Qr(a,16);return Z5e(n,x,ne,K,h,y,Te,Y1(a),la(a),!1,Il(c))}function HD(n){return Cl(n)&1?n.links.target:n}function Vvt(n){return Vn(n.declarations,a=>a.kind===263||a.kind===264)}function jvt(n,a){var z,K,ne,Te;var c,d,h,y;const x=As(a);let k;e:for(const ve of x){const Ge=HD(ve);if(Ge.flags&4194304)continue;const vt=u1(n,Ge.escapedName);if(!vt)continue;const xt=HD(vt),cn=Df(Ge);if(N.assert(!!xt,"derived should point to something, even if it is the base class' declaration."),xt===Ge){const sn=jg(n.symbol);if(cn&64&&(!sn||!Qr(sn,64))){for(const rr of pp(n)){if(rr===a)continue;const zn=u1(rr,Ge.escapedName),mn=zn&&HD(zn);if(mn&&mn!==Ge)continue e}k||(k=Xe(sn,m.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Kn(n),Kn(a))),sn.kind===231?Fa(k,Fr((K=(z=ve.valueDeclaration)!=null?z:ve.declarations&&$a(ve.declarations))!=null?K:sn,m.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ti(ve),Kn(a))):Fa(k,Fr((Te=(ne=ve.valueDeclaration)!=null?ne:ve.declarations&&$a(ve.declarations))!=null?Te:sn,m.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Kn(n),Ti(ve),Kn(a)))}}else{const sn=Df(xt);if(cn&2||sn&2)continue;let rr;const zn=Ge.flags&98308,mn=xt.flags&98308;if(zn&&mn){if((Cl(Ge)&6?(c=Ge.declarations)==null?void 0:c.some(qn=>tWe(qn,cn)):(d=Ge.declarations)==null?void 0:d.every(qn=>tWe(qn,cn)))||Cl(Ge)&262144||xt.valueDeclaration&&vr(xt.valueDeclaration))continue;const Gn=zn!==4&&mn===4;if(Gn||zn===4&&mn!==4){const qn=Gn?m._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:m._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Xe(Oo(xt.valueDeclaration)||xt.valueDeclaration,qn,Ti(Ge),Kn(a),Kn(n))}else if(_e){const qn=(h=xt.declarations)==null?void 0:h.find(Hn=>Hn.kind===172&&!Hn.initializer);if(qn&&!(xt.flags&33554432)&&!(cn&64)&&!(sn&64)&&!((y=xt.declarations)!=null&&y.some(Hn=>!!(Hn.flags&33554432)))){const Hn=lv(jg(n.symbol)),ir=qn.name;if(qn.exclamationToken||!Hn||!Ue(ir)||!Y||!rWe(ir,n,Hn)){const vo=m.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Xe(Oo(xt.valueDeclaration)||xt.valueDeclaration,vo,Ti(Ge),Kn(a))}}}continue}else if(jye(Ge)){if(jye(xt)||xt.flags&4)continue;N.assert(!!(xt.flags&98304)),rr=m.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else Ge.flags&98304?rr=m.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:rr=m.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Xe(Oo(xt.valueDeclaration)||xt.valueDeclaration,rr,Kn(a),Ti(Ge),Kn(n))}}}function tWe(n,a){return a&64&&(!qo(n)||!n.initializer)||gd(n.parent)}function Uvt(n,a,c){if(!Pe(a))return c;const d=new Map;Ve(c,h=>{d.set(h.escapedName,h)});for(const h of a){const y=As(Xp(h,n.thisType));for(const x of y){const k=d.get(x.escapedName);k&&x.parent===k.parent&&d.delete(x.escapedName)}}return Go(d.values())}function Hvt(n,a){const c=pp(n);if(c.length<2)return!0;const d=new Map;Ve(Lge(n).declaredProperties,y=>{d.set(y.escapedName,{prop:y,containingType:n})});let h=!0;for(const y of c){const x=As(Xp(y,n.thisType));for(const k of x){const z=d.get(k.escapedName);if(!z)d.set(k.escapedName,{prop:k,containingType:y});else if(z.containingType!==n&&!rpt(z.prop,k)){h=!1;const ne=Kn(z.containingType),Te=Kn(y);let ve=jo(void 0,m.Named_property_0_of_types_1_and_2_are_not_identical,Ti(k),ne,Te);ve=jo(ve,m.Interface_0_cannot_simultaneously_extend_types_1_and_2,Kn(n),ne,Te),cs.add(zg(Jn(a),a,ve))}}}return h}function qvt(n){if(!Y||!Ie||n.flags&33554432)return;const a=lv(n);for(const c of n.members)if(!(fd(c)&128)&&!la(c)&&nWe(c)){const d=c.name;if(Ue(d)||Qi(d)||ss(d)){const h=_r(Cr(c));h.flags&3||aM(h)||(!a||!rWe(d,h,a))&&Xe(c.name,m.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,ks(d))}}}function nWe(n){return n.kind===172&&!Y1(n)&&!n.exclamationToken&&!n.initializer}function Jvt(n,a,c,d,h){for(const y of c)if(y.pos>=d&&y.pos<=h){const x=O.createPropertyAccessExpression(O.createThis(),n);Qa(x.expression,x),Qa(x,y),x.flowNode=y.returnFlowNode;const k=Kb(x,a,qb(a));if(!aM(k))return!0}return!1}function rWe(n,a,c){const d=ss(n)?O.createElementAccessExpression(O.createThis(),n.expression):O.createPropertyAccessExpression(O.createThis(),n);Qa(d.expression,d),Qa(d,c),d.flowNode=c.returnFlowNode;const h=Kb(d,a,qb(a));return!aM(h)}function Kvt(n){Cg(n)||Nbt(n),GB(n.typeParameters),r(()=>{IM(n.name,m.Interface_name_cannot_be_0),v8(n);const a=Cr(n);K5e(a);const c=gl(a,264);if(n===c){const d=nl(a),h=Xp(d);if(Hvt(d,n.name)){for(const y of pp(d))od(h,Xp(y,d.thisType),n.name,m.Interface_0_incorrectly_extends_interface_1);Lte(d,a)}}m5e(n)}),Ve(jN(n),a=>{(!Jl(a.expression)||Xu(a.expression))&&Xe(a.expression,m.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Rbe(a)}),Ve(n.members,Pa),r(()=>{Abe(n),Xb(n)})}function Xvt(n){Cg(n),IM(n.name,m.Type_alias_name_cannot_be_0),v8(n),GB(n.typeParameters),n.type.kind===141?(!dW.has(n.name.escapedText)||Pe(n.typeParameters)!==1)&&Xe(n.type,m.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Pa(n.type),Xb(n))}function iWe(n){const a=Zr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(const d of n.members){const h=Yvt(d,c);Zr(d).enumMemberValue=h,c=typeof h=="number"?h+1:void 0}}}function Yvt(n,a){if(HL(n.name))Xe(n.name,m.Computed_property_names_are_not_allowed_in_enums);else{const c=f2(n.name);ug(c)&&!hC(c)&&Xe(n.name,m.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return $vt(n);if(!(n.parent.flags&33554432&&!z1(n.parent))){if(a!==void 0)return a;Xe(n.name,m.Enum_member_must_have_initializer)}}function $vt(n){const a=z1(n.parent),c=n.initializer,d=xM(c,n);return d!==void 0?a&&typeof d=="number"&&!isFinite(d)&&Xe(c,isNaN(d)?m.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:m.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?Xe(c,m.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?Xe(c,m.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):od(Eo(c),Tt,c,m.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),d}function xM(n,a){switch(n.kind){case 224:const c=xM(n.operand,a);if(typeof c=="number")switch(n.operator){case 40:return c;case 41:return-c;case 55:return~c}break;case 226:const d=xM(n.left,a),h=xM(n.right,a);if(typeof d=="number"&&typeof h=="number")switch(n.operatorToken.kind){case 52:return d|h;case 51:return d&h;case 49:return d>>h;case 50:return d>>>h;case 48:return d<<h;case 53:return d^h;case 42:return d*h;case 44:return d/h;case 40:return d+h;case 41:return d-h;case 45:return d%h;case 43:return d**h}else if((typeof d=="string"||typeof d=="number")&&(typeof h=="string"||typeof h=="number")&&n.operatorToken.kind===40)return""+d+h;break;case 11:case 15:return n.text;case 228:return aWe(n,a);case 9:return n0e(n),+n.text;case 217:return xM(n.expression,a);case 80:{const x=n;if(hC(x.escapedText)&&Ys(x,111551,!0)===iM(x.escapedText,111551,void 0))return+x.escapedText}case 211:if(Jl(n)){const x=Ys(n,111551,!0);if(x){if(x.flags&8)return a?oWe(n,x,a):JD(x.valueDeclaration);if(_M(x)){const k=x.valueDeclaration;if(k&&Wi(k)&&!k.type&&k.initializer&&(!a||k!==a&&iv(k,a)))return xM(k.initializer,k)}}}break;case 212:const y=n.expression;if(Jl(y)&&hs(n.argumentExpression)){const x=Ys(y,111551,!0);if(x&&x.flags&384){const k=bl(n.argumentExpression.text),z=x.exports.get(k);if(z)return a?oWe(n,z,a):JD(z.valueDeclaration)}}break}}function oWe(n,a,c){const d=a.valueDeclaration;if(!d||d===c){Xe(n,m.Property_0_is_used_before_being_assigned,Ti(a));return}return iv(d,c)?JD(d):(Xe(n,m.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function aWe(n,a){let c=n.head.text;for(const d of n.templateSpans){const h=xM(d.expression,a);if(h===void 0)return;c+=h,c+=d.literal.text}return c}function Qvt(n){r(()=>Zvt(n))}function Zvt(n){Cg(n),TM(n,n.name),v8(n),n.members.forEach(eyt),iWe(n);const a=Cr(n),c=gl(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){const h=z1(n);Ve(a.declarations,y=>{x0(y)&&z1(y)!==h&&Xe(Oo(y),m.Enum_declarations_must_all_be_const_or_non_const)})}let d=!1;Ve(a.declarations,h=>{if(h.kind!==266)return!1;const y=h;if(!y.members.length)return!1;const x=y.members[0];x.initializer||(d?Xe(x.name,m.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):d=!0)})}}function eyt(n){Qi(n.name)&&Xe(n,m.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&Eo(n.initializer)}function tyt(n){const a=n.declarations;if(a){for(const c of a)if((c.kind===263||c.kind===262&&nm(c.body))&&!(c.flags&33554432))return c}}function nyt(n,a){const c=yh(n),d=yh(a);return wh(c)?wh(d):wh(d)?!1:c===d}function ryt(n){n.body&&(Pa(n.body),R_(n)||Xb(n)),r(a);function a(){var c,d;const h=R_(n),y=n.flags&33554432;h&&!y&&Xe(n.name,m.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const x=Ou(n),k=x?m.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:m.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(VB(n,k))return;Cg(n)||!y&&n.name.kind===11&&Sn(n.name,m.Only_ambient_modules_can_use_quoted_names),Ue(n.name)&&TM(n,n.name),v8(n);const z=Cr(n);if(z.flags&512&&!y&&iJ(n,tE(V))){if(dm(V)&&!Jn(n).externalModuleIndicator&&Xe(n.name,m.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Ze),((c=z.declarations)==null?void 0:c.length)>1){const K=tyt(z);K&&(Jn(n)!==Jn(K)?Xe(n.name,m.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<K.pos&&Xe(n.name,m.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const ne=gl(z,263);ne&&nyt(n,ne)&&(Zr(n).flags|=2048)}if(V.verbatimModuleSyntax&&n.parent.kind===312&&(G===1||n.parent.impliedNodeFormat===1)){const K=(d=n.modifiers)==null?void 0:d.find(ne=>ne.kind===95);K&&Xe(K,m.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(x)if(F1(n)){if((h||Cr(n).flags&33554432)&&n.body)for(const ne of n.body.statements)Gbe(ne,h)}else wh(n.parent)?h?Xe(n.name,m.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):tu(am(n.name))&&Xe(n.name,m.Ambient_module_declaration_cannot_specify_relative_module_name):h?Xe(n.name,m.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Xe(n.name,m.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Gbe(n,a){switch(n.kind){case 243:for(const d of n.declarationList.declarations)Gbe(d,a);break;case 277:case 278:yu(n,m.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:yu(n,m.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const c=n.name;if(na(c)){for(const d of c.elements)Gbe(d,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function iyt(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if(ig(n.expression)&&!Qi(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function Vbe(n){const a=A2(n);if(!a||Hl(a))return!1;if(!La(a))return Xe(a,m.String_literal_expected),!1;const c=n.parent.kind===268&&Ou(n.parent.parent);if(n.parent.kind!==312&&!c)return Xe(a,n.kind===278?m.Export_declarations_are_not_permitted_in_a_namespace:m.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&tu(a.text)&&!Nb(n))return Xe(n,m.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!au(n)&&n.attributes){const d=n.attributes.token===118?m.Import_attribute_values_must_be_string_literal_expressions:m.Import_assertion_values_must_be_string_literal_expressions;let h=!1;for(const y of n.attributes.elements)La(y.value)||(h=!0,Xe(y.value,d));return!h}return!0}function kte(n){var k;var a,c,d,h;let y=Cr(n);const x=Vc(y);if(x!==pt){if(y=ds(y.exportSymbol||y),dr(n)&&!(x.flags&111551)&&!m0(n)){const ne=wA(n)?n.propertyName||n.name:cd(n)?n.name:n;if(N.assert(n.kind!==280),n.kind===281){const Te=Xe(ne,m.Types_cannot_appear_in_export_declarations_in_JavaScript_files),ve=(c=(a=Jn(n).symbol)==null?void 0:a.exports)==null?void 0:c.get((n.propertyName||n.name).escapedText);if(ve===x){const Ge=(d=ve.declarations)==null?void 0:d.find(l2);Ge&&Fa(Te,Fr(Ge,m._0_is_automatically_exported_here,Ki(ve.escapedName)))}}else{N.assert(n.kind!==260);const Te=jn(n,$m(Fc,au)),ve=(k=Te&&((h=T2(Te))==null?void 0:h.text))!=null?k:"...",Ge=Ki(Ue(ne)?ne.escapedText:y.escapedName);Xe(ne,m._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,Ge,`import("${ve}").${Ge}`)}return}const z=Ru(x),K=(y.flags&1160127?111551:0)|(y.flags&788968?788968:0)|(y.flags&1920?1920:0);if(z&K){const ne=n.kind===281?m.Export_declaration_conflicts_with_exported_declaration_of_0:m.Import_declaration_conflicts_with_local_declaration_of_0;Xe(n,ne,Ti(y))}else n.kind!==281&&V.isolatedModules&&!jn(n,m0)&&y.flags&1160127&&Xe(n,m.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ti(y),Ze);if(dm(V)&&!m0(n)&&!(n.flags&33554432)){const ne=Gf(y),Te=!(z&111551);if(Te||ne)switch(n.kind){case 273:case 276:case 271:{if(V.preserveValueImports||V.verbatimModuleSyntax){N.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const ve=V.verbatimModuleSyntax&&E2(n)?m.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Te?V.verbatimModuleSyntax?m._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:m._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:V.verbatimModuleSyntax?m._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:m._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,Ge=Rr(n.kind===276&&n.propertyName||n.name);yg(Xe(n,ve,Ge),Te?void 0:ne,Ge)}Te&&n.kind===271&&bp(n,32)&&Xe(n,m.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Ze);break}case 281:if(V.verbatimModuleSyntax||Jn(ne)!==Jn(n)){const ve=Rr(n.propertyName||n.name),Ge=Te?Xe(n,m.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Ze):Xe(n,m._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,ve,Ze);yg(Ge,Te?void 0:ne,ve);break}}V.verbatimModuleSyntax&&n.kind!==271&&!dr(n)&&(G===1||Jn(n).impliedNodeFormat===1)&&Xe(n,m.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(rp(n)){const ne=jbe(y,n);hb(ne)&&ne.declarations&&cy(n,ne.declarations,ne.escapedName)}}}function jbe(n,a){if(!(n.flags&2097152)||hb(n)||!zm(n))return n;const c=Vc(n);if(c===pt)return c;for(;n.flags&2097152;){const d=Wye(n);if(d){if(d===c)break;if(d.declarations&&Pe(d.declarations))if(hb(d)){cy(a,d.declarations,d.escapedName);break}else{if(n===c)break;n=d}}else break}return c}function wte(n){TM(n,n.name),kte(n),n.kind===276&&Rr(n.propertyName||n.name)==="default"&&Sh(V)&&G!==4&&(G<5||Jn(n).impliedNodeFormat===1)&&Lc(n,131072)}function sWe(n){var a;const c=n.attributes;if(c){const d=dve(!0);d!==wa&&od(ce(c),tB(d,32768),c);const h=JJ(n),y=ER(c,h?Sn:void 0),x=n.attributes.token===118;if(h&&y)return;if((G===199&&n.moduleSpecifier&&so(n.moduleSpecifier))!==99&&G!==99&&G!==200){const z=x?G===199?m.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:m.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:G===199?m.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:m.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return Sn(c,z)}if(Fc(n)?(a=n.importClause)==null?void 0:a.isTypeOnly:n.isTypeOnly)return Sn(c,x?m.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:m.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(y)return Sn(c,m.resolution_mode_can_only_be_set_for_type_only_imports)}}function oyt(n){return Ed(uc(n.value))}function ayt(n){if(!VB(n,dr(n)?m.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:m.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Cg(n)&&j3(n)&&yu(n,m.An_import_declaration_cannot_have_modifiers),Vbe(n)){const a=n.importClause;a&&!e0t(a)&&(a.name&&wte(a),a.namedBindings&&(a.namedBindings.kind===274?(wte(a.namedBindings),G!==4&&(G<5||Jn(n).impliedNodeFormat===1)&&Sh(V)&&Lc(n,65536)):vd(n,n.moduleSpecifier)&&Ve(a.namedBindings.elements,wte)))}sWe(n)}}function syt(n){if(!VB(n,dr(n)?m.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:m.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Cg(n),E2(n)||Vbe(n)))if(wte(n),Qr(n,32)&&Sb(n),n.moduleReference.kind!==283){const a=Vc(Cr(n));if(a!==pt){const c=Ru(a);if(c&111551){const d=jp(n.moduleReference);Ys(d,112575).flags&1920||Xe(d,m.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,ks(d))}c&788968&&IM(n.name,m.Import_name_cannot_be_0)}n.isTypeOnly&&Sn(n,m.An_import_alias_cannot_use_import_type)}else G>=5&&G!==200&&Jn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&33554432)&&Sn(n,m.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function lyt(n){if(!VB(n,dr(n)?m.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:m.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Cg(n)&&Roe(n)&&yu(n,m.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&Pf(n.exportClause)&&Pe(n.exportClause.elements)&&se===0&&Lc(n,4194304),cyt(n),!n.moduleSpecifier||Vbe(n))if(n.exportClause&&!xh(n.exportClause)){Ve(n.exportClause.elements,_yt);const a=n.parent.kind===268&&Ou(n.parent.parent),c=!a&&n.parent.kind===268&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==312&&!a&&!c&&Xe(n,m.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=vd(n,n.moduleSpecifier);a&&py(a)?Xe(n.moduleSpecifier,m.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ti(a)):n.exportClause&&kte(n.exportClause),G!==4&&(G<5||Jn(n).impliedNodeFormat===1)&&(n.exportClause?Sh(V)&&Lc(n,65536):Lc(n,32768))}sWe(n)}}function cyt(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?zWe(n.exportClause):!1}function VB(n,a){const c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||yu(n,a),!c}function uyt(n){return N3(n,a=>!!Cr(a).isReferenced)}function dyt(n){return N3(n,a=>!!eo(Cr(a)).constEnumReferenced)}function pyt(n){return Fc(n)&&n.importClause&&!n.importClause.isTypeOnly&&uyt(n.importClause)&&!Gte(n.importClause,!0)&&!dyt(n.importClause)}function fyt(n){return au(n)&&Rh(n.moduleReference)&&!n.isTypeOnly&&Cr(n).isReferenced&&!Gte(n,!1)&&!eo(Cr(n)).constEnumReferenced}function myt(n){if(!!It)for(const a of n.statements)(pyt(a)||fyt(a))&&Xe(a,m.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function _yt(n){if(kte(n),Nf(V)&&KP(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)Sh(V)&&G!==4&&(G<5||Jn(n).impliedNodeFormat===1)&&Rr(n.propertyName||n.name)==="default"&&Lc(n,131072);else{const a=n.propertyName||n.name,c=Tl(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===He||c===it||c.declarations&&wh($(c.declarations[0]))))Xe(a,m.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Rr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&Sb(n);const d=c&&(c.flags&2097152?Vc(c):c);(!d||Ru(d)&111551)&&uc(n.propertyName||n.name)}}}function hyt(n){const a=n.isExportEquals?m.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:m.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(VB(n,a))return;const c=n.parent.kind===312?n.parent:n.parent.parent;if(c.kind===267&&!Ou(c)){n.isExportEquals?Xe(n,m.An_export_assignment_cannot_be_used_in_a_namespace):Xe(n,m.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Cg(n)&&j3(n)&&yu(n,m.An_export_assignment_cannot_have_modifiers);const d=Su(n);d&&od(uc(n.expression),Ai(d),n.expression);const h=!n.isExportEquals&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&(G===1||Jn(n).impliedNodeFormat===1);if(n.expression.kind===80){const y=n.expression,x=vf(Ys(y,-1,!0,!0,n));if(x){const k=Gf(x,111551);if(Zee(x,y),Ru(x)&111551?(uc(y),!h&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&k&&Xe(y,n.isExportEquals?m.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:m.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Rr(y))):!h&&!(n.flags&33554432)&&V.verbatimModuleSyntax&&Xe(y,n.isExportEquals?m.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:m.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Rr(y)),!h&&!(n.flags&33554432)&&dm(V)&&!(x.flags&111551)){const z=Ru(x,!1,!0);x.flags&2097152&&z&788968&&!(z&111551)&&(!k||Jn(k)!==Jn(n))?Xe(y,n.isExportEquals?m._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:m._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Rr(y),Ze):k&&Jn(k)!==Jn(n)&&yg(Xe(y,n.isExportEquals?m._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:m._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Rr(y),Ze),k,Rr(y))}}else uc(y);Nf(V)&&KP(y,!0)}else uc(n.expression);h&&Xe(n,m.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),lWe(c),n.flags&33554432&&!Jl(n.expression)&&Sn(n.expression,m.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(G>=5&&G!==200&&(n.flags&33554432&&Jn(n).impliedNodeFormat===99||!(n.flags&33554432)&&Jn(n).impliedNodeFormat!==1)?Sn(n,m.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):G===4&&!(n.flags&33554432)&&Sn(n,m.Export_assignment_is_not_supported_when_module_flag_is_system))}function gyt(n){return qc(n.exports,(a,c)=>c!=="export=")}function lWe(n){const a=Cr(n),c=eo(a);if(!c.exportsChecked){const d=a.exports.get("export=");if(d&&gyt(a)){const y=zm(d)||d.valueDeclaration;y&&!Nb(y)&&!dr(y)&&Xe(y,m.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const h=Wh(a);h&&h.forEach(({declarations:y,flags:x},k)=>{if(k==="__export"||x&1920)return;const z=Ca(y,Z8(Yxe,e6(gd)));if(!(x&524288&&z<=2)&&z>1&&!Ote(y))for(const K of y)Jxe(K)&&cs.add(Fr(K,m.Cannot_redeclare_exported_variable_0,Ki(k)))}),c.exportsChecked=!0}}function Ote(n){return n&&n.length>1&&n.every(a=>dr(a)&&js(a)&&(RS(a.expression)||ig(a.expression)))}function Pa(n){if(n){const a=C;C=n,I=0,vyt(n),C=a}}function vyt(n){mk(n)&&Ve(n.jsDoc,({comment:c,tags:d})=>{cWe(c),Ve(d,h=>{cWe(h.comment),dr(n)&&Pa(h)})});const a=n.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&fk(n)&&n.flowNode&&!lB(n.flowNode)&&vu(V.allowUnreachableCode===!1,n,m.Unreachable_code_detected),a){case 168:return d5e(n);case 169:return p5e(n);case 172:return _5e(n);case 171:return tgt(n);case 185:case 184:case 179:case 180:case 181:return g8(n);case 174:case 173:return ngt(n);case 175:return rgt(n);case 176:return igt(n);case 177:case 178:return g5e(n);case 183:return Rbe(n);case 182:return $ht(n);case 186:return ugt(n);case 187:return dgt(n);case 188:return pgt(n);case 189:return fgt(n);case 192:case 193:return mgt(n);case 196:case 190:case 191:return Pa(n.type);case 197:return vgt(n);case 198:return ygt(n);case 194:return bgt(n);case 195:return Egt(n);case 203:return Sgt(n);case 205:return Tgt(n);case 202:return Agt(n);case 335:return jgt(n);case 336:return Vgt(n);case 353:case 345:case 347:return Lgt(n);case 352:return kgt(n);case 351:return wgt(n);case 331:case 332:case 333:return Wgt(n);case 348:return Fgt(n);case 355:return zgt(n);case 324:Bgt(n);case 322:case 321:case 319:case 320:case 329:uWe(n),Uo(n,Pa);return;case 325:yyt(n);return;case 316:return Pa(n.type);case 340:case 342:case 341:return Ugt(n);case 357:return Ogt(n);case 350:return Ggt(n);case 199:return _gt(n);case 200:return hgt(n);case 262:return Mgt(n);case 241:case 268:return Nte(n);case 243:return lvt(n);case 244:return cvt(n);case 245:return uvt(n);case 246:return fvt(n);case 247:return mvt(n);case 248:return _vt(n);case 249:return gvt(n);case 250:return hvt(n);case 251:case 252:return Avt(n);case 253:return Ivt(n);case 254:return xvt(n);case 255:return Rvt(n);case 256:return Dvt(n);case 257:return Nvt(n);case 258:return Cvt(n);case 260:return avt(n);case 208:return svt(n);case 263:return Fvt(n);case 264:return Kvt(n);case 265:return Xvt(n);case 266:return Qvt(n);case 267:return ryt(n);case 272:return ayt(n);case 271:return syt(n);case 278:return lyt(n);case 277:return hyt(n);case 242:case 259:Sv(n);return;case 282:return agt(n)}}function cWe(n){Do(n)&&Ve(n,a=>{zA(a)&&Pa(a)})}function uWe(n){if(!dr(n))if(b5(n)||nR(n)){const a=ma(b5(n)?54:58),c=n.postfix?m._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:m._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,d=n.type,h=Ai(d);Sn(n,c,a,Kn(nR(n)&&!(h===qr||h===Qn)?ei(Rn([h,We],n.postfix?void 0:fe)):h))}else Sn(n,m.JSDoc_types_can_only_be_used_inside_documentation_comments)}function yyt(n){uWe(n),Pa(n.type);const{parent:a}=n;if(No(a)&&rR(a.parent)){rs(a.parent.parameters)!==a&&Xe(n,m.A_rest_parameter_must_be_last_in_a_parameter_list);return}pE(a)||Xe(n,m.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const c=n.parent.parent;if(!i_(c)){Xe(n,m.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const d=_k(c);if(!d)return;const h=v0(c);(!h||rs(h.parameters).symbol!==d)&&Xe(n,m.A_rest_parameter_must_be_last_in_a_parameter_list)}function byt(n){const a=Ai(n.type),{parent:c}=n,d=n.parent.parent;if(pE(n.parent)&&i_(d)){const h=v0(d),y=KH(d.parent.parent);if(h||y){const x=il(y?d.parent.parent.typeExpression.parameters:h.parameters),k=_k(d);if(!x||k&&x.symbol===k&&eg(x))return Uu(a)}}return No(c)&&rR(c.parent)?Uu(a):dp(a)}function Cx(n){const a=Jn(n),c=Zr(a);c.flags&1?N.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function Eyt(n){const a=Zr(n);a.deferredNodes&&a.deferredNodes.forEach(Syt),a.deferredNodes=void 0}function Syt(n){var a,c;(a=ur)==null||a.push(ur.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const d=C;switch(C=n,I=0,n.kind){case 213:case 214:case 215:case 170:case 286:lA(n);break;case 218:case 219:case 174:case 173:hht(n);break;case 177:case 178:g5e(n);break;case 231:Wvt(n);break;case 168:Yht(n);break;case 285:Imt(n);break;case 284:Rmt(n);break;case 216:case 234:case 217:j_t(n);break;case 222:Eo(n.expression);break;case 226:q3(n)&&lA(n);break}C=d,(c=ur)==null||c.pop()}function Tyt(n){var a,c;(a=ur)==null||a.push(ur.Phase.Check,"checkSourceFile",{path:n.path},!0),sl("beforeCheck"),Ayt(n),sl("afterCheck"),ef("Check","beforeCheck","afterCheck"),(c=ur)==null||c.pop()}function dWe(n,a){if(a)return!1;switch(n){case 0:return!!V.noUnusedLocals;case 1:return!!V.noUnusedParameters;default:return N.assertNever(n)}}function pWe(n){return mf.get(n.path)||et}function Ayt(n){const a=Zr(n);if(!(a.flags&1)){if(dC(n,V,e))return;Ybt(n),Yi(DE),Yi(NE),Yi(fb),Yi(mb),Yi(vg),Ve(n.statements,Pa),Pa(n.endOfFileToken),Eyt(n),Bp(n)&&Xb(n),r(()=>{!n.isDeclarationFile&&(V.noUnusedLocals||V.noUnusedParameters)&&N5e(pWe(n),(c,d,h)=>{!d2(c)&&dWe(d,!!(c.flags&33554432))&&cs.add(h)}),n.isDeclarationFile||Kgt()}),V.importsNotUsedAsValues===2&&!n.isDeclarationFile&&mc(n)&&myt(n),Bp(n)&&lWe(n),DE.length&&(Ve(DE,$gt),Yi(DE)),NE.length&&(Ve(NE,Qgt),Yi(NE)),fb.length&&(Ve(fb,nvt),Yi(fb)),mb.length&&(Ve(mb,ivt),Yi(mb)),a.flags|=1}}function fWe(n,a){try{return i=a,Iyt(n)}finally{i=void 0}}function Ube(){for(const n of t)n();t=[]}function Hbe(n){Ube();const a=r;r=c=>c(),Tyt(n),r=a}function Iyt(n){if(n){Ube();const a=cs.getGlobalDiagnostics(),c=a.length;Hbe(n);const d=cs.getDiagnostics(n.fileName),h=cs.getGlobalDiagnostics();if(h!==a){const y=Bne(a,h,aC);return Ro(y,d)}else if(c===0&&h.length>0)return Ro(h,d);return d}return Ve(e.getSourceFiles(),Hbe),cs.getDiagnostics()}function xyt(){return Ube(),cs.getGlobalDiagnostics()}function Ryt(n,a){if(n.flags&67108864)return[];const c=pa();let d=!1;return h(),c.delete("this"),$ge(c);function h(){for(;n;){switch(hh(n)&&n.locals&&!wh(n)&&x(n.locals,a),n.kind){case 312:if(!mc(n))break;case 267:k(Cr(n).exports,a&2623475);break;case 266:x(Cr(n).exports,a&8);break;case 231:n.name&&y(n.symbol,a);case 263:case 264:d||x(Ob(Cr(n)),a&788968);break;case 218:n.name&&y(n.symbol,a);break}qie(n)&&y(Ft,a),d=la(n),n=n.parent}x(be,a)}function y(z,K){if(F2(z)&K){const ne=z.escapedName;c.has(ne)||c.set(ne,z)}}function x(z,K){K&&z.forEach(ne=>{y(ne,K)})}function k(z,K){K&&z.forEach(ne=>{!gl(ne,281)&&!gl(ne,280)&&ne.escapedName!=="default"&&y(ne,K)})}}function Dyt(n){return n.kind===80&&H2(n.parent)&&Oo(n.parent)===n}function mWe(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function Nyt(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function _We(n,a){let c,d=du(n);for(;d&&!(c=a(d));)d=du(d);return c}function Cyt(n){return!!jn(n,a=>Wl(a)&&nm(a.body)||qo(a)?!0:di(a)||Js(a)?"quit":!1)}function qbe(n,a){return!!_We(n,c=>c===a)}function Pyt(n){for(;n.parent.kind===166;)n=n.parent;if(n.parent.kind===271)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===277)return n.parent.expression===n?n.parent:void 0}function Wte(n){return Pyt(n)!==void 0}function Myt(n){switch(ql(n.parent.parent)){case 1:case 3:return gf(n.parent);case 5:if(Br(n.parent)&&z2(n.parent)===n)return;case 4:case 2:return Cr(n.parent.parent)}}function Lyt(n){let a=n.parent;for(;xd(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function kyt(n){if(n.expression.kind===110){const a=zd(n,!1,!1);if(ta(a)){const c=x3e(a);if(c){const d=E1(c,void 0),h=D3e(c,d);return h&&!Nt(h)}}}}function hWe(n){if(Gg(n))return gf(n.parent);if(dr(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Qi(n)&&!R0(n)&&!kyt(n.parent)){const a=Myt(n);if(a)return a}if(n.parent.kind===277&&Jl(n)){const a=Ys(n,2998271,!0);if(a&&a!==pt)return a}else if(ep(n)&&Wte(n)){const a=b0(n,271);return N.assert(a!==void 0),px(n,!0)}if(ep(n)){const a=Lyt(n);if(a){Ai(a);const c=Zr(n).resolvedSymbol;return c===pt?void 0:c}}for(;Loe(n);)n=n.parent;if(Nyt(n)){let a=0;n.parent.kind===233?(a=ng(n)?788968:111551,H3(n.parent)&&(a|=111551)):a=1920,a|=2097152;const c=Jl(n)?Ys(n,a,!0):void 0;if(c)return c}if(n.parent.kind===348)return _k(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){N.assert(!dr(n));const a=ooe(n.parent);return a&&a.symbol}if(rg(n)){if(Hl(n))return;const a=jn(n,$m(zA,WC,R0)),c=a?901119:111551;if(n.kind===80){if(b2(n)&&Nx(n)){const h=ate(n.parent);return h===pt?void 0:h}const d=Ys(n,c,!0,!0,v0(n));if(!d&&a){const h=jn(n,$m(di,gd));if(h)return jB(n,!0,Cr(h))}if(d&&a){const h=CS(n);if(h&&dE(h)&&h===d.valueDeclaration)return Ys(n,c,!0,!0,Jn(h))||d}return d}else{if(Qi(n))return cte(n);if(n.kind===211||n.kind===166){const d=Zr(n);return d.resolvedSymbol?d.resolvedSymbol:(n.kind===211?(ste(n,0),d.resolvedSymbol||(d.resolvedSymbol=gWe(uc(n.expression),gy(n.name)))):t7e(n,0),!d.resolvedSymbol&&a&&xd(n)?jB(n):d.resolvedSymbol)}else if(R0(n))return jB(n)}}else if(mWe(n)){const a=n.parent.kind===183?788968:1920,c=Ys(n,a,!1,!0);return c&&c!==pt?c:cee(n)}if(n.parent.kind===182)return Ys(n,1)}function gWe(n,a){const c=Yge(n,a);if(c.length&&n.members){const d=aee(__(n).members);if(c===yd(n))return d;if(d){const h=eo(d),y=Vi(c,k=>k.declaration),x=Wt(y,fs).join(",");if(h.filteredIndexSymbolCache||(h.filteredIndexSymbolCache=new Map),h.filteredIndexSymbolCache.has(x))return h.filteredIndexSymbolCache.get(x);{const k=ts(131072,"__index");return k.declarations=Vi(c,z=>z.declaration),k.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:Jm(k.declarations[0].parent),h.filteredIndexSymbolCache.set(x,k),k}}}}function jB(n,a,c){if(ep(n)){let x=Ys(n,901119,a,!0,v0(n));if(!x&&Ue(n)&&c&&(x=ds(Kd(Lp(c),n.escapedText,901119))),x)return x}const d=Ue(n)?c:jB(n.left,a,c),h=Ue(n)?n.escapedText:n.right.escapedText;if(d){const y=d.flags&111551&&Sa(_r(d),"prototype"),x=y?_r(y):nl(d);return Sa(x,h)}}function Jm(n,a){var h;if(io(n))return mc(n)?ds(n.symbol):void 0;const{parent:c}=n,d=c.parent;if(!(n.flags&67108864)){if(Kxe(n)){const y=Cr(c);return wA(n.parent)&&n.parent.propertyName===n?Wye(y):y}else if(vk(n))return Cr(c.parent);if(n.kind===80){if(Wte(n))return hWe(n);if(c.kind===208&&d.kind===206&&n===c.propertyName){const y=Px(d),x=Sa(y,n.escapedText);if(x)return x}else if(CC(c)&&c.name===n)return c.keywordToken===105&&Rr(n)==="target"?ube(c).symbol:c.keywordToken===102&&Rr(n)==="meta"?y8e().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!JA(n))return hWe(n);case 110:const y=zd(n,!1,!1);if(ta(y)){const z=vm(y);if(z.thisParameter)return z.thisParameter}if(b3(n))return Eo(n).symbol;case 197:return yee(n).symbol;case 108:return Eo(n).symbol;case 137:const x=n.parent;return x&&x.kind===176?x.parent.symbol:void 0;case 11:case 15:if(h0(n.parent.parent)&&FN(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||dr(n)&&Ad(n.parent,!1)||Gp(n.parent)||$y(n.parent)&&By(n.parent.parent)&&n.parent.parent.argument===n.parent)return vd(n,n,a);if(ca(c)&&DS(c)&&c.arguments[1]===n)return Cr(c);case 9:const k=el(c)?c.argumentExpression===n?Cu(c.expression):void 0:$y(c)&&jS(d)?Ai(d.objectType):void 0;return k&&Sa(k,bl(n.text));case 90:case 100:case 39:case 86:return gf(n.parent);case 205:return By(n)?Jm(n.argument.literal,a):void 0;case 95:return zl(n.parent)?N.checkDefined(n.parent.symbol):void 0;case 102:case 105:return CC(n.parent)?F7e(n.parent).symbol:void 0;case 104:if(vr(n.parent)){const z=Cu(n.parent.right),K=ybe(z);return(h=K==null?void 0:K.symbol)!=null?h:z.symbol}return;case 236:return Eo(n).symbol;case 295:if(b2(n)&&Nx(n)){const z=ate(n.parent);return z===pt?void 0:z}default:return}}}function wyt(n){if(Ue(n)&&Br(n.parent)&&n.parent.name===n){const a=gy(n),c=Cu(n.parent.expression),d=c.flags&1048576?c.types:[c];return qi(d,h=>Vn(yd(h),y=>Sx(a,y.keyType)))}}function Oyt(n){if(n&&n.kind===304)return Ys(n.name,2208703)}function Wyt(n){return $u(n)?n.parent.parent.moduleSpecifier?av(n.parent.parent,n):Ys(n.propertyName||n.name,2998271):Ys(n,2998271)}function Px(n){if(io(n)&&!mc(n)||n.flags&67108864)return _t;const a=PU(n),c=a&&qf(Cr(a.class));if(ng(n)){const d=Ai(n);return c?Xp(d,c.thisType):d}if(rg(n))return vWe(n);if(c&&!a.isImplements){const d=eu(pp(c));return d?Xp(d,c.thisType):_t}if(H2(n)){const d=Cr(n);return nl(d)}if(Dyt(n)){const d=Jm(n);return d?nl(d):_t}if(os(n))return VT(n,!0,0)||_t;if(Yu(n)){const d=Cr(n);return d?_r(d):_t}if(Kxe(n)){const d=Jm(n);return d?_r(d):_t}if(na(n))return VT(n.parent,!0,0)||_t;if(Wte(n)){const d=Jm(n);if(d){const h=nl(d);return Jt(h)?_r(d):h}}return CC(n.parent)&&n.parent.keywordToken===n.kind?F7e(n.parent):yI(n)?dve(!1):_t}function Fte(n){if(N.assert(n.kind===210||n.kind===209),n.parent.kind===250){const h=zB(n.parent);return uA(n,h||_t)}if(n.parent.kind===226){const h=Cu(n.parent.right);return uA(n,h||_t)}if(n.parent.kind===303){const h=sa(n.parent.parent,za),y=Fte(h)||_t,x=p2(h.properties,n.parent);return t5e(h,y,x)}const a=sa(n.parent,hd),c=Fte(a)||_t,d=Ey(65,c,We,n.parent)||_t;return n5e(a,c,a.elements.indexOf(n),d)}function Fyt(n){const a=Fte(sa(n.parent.parent,NN));return a&&Sa(a,n.escapedText)}function vWe(n){return eC(n)&&(n=n.parent),Ed(Cu(n))}function yWe(n){const a=gf(n.parent);return la(n)?_r(a):nl(a)}function bWe(n){const a=n.name;switch(a.kind){case 80:return Yd(Rr(a));case 9:case 11:return Yd(a.text);case 167:const c=Dg(a);return Nu(c,12288)?c:ke;default:return N.fail("Unsupported property name.")}}function Jbe(n){n=wd(n);const a=pa(As(n)),c=$o(n,0).length?Yn:$o(n,1).length?Io:void 0;return c&&Ve(As(c),d=>{a.has(d.escapedName)||a.set(d.escapedName,d)}),n1(a)}function zte(n){return $o(n,0).length!==0||$o(n,1).length!==0}function EWe(n){const a=zyt(n);return a?qi(a,EWe):[n]}function zyt(n){if(Cl(n)&6)return Vi(eo(n).containingType.types,a=>Sa(a,n.escapedName));if(n.flags&33554432){const{links:{leftSpread:a,rightSpread:c,syntheticOrigin:d}}=n;return a?[a,c]:d?[d]:NA(Byt(n))}}function Byt(n){let a,c=n;for(;c=eo(c).target;)a=c;return a}function Gyt(n){if(ul(n))return!1;const a=Lo(n,Ue);if(!a)return!1;const c=a.parent;return c?!((Br(c)||Tc(c))&&c.name===a)&&x8(a)===Ft:!1}function Vyt(n){let a=vd(n.parent,n);if(!a||LN(a))return!0;const c=py(a);a=Mp(a);const d=eo(a);return d.exportsSomeValue===void 0&&(d.exportsSomeValue=c?!!(a.flags&111551):qc(Wh(a),h)),d.exportsSomeValue;function h(y){return y=Xl(y),y&&!!(Ru(y)&111551)}}function jyt(n){return OL(n.parent)&&n===n.parent.name}function Uyt(n,a){var c;const d=Lo(n,Ue);if(d){let h=x8(d,jyt(d));if(h){if(h.flags&1048576){const x=ds(h.exportSymbol);if(!a&&x.flags&944&&!(x.flags&3))return;h=x}const y=Md(h);if(y){if(y.flags&512&&((c=y.valueDeclaration)==null?void 0:c.kind)===312){const x=y.valueDeclaration,k=Jn(d);return x!==k?void 0:x}return jn(d.parent,x=>OL(x)&&Cr(x)===y)}}}}function Hyt(n){const a=jae(n);if(a)return a;const c=Lo(n,Ue);if(c){const d=ibt(c);if(PT(d,111551)&&!Gf(d,111551))return zm(d)}}function qyt(n){return n.valueDeclaration&&os(n.valueDeclaration)&&n2(n.valueDeclaration).parent.kind===299}function SWe(n){if(n.flags&418&&n.valueDeclaration&&!io(n.valueDeclaration)){const a=eo(n);if(a.isDeclarationWithCollidingName===void 0){const c=yh(n.valueDeclaration);if(Iie(c)||qyt(n)){const d=Zr(n.valueDeclaration);if(Tl(c.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(d.flags&16384){const h=d.flags&32768,y=wy(c,!1),x=c.kind===241&&wy(c.parent,!1);a.isDeclarationWithCollidingName=!Mie(c)&&(!h||!y&&!x)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function Jyt(n){if(!ul(n)){const a=Lo(n,Ue);if(a){const c=x8(a);if(c&&SWe(c))return c.valueDeclaration}}}function Kyt(n){const a=Lo(n,Yu);if(a){const c=Cr(a);if(c)return SWe(c)}return!1}function TWe(n){switch(N.assert(It),n.kind){case 271:return Bte(Cr(n));case 273:case 274:case 276:case 281:const a=Cr(n);return!!a&&Bte(a,!0);case 278:const c=n.exportClause;return!!c&&(xh(c)||St(c.elements,TWe));case 277:return n.expression&&n.expression.kind===80?Bte(Cr(n),!0):!0}return!1}function Xyt(n){const a=Lo(n,au);return a===void 0||a.parent.kind!==312||!E2(a)?!1:Bte(Cr(a))&&a.moduleReference&&!Hl(a.moduleReference)}function Bte(n,a){if(!n)return!1;const c=vf(Vc(n));return c===pt?!a||!Gf(n):!!(Ru(n,a,!0)&111551)&&(tE(V)||!I8(c))}function I8(n){return vbe(n)||!!n.constEnumOnlyModule}function Gte(n,a){if(N.assert(It),yb(n)){const c=Cr(n),d=c&&eo(c);if(d!=null&&d.referenced)return!0;const h=eo(c).aliasTarget;if(h&&fd(n)&32&&Ru(h)&111551&&(tE(V)||!I8(h)))return!0}return a?!!Uo(n,c=>Gte(c,a)):!1}function AWe(n){if(nm(n.body)){if(Oy(n)||Fv(n))return!1;const a=Cr(n),c=UE(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function IWe(n){return!!Y&&!U4(n)&&!i_(n)&&!!n.initializer&&!Qr(n,31)}function Yyt(n){return Y&&U4(n)&&!n.initializer&&Qr(n,31)}function $yt(n){const a=Lo(n,Dc);if(!a)return!1;const c=Cr(a);return!c||!(c.flags&16)?!1:!!qc(Lp(c),d=>d.flags&111551&&E7(d.valueDeclaration))}function Qyt(n){const a=Lo(n,Dc);if(!a)return et;const c=Cr(a);return c&&As(_r(c))||et}function qD(n){var a;const c=n.id||0;return c<0||c>=RE.length?0:((a=RE[c])==null?void 0:a.flags)||0}function JD(n){return iWe(n.parent),Zr(n).enumMemberValue}function xWe(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function Kbe(n){if(n.kind===306)return JD(n);const a=Zr(n).resolvedSymbol;if(a&&a.flags&8){const c=a.valueDeclaration;if(z1(c.parent))return JD(c)}}function Xbe(n){return!!(n.flags&524288)&&$o(n,0).length>0}function Zyt(n,a){var c;const d=Lo(n,ep);if(!d||a&&(a=Lo(a),!a))return 0;let h=!1;if(xd(d)){const ne=Ys(jp(d),111551,!0,!0,a);h=!!((c=ne==null?void 0:ne.declarations)!=null&&c.every(m0))}const y=Ys(d,111551,!0,!0,a),x=y&&y.flags&2097152?Vc(y):y;h||(h=!!(y&&Gf(y,111551)));const k=Ys(d,788968,!0,!0,a),z=k&&k.flags&2097152?Vc(k):k;if(y||h||(h=!!(k&&Gf(k,788968))),x&&x===z){const ne=pve(!1);if(ne&&x===ne)return 9;const Te=_r(x);if(Te&&Ua(Te))return h?10:1}if(!z)return h?11:0;const K=nl(z);return Jt(K)?h?11:0:K.flags&3?11:Nu(K,245760)?2:Nu(K,528)?6:Nu(K,296)?3:Nu(K,2112)?4:Nu(K,402653316)?5:Ha(K)?7:Nu(K,12288)?8:Xbe(K)?10:Yf(K)?7:11}function ebt(n,a,c,d,h){const y=Lo(n,jie);if(!y)return O.createToken(133);const x=Cr(y);let k=x&&!(x.flags&133120)?$E(_r(x)):_t;return k.flags&8192&&k.symbol===x&&(c|=1048576),h&&(k=qb(k)),At.typeToTypeNode(k,a,c|1024,d)}function tbt(n,a,c,d){const h=Lo(n,ta);if(!h)return O.createToken(133);const y=vm(h);return At.typeToTypeNode(ys(y),a,c|1024,d)}function nbt(n,a,c,d){const h=Lo(n,bt);if(!h)return O.createToken(133);const y=Yp(vWe(h));return At.typeToTypeNode(y,a,c|1024,d)}function rbt(n){return be.has(bl(n))}function x8(n,a){const c=Zr(n).resolvedSymbol;if(c)return c;let d=n;if(a){const h=n.parent;Yu(h)&&n===h.name&&(d=$(h))}return Tl(d,n.escapedText,3257279,void 0,void 0,!0)}function ibt(n){const a=Zr(n).resolvedSymbol;return a&&a!==pt?a:Tl(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function obt(n){if(!ul(n)){const a=Lo(n,Ue);if(a){const c=x8(a);if(c)return vf(c).valueDeclaration}}}function abt(n){if(!ul(n)){const a=Lo(n,Ue);if(a){const c=x8(a);if(c)return Vn(vf(c).declarations,d=>{switch(d.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function sbt(n){return s3(n)||Wi(n)&&HB(n)?KE(_r(Cr(n))):!1}function lbt(n,a,c){const d=n.flags&1056?At.symbolToExpression(n.symbol,111551,a,void 0,c):n===or?O.createTrue():n===nn&&O.createFalse();if(d)return d;const h=n.value;return typeof h=="object"?O.createBigIntLiteral(h):typeof h=="string"?O.createStringLiteral(h):h<0?O.createPrefixUnaryExpression(41,O.createNumericLiteral(-h)):O.createNumericLiteral(h)}function cbt(n,a){const c=_r(Cr(n));return lbt(c,n,a)}function RWe(n){return n?(J0(n),Jn(n).localJsxFactory||nv):nv}function Ybe(n){if(n){const a=Jn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const c=a.pragmas.get("jsxfrag"),d=Do(c)?c[0]:c;if(d)return a.localJsxFragmentFactory=II(d.arguments.factory,se),a.localJsxFragmentFactory}}if(V.jsxFragmentFactory)return II(V.jsxFragmentFactory,se)}function ubt(){const n=e.getResolvedTypeReferenceDirectives();let a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:z},K,ne)=>{if(!(z!=null&&z.resolvedFileName))return;const Te=e.getSourceFile(z.resolvedFileName);Te&&k(Te,K,ne)})),{getReferencedExportContainer:Uyt,getReferencedImportDeclaration:Hyt,getReferencedDeclarationWithCollidingName:Jyt,isDeclarationWithCollidingName:Kyt,isValueAliasDeclaration:z=>{const K=Lo(z);return K&&It?TWe(K):!0},hasGlobalName:rbt,isReferencedAliasDeclaration:(z,K)=>{const ne=Lo(z);return ne&&It?Gte(ne,K):!0},getNodeCheckFlags:z=>{const K=Lo(z);return K?qD(K):0},isTopLevelValueImportEqualsWithEntityName:Xyt,isDeclarationVisible:p_,isImplementationOfOverload:AWe,isRequiredInitializedParameter:IWe,isOptionalUninitializedParameterProperty:Yyt,isExpandoFunctionDeclaration:$yt,getPropertiesOfContainerFunction:Qyt,createTypeOfDeclaration:ebt,createReturnTypeOfSignatureDeclaration:tbt,createTypeOfExpression:nbt,createLiteralConstValue:cbt,isSymbolAccessible:Li,isEntityNameVisible:xb,getConstantValue:z=>{const K=Lo(z,xWe);return K?Kbe(K):void 0},collectLinkedAliases:KP,getReferencedValueDeclaration:obt,getReferencedValueDeclarations:abt,getTypeReferenceSerializationKind:Zyt,isOptionalParameter:U4,moduleExportsSomeValue:Vyt,isArgumentsLocalBinding:Gyt,getExternalModuleFileFromDeclaration:z=>{const K=Lo(z,kie);return K&&$be(K)},getTypeReferenceDirectivesForEntityName:h,getTypeReferenceDirectivesForSymbol:y,isLiteralConstDeclaration:sbt,isLateBound:z=>{const K=Lo(z,Yu),ne=K&&Cr(K);return!!(ne&&Cl(ne)&4096)},getJsxFactoryEntity:RWe,getJsxFragmentFactoryEntity:Ybe,getAllAccessorDeclarations(z){z=Lo(z,O6);const K=z.kind===178?177:178,ne=gl(Cr(z),K),Te=ne&&ne.pos<z.pos?ne:z,ve=ne&&ne.pos<z.pos?z:ne,Ge=z.kind===178?z:ne,vt=z.kind===177?z:ne;return{firstAccessor:Te,secondAccessor:ve,setAccessor:Ge,getAccessor:vt}},getSymbolOfExternalModuleSpecifier:z=>sv(z,z,void 0),isBindingCapturedByNode:(z,K)=>{const ne=Lo(z),Te=Lo(K);return!!ne&&!!Te&&(Wi(Te)||os(Te))&&kft(ne,Te)},getDeclarationStatementsForSourceFile:(z,K,ne,Te)=>{const ve=Lo(z);N.assert(ve&&ve.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const Ge=Cr(z);return Ge?Ge.exports?At.symbolTableToDeclarationStatements(Ge.exports,z,K,ne,Te):[]:z.locals?At.symbolTableToDeclarationStatements(z.locals,z,K,ne,Te):[]},isImportRequiredByAugmentation:c,tryFindAmbientModule:z=>{const K=Lo(z),ne=K&&hs(K)?K.text:void 0;return ne!==void 0?ree(ne,!0):void 0}};function c(z){const K=Jn(z);if(!K.symbol)return!1;const ne=$be(z);if(!ne||ne===K)return!1;const Te=Wh(K.symbol);for(const ve of Go(Te.values()))if(ve.mergeId){const Ge=ds(ve);if(Ge.declarations){for(const vt of Ge.declarations)if(Jn(vt)===ne)return!0}}return!1}function d(z){return z.parent&&z.parent.kind===233&&z.parent.parent&&z.parent.parent.kind===298}function h(z){if(!a)return;let K;z.parent.kind===167?K=1160127:(K=790504,(z.kind===80&&kS(z)||z.kind===211&&!d(z))&&(K=1160127));const ne=Ys(z,K,!0);return ne&&ne!==pt?y(ne,K):void 0}function y(z,K){if(!a||!x(z))return;let ne;for(const Te of z.declarations)if(Te.symbol&&Te.symbol.flags&K){const ve=Jn(Te),Ge=a.get(ve.path);if(Ge)(ne||(ne=[])).push(Ge);else return}return ne}function x(z){if(!z.declarations)return!1;let K=z;for(;;){const ne=Md(K);if(ne)K=ne;else break}if(K.valueDeclaration&&K.valueDeclaration.kind===312&&K.flags&512)return!1;for(const ne of z.declarations){const Te=Jn(ne);if(a.has(Te.path))return!0}return!1}function k(z,K,ne){if(!a.has(z.path)){a.set(z.path,[K,ne]);for(const{fileName:Te}of z.referencedFiles){const ve=MW(Te,z.fileName),Ge=e.getSourceFile(ve);Ge&&k(Ge,K,ne||z.impliedNodeFormat)}}}}function $be(n){const a=n.kind===267?ni(n.name,La):A2(n),c=sv(a,a,void 0);if(!!c)return gl(c,312)}function dbt(){for(const a of e.getSourceFiles())Sle(a,V);Ns=new Map;let n;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!Bp(a)){const c=a.locals.get("globalThis");if(c!=null&&c.declarations)for(const d of c.declarations)cs.add(Fr(d,m.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));u_(be,a.locals)}a.jsGlobalAugmentations&&u_(be,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(Yc=Ro(Yc,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((d,h)=>{be.has(h)||be.set(h,d)})}if(n)for(const a of n)for(const c of a)!R_(c.parent)||cD(c);if(CE(be,yT,m.Declaration_name_conflicts_with_built_in_global_identifier_0),eo(He).type=Lt,eo(Ft).type=cc("IArguments",0,!0),eo(pt).type=_t,eo(it).type=Vf(16,it),Qo=cc("Array",1,!0),Me=cc("Object",0,!0),Ot=cc("Function",0,!0),Yn=he&&cc("CallableFunction",0,!0)||Ot,Io=he&&cc("NewableFunction",0,!0)||Ot,sc=cc("String",0,!0),Ic=cc("Number",0,!0),ml=cc("Boolean",0,!0),Sl=cc("RegExp",0,!0),lc=Uu(j),$c=Uu(ot),$c===wa&&($c=Vs(void 0,X,et,et,et)),ra=I8e("ReadonlyArray",1)||Qo,ff=ra?J4(ra,[j]):lc,Kl=I8e("ThisType",1),n)for(const a of n)for(const c of a)R_(c.parent)||cD(c);Ns.forEach(({firstFile:a,secondFile:c,conflictingSymbols:d})=>{if(d.size<8)d.forEach(({isBlockScoped:h,firstFileLocations:y,secondFileLocations:x},k)=>{const z=h?m.Cannot_redeclare_block_scoped_variable_0:m.Duplicate_identifier_0;for(const K of y)rv(K,z,k,x);for(const K of x)rv(K,z,k,y)});else{const h=Go(d.keys()).join(", ");cs.add(Fa(Fr(a,m.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,h),Fr(c,m.Conflicts_are_in_this_file))),cs.add(Fa(Fr(c,m.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,h),Fr(a,m.Conflicts_are_in_this_file)))}}),Ns=void 0}function Lc(n,a){if((s&a)!==a&&V.importHelpers){const c=Jn(n);if(BA(c,V)&&!(n.flags&33554432)){const d=fbt(c,n);if(d!==pt){const h=a&~s;for(let y=1;y<=33554432;y<<=1)if(h&y)for(const x of pbt(y)){if(o.has(x))continue;o.add(x);const k=Xl(Kd(Wh(d),bl(x),111551));k?y&524288?St(UE(k),z=>$p(z)>3)||Xe(n,m.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,qy,x,4):y&1048576?St(UE(k),z=>$p(z)>4)||Xe(n,m.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,qy,x,5):y&1024&&(St(UE(k),z=>$p(z)>2)||Xe(n,m.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,qy,x,3)):Xe(n,m.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,qy,x)}}s|=a}}}function pbt(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"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return N.fail("Unrecognized helper")}}function fbt(n,a){return l||(l=X_(n,qy,m.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||pt),l}function Cg(n){var a;const c=hbt(n)||mbt(n);if(c!==void 0)return c;if(No(n)&&K1(n))return yu(n,m.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const d=Fl(n)?n.declarationList.flags&7:0;let h,y,x,k,z,K=0,ne=!1,Te=!1;for(const ve of n.modifiers)if(Au(ve)){if(y3(re,n,n.parent,n.parent.parent)){if(re&&(n.kind===177||n.kind===178)){const Ge=wS(n.parent.members,n);if(If(Ge.firstAccessor)&&n===Ge.secondAccessor)return yu(n,m.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!nm(n.body)?yu(n,m.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):yu(n,m.Decorators_are_not_valid_here);if(K&-34849)return Sn(ve,m.Decorators_are_not_valid_here);if(Te&&K&98303){N.assertIsDefined(z);const Ge=Jn(ve);return rS(Ge)?!1:(Fa(Xe(ve,m.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Fr(z,m.Decorator_used_before_export_here)),!0)}K|=32768,K&98303?K&32&&(ne=!0):Te=!0,z!=null||(z=ve)}else{if(ve.kind!==148){if(n.kind===171||n.kind===173)return Sn(ve,m._0_modifier_cannot_appear_on_a_type_member,ma(ve.kind));if(n.kind===181&&(ve.kind!==126||!di(n.parent)))return Sn(ve,m._0_modifier_cannot_appear_on_an_index_signature,ma(ve.kind))}if(ve.kind!==103&&ve.kind!==147&&ve.kind!==87&&n.kind===168)return Sn(ve,m._0_modifier_cannot_appear_on_a_type_parameter,ma(ve.kind));switch(ve.kind){case 87:{if(n.kind!==266&&n.kind!==168)return Sn(n,m.A_class_member_cannot_have_the_0_keyword,ma(87));const xt=fm(n.parent)&&y0(n.parent)||n.parent;if(n.kind===168&&!(Js(xt)||di(xt)||Ah(xt)||Y2(xt)||pI(xt)||sw(xt)||Th(xt)))return Sn(ve,m._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,ma(ve.kind));break}case 164:if(K&16)return Sn(ve,m._0_modifier_already_seen,"override");if(K&128)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(K&8)return Sn(ve,m._0_modifier_must_precede_1_modifier,"override","readonly");if(K&512)return Sn(ve,m._0_modifier_must_precede_1_modifier,"override","accessor");if(K&1024)return Sn(ve,m._0_modifier_must_precede_1_modifier,"override","async");K|=16,k=ve;break;case 125:case 124:case 123:const Ge=GT(XA(ve.kind));if(K&7)return Sn(ve,m.Accessibility_modifier_already_seen);if(K&16)return Sn(ve,m._0_modifier_must_precede_1_modifier,Ge,"override");if(K&256)return Sn(ve,m._0_modifier_must_precede_1_modifier,Ge,"static");if(K&512)return Sn(ve,m._0_modifier_must_precede_1_modifier,Ge,"accessor");if(K&8)return Sn(ve,m._0_modifier_must_precede_1_modifier,Ge,"readonly");if(K&1024)return Sn(ve,m._0_modifier_must_precede_1_modifier,Ge,"async");if(n.parent.kind===268||n.parent.kind===312)return Sn(ve,m._0_modifier_cannot_appear_on_a_module_or_namespace_element,Ge);if(K&64)return ve.kind===123?Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,Ge,"abstract"):Sn(ve,m._0_modifier_must_precede_1_modifier,Ge,"abstract");if(ud(n))return Sn(ve,m.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);K|=XA(ve.kind);break;case 126:if(K&256)return Sn(ve,m._0_modifier_already_seen,"static");if(K&8)return Sn(ve,m._0_modifier_must_precede_1_modifier,"static","readonly");if(K&1024)return Sn(ve,m._0_modifier_must_precede_1_modifier,"static","async");if(K&512)return Sn(ve,m._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===312)return Sn(ve,m._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return Sn(ve,m._0_modifier_cannot_appear_on_a_parameter,"static");if(K&64)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(K&16)return Sn(ve,m._0_modifier_must_precede_1_modifier,"static","override");K|=256,h=ve;break;case 129:if(K&512)return Sn(ve,m._0_modifier_already_seen,"accessor");if(K&8)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(K&128)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return Sn(ve,m.accessor_modifier_can_only_appear_on_a_property_declaration);K|=512;break;case 148:if(K&8)return Sn(ve,m._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return Sn(ve,m.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(K&512)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");K|=8;break;case 95:if(V.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==265&&n.kind!==264&&n.kind!==267&&n.parent.kind===312&&(G===1||Jn(n).impliedNodeFormat===1))return Sn(ve,m.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(K&32)return Sn(ve,m._0_modifier_already_seen,"export");if(K&128)return Sn(ve,m._0_modifier_must_precede_1_modifier,"export","declare");if(K&64)return Sn(ve,m._0_modifier_must_precede_1_modifier,"export","abstract");if(K&1024)return Sn(ve,m._0_modifier_must_precede_1_modifier,"export","async");if(di(n.parent))return Sn(ve,m._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return Sn(ve,m._0_modifier_cannot_appear_on_a_parameter,"export");if(d===4)return Sn(ve,m._0_modifier_cannot_appear_on_a_using_declaration,"export");if(d===6)return Sn(ve,m._0_modifier_cannot_appear_on_an_await_using_declaration,"export");K|=32;break;case 90:const vt=n.parent.kind===312?n.parent:n.parent.parent;if(vt.kind===267&&!Ou(vt))return Sn(ve,m.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(d===4)return Sn(ve,m._0_modifier_cannot_appear_on_a_using_declaration,"default");if(d===6)return Sn(ve,m._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(K&32){if(ne)return Sn(z,m.Decorators_are_not_valid_here)}else return Sn(ve,m._0_modifier_must_precede_1_modifier,"export","default");K|=2048;break;case 138:if(K&128)return Sn(ve,m._0_modifier_already_seen,"declare");if(K&1024)return Sn(ve,m._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(K&16)return Sn(ve,m._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(di(n.parent)&&!qo(n))return Sn(ve,m._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return Sn(ve,m._0_modifier_cannot_appear_on_a_parameter,"declare");if(d===4)return Sn(ve,m._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(d===6)return Sn(ve,m._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return Sn(ve,m.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(ud(n))return Sn(ve,m._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(K&512)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");K|=128,y=ve;break;case 128:if(K&64)return Sn(ve,m._0_modifier_already_seen,"abstract");if(n.kind!==263&&n.kind!==185){if(n.kind!==174&&n.kind!==172&&n.kind!==177&&n.kind!==178)return Sn(ve,m.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&Qr(n.parent,64))){const xt=n.kind===172?m.Abstract_properties_can_only_appear_within_an_abstract_class:m.Abstract_methods_can_only_appear_within_an_abstract_class;return Sn(ve,xt)}if(K&256)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(K&2)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(K&1024&&x)return Sn(x,m._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(K&16)return Sn(ve,m._0_modifier_must_precede_1_modifier,"abstract","override");if(K&512)return Sn(ve,m._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(cd(n)&&n.name.kind===81)return Sn(ve,m._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");K|=64;break;case 134:if(K&1024)return Sn(ve,m._0_modifier_already_seen,"async");if(K&128||n.parent.flags&33554432)return Sn(ve,m._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return Sn(ve,m._0_modifier_cannot_appear_on_a_parameter,"async");if(K&64)return Sn(ve,m._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");K|=1024,x=ve;break;case 103:case 147:{const xt=ve.kind===103?8192:16384,cn=ve.kind===103?"in":"out",sn=fm(n.parent)&&(y0(n.parent)||un((a=R2(n.parent))==null?void 0:a.tags,YS))||n.parent;if(n.kind!==168||sn&&!(gd(sn)||di(sn)||Lm(sn)||YS(sn)))return Sn(ve,m._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,cn);if(K&xt)return Sn(ve,m._0_modifier_already_seen,cn);if(xt&8192&&K&16384)return Sn(ve,m._0_modifier_must_precede_1_modifier,"in","out");K|=xt;break}}}return n.kind===176?K&256?Sn(h,m._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):K&16?Sn(k,m._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):K&1024?Sn(x,m._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&K&128?Sn(y,m.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&K&31&&na(n.name)?Sn(n,m.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&K&31&&n.dotDotDotToken?Sn(n,m.A_parameter_property_cannot_be_declared_using_a_rest_parameter):K&1024?vbt(n,x):!1}function mbt(n){if(!n.modifiers)return!1;const a=_bt(n);return a&&yu(a,m.Modifiers_cannot_appear_here)}function Vte(n,a){const c=un(n.modifiers,Ra);return c&&c.kind!==a?c:void 0}function _bt(n){switch(n.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return un(n.modifiers,Ra);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return Vte(n,134);case 263:case 185:return Vte(n,128);case 231:case 264:case 265:return un(n.modifiers,Ra);case 243:return n.declarationList.flags&4?Vte(n,135):un(n.modifiers,Ra);case 266:return Vte(n,87);default:N.assertNever(n)}}}function hbt(n){const a=gbt(n);return a&&yu(a,m.Decorators_are_not_valid_here)}function gbt(n){return cq(n)?un(n.modifiers,Au):void 0}function vbt(n,a){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return Sn(a,m._0_modifier_cannot_be_used_here,"async")}function Mx(n,a=m.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?iS(n[0],n.end-1,1,a):!1}function DWe(n,a){if(n&&n.length===0){const c=n.pos-1,d=Wa(a.text,n.end)+1;return iS(a,c,d-c,m.Type_parameter_list_cannot_be_empty)}return!1}function ybt(n){let a=!1;const c=n.length;for(let d=0;d<c;d++){const h=n[d];if(h.dotDotDotToken){if(d!==c-1)return Sn(h.dotDotDotToken,m.A_rest_parameter_must_be_last_in_a_parameter_list);if(h.flags&33554432||Mx(n,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),h.questionToken)return Sn(h.questionToken,m.A_rest_parameter_cannot_be_optional);if(h.initializer)return Sn(h.name,m.A_rest_parameter_cannot_have_an_initializer)}else if(U4(h)){if(a=!0,h.questionToken&&h.initializer)return Sn(h.name,m.Parameter_cannot_have_question_mark_and_initializer)}else if(a&&!h.initializer)return Sn(h.name,m.A_required_parameter_cannot_follow_an_optional_parameter)}}function bbt(n){return Vn(n,a=>!!a.initializer||na(a.name)||eg(a))}function Ebt(n){if(se>=3){const a=n.body&&Yo(n.body)&&oq(n.body.statements);if(a){const c=bbt(n.parameters);if(Pe(c)){Ve(c,h=>{Fa(Xe(h,m.This_parameter_is_not_allowed_with_use_strict_directive),Fr(a,m.use_strict_directive_used_here))});const d=c.map((h,y)=>y===0?Fr(h,m.Non_simple_parameter_declared_here):Fr(h,m.and_here));return Fa(Xe(a,m.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...d),!0}}}return!1}function jte(n){const a=Jn(n);return Cg(n)||DWe(n.typeParameters,a)||ybt(n.parameters)||Tbt(n,a)||Js(n)&&Ebt(n)}function Sbt(n){const a=Jn(n);return Dbt(n)||DWe(n.typeParameters,a)}function Tbt(n,a){if(!Ks(n))return!1;n.typeParameters&&!(Pe(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&Rc(a.fileName,[".mts",".cts"])&&Sn(n.typeParameters[0],m.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:c}=n,d=Rs(a,c.pos).line,h=Rs(a,c.end).line;return d!==h&&Sn(c,m.Line_terminator_not_permitted_before_arrow)}function Abt(n){const a=n.parameters[0];if(n.parameters.length!==1)return Sn(a?a.name:n,m.An_index_signature_must_have_exactly_one_parameter);if(Mx(n.parameters,m.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return Sn(a.dotDotDotToken,m.An_index_signature_cannot_have_a_rest_parameter);if(j3(a))return Sn(a.name,m.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return Sn(a.questionToken,m.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return Sn(a.name,m.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return Sn(a.name,m.An_index_signature_parameter_must_have_a_type_annotation);const c=Ai(a.type);return qm(c,d=>!!(d.flags&8576))||kD(c)?Sn(a.name,m.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):fp(c,see)?n.type?!1:Sn(n,m.An_index_signature_must_have_a_type_annotation):Sn(a.name,m.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function Ibt(n){return Cg(n)||Abt(n)}function xbt(n,a){if(a&&a.length===0){const c=Jn(n),d=a.pos-1,h=Wa(c.text,a.end)+1;return iS(c,d,h-d,m.Type_argument_list_cannot_be_empty)}return!1}function UB(n,a){return Mx(a)||xbt(n,a)}function Rbt(n){return n.questionDotToken||n.flags&64?Sn(n.template,m.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function NWe(n){const a=n.types;if(Mx(a))return!0;if(a&&a.length===0){const c=ma(n.token);return iS(n,a.pos,0,m._0_list_cannot_be_empty,c)}return St(a,CWe)}function CWe(n){return Kv(n)&&NC(n.expression)&&n.typeArguments?Sn(n,m.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):UB(n,n.typeArguments)}function Dbt(n){let a=!1,c=!1;if(!Cg(n)&&n.heritageClauses)for(const d of n.heritageClauses){if(d.token===96){if(a)return yu(d,m.extends_clause_already_seen);if(c)return yu(d,m.extends_clause_must_precede_implements_clause);if(d.types.length>1)return yu(d.types[1],m.Classes_can_only_extend_a_single_class);a=!0}else{if(N.assert(d.token===119),c)return yu(d,m.implements_clause_already_seen);c=!0}NWe(d)}}function Nbt(n){let a=!1;if(n.heritageClauses)for(const c of n.heritageClauses){if(c.token===96){if(a)return yu(c,m.extends_clause_already_seen);a=!0}else return N.assert(c.token===119),yu(c,m.Interface_declaration_cannot_have_implements_clause);NWe(c)}return!1}function Ute(n){if(n.kind!==167)return!1;const a=n;return a.expression.kind===226&&a.expression.operatorToken.kind===28?Sn(a.expression,m.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Qbe(n){if(n.asteriskToken){if(N.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return Sn(n.asteriskToken,m.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return Sn(n.asteriskToken,m.An_overload_signature_cannot_be_declared_as_a_generator)}}function Zbe(n,a){return!!n&&Sn(n,a)}function PWe(n,a){return!!n&&Sn(n,a)}function Cbt(n,a){const c=new Map;for(const d of n.properties){if(d.kind===305){if(a){const x=Ss(d.expression);if(hd(x)||za(x))return Sn(d.expression,m.A_rest_element_cannot_contain_a_binding_pattern)}continue}const h=d.name;if(h.kind===167&&Ute(h),d.kind===304&&!a&&d.objectAssignmentInitializer&&Sn(d.equalsToken,m.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),h.kind===81&&Sn(h,m.Private_identifiers_are_not_allowed_outside_class_bodies),km(d)&&d.modifiers)for(const x of d.modifiers)Ra(x)&&(x.kind!==134||d.kind!==174)&&Sn(x,m._0_modifier_cannot_be_used_here,bc(x));else if(xse(d)&&d.modifiers)for(const x of d.modifiers)Ra(x)&&Sn(x,m._0_modifier_cannot_be_used_here,bc(x));let y;switch(d.kind){case 304:case 303:PWe(d.exclamationToken,m.A_definite_assignment_assertion_is_not_permitted_in_this_context),Zbe(d.questionToken,m.An_object_member_cannot_be_declared_optional),h.kind===9&&n0e(h),y=4;break;case 174:y=8;break;case 177:y=1;break;case 178:y=2;break;default:N.assertNever(d,"Unexpected syntax kind:"+d.kind)}if(!a){const x=r0e(h);if(x===void 0)continue;const k=c.get(x);if(!k)c.set(x,y);else if(y&8&&k&8)Sn(h,m.Duplicate_identifier_0,bc(h));else if(y&4&&k&4)Sn(h,m.An_object_literal_cannot_have_multiple_properties_with_the_same_name,bc(h));else if(y&3&&k&3)if(k!==3&&y!==k)c.set(x,y|k);else return Sn(h,m.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Sn(h,m.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Pbt(n){Mbt(n.tagName),UB(n,n.typeArguments);const a=new Map;for(const c of n.attributes.properties){if(c.kind===293)continue;const{name:d,initializer:h}=c,y=yC(d);if(!a.get(y))a.set(y,!0);else return Sn(d,m.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(h&&h.kind===294&&!h.expression)return Sn(h,m.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function Mbt(n){if(Br(n)&&n_(n.expression))return Sn(n.expression,m.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(n_(n)&&o7(V)&&!L2(n.namespace.escapedText))return Sn(n,m.React_components_cannot_include_JSX_namespace_names)}function Lbt(n){if(n.expression&&zC(n.expression))return Sn(n.expression,m.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function MWe(n){if(Sv(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){const a=Jn(n);if(h3(n)){if(!rS(a))switch(BA(a,V)||cs.add(Fr(n.awaitModifier,m.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),G){case 100:case 199:if(a.impliedNodeFormat===1){cs.add(Fr(n.awaitModifier,m.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(se>=4)break;default:cs.add(Fr(n.awaitModifier,m.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!rS(a)){const c=Fr(n.awaitModifier,m.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),d=Vp(n);if(d&&d.kind!==176){N.assert((Jc(d)&2)===0,"Enclosing function should never be an async function.");const h=Fr(d,m.Did_you_mean_to_mark_this_function_as_async);Fa(c,h)}return cs.add(c),!0}return!1}if(pw(n)&&!(n.flags&65536)&&Ue(n.initializer)&&n.initializer.escapedText==="async")return Sn(n.initializer,m.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){const a=n.initializer;if(!t0e(a)){const c=a.declarations;if(!c.length)return!1;if(c.length>1){const h=n.kind===249?m.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:m.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return yu(a.declarations[1],h)}const d=c[0];if(d.initializer){const h=n.kind===249?m.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:m.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Sn(d.name,h)}if(d.type){const h=n.kind===249?m.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:m.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Sn(d,h)}}}return!1}function kbt(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(se<1)return Sn(n.name,m.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(se<2&&Qi(n.name))return Sn(n.name,m.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!Qr(n,64))return iS(n,n.end-1,1,m._0_expected,"{")}if(n.body){if(Qr(n,64))return Sn(n,m.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return Sn(n.body,m.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return Sn(n.name,m.An_accessor_cannot_have_type_parameters);if(!wbt(n))return Sn(n.name,n.kind===177?m.A_get_accessor_cannot_have_parameters:m.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===178){if(n.type)return Sn(n.name,m.A_set_accessor_cannot_have_a_return_type_annotation);const a=N.checkDefined(YN(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return Sn(a.dotDotDotToken,m.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return Sn(a.questionToken,m.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return Sn(n.name,m.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function wbt(n){return e0e(n)||n.parameters.length===(n.kind===177?0:1)}function e0e(n){if(n.parameters.length===(n.kind===177?1:2))return J1(n)}function Obt(n){if(n.operator===158){if(n.type.kind!==155)return Sn(n.type,m._0_expected,ma(155));let a=hk(n.parent);if(dr(a)&&pE(a)){const c=CS(a);c&&(a=UA(c)||c)}switch(a.kind){case 260:const c=a;if(c.name.kind!==80)return Sn(n,m.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!wN(c))return Sn(n,m.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return Sn(a.name,m.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!la(a)||!$N(a))return Sn(a.name,m.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Qr(a,8))return Sn(a.name,m.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Sn(n,m.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return yu(n,m.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,ma(155))}function RM(n,a){if(ect(n))return Sn(n,a)}function LWe(n){if(jte(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&$a(n.modifiers).kind===134))return yu(n,m.Modifiers_cannot_appear_here);if(Zbe(n.questionToken,m.An_object_member_cannot_be_declared_optional))return!0;if(PWe(n.exclamationToken,m.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return iS(n,n.end-1,1,m._0_expected,"{")}if(Qbe(n))return!0}if(di(n.parent)){if(se<2&&Qi(n.name))return Sn(n.name,m.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return RM(n.name,m.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.kind===174&&!n.body)return RM(n.name,m.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(n.parent.kind===264)return RM(n.name,m.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===187)return RM(n.name,m.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Wbt(n){let a=n;for(;a;){if(a2(a))return Sn(n,m.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 256:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===251&&!wy(a.statement,!0)?Sn(n,m.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(n.kind===252&&!n.label)return!1;break;default:if(wy(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){const c=n.kind===252?m.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:m.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Sn(n,c)}else{const c=n.kind===252?m.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:m.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Sn(n,c)}}function Fbt(n){if(n.dotDotDotToken){const a=n.parent.elements;if(n!==rs(a))return Sn(n,m.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Mx(a,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return Sn(n.name,m.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return iS(n,n.initializer.pos-1,1,m.A_rest_element_cannot_have_an_initializer)}function kWe(n){return nf(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function zbt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function Bbt(n){if((Br(n)||el(n)&&kWe(n.argumentExpression))&&Jl(n.expression))return!!(uc(n).flags&1056)}function wWe(n){const a=n.initializer;if(a){const c=!(kWe(a)||Bbt(a)||a.kind===112||a.kind===97||zbt(a));if((s3(n)||Wi(n)&&HB(n))&&!n.type){if(c)return Sn(a,m.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Sn(a,m.Initializers_are_not_allowed_in_ambient_contexts)}}function Gbt(n){const a=oS(n),c=a&7;if(na(n.name))switch(c){case 6:return Sn(n,m._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Sn(n,m._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(a&33554432)wWe(n);else if(!n.initializer){if(na(n.name)&&!na(n.parent))return Sn(n,m.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return Sn(n,m._0_declarations_must_be_initialized,"await using");case 4:return Sn(n,m._0_declarations_must_be_initialized,"using");case 2:return Sn(n,m._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||a&33554432)){const d=n.initializer?m.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?m.A_definite_assignment_assertion_is_not_permitted_in_this_context:m.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Sn(n.exclamationToken,d)}return(G<5||Jn(n).impliedNodeFormat===1)&&G!==4&&!(n.parent.parent.flags&33554432)&&Qr(n.parent.parent,32)&&OWe(n.name),!!c&&WWe(n.name)}function OWe(n){if(n.kind===80){if(Rr(n)==="__esModule")return Ubt("noEmit",n,m.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const a=n.elements;for(const c of a)if(!Kc(c))return OWe(c.name)}return!1}function WWe(n){if(n.kind===80){if(n.escapedText==="let")return Sn(n,m.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const a=n.elements;for(const c of a)Kc(c)||WWe(c.name)}return!1}function t0e(n){const a=n.declarations;if(Mx(n.declarations))return!0;if(!n.declarations.length)return iS(n,a.pos,a.end-a.pos,m.Variable_declaration_list_cannot_be_empty);const c=n.flags&7;return(c===4||c===6)&&y5(n.parent)?Sn(n,c===4?m.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:m.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):c===6?e5e(n):!1}function FWe(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return FWe(n.parent)}return!0}function Vbt(n){if(!FWe(n.parent)){const a=oS(n.declarationList)&7;if(a){const c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":N.fail("Unknown BlockScope flag");return Sn(n,m._0_declarations_can_only_be_declared_inside_a_block,c)}}}function jbt(n){const a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return Sn(n.name,m._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ki(n.name.escapedText),ma(n.keywordToken),"target");break;case 102:if(a!=="meta")return Sn(n.name,m._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ki(n.name.escapedText),ma(n.keywordToken),"meta");break}}function rS(n){return n.parseDiagnostics.length>0}function yu(n,a,...c){const d=Jn(n);if(!rS(d)){const h=bh(d,n.pos);return cs.add(ru(d,h.start,h.length,a,...c)),!0}return!1}function iS(n,a,c,d,...h){const y=Jn(n);return rS(y)?!1:(cs.add(ru(y,a,c,d,...h)),!0)}function Ubt(n,a,c,...d){const h=Jn(a);return rS(h)?!1:(s_(n,a,c,...d),!0)}function Sn(n,a,...c){const d=Jn(n);return rS(d)?!1:(cs.add(Fr(n,a,...c)),!0)}function Hbt(n){const a=dr(n)?V3(n):void 0,c=n.typeParameters||a&&eu(a);if(c){const d=c.pos===c.end?c.pos:Wa(Jn(n).text,c.pos);return iS(n,d,c.end-d,m.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function qbt(n){const a=n.type||lm(n);if(a)return Sn(a,m.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Jbt(n){if(ss(n.name)&&vr(n.name.expression)&&n.name.expression.operatorToken.kind===103)return Sn(n.parent.members[0],m.A_mapped_type_may_not_declare_properties_or_methods);if(di(n.parent)){if(La(n.name)&&n.name.text==="constructor")return Sn(n.name,m.Classes_may_not_have_a_field_named_constructor);if(RM(n.name,m.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(se<2&&Qi(n.name))return Sn(n.name,m.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(se<2&&Fd(n))return Sn(n.name,m.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Fd(n)&&Zbe(n.questionToken,m.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(RM(n.name,m.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(N.assertNode(n,Sp),n.initializer)return Sn(n.initializer,m.An_interface_property_cannot_have_an_initializer)}else if(Ap(n.parent)){if(RM(n.name,m.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(N.assertNode(n,Sp),n.initializer)return Sn(n.initializer,m.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&wWe(n),qo(n)&&n.exclamationToken&&(!di(n.parent)||!n.type||n.initializer||n.flags&33554432||la(n)||Y1(n))){const a=n.initializer?m.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?m.A_definite_assignment_assertion_is_not_permitted_in_this_context:m.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Sn(n.exclamationToken,a)}}function Kbt(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||Qr(n,2208)?!1:yu(n,m.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Xbt(n){for(const a of n.statements)if((Yu(a)||a.kind===243)&&Kbt(a))return!0;return!1}function Ybt(n){return!!(n.flags&33554432)&&Xbt(n)}function Sv(n){if(n.flags&33554432){if(!Zr(n).hasReportedStatementInAmbientContext&&(ta(n.parent)||ky(n.parent)))return Zr(n).hasReportedStatementInAmbientContext=yu(n,m.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===312){const c=Zr(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=yu(n,m.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function n0e(n){const a=bc(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||l_(!1,Fr(n,m.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function $bt(n){return!!(!($y(n.parent)||Zy(n.parent)&&$y(n.parent.parent))&&se<7&&Sn(n,m.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Qbt(n,a,...c){const d=Jn(n);if(!rS(d)){const h=bh(d,n.pos);return cs.add(ru(d,tc(h),0,a,...c)),!0}return!1}function Zbt(){return sp||(sp=[],be.forEach((n,a)=>{aJ.test(a)&&sp.push(n)})),sp}function e0t(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?Sn(n,m.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((a=n.namedBindings)==null?void 0:a.kind)===275?zWe(n.namedBindings):!1}function zWe(n){return!!Ve(n.elements,a=>{if(a.isTypeOnly)return yu(a,a.kind===276?m.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:m.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function t0t(n){if(V.verbatimModuleSyntax&&G===1)return Sn(n,m.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(G===5)return Sn(n,m.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return Sn(n,m.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const a=n.arguments;if(G!==99&&G!==199&&G!==100&&(Mx(a),a.length>1)){const d=a[1];return Sn(d,m.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return Sn(n,m.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const c=un(a,t_);return c?Sn(c,m.Argument_of_dynamic_import_cannot_be_spread_element):!1}function n0t(n,a){const c=zr(n);if(c&20&&a.flags&1048576)return un(a.types,d=>{if(d.flags&524288){const h=c&zr(d);if(h&4)return n.target===d.target;if(h&16)return!!n.aliasSymbol&&n.aliasSymbol===d.aliasSymbol}return!1})}function r0t(n,a){if(zr(n)&128&&qm(a,yy))return un(a.types,c=>!yy(c))}function i0t(n,a){let c=0;if($o(n,c).length>0||(c=1,$o(n,c).length>0))return un(a.types,h=>$o(h,c).length>0)}function o0t(n,a){let c;if(!(n.flags&406978556)){let d=0;for(const h of a.types)if(!(h.flags&406978556)){const y=Ta([th(n),th(h)]);if(y.flags&4194304)return h;if(v_(y)||y.flags&1048576){const x=y.flags&1048576?Ca(y.types,v_):1;x>=d&&(c=h,d=x)}}}return c}function a0t(n){if(wl(n,67108864)){const a=vc(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function BWe(n,a,c){if(a.flags&1048576&&n.flags&2621440){const d=Q6e(a,n);if(d)return d;const h=As(n);if(h){const y=$6e(h,a);if(y){const x=Uve(a,Wt(y,k=>[()=>_r(k),k.escapedName]),c);if(x!==a)return x}}}}function r0e(n){const a=PS(n);return a||(ss(n)?_ye(Cu(n.expression)):void 0)}function Hte(n){return Xn===n||(Xn=n,yn=c0(n)),yn}function oS(n){return Yt===n||(Yt=n,Nn=Ov(n)),Nn}function HB(n){const a=oS(n)&7;return a===2||a===4||a===6}}function tUe(e){return!ky(e)}function Jxe(e){return e.kind!==262&&e.kind!==174||!!e.body}function Kxe(e){switch(e.parent.kind){case 276:case 281:return Ue(e);default:return Gg(e)}}function Xxe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Zu(e){return!!(e.flags&1)}function oJ(e){return!!(e.flags&2)}function nUe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:aa(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:aa(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 aJ,sW,Mle,Lle,kle,wle,lW,sJ,cW,uW,Yxe,dW,Ole,sf,lJ,rUe=S({"src/compiler/checker.ts"(){ia(),Cle(),fS(),aJ=/^".+"$/,sW="(anonymous)",Mle=1,Lle=1,kle=1,wle=1,lW=(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))(lW||{}),sJ=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),cW=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(cW||{}),uW=(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))(uW||{}),Yxe=Z8(Jxe,tUe),dW=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),Ole=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(sf||(sf={})),lJ=class VWe{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof VWe;)r=r.inner;this.inner=r,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((o=this.inner)!=null&&o.trackSymbol)}trackSymbol(t,r,i){var l;var o,s;if(((o=this.inner)==null?void 0:o.trackSymbol)&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,r,i))return this.onDiagnosticReported(),!0;t.flags&262144||((l=(s=this.context).trackedSymbols)!=null?l:s.trackedSymbols=[]).push([t,r,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var r;(r=this.inner)!=null&&r.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var r;(r=this.inner)!=null&&r.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(t,r){var i;(i=this.inner)!=null&&i.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(t,r))}trackExternalModuleSymbolOfImportTypeNode(t){var r;(r=this.inner)!=null&&r.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(t))}reportNonlocalAugmentation(t,r,i){var o;(o=this.inner)!=null&&o.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,r,i))}reportNonSerializableProperty(t){var r;(r=this.inner)!=null&&r.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function rt(e,t,r,i){if(e===void 0)return e;const o=t(e);let s;if(o!==void 0)return Do(o)?s=(i||lUe)(o):s=o,N.assertNode(s,r),s}function Un(e,t,r,i,o){if(e===void 0)return e;const s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let l,u=-1,p=-1;i>0||o<s?l=e.hasTrailingComma&&i+o===s:(u=e.pos,p=e.end,l=e.hasTrailingComma);const v=$xe(e,t,r,i,o);if(v!==e){const f=O.createNodeArray(v,l);return Eh(f,u,p),f}return e}function Kw(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),$xe(e,t,r,i,o)}function $xe(e,t,r,i,o){let s;const l=e.length;(i>0||o<l)&&(s=[]);for(let u=0;u<o;u++){const p=e[u+i],v=p!==void 0?t?t(p):p:void 0;if((s!==void 0||v===void 0||v!==p)&&(s===void 0&&(s=e.slice(0,u),N.assertEachNode(s,r)),v))if(Do(v))for(const f of v)N.assertNode(f,r),s.push(f);else N.assertNode(v,r),s.push(v)}return s||(N.assertEachNode(e,r),e)}function cJ(e,t,r,i,o,s=Un){return r.startLexicalEnvironment(),e=s(e,t,$i,i),o&&(e=r.factory.ensureUseStrict(e)),O.mergeLexicalEnvironment(e,r.endLexicalEnvironment())}function Ml(e,t,r,i=Un){let o;return r.startLexicalEnvironment(),e&&(r.setLexicalEnvironmentFlags(1,!0),o=i(e,t,No),r.getLexicalEnvironmentFlags()&2&&ps(r.getCompilerOptions())>=2&&(o=iUe(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function iUe(e,t){let r;for(let i=0;i<e.length;i++){const o=e[i],s=oUe(o,t);(r||s!==o)&&(r||(r=e.slice(0,i)),r[i]=s)}return r?ut(t.factory.createNodeArray(r,e.hasTrailingComma),e):e}function oUe(e,t){return e.dotDotDotToken?e:na(e.name)?aUe(e,t):e.initializer?sUe(e,e.name,e.initializer,t):e}function aUe(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 sUe(e,t,r,i){const o=i.factory;return i.addInitializationStatement(o.createIfStatement(o.createTypeCheck(o.cloneNode(t),"undefined"),hr(ut(o.createBlock([o.createExpressionStatement(hr(ut(o.createAssignment(hr(o.cloneNode(t),96),hr(r,96|Ka(r)|3072)),e),3072))]),e),3905))),o.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}function lf(e,t,r,i=rt){r.resumeLexicalEnvironment();const o=i(e,t,U6),s=r.endLexicalEnvironment();if(St(s)){if(!o)return r.factory.createBlock(s);const l=r.factory.converters.convertToFunctionBlock(o),u=O.mergeLexicalEnvironment(l.statements,s);return r.factory.updateBlock(l,u)}return o}function Rd(e,t,r,i=rt){r.startBlockScope();const o=i(e,t,$i,r.factory.liftToBlock);N.assert(o);const s=r.endBlockScope();return St(s)?Yo(o)?(s.push(...o.statements),r.factory.updateBlock(o,s)):(s.push(o),r.factory.createBlock(s)):o}function Xw(e,t,r=t){if(r===t||e.length<=1)return Un(e,t,bt);let i=0;const o=e.length;return Un(e,s=>{const l=i<o-1;return i++,l?r(s):t(s)},bt)}function xn(e,t,r=oP,i=Un,o,s=rt){if(e===void 0)return;const l=Qxe[e.kind];return l===void 0?e:l(e,t,r,i,s,o)}function lUe(e){return N.assert(e.length<=1,"Too many nodes written to output."),uh(e)}var Qxe,cUe=S({"src/compiler/visitorPublic.ts"(){ia(),Qxe={[166]:function(t,r,i,o,s,l){return i.factory.updateQualifiedName(t,N.checkDefined(s(t.left,r,ep)),N.checkDefined(s(t.right,r,Ue)))},[167]:function(t,r,i,o,s,l){return i.factory.updateComputedPropertyName(t,N.checkDefined(s(t.expression,r,bt)))},[168]:function(t,r,i,o,s,l){return i.factory.updateTypeParameterDeclaration(t,o(t.modifiers,r,Ra),N.checkDefined(s(t.name,r,Ue)),s(t.constraint,r,Xi),s(t.default,r,Xi))},[169]:function(t,r,i,o,s,l){return i.factory.updateParameterDeclaration(t,o(t.modifiers,r,dl),l?s(t.dotDotDotToken,l,d5):t.dotDotDotToken,N.checkDefined(s(t.name,r,vS)),l?s(t.questionToken,l,Xy):t.questionToken,s(t.type,r,Xi),s(t.initializer,r,bt))},[170]:function(t,r,i,o,s,l){return i.factory.updateDecorator(t,N.checkDefined(s(t.expression,r,bt)))},[171]:function(t,r,i,o,s,l){return i.factory.updatePropertySignature(t,o(t.modifiers,r,Ra),N.checkDefined(s(t.name,r,pc)),l?s(t.questionToken,l,Xy):t.questionToken,s(t.type,r,Xi))},[172]:function(t,r,i,o,s,l){var u,p;return i.factory.updatePropertyDeclaration(t,o(t.modifiers,r,dl),N.checkDefined(s(t.name,r,pc)),l?s((u=t.questionToken)!=null?u:t.exclamationToken,l,Rse):(p=t.questionToken)!=null?p:t.exclamationToken,s(t.type,r,Xi),s(t.initializer,r,bt))},[173]:function(t,r,i,o,s,l){return i.factory.updateMethodSignature(t,o(t.modifiers,r,Ra),N.checkDefined(s(t.name,r,pc)),l?s(t.questionToken,l,Xy):t.questionToken,o(t.typeParameters,r,El),o(t.parameters,r,No),s(t.type,r,Xi))},[174]:function(t,r,i,o,s,l){return i.factory.updateMethodDeclaration(t,o(t.modifiers,r,dl),l?s(t.asteriskToken,l,ow):t.asteriskToken,N.checkDefined(s(t.name,r,pc)),l?s(t.questionToken,l,Xy):t.questionToken,o(t.typeParameters,r,El),Ml(t.parameters,r,i,o),s(t.type,r,Xi),lf(t.body,r,i,s))},[176]:function(t,r,i,o,s,l){return i.factory.updateConstructorDeclaration(t,o(t.modifiers,r,dl),Ml(t.parameters,r,i,o),lf(t.body,r,i,s))},[177]:function(t,r,i,o,s,l){return i.factory.updateGetAccessorDeclaration(t,o(t.modifiers,r,dl),N.checkDefined(s(t.name,r,pc)),Ml(t.parameters,r,i,o),s(t.type,r,Xi),lf(t.body,r,i,s))},[178]:function(t,r,i,o,s,l){return i.factory.updateSetAccessorDeclaration(t,o(t.modifiers,r,dl),N.checkDefined(s(t.name,r,pc)),Ml(t.parameters,r,i,o),lf(t.body,r,i,s))},[175]:function(t,r,i,o,s,l){return i.startLexicalEnvironment(),i.suspendLexicalEnvironment(),i.factory.updateClassStaticBlockDeclaration(t,lf(t.body,r,i,s))},[179]:function(t,r,i,o,s,l){return i.factory.updateCallSignature(t,o(t.typeParameters,r,El),o(t.parameters,r,No),s(t.type,r,Xi))},[180]:function(t,r,i,o,s,l){return i.factory.updateConstructSignature(t,o(t.typeParameters,r,El),o(t.parameters,r,No),s(t.type,r,Xi))},[181]:function(t,r,i,o,s,l){return i.factory.updateIndexSignature(t,o(t.modifiers,r,dl),o(t.parameters,r,No),N.checkDefined(s(t.type,r,Xi)))},[182]:function(t,r,i,o,s,l){return i.factory.updateTypePredicateNode(t,s(t.assertsModifier,r,Xae),N.checkDefined(s(t.parameterName,r,Dse)),s(t.type,r,Xi))},[183]:function(t,r,i,o,s,l){return i.factory.updateTypeReferenceNode(t,N.checkDefined(s(t.typeName,r,ep)),o(t.typeArguments,r,Xi))},[184]:function(t,r,i,o,s,l){return i.factory.updateFunctionTypeNode(t,o(t.typeParameters,r,El),o(t.parameters,r,No),N.checkDefined(s(t.type,r,Xi)))},[185]:function(t,r,i,o,s,l){return i.factory.updateConstructorTypeNode(t,o(t.modifiers,r,Ra),o(t.typeParameters,r,El),o(t.parameters,r,No),N.checkDefined(s(t.type,r,Xi)))},[186]:function(t,r,i,o,s,l){return i.factory.updateTypeQueryNode(t,N.checkDefined(s(t.exprName,r,ep)),o(t.typeArguments,r,Xi))},[187]:function(t,r,i,o,s,l){return i.factory.updateTypeLiteralNode(t,o(t.members,r,yS))},[188]:function(t,r,i,o,s,l){return i.factory.updateArrayTypeNode(t,N.checkDefined(s(t.elementType,r,Xi)))},[189]:function(t,r,i,o,s,l){return i.factory.updateTupleTypeNode(t,o(t.elements,r,Xi))},[190]:function(t,r,i,o,s,l){return i.factory.updateOptionalTypeNode(t,N.checkDefined(s(t.type,r,Xi)))},[191]:function(t,r,i,o,s,l){return i.factory.updateRestTypeNode(t,N.checkDefined(s(t.type,r,Xi)))},[192]:function(t,r,i,o,s,l){return i.factory.updateUnionTypeNode(t,o(t.types,r,Xi))},[193]:function(t,r,i,o,s,l){return i.factory.updateIntersectionTypeNode(t,o(t.types,r,Xi))},[194]:function(t,r,i,o,s,l){return i.factory.updateConditionalTypeNode(t,N.checkDefined(s(t.checkType,r,Xi)),N.checkDefined(s(t.extendsType,r,Xi)),N.checkDefined(s(t.trueType,r,Xi)),N.checkDefined(s(t.falseType,r,Xi)))},[195]:function(t,r,i,o,s,l){return i.factory.updateInferTypeNode(t,N.checkDefined(s(t.typeParameter,r,El)))},[205]:function(t,r,i,o,s,l){return i.factory.updateImportTypeNode(t,N.checkDefined(s(t.argument,r,Xi)),s(t.attributes,r,yI),s(t.qualifier,r,ep),o(t.typeArguments,r,Xi),t.isTypeOf)},[302]:function(t,r,i,o,s,l){return i.factory.updateImportTypeAssertionContainer(t,N.checkDefined(s(t.assertClause,r,ase)),t.multiLine)},[202]:function(t,r,i,o,s,l){return i.factory.updateNamedTupleMember(t,l?s(t.dotDotDotToken,l,d5):t.dotDotDotToken,N.checkDefined(s(t.name,r,Ue)),l?s(t.questionToken,l,Xy):t.questionToken,N.checkDefined(s(t.type,r,Xi)))},[196]:function(t,r,i,o,s,l){return i.factory.updateParenthesizedType(t,N.checkDefined(s(t.type,r,Xi)))},[198]:function(t,r,i,o,s,l){return i.factory.updateTypeOperatorNode(t,N.checkDefined(s(t.type,r,Xi)))},[199]:function(t,r,i,o,s,l){return i.factory.updateIndexedAccessTypeNode(t,N.checkDefined(s(t.objectType,r,Xi)),N.checkDefined(s(t.indexType,r,Xi)))},[200]:function(t,r,i,o,s,l){return i.factory.updateMappedTypeNode(t,l?s(t.readonlyToken,l,Nse):t.readonlyToken,N.checkDefined(s(t.typeParameter,r,El)),s(t.nameType,r,Xi),l?s(t.questionToken,l,Cse):t.questionToken,s(t.type,r,Xi),o(t.members,r,yS))},[201]:function(t,r,i,o,s,l){return i.factory.updateLiteralTypeNode(t,N.checkDefined(s(t.literal,r,sie)))},[203]:function(t,r,i,o,s,l){return i.factory.updateTemplateLiteralType(t,N.checkDefined(s(t.head,r,cI)),o(t.templateSpans,r,BH))},[204]:function(t,r,i,o,s,l){return i.factory.updateTemplateLiteralTypeSpan(t,N.checkDefined(s(t.type,r,Xi)),N.checkDefined(s(t.literal,r,B6)))},[206]:function(t,r,i,o,s,l){return i.factory.updateObjectBindingPattern(t,o(t.elements,r,os))},[207]:function(t,r,i,o,s,l){return i.factory.updateArrayBindingPattern(t,o(t.elements,r,V6))},[208]:function(t,r,i,o,s,l){return i.factory.updateBindingElement(t,l?s(t.dotDotDotToken,l,d5):t.dotDotDotToken,s(t.propertyName,r,pc),N.checkDefined(s(t.name,r,vS)),s(t.initializer,r,bt))},[209]:function(t,r,i,o,s,l){return i.factory.updateArrayLiteralExpression(t,o(t.elements,r,bt))},[210]:function(t,r,i,o,s,l){return i.factory.updateObjectLiteralExpression(t,o(t.properties,r,Fg))},[211]:function(t,r,i,o,s,l){return W6(t)?i.factory.updatePropertyAccessChain(t,N.checkDefined(s(t.expression,r,bt)),l?s(t.questionDotToken,l,p5):t.questionDotToken,N.checkDefined(s(t.name,r,Zh))):i.factory.updatePropertyAccessExpression(t,N.checkDefined(s(t.expression,r,bt)),N.checkDefined(s(t.name,r,Zh)))},[212]:function(t,r,i,o,s,l){return lj(t)?i.factory.updateElementAccessChain(t,N.checkDefined(s(t.expression,r,bt)),l?s(t.questionDotToken,l,p5):t.questionDotToken,N.checkDefined(s(t.argumentExpression,r,bt))):i.factory.updateElementAccessExpression(t,N.checkDefined(s(t.expression,r,bt)),N.checkDefined(s(t.argumentExpression,r,bt)))},[213]:function(t,r,i,o,s,l){return hS(t)?i.factory.updateCallChain(t,N.checkDefined(s(t.expression,r,bt)),l?s(t.questionDotToken,l,p5):t.questionDotToken,o(t.typeArguments,r,Xi),o(t.arguments,r,bt)):i.factory.updateCallExpression(t,N.checkDefined(s(t.expression,r,bt)),o(t.typeArguments,r,Xi),o(t.arguments,r,bt))},[214]:function(t,r,i,o,s,l){return i.factory.updateNewExpression(t,N.checkDefined(s(t.expression,r,bt)),o(t.typeArguments,r,Xi),o(t.arguments,r,bt))},[215]:function(t,r,i,o,s,l){return i.factory.updateTaggedTemplateExpression(t,N.checkDefined(s(t.tag,r,bt)),o(t.typeArguments,r,Xi),N.checkDefined(s(t.template,r,FA)))},[216]:function(t,r,i,o,s,l){return i.factory.updateTypeAssertion(t,N.checkDefined(s(t.type,r,Xi)),N.checkDefined(s(t.expression,r,bt)))},[217]:function(t,r,i,o,s,l){return i.factory.updateParenthesizedExpression(t,N.checkDefined(s(t.expression,r,bt)))},[218]:function(t,r,i,o,s,l){return i.factory.updateFunctionExpression(t,o(t.modifiers,r,Ra),l?s(t.asteriskToken,l,ow):t.asteriskToken,s(t.name,r,Ue),o(t.typeParameters,r,El),Ml(t.parameters,r,i,o),s(t.type,r,Xi),lf(t.body,r,i,s))},[219]:function(t,r,i,o,s,l){return i.factory.updateArrowFunction(t,o(t.modifiers,r,Ra),o(t.typeParameters,r,El),Ml(t.parameters,r,i,o),s(t.type,r,Xi),l?N.checkDefined(s(t.equalsGreaterThanToken,l,Kae)):t.equalsGreaterThanToken,lf(t.body,r,i,s))},[220]:function(t,r,i,o,s,l){return i.factory.updateDeleteExpression(t,N.checkDefined(s(t.expression,r,bt)))},[221]:function(t,r,i,o,s,l){return i.factory.updateTypeOfExpression(t,N.checkDefined(s(t.expression,r,bt)))},[222]:function(t,r,i,o,s,l){return i.factory.updateVoidExpression(t,N.checkDefined(s(t.expression,r,bt)))},[223]:function(t,r,i,o,s,l){return i.factory.updateAwaitExpression(t,N.checkDefined(s(t.expression,r,bt)))},[224]:function(t,r,i,o,s,l){return i.factory.updatePrefixUnaryExpression(t,N.checkDefined(s(t.operand,r,bt)))},[225]:function(t,r,i,o,s,l){return i.factory.updatePostfixUnaryExpression(t,N.checkDefined(s(t.operand,r,bt)))},[226]:function(t,r,i,o,s,l){return i.factory.updateBinaryExpression(t,N.checkDefined(s(t.left,r,bt)),l?N.checkDefined(s(t.operatorToken,l,Mse)):t.operatorToken,N.checkDefined(s(t.right,r,bt)))},[227]:function(t,r,i,o,s,l){return i.factory.updateConditionalExpression(t,N.checkDefined(s(t.condition,r,bt)),l?N.checkDefined(s(t.questionToken,l,Xy)):t.questionToken,N.checkDefined(s(t.whenTrue,r,bt)),l?N.checkDefined(s(t.colonToken,l,Jae)):t.colonToken,N.checkDefined(s(t.whenFalse,r,bt)))},[228]:function(t,r,i,o,s,l){return i.factory.updateTemplateExpression(t,N.checkDefined(s(t.head,r,cI)),o(t.templateSpans,r,MC))},[229]:function(t,r,i,o,s,l){return i.factory.updateYieldExpression(t,l?s(t.asteriskToken,l,ow):t.asteriskToken,s(t.expression,r,bt))},[230]:function(t,r,i,o,s,l){return i.factory.updateSpreadElement(t,N.checkDefined(s(t.expression,r,bt)))},[231]:function(t,r,i,o,s,l){return i.factory.updateClassExpression(t,o(t.modifiers,r,dl),s(t.name,r,Ue),o(t.typeParameters,r,El),o(t.heritageClauses,r,of),o(t.members,r,nu))},[233]:function(t,r,i,o,s,l){return i.factory.updateExpressionWithTypeArguments(t,N.checkDefined(s(t.expression,r,bt)),o(t.typeArguments,r,Xi))},[234]:function(t,r,i,o,s,l){return i.factory.updateAsExpression(t,N.checkDefined(s(t.expression,r,bt)),N.checkDefined(s(t.type,r,Xi)))},[238]:function(t,r,i,o,s,l){return i.factory.updateSatisfiesExpression(t,N.checkDefined(s(t.expression,r,bt)),N.checkDefined(s(t.type,r,Xi)))},[235]:function(t,r,i,o,s,l){return Xu(t)?i.factory.updateNonNullChain(t,N.checkDefined(s(t.expression,r,bt))):i.factory.updateNonNullExpression(t,N.checkDefined(s(t.expression,r,bt)))},[236]:function(t,r,i,o,s,l){return i.factory.updateMetaProperty(t,N.checkDefined(s(t.name,r,Ue)))},[239]:function(t,r,i,o,s,l){return i.factory.updateTemplateSpan(t,N.checkDefined(s(t.expression,r,bt)),N.checkDefined(s(t.literal,r,B6)))},[241]:function(t,r,i,o,s,l){return i.factory.updateBlock(t,o(t.statements,r,$i))},[243]:function(t,r,i,o,s,l){return i.factory.updateVariableStatement(t,o(t.modifiers,r,dl),N.checkDefined(s(t.declarationList,r,Xc)))},[244]:function(t,r,i,o,s,l){return i.factory.updateExpressionStatement(t,N.checkDefined(s(t.expression,r,bt)))},[245]:function(t,r,i,o,s,l){return i.factory.updateIfStatement(t,N.checkDefined(s(t.expression,r,bt)),N.checkDefined(s(t.thenStatement,r,$i,i.factory.liftToBlock)),s(t.elseStatement,r,$i,i.factory.liftToBlock))},[246]:function(t,r,i,o,s,l){return i.factory.updateDoStatement(t,Rd(t.statement,r,i,s),N.checkDefined(s(t.expression,r,bt)))},[247]:function(t,r,i,o,s,l){return i.factory.updateWhileStatement(t,N.checkDefined(s(t.expression,r,bt)),Rd(t.statement,r,i,s))},[248]:function(t,r,i,o,s,l){return i.factory.updateForStatement(t,s(t.initializer,r,Af),s(t.condition,r,bt),s(t.incrementor,r,bt),Rd(t.statement,r,i,s))},[249]:function(t,r,i,o,s,l){return i.factory.updateForInStatement(t,N.checkDefined(s(t.initializer,r,Af)),N.checkDefined(s(t.expression,r,bt)),Rd(t.statement,r,i,s))},[250]:function(t,r,i,o,s,l){return i.factory.updateForOfStatement(t,l?s(t.awaitModifier,l,zH):t.awaitModifier,N.checkDefined(s(t.initializer,r,Af)),N.checkDefined(s(t.expression,r,bt)),Rd(t.statement,r,i,s))},[251]:function(t,r,i,o,s,l){return i.factory.updateContinueStatement(t,s(t.label,r,Ue))},[252]:function(t,r,i,o,s,l){return i.factory.updateBreakStatement(t,s(t.label,r,Ue))},[253]:function(t,r,i,o,s,l){return i.factory.updateReturnStatement(t,s(t.expression,r,bt))},[254]:function(t,r,i,o,s,l){return i.factory.updateWithStatement(t,N.checkDefined(s(t.expression,r,bt)),N.checkDefined(s(t.statement,r,$i,i.factory.liftToBlock)))},[255]:function(t,r,i,o,s,l){return i.factory.updateSwitchStatement(t,N.checkDefined(s(t.expression,r,bt)),N.checkDefined(s(t.caseBlock,r,kC)))},[256]:function(t,r,i,o,s,l){return i.factory.updateLabeledStatement(t,N.checkDefined(s(t.label,r,Ue)),N.checkDefined(s(t.statement,r,$i,i.factory.liftToBlock)))},[257]:function(t,r,i,o,s,l){return i.factory.updateThrowStatement(t,N.checkDefined(s(t.expression,r,bt)))},[258]:function(t,r,i,o,s,l){return i.factory.updateTryStatement(t,N.checkDefined(s(t.tryBlock,r,Yo)),s(t.catchClause,r,uE),s(t.finallyBlock,r,Yo))},[260]:function(t,r,i,o,s,l){return i.factory.updateVariableDeclaration(t,N.checkDefined(s(t.name,r,vS)),l?s(t.exclamationToken,l,aw):t.exclamationToken,s(t.type,r,Xi),s(t.initializer,r,bt))},[261]:function(t,r,i,o,s,l){return i.factory.updateVariableDeclarationList(t,o(t.declarations,r,Wi))},[262]:function(t,r,i,o,s,l){return i.factory.updateFunctionDeclaration(t,o(t.modifiers,r,Ra),l?s(t.asteriskToken,l,ow):t.asteriskToken,s(t.name,r,Ue),o(t.typeParameters,r,El),Ml(t.parameters,r,i,o),s(t.type,r,Xi),lf(t.body,r,i,s))},[263]:function(t,r,i,o,s,l){return i.factory.updateClassDeclaration(t,o(t.modifiers,r,dl),s(t.name,r,Ue),o(t.typeParameters,r,El),o(t.heritageClauses,r,of),o(t.members,r,nu))},[264]:function(t,r,i,o,s,l){return i.factory.updateInterfaceDeclaration(t,o(t.modifiers,r,dl),N.checkDefined(s(t.name,r,Ue)),o(t.typeParameters,r,El),o(t.heritageClauses,r,of),o(t.members,r,yS))},[265]:function(t,r,i,o,s,l){return i.factory.updateTypeAliasDeclaration(t,o(t.modifiers,r,dl),N.checkDefined(s(t.name,r,Ue)),o(t.typeParameters,r,El),N.checkDefined(s(t.type,r,Xi)))},[266]:function(t,r,i,o,s,l){return i.factory.updateEnumDeclaration(t,o(t.modifiers,r,dl),N.checkDefined(s(t.name,r,Ue)),o(t.members,r,dE))},[267]:function(t,r,i,o,s,l){return i.factory.updateModuleDeclaration(t,o(t.modifiers,r,dl),N.checkDefined(s(t.name,r,Pse)),s(t.body,r,uie))},[268]:function(t,r,i,o,s,l){return i.factory.updateModuleBlock(t,o(t.statements,r,$i))},[269]:function(t,r,i,o,s,l){return i.factory.updateCaseBlock(t,o(t.clauses,r,q6))},[270]:function(t,r,i,o,s,l){return i.factory.updateNamespaceExportDeclaration(t,N.checkDefined(s(t.name,r,Ue)))},[271]:function(t,r,i,o,s,l){return i.factory.updateImportEqualsDeclaration(t,o(t.modifiers,r,dl),t.isTypeOnly,N.checkDefined(s(t.name,r,Ue)),N.checkDefined(s(t.moduleReference,r,_ie)))},[272]:function(t,r,i,o,s,l){return i.factory.updateImportDeclaration(t,o(t.modifiers,r,dl),s(t.importClause,r,Ih),N.checkDefined(s(t.moduleSpecifier,r,bt)),s(t.attributes,r,yI))},[300]:function(t,r,i,o,s,l){return i.factory.updateImportAttributes(t,o(t.elements,r,sse),t.multiLine)},[301]:function(t,r,i,o,s,l){return i.factory.updateImportAttribute(t,N.checkDefined(s(t.name,r,eie)),N.checkDefined(s(t.value,r,bt)))},[273]:function(t,r,i,o,s,l){return i.factory.updateImportClause(t,t.isTypeOnly,s(t.name,r,Ue),s(t.namedBindings,r,Sj))},[274]:function(t,r,i,o,s,l){return i.factory.updateNamespaceImport(t,N.checkDefined(s(t.name,r,Ue)))},[280]:function(t,r,i,o,s,l){return i.factory.updateNamespaceExport(t,N.checkDefined(s(t.name,r,Ue)))},[275]:function(t,r,i,o,s,l){return i.factory.updateNamedImports(t,o(t.elements,r,rp))},[276]:function(t,r,i,o,s,l){return i.factory.updateImportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,Ue),N.checkDefined(s(t.name,r,Ue)))},[277]:function(t,r,i,o,s,l){return i.factory.updateExportAssignment(t,o(t.modifiers,r,dl),N.checkDefined(s(t.expression,r,bt)))},[278]:function(t,r,i,o,s,l){return i.factory.updateExportDeclaration(t,o(t.modifiers,r,dl),t.isTypeOnly,s(t.exportClause,r,uj),s(t.moduleSpecifier,r,bt),s(t.attributes,r,yI))},[279]:function(t,r,i,o,s,l){return i.factory.updateNamedExports(t,o(t.elements,r,$u))},[281]:function(t,r,i,o,s,l){return i.factory.updateExportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,Ue),N.checkDefined(s(t.name,r,Ue)))},[283]:function(t,r,i,o,s,l){return i.factory.updateExternalModuleReference(t,N.checkDefined(s(t.expression,r,bt)))},[284]:function(t,r,i,o,s,l){return i.factory.updateJsxElement(t,N.checkDefined(s(t.openingElement,r,W_)),o(t.children,r,FL),N.checkDefined(s(t.closingElement,r,sE)))},[285]:function(t,r,i,o,s,l){return i.factory.updateJsxSelfClosingElement(t,N.checkDefined(s(t.tagName,r,CN)),o(t.typeArguments,r,Xi),N.checkDefined(s(t.attributes,r,cE)))},[286]:function(t,r,i,o,s,l){return i.factory.updateJsxOpeningElement(t,N.checkDefined(s(t.tagName,r,CN)),o(t.typeArguments,r,Xi),N.checkDefined(s(t.attributes,r,cE)))},[287]:function(t,r,i,o,s,l){return i.factory.updateJsxClosingElement(t,N.checkDefined(s(t.tagName,r,CN)))},[295]:function(t,r,i,o,s,l){return i.factory.updateJsxNamespacedName(t,N.checkDefined(s(t.namespace,r,Ue)),N.checkDefined(s(t.name,r,Ue)))},[288]:function(t,r,i,o,s,l){return i.factory.updateJsxFragment(t,N.checkDefined(s(t.openingFragment,r,EI)),o(t.children,r,FL),N.checkDefined(s(t.closingFragment,r,lse)))},[291]:function(t,r,i,o,s,l){return i.factory.updateJsxAttribute(t,N.checkDefined(s(t.name,r,Sae)),s(t.initializer,r,hie))},[292]:function(t,r,i,o,s,l){return i.factory.updateJsxAttributes(t,o(t.properties,r,H6))},[293]:function(t,r,i,o,s,l){return i.factory.updateJsxSpreadAttribute(t,N.checkDefined(s(t.expression,r,bt)))},[294]:function(t,r,i,o,s,l){return i.factory.updateJsxExpression(t,s(t.expression,r,bt))},[296]:function(t,r,i,o,s,l){return i.factory.updateCaseClause(t,N.checkDefined(s(t.expression,r,bt)),o(t.statements,r,$i))},[297]:function(t,r,i,o,s,l){return i.factory.updateDefaultClause(t,o(t.statements,r,$i))},[298]:function(t,r,i,o,s,l){return i.factory.updateHeritageClause(t,o(t.types,r,Kv))},[299]:function(t,r,i,o,s,l){return i.factory.updateCatchClause(t,s(t.variableDeclaration,r,Wi),N.checkDefined(s(t.block,r,Yo)))},[303]:function(t,r,i,o,s,l){return i.factory.updatePropertyAssignment(t,N.checkDefined(s(t.name,r,pc)),N.checkDefined(s(t.initializer,r,bt)))},[304]:function(t,r,i,o,s,l){return i.factory.updateShorthandPropertyAssignment(t,N.checkDefined(s(t.name,r,Ue)),s(t.objectAssignmentInitializer,r,bt))},[305]:function(t,r,i,o,s,l){return i.factory.updateSpreadAssignment(t,N.checkDefined(s(t.expression,r,bt)))},[306]:function(t,r,i,o,s,l){return i.factory.updateEnumMember(t,N.checkDefined(s(t.name,r,pc)),s(t.initializer,r,bt))},[312]:function(t,r,i,o,s,l){return i.factory.updateSourceFile(t,cJ(t.statements,r,i))},[360]:function(t,r,i,o,s,l){return i.factory.updatePartiallyEmittedExpression(t,N.checkDefined(s(t.expression,r,bt)))},[361]:function(t,r,i,o,s,l){return i.factory.updateCommaListExpression(t,o(t.elements,r,bt))}}}});function Wle(e,t,r,i,o){var{enter:s,exit:l}=o.extendedDiagnostics?GG("Source Map","beforeSourcemap","afterSourcemap"):VG,u=[],p=[],v=new Map,f,b=[],A,I=[],R="",M=0,C=0,W=0,U=0,X=0,ee=0,V=!1,se=0,G=0,re=0,_e=0,ye=0,Q=0,Y=!1,oe=!1,he=!1;return{getSources:()=>u,addSource:Ie,setSourceContent:de,addName:ie,addMapping:qe,appendSourceMap:Se,toJSON:be,toString:()=>JSON.stringify(be())};function Ie(it){s();const Ft=MA(i,it,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let yt=v.get(Ft);return yt===void 0&&(yt=p.length,p.push(Ft),u.push(it),v.set(Ft,yt)),l(),yt}function de(it,Ft){if(s(),Ft!==null){for(f||(f=[]);f.length<it;)f.push(null);f[it]=Ft}l()}function ie(it){s(),A||(A=new Map);let Ft=A.get(it);return Ft===void 0&&(Ft=b.length,b.push(it),A.set(it,Ft)),l(),Ft}function ge(it,Ft){return!Y||se!==it||G!==Ft}function Ce(it,Ft,yt){return it!==void 0&&Ft!==void 0&&yt!==void 0&&re===it&&(_e>Ft||_e===Ft&&ye>yt)}function qe(it,Ft,yt,Ze,It,on){N.assert(it>=se,"generatedLine cannot backtrack"),N.assert(Ft>=0,"generatedCharacter cannot be negative"),N.assert(yt===void 0||yt>=0,"sourceIndex cannot be negative"),N.assert(Ze===void 0||Ze>=0,"sourceLine cannot be negative"),N.assert(It===void 0||It>=0,"sourceCharacter cannot be negative"),s(),(ge(it,Ft)||Ce(yt,Ze,It))&&(Oe(),se=it,G=Ft,oe=!1,he=!1,Y=!0),yt!==void 0&&Ze!==void 0&&It!==void 0&&(re=yt,_e=Ze,ye=It,oe=!0,on!==void 0&&(Q=on,he=!0)),l()}function Se(it,Ft,yt,Ze,It,on){N.assert(it>=se,"generatedLine cannot backtrack"),N.assert(Ft>=0,"generatedCharacter cannot be negative"),s();const Yt=[];let Nn;const Xn=pJ(yt.mappings);for(const yn of Xn){if(on&&(yn.generatedLine>on.line||yn.generatedLine===on.line&&yn.generatedCharacter>on.character))break;if(It&&(yn.generatedLine<It.line||It.line===yn.generatedLine&&yn.generatedCharacter<It.character))continue;let tn,en,gi,bo;if(yn.sourceIndex!==void 0){if(tn=Yt[yn.sourceIndex],tn===void 0){const Nr=yt.sources[yn.sourceIndex],Kt=yt.sourceRoot?$r(yt.sourceRoot,Nr):Nr,nt=$r(ii(Ze),Kt);Yt[yn.sourceIndex]=tn=Ie(nt),yt.sourcesContent&&typeof yt.sourcesContent[yn.sourceIndex]=="string"&&de(tn,yt.sourcesContent[yn.sourceIndex])}en=yn.sourceLine,gi=yn.sourceCharacter,yt.names&&yn.nameIndex!==void 0&&(Nn||(Nn=[]),bo=Nn[yn.nameIndex],bo===void 0&&(Nn[yn.nameIndex]=bo=ie(yt.names[yn.nameIndex])))}const Ui=yn.generatedLine-(It?It.line:0),Co=Ui+it,tr=It&&It.line===yn.generatedLine?yn.generatedCharacter-It.character:yn.generatedCharacter,Ci=Ui===0?tr+Ft:tr;qe(Co,Ci,tn,en,gi,bo)}l()}function Le(){return!V||M!==se||C!==G||W!==re||U!==_e||X!==ye||ee!==Q}function Ne(it){I.push(it),I.length>=1024&&At()}function Oe(){if(!(!Y||!Le())){if(s(),M<se){do Ne(59),M++;while(M<se);C=0}else N.assertEqual(M,se,"generatedLine cannot backtrack"),V&&Ne(44);He(G-C),C=G,oe&&(He(re-W),W=re,He(_e-U),U=_e,He(ye-X),X=ye,he&&(He(Q-ee),ee=Q)),V=!0,l()}}function At(){I.length>0&&(R+=String.fromCharCode.apply(void 0,I),I.length=0)}function be(){return Oe(),At(),{version:3,file:t,sourceRoot:r,sources:p,names:b,mappings:R,sourcesContent:f}}function He(it){it<0?it=(-it<<1)+1:it=it<<1;do{let Ft=it&31;it=it>>5,it>0&&(Ft=Ft|32),Ne(dUe(Ft))}while(it>0)}}function uJ(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function Fle(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=pW.exec(r);if(i)return i[1].trimEnd();if(!r.match(fW))break}}function uUe(e){return typeof e=="string"||e===null}function zle(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&Do(e.sources)&&Bn(e.sources,wo)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||Do(e.sourcesContent)&&Bn(e.sourcesContent,uUe))&&(e.names===void 0||e.names===null||Do(e.names)&&Bn(e.names,wo))}function dJ(e){try{const t=JSON.parse(e);if(zle(t))return t}catch{}}function pJ(e){let t=!1,r=0,i=0,o=0,s=0,l=0,u=0,p=0,v;return{get pos(){return r},get error(){return v},get state(){return f(!0,!0)},next(){for(;!t&&r<e.length;){const W=e.charCodeAt(r);if(W===59){i++,o=0,r++;continue}if(W===44){r++;continue}let U=!1,X=!1;if(o+=C(),R())return b();if(o<0)return I("Invalid generatedCharacter found");if(!M()){if(U=!0,s+=C(),R())return b();if(s<0)return I("Invalid sourceIndex found");if(M())return I("Unsupported Format: No entries after sourceIndex");if(l+=C(),R())return b();if(l<0)return I("Invalid sourceLine found");if(M())return I("Unsupported Format: No entries after sourceLine");if(u+=C(),R())return b();if(u<0)return I("Invalid sourceCharacter found");if(!M()){if(X=!0,p+=C(),R())return b();if(p<0)return I("Invalid nameIndex found");if(!M())return I("Unsupported Error Format: Entries after nameIndex")}}return{value:f(U,X),done:t}}return b()},[Symbol.iterator](){return this}};function f(W,U){return{generatedLine:i,generatedCharacter:o,sourceIndex:W?s:void 0,sourceLine:W?l:void 0,sourceCharacter:W?u:void 0,nameIndex:U?p:void 0}}function b(){return t=!0,{value:void 0,done:!0}}function A(W){v===void 0&&(v=W)}function I(W){return A(W),b()}function R(){return v!==void 0}function M(){return r===e.length||e.charCodeAt(r)===44||e.charCodeAt(r)===59}function C(){let W=!0,U=0,X=0;for(;W;r++){if(r>=e.length)return A("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const ee=pUe(e.charCodeAt(r));if(ee===-1)return A("Invalid character in VLQ"),-1;W=(ee&32)!==0,X=X|(ee&31)<<U,U+=5}return(X&1)===0?X=X>>1:(X=X>>1,X=-X),X}}function Zxe(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 Ble(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function dUe(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:N.fail(`${e}: not a base64 value`)}function pUe(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 e2e(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function t2e(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function fUe(e,t){return N.assert(e.sourceIndex===t.sourceIndex),al(e.sourcePosition,t.sourcePosition)}function mUe(e,t){return al(e.generatedPosition,t.generatedPosition)}function _Ue(e){return e.sourcePosition}function hUe(e){return e.generatedPosition}function Gle(e,t,r){const i=ii(r),o=t.sourceRoot?To(t.sourceRoot,i):i,s=To(t.file,i),l=e.getSourceFileLike(s),u=t.sources.map(U=>To(U,o)),p=new Map(u.map((U,X)=>[e.getCanonicalFileName(U),X]));let v,f,b;return{getSourcePosition:W,getGeneratedPosition:C};function A(U){const X=l!==void 0?_L(l,U.generatedLine,U.generatedCharacter,!0):-1;let ee,V;if(Ble(U)){const se=e.getSourceFileLike(u[U.sourceIndex]);ee=t.sources[U.sourceIndex],V=se!==void 0?_L(se,U.sourceLine,U.sourceCharacter,!0):-1}return{generatedPosition:X,source:ee,sourceIndex:U.sourceIndex,sourcePosition:V,nameIndex:U.nameIndex}}function I(){if(v===void 0){const U=pJ(t.mappings),X=Go(U,A);U.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${U.error}`),v=et):v=X}return v}function R(U){if(b===void 0){const X=[];for(const ee of I()){if(!e2e(ee))continue;let V=X[ee.sourceIndex];V||(X[ee.sourceIndex]=V=[]),V.push(ee)}b=X.map(ee=>aN(ee,fUe,t2e))}return b[U]}function M(){if(f===void 0){const U=[];for(const X of I())U.push(X);f=aN(U,mUe,t2e)}return f}function C(U){const X=p.get(e.getCanonicalFileName(U.fileName));if(X===void 0)return U;const ee=R(X);if(!St(ee))return U;let V=IA(ee,U.pos,_Ue,al);V<0&&(V=~V);const se=ee[V];return se===void 0||se.sourceIndex!==X?U:{fileName:s,pos:se.generatedPosition}}function W(U){const X=M();if(!St(X))return U;let ee=IA(X,U.pos,hUe,al);ee<0&&(ee=~ee);const V=X[ee];return V===void 0||!e2e(V)?U:{fileName:u[V.sourceIndex],pos:V.sourcePosition}}}var fJ,pW,fW,mW,gUe=S({"src/compiler/sourcemap.ts"(){ia(),fS(),fJ=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,pW=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,fW=/^\s*(\/\/[@#] .*)?$/,mW={getSourcePosition:ol,getGeneratedPosition:ol}}});function zu(e){return e=Ol(e),e?fs(e):0}function vUe(e){return!e||!qg(e)?!1:St(e.elements,n2e)}function n2e(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function wm(e,t){return r;function r(o){return o.kind===312?t(o):i(o)}function i(o){return e.factory.createBundle(Wt(o.sourceFiles,t),o.prepends)}}function Vle(e){return!!I2(e)}function _W(e){if(I2(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!qg(t))return!1;let r=0;for(const i of t.elements)n2e(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&VA(e)}function mJ(e){return!_W(e)&&(VA(e)||!!e.importClause&&qg(e.importClause.namedBindings)&&vUe(e.importClause.namedBindings))}function _J(e,t){const r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new yJ,l=[],u=new Map;let p,v=!1,f,b=!1,A=!1,I=!1;for(const C of t.statements)switch(C.kind){case 272:o.push(C),!A&&_W(C)&&(A=!0),!I&&mJ(C)&&(I=!0);break;case 271:C.moduleReference.kind===283&&o.push(C);break;case 278:if(C.moduleSpecifier)if(!C.exportClause)o.push(C),b=!0;else if(o.push(C),Pf(C.exportClause))M(C);else{const W=C.exportClause.name;u.get(Rr(W))||($C(l,zu(C),W),u.set(Rr(W),!0),p=Rn(p,W)),A=!0}else M(C);break;case 277:C.isExportEquals&&!f&&(f=C);break;case 243:if(Qr(C,32))for(const W of C.declarationList.declarations)p=r2e(W,u,p,l);break;case 262:if(Qr(C,32))if(Qr(C,2048))v||($C(l,zu(C),e.factory.getDeclarationName(C)),v=!0);else{const W=C.name;u.get(Rr(W))||($C(l,zu(C),W),u.set(Rr(W),!0),p=Rn(p,W))}break;case 263:if(Qr(C,32))if(Qr(C,2048))v||($C(l,zu(C),e.factory.getDeclarationName(C)),v=!0);else{const W=C.name;W&&!u.get(Rr(W))&&($C(l,zu(C),W),u.set(Rr(W),!0),p=Rn(p,W))}break}const R=aq(e.factory,e.getEmitHelperFactory(),t,i,b,A,I);return R&&o.unshift(R),{externalImports:o,exportSpecifiers:s,exportEquals:f,hasExportStarsToExportValues:b,exportedBindings:l,exportedNames:p,externalHelpersImportDeclaration:R};function M(C){for(const W of sa(C.exportClause,Pf).elements)if(!u.get(Rr(W.name))){const U=W.propertyName||W.name;C.moduleSpecifier||s.add(U,W);const X=r.getReferencedImportDeclaration(U)||r.getReferencedValueDeclaration(U);X&&$C(l,zu(X),W.name),u.set(Rr(W.name),!0),p=Rn(p,W.name)}}}function r2e(e,t,r,i){if(na(e.name))for(const o of e.name.elements)Kc(o)||(r=r2e(o,t,r,i));else if(!ul(e.name)){const o=Rr(e.name);t.get(o)||(t.set(o,!0),r=Rn(r,e.name),Jg(e.name)&&$C(i,zu(e),e.name))}return r}function $C(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function hE(e){return hs(e)||e.kind===9||Gd(e.kind)||Ue(e)}function z_(e){return!Ue(e)&&hE(e)}function QC(e){return e>=65&&e<=79}function ZC(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function hW(e){if(!ou(e))return;const t=Ss(e.expression);return IS(t)?t:void 0}function i2e(e,t,r){for(let i=t;i<e.length;i+=1){const o=e[i];if(hW(o))return r.unshift(i),!0;if(qS(o)&&i2e(o.tryBlock.statements,0,r))return r.unshift(i),!0}return!1}function gW(e,t){const r=[];return i2e(e,t,r),r}function hJ(e,t,r){return Vn(e.members,i=>bUe(i,t,r))}function yUe(e){return EUe(e)||Pl(e)}function vW(e){return Vn(e.members,yUe)}function bUe(e,t,r){return qo(e)&&(!!e.initializer||!t)&&Ec(e)===r}function EUe(e){return qo(e)&&Ec(e)}function Yw(e){return e.kind===172&&e.initializer!==void 0}function jle(e){return!la(e)&&(WA(e)||Fd(e))&&Qi(e.name)}function Ule(e){let t;if(e){const r=e.parameters,i=r.length>0&&K1(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;l<s;l++){const u=r[l+o];(t||If(u))&&(t||(t=new Array(s)),t[l]=Py(u))}}return t}function gJ(e){const t=Py(e),r=Ule(sg(e));if(!(!St(t)&&!St(r)))return{decorators:t,parameters:r}}function yW(e,t,r){switch(e.kind){case 177:case 178:return r?SUe(e,t):o2e(e);case 174:return o2e(e);case 172:return TUe(e);default:return}}function SUe(e,t){if(!e.body)return;const{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}=wS(t.members,e),l=If(r)?r:i&&If(i)?i:void 0;if(!l||e!==l)return;const u=Py(l),p=Ule(s);if(!(!St(u)&&!St(p)))return{decorators:u,parameters:p,getDecorators:o&&Py(o),setDecorators:s&&Py(s)}}function o2e(e){if(!e.body)return;const t=Py(e),r=Ule(e);if(!(!St(t)&&!St(r)))return{decorators:t,parameters:r}}function TUe(e){const t=Py(e);if(!!St(t))return{decorators:t}}function Hle(e,t){for(;e;){const r=t(e);if(r!==void 0)return r;e=e.previous}}function qle(e){return{data:e}}function vJ(e,t){var r,i;return gS(t)?(r=e==null?void 0:e.generatedIdentifiers)==null?void 0:r.get(Sw(t)):(i=e==null?void 0:e.identifiers)==null?void 0:i.get(t.escapedText)}function eT(e,t,r){var i,o;gS(t)?((i=e.generatedIdentifiers)!=null||(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(Sw(t),r)):((o=e.identifiers)!=null||(e.identifiers=new Map),e.identifiers.set(t.escapedText,r))}function Jle(e,t){return Hle(e,r=>vJ(r.privateEnv,t))}function Kle(e){return!e.initializer&&Ue(e.name)}function $w(e){return Bn(e,Kle)}var CI,yJ,AUe=S({"src/compiler/transformers/utilities.ts"(){ia(),CI=class KD{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(KD.toKey(t))}get(t){return this._map.get(KD.toKey(t))}set(t,r){return this._map.set(KD.toKey(t),r),this}delete(t){var i;var r;return(i=(r=this._map)==null?void 0:r.delete(KD.toKey(t)))!=null?i:!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(gS(t)||ul(t)){const r=t.emitNode.autoGenerate;if((r.flags&7)===4){const i=Sw(t),o=Zh(i)&&i!==t?KD.toKey(i):`(generated@${fs(i)})`;return N0(!1,r.prefix,o,r.suffix,KD.toKey)}else{const i=`(auto@${r.id})`;return N0(!1,r.prefix,i,r.suffix,KD.toKey)}}return Qi(t)?Rr(t).slice(1):Rr(t)}},yJ=class extends CI{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){const r=this.get(e);r&&(DA(r,t),r.length||this.delete(e))}}}});function tT(e,t,r,i,o,s){let l=e,u;if(jv(e))for(u=e.right;woe(e.left)||LU(e.left);)if(jv(u))l=e=u,u=e.right;else return N.checkDefined(rt(u,t,bt));let p;const v={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:f,emitBindingOrAssignment:b,createArrayBindingOrAssignmentPattern:A=>MUe(r.factory,A),createObjectBindingOrAssignmentPattern:A=>kUe(r.factory,A),createArrayBindingOrAssignmentElement:OUe,visitor:t};if(u&&(u=rt(u,t,bt),N.assert(u),Ue(u)&&Xle(e,u.escapedText)||Yle(e)?u=PI(v,u,!1,l):o?u=PI(v,u,!0,l):Zs(e)&&(l=u)),eP(v,e,u,l,jv(e)),u&&o){if(!St(p))return u;p.push(u)}return r.factory.inlineExpressions(p)||r.factory.createOmittedExpression();function f(A){p=Rn(p,A)}function b(A,I,R,M){N.assertNode(A,s?Ue:bt);const C=s?s(A,I,R):ut(r.factory.createAssignment(N.checkDefined(rt(A,t,bt)),I),R);C.original=M,f(C)}}function Xle(e,t){const r=tb(e);return ML(r)?IUe(r,t):Ue(r)?r.escapedText===t:!1}function IUe(e,t){const r=lR(e);for(const i of r)if(Xle(i,t))return!0;return!1}function Yle(e){const t=P5(e);if(t&&ss(t)&&!w1(t.expression))return!0;const r=tb(e);return!!r&&ML(r)&&xUe(r)}function xUe(e){return!!Ve(lR(e),Yle)}function gE(e,t,r,i,o,s=!1,l){let u;const p=[],v=[],f={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:b,emitBindingOrAssignment:A,createArrayBindingOrAssignmentPattern:I=>PUe(r.factory,I),createObjectBindingOrAssignmentPattern:I=>LUe(r.factory,I),createArrayBindingOrAssignmentElement:I=>wUe(r.factory,I),visitor:t};if(Wi(e)){let I=bw(e);I&&(Ue(I)&&Xle(e,I.escapedText)||Yle(e))&&(I=PI(f,N.checkDefined(rt(I,f.visitor,bt)),!1,I),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,I))}if(eP(f,e,o,e,l),u){const I=r.factory.createTempVariable(void 0);if(s){const R=r.factory.inlineExpressions(u);u=void 0,A(I,R,void 0,void 0)}else{r.hoistVariableDeclaration(I);const R=rs(p);R.pendingExpressions=Rn(R.pendingExpressions,r.factory.createAssignment(I,R.value)),Hr(R.pendingExpressions,u),R.value=I}}for(const{pendingExpressions:I,name:R,value:M,location:C,original:W}of p){const U=r.factory.createVariableDeclaration(R,void 0,void 0,I?r.factory.inlineExpressions(Rn(I,M)):M);U.original=W,ut(U,C),v.push(U)}return v;function b(I){u=Rn(u,I)}function A(I,R,M,C){N.assertNode(I,vS),u&&(R=r.factory.inlineExpressions(Rn(u,R)),u=void 0),p.push({pendingExpressions:u,name:I,value:R,location:M,original:C})}}function eP(e,t,r,i,o){const s=tb(t);if(!o){const l=rt(bw(t),e.visitor,bt);l?r?(r=NUe(e,r,l,i),!z_(l)&&ML(s)&&(r=PI(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}gj(s)?RUe(e,t,s,r,i):vj(s)?DUe(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function RUe(e,t,r,i,o){const s=lR(r),l=s.length;if(l!==1){const v=!PL(t)||l!==0;i=PI(e,i,v,o)}let u,p;for(let v=0;v<l;v++){const f=s[v];if(C5(f)){if(v===l-1){u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);const b=e.context.getEmitHelperFactory().createRestHelper(i,s,p,r);eP(e,f,b,f)}}else{const b=sq(f);if(e.level>=1&&!(f.transformFlags&98304)&&!(tb(f).transformFlags&98304)&&!ss(b))u=Rn(u,rt(f,e.visitor,rie));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);const A=CUe(e,i,b);ss(b)&&(p=Rn(p,A.argumentExpression)),eP(e,f,A,f)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r)}function DUe(e,t,r,i,o){const s=lR(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=PI(e,ut(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&C5(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||Bn(s,Kc)){const v=!PL(t)||l!==0;i=PI(e,i,v,o)}let u,p;for(let v=0;v<l;v++){const f=s[v];if(e.level>=1)if(f.transformFlags&65536||e.hasTransformedPriorElement&&!a2e(f)){e.hasTransformedPriorElement=!0;const b=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(b),p=Rn(p,[b,f]),u=Rn(u,e.createArrayBindingOrAssignmentElement(b))}else u=Rn(u,f);else{if(Kc(f))continue;if(C5(f)){if(v===l-1){const b=e.context.factory.createArraySliceCall(i,v);eP(e,f,b,f)}}else{const b=e.context.factory.createElementAccessExpression(i,v);eP(e,f,b,f)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,o,r),p)for(const[v,f]of p)eP(e,f,v,f)}function a2e(e){const t=tb(e);if(!t||Kc(t))return!0;const r=P5(e);if(r&&!N_(r))return!1;const i=bw(e);return i&&!z_(i)?!1:ML(t)?Bn(lR(t),a2e):Ue(t)}function NUe(e,t,r,i){return t=PI(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function CUe(e,t,r){const{factory:i}=e.context;if(ss(r)){const o=PI(e,N.checkDefined(rt(r.expression,e.visitor,bt)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if(nf(r)){const o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{const o=e.context.factory.createIdentifier(Rr(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function PI(e,t,r,i){if(Ue(t)&&r)return t;{const o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(ut(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function PUe(e,t){return N.assertEachNode(t,V6),e.createArrayBindingPattern(t)}function MUe(e,t){return N.assertEachNode(t,kL),e.createArrayLiteralExpression(Wt(t,e.converters.convertToArrayAssignmentElement))}function LUe(e,t){return N.assertEachNode(t,os),e.createObjectBindingPattern(t)}function kUe(e,t){return N.assertEachNode(t,LL),e.createObjectLiteralExpression(Wt(t,e.converters.convertToObjectAssignmentElement))}function wUe(e,t){return e.createBindingElement(void 0,void 0,t)}function OUe(e){return e}var bJ,WUe=S({"src/compiler/transformers/destructuring.ts"(){ia(),bJ=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(bJ||{})}});function $le(e,t,r=e.createThis()){const i=e.createAssignment(t,r),o=e.createExpressionStatement(i),s=e.createBlock([o],!1),l=e.createClassStaticBlockDeclaration(s);return Fu(l).classThis=t,l}function tP(e){var t;if(!Pl(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return ou(r)&&Wc(r.expression,!0)&&Ue(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function EJ(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&St(e.members,tP)}function Qle(e,t,r,i){if(EJ(t))return t;const o=$le(e,r,i);t.name&&Ma(o.body.statements[0],t.name);const s=e.createNodeArray([o,...t.members]);ut(s,t.members);const l=Nc(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s);return Fu(l).classThis=r,l}var FUe=S({"src/compiler/transformers/classThis.ts"(){ia()}});function nP(e,t,r){const i=Ol(ic(r));return(Nc(i)||Dc(i))&&!i.name&&Qr(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function s2e(e,t,r){const{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(N_(t)||Qi(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(N_(t.expression)&&!Ue(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};const o=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(o);const s=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(o,s),u=i.updateComputedPropertyName(t,l);return{assignedName:o,name:u}}function Zle(e,t,r=e.factory.createThis()){const{factory:i}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),s=i.createExpressionStatement(o),l=i.createBlock([s],!1),u=i.createClassStaticBlockDeclaration(l);return Fu(u).assignedName=t,u}function MI(e){var t;if(!Pl(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return ou(r)&&xC(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function bW(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&St(e.members,MI)}function SJ(e){return!!e.name||bW(e)}function EW(e,t,r,i){if(bW(t))return t;const{factory:o}=e,s=Zle(e,r,i);t.name&&Ma(s.body.statements[0],t.name);const l=Ji(t.members,tP)+1,u=t.members.slice(0,l),p=t.members.slice(l),v=o.createNodeArray([...u,s,...p]);return ut(v,t.members),t=Nc(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,v):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,v),Fu(t).assignedName=r,t}function yR(e,t,r,i){if(i&&La(r)&&Xj(r))return t;const{factory:o}=e,s=ic(t),l=iu(s)?sa(EW(e,s,r),iu):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function zUe(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=s2e(e,t.name,i),u=yR(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,u)}function BUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):nP(o,t.name,t.objectAssignmentInitializer),l=yR(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function GUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):nP(o,t.name,t.initializer),l=yR(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function VUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):nP(o,t.name,t.initializer),l=yR(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function jUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):nP(o,t.name,t.initializer),l=yR(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function UUe(e,t,r,i){var p;const{factory:o}=e,{assignedName:s,name:l}=s2e(e,t.name,i),u=yR(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,(p=t.questionToken)!=null?p:t.exclamationToken,t.type,u)}function HUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):nP(o,t.left,t.right),l=yR(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function qUe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=yR(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function Ip(e,t,r,i){switch(t.kind){case 303:return zUe(e,t,r,i);case 304:return BUe(e,t,r,i);case 260:return GUe(e,t,r,i);case 169:return VUe(e,t,r,i);case 208:return jUe(e,t,r,i);case 172:return UUe(e,t,r,i);case 226:return HUe(e,t,r,i);case 277:return qUe(e,t,r,i)}}var JUe=S({"src/compiler/transformers/namedEvaluation.ts"(){ia()}});function TJ(e,t,r,i,o,s){const l=rt(t.tag,r,bt);N.assert(l);const u=[void 0],p=[],v=[],f=t.template;if(s===0&&!bU(f))return xn(t,r,e);const{factory:b}=e;if(lI(f))p.push(ece(b,f)),v.push(tce(b,f,i));else{p.push(ece(b,f.head)),v.push(tce(b,f.head,i));for(const I of f.templateSpans)p.push(ece(b,I.literal)),v.push(tce(b,I.literal,i)),u.push(N.checkDefined(rt(I.expression,r,bt)))}const A=e.getEmitHelperFactory().createTemplateObjectHelper(b.createArrayLiteralExpression(p),b.createArrayLiteralExpression(v));if(mc(i)){const I=b.createUniqueName("templateObject");o(I),u[0]=b.createLogicalOr(I,b.createAssignment(I,A))}else u[0]=A;return b.createCallExpression(l,void 0,u)}function ece(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function tce(e,t,r){let i=t.rawText;if(i===void 0){N.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=W1(r,t);const o=t.kind===15||t.kind===18;i=i.substring(1,i.length-(o?1:2))}return i=i.replace(/\r\n?/g,`
`),ut(e.createStringLiteral(i),t)}var AJ,KUe=S({"src/compiler/transformers/taggedTemplate.ts"(){ia(),AJ=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(AJ||{})}});function nce(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getEmitResolver(),p=e.getCompilerOptions(),v=ps(p),f=Wu(p),b=!!p.experimentalDecorators,A=p.emitDecoratorMetadata?ice(e):void 0,I=e.onEmitNode,R=e.onSubstituteNode;e.onEmitNode=_c,e.onSubstituteNode=Ll,e.enableSubstitution(211),e.enableSubstitution(212);let M,C,W,U,X,ee,V,se;return G;function G(Z){return Z.kind===313?re(Z):_e(Z)}function re(Z){return t.createBundle(Z.sourceFiles.map(_e),Vi(Z.prepends,we=>we.kind===315?AH(we,"js"):we))}function _e(Z){if(Z.isDeclarationFile)return Z;M=Z;const we=ye(Z,it);return Hg(we,e.readEmitHelpers()),M=void 0,we}function ye(Z,we){const gt=U,fn=X,Er=ee;Q(Z);const Ar=we(Z);return U!==gt&&(X=fn),U=gt,ee=Er,Ar}function Q(Z){switch(Z.kind){case 312:case 269:case 268:case 241:U=Z,X=void 0;break;case 263:case 262:if(Qr(Z,128))break;Z.name?J(Z):N.assert(Z.kind===263||Qr(Z,2048));break}}function Y(Z){return ye(Z,oe)}function oe(Z){return Z.transformFlags&1?He(Z):Z}function he(Z){return ye(Z,Ie)}function Ie(Z){switch(Z.kind){case 272:case 271:case 277:case 278:return ie(Z);default:return oe(Z)}}function de(Z){const we=Lo(Z);if(we===Z||zl(Z))return!1;if(!we||we.kind!==Z.kind)return!0;switch(Z.kind){case 272:if(N.assertNode(we,Fc),Z.importClause!==we.importClause||Z.attributes!==we.attributes)return!0;break;case 271:if(N.assertNode(we,au),Z.name!==we.name||Z.isTypeOnly!==we.isTypeOnly||Z.moduleReference!==we.moduleReference&&(ep(Z.moduleReference)||ep(we.moduleReference)))return!0;break;case 278:if(N.assertNode(we,rc),Z.exportClause!==we.exportClause||Z.attributes!==we.attributes)return!0;break}return!1}function ie(Z){if(de(Z))return Z.transformFlags&1?xn(Z,Y,e):Z;switch(Z.kind){case 272:return En(Z);case 271:return Xa(Z);case 277:return li(Z);case 278:return Qn(Z);default:N.fail("Unhandled ellided statement")}}function ge(Z){return ye(Z,Ce)}function Ce(Z){if(!(Z.kind===278||Z.kind===272||Z.kind===273||Z.kind===271&&Z.moduleReference.kind===283))return Z.transformFlags&1||Qr(Z,32)?He(Z):Z}function qe(Z){return we=>ye(we,gt=>Se(gt,Z))}function Se(Z,we){switch(Z.kind){case 176:return Dn(Z);case 172:return Bt(Z,we);case 177:return Ba(Z,we);case 178:return Tn(Z,we);case 174:return Po(Z,we);case 175:return xn(Z,Y,e);case 240:return Z;case 181:return;default:return N.failBadSyntaxKind(Z)}}function Le(Z){return we=>ye(we,gt=>Ne(gt,Z))}function Ne(Z,we){switch(Z.kind){case 303:case 304:case 305:return Y(Z);case 177:return Ba(Z,we);case 178:return Tn(Z,we);case 174:return Po(Z,we);default:return N.failBadSyntaxKind(Z)}}function Oe(Z){return Au(Z)?void 0:Y(Z)}function At(Z){return Ra(Z)?void 0:Y(Z)}function be(Z){if(!Au(Z)&&!(XA(Z.kind)&28895)&&!(C&&Z.kind===95))return Z}function He(Z){if($i(Z)&&Qr(Z,128))return t.createNotEmittedStatement(Z);switch(Z.kind){case 95:case 90:return C?void 0:Z;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(Z);case 270:return;case 264:return t.createNotEmittedStatement(Z);case 263:return on(Z);case 231:return Yt(Z);case 298:return Nr(Z);case 233:return Kt(Z);case 210:return Ft(Z);case 176:case 172:case 174:case 177:case 178:case 175:return N.fail("Class and object literal elements must be visited with their respective visitors");case 262:return On(Z);case 218:return Je(Z);case 219:return mt(Z);case 169:return pt(Z);case 217:return dt(Z);case 216:case 234:return j(Z);case 238:return Dt(Z);case 213:return Ye(Z);case 214:return _t(Z);case 215:return Gt(Z);case 235:return ot(Z);case 266:return q(Z);case 243:return Pt(Z);case 260:return Fe(Z);case 267:return Tt(Z);case 271:return Xa(Z);case 285:return gn(Z);case 286:return hn(Z);default:return xn(Z,Y,e)}}function it(Z){const we=md(p,"alwaysStrict")&&!(mc(Z)&&f>=5)&&!im(Z);return t.updateSourceFile(Z,cJ(Z.statements,he,e,0,we))}function Ft(Z){return t.updateObjectLiteralExpression(Z,Un(Z.properties,Le(Z),Fg))}function yt(Z){let we=0;St(hJ(Z,!0,!0))&&(we|=1);const gt=D_(Z);return gt&&ic(gt.expression).kind!==106&&(we|=64),zv(b,Z)&&(we|=2),WN(b,Z)&&(we|=4),Qt(Z)?we|=8:ao(Z)?we|=32:Gl(Z)&&(we|=16),we}function Ze(Z){return!!(Z.transformFlags&8192)}function It(Z){return If(Z)||St(Z.typeParameters)||St(Z.heritageClauses,Ze)||St(Z.members,Ze)}function on(Z){var kl;const we=yt(Z),gt=v<=1&&!!(we&7);if(!It(Z)&&!zv(b,Z)&&!Qt(Z))return t.updateClassDeclaration(Z,Un(Z.modifiers,be,Ra),Z.name,void 0,Un(Z.heritageClauses,Y,of),Un(Z.members,qe(Z),nu));gt&&e.startLexicalEnvironment();const fn=gt||we&8;let Er=fn?Un(Z.modifiers,At,dl):Un(Z.modifiers,Y,dl);we&2&&(Er=Xn(Er,Z));const Jr=fn&&!Z.name||we&4||we&1?(kl=Z.name)!=null?kl:t.getGeneratedNameForNode(Z):Z.name,Di=t.updateClassDeclaration(Z,Er,Jr,void 0,Un(Z.heritageClauses,Y,of),Nn(Z));let br=Ka(Z);we&1&&(br|=64),hr(Di,br);let Jo;if(gt){const Gc=[Di],xl=wU(Wa(M.text,Z.members.end),20),Zl=t.getInternalName(Z),Ns=t.createPartiallyEmittedExpression(Zl);j2(Ns,xl.end),hr(Ns,3072);const ac=t.createReturnStatement(Ns);fC(ac,xl.pos),hr(ac,3840),Gc.push(ac),tg(Gc,e.endLexicalEnvironment());const ap=t.createImmediatelyInvokedArrowFunction(Gc);Zk(ap,1);const sp=t.createVariableDeclaration(t.getLocalName(Z,!1,!1),void 0,void 0,ap);kr(sp,Z);const Yc=t.createVariableStatement(void 0,t.createVariableDeclarationList([sp],1));kr(Yc,Z),fc(Yc,Z),Ma(Yc,Vg(Z)),Qu(Yc),Jo=Yc}else Jo=Di;if(fn){if(we&8)return[Jo,Ga(Z)];if(we&32)return[Jo,t.createExportDefault(t.getLocalName(Z,!1,!0))];if(we&16)return[Jo,t.createExternalModuleExport(t.getDeclarationName(Z,!1,!0))]}return Jo}function Yt(Z){let we=Un(Z.modifiers,At,dl);return zv(b,Z)&&(we=Xn(we,Z)),t.updateClassExpression(Z,we,Z.name,void 0,Un(Z.heritageClauses,Y,of),Nn(Z))}function Nn(Z){const we=Un(Z.members,qe(Z),nu);let gt;const fn=sg(Z),Er=fn&&Vn(fn.parameters,Ar=>gp(Ar,fn));if(Er)for(const Ar of Er){const Jr=t.createPropertyDeclaration(void 0,Ar.name,void 0,void 0,void 0);kr(Jr,Ar),gt=Rn(gt,Jr)}return gt?(gt=Hr(gt,we),ut(t.createNodeArray(gt),Z.members)):we}function Xn(Z,we){const gt=tn(we,we);if(St(gt)){const fn=[];Hr(fn,n6(Z,Ew)),Hr(fn,Vn(Z,Au)),Hr(fn,gt),Hr(fn,Vn(tre(Z,Ew),Ra)),Z=ut(t.createNodeArray(fn),Z)}return Z}function yn(Z,we,gt){if(di(gt)&&Kj(b,we,gt)){const fn=tn(we,gt);if(St(fn)){const Er=[];Hr(Er,Vn(Z,Au)),Hr(Er,fn),Hr(Er,Vn(Z,Ra)),Z=ut(t.createNodeArray(Er),Z)}}return Z}function tn(Z,we){if(!!b)return l2e?gi(Z,we):en(Z,we)}function en(Z,we){if(A){let gt;if(bo(Z)){const fn=r().createMetadataHelper("design:type",A.serializeTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z));gt=Rn(gt,t.createDecorator(fn))}if(Co(Z)){const fn=r().createMetadataHelper("design:paramtypes",A.serializeParameterTypesOfNode({currentLexicalScope:U,currentNameScope:we},Z,we));gt=Rn(gt,t.createDecorator(fn))}if(Ui(Z)){const fn=r().createMetadataHelper("design:returntype",A.serializeReturnTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z));gt=Rn(gt,t.createDecorator(fn))}return gt}}function gi(Z,we){if(A){let gt;if(bo(Z)){const fn=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),A.serializeTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z)));gt=Rn(gt,fn)}if(Co(Z)){const fn=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),A.serializeParameterTypesOfNode({currentLexicalScope:U,currentNameScope:we},Z,we)));gt=Rn(gt,fn)}if(Ui(Z)){const fn=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),A.serializeReturnTypeOfNode({currentLexicalScope:U,currentNameScope:we},Z)));gt=Rn(gt,fn)}if(gt){const fn=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(gt,!0));return[t.createDecorator(fn)]}}}function bo(Z){const we=Z.kind;return we===174||we===177||we===178||we===172}function Ui(Z){return Z.kind===174}function Co(Z){switch(Z.kind){case 263:case 231:return sg(Z)!==void 0;case 174:case 177:case 178:return!0}return!1}function tr(Z,we){const gt=Z.name;return Qi(gt)?t.createIdentifier(""):ss(gt)?we&&!z_(gt.expression)?t.getGeneratedNameForNode(gt):gt.expression:Ue(gt)?t.createStringLiteral(Rr(gt)):t.cloneNode(gt)}function Ci(Z){const we=Z.name;if(ss(we)&&(!Ec(Z)&&ee||If(Z)&&b)){const gt=rt(we.expression,Y,bt);N.assert(gt);const fn=Rm(gt);if(!z_(fn)){const Er=t.getGeneratedNameForNode(we);return l(Er),t.updateComputedPropertyName(we,t.createAssignment(Er,gt))}}return N.checkDefined(rt(we,Y,pc))}function Nr(Z){if(Z.token!==119)return xn(Z,Y,e)}function Kt(Z){return t.updateExpressionWithTypeArguments(Z,N.checkDefined(rt(Z.expression,Y,tp)),void 0)}function nt(Z){return!Hl(Z.body)}function Bt(Z,we){const gt=Z.flags&33554432||Qr(Z,64);if(gt&&!(b&&If(Z)))return;let fn=di(we)?gt?Un(Z.modifiers,At,dl):Un(Z.modifiers,Y,dl):Un(Z.modifiers,Oe,dl);return fn=yn(fn,Z,we),gt?t.updatePropertyDeclaration(Z,Ro(fn,t.createModifiersFromModifierFlags(128)),N.checkDefined(rt(Z.name,Y,pc)),void 0,void 0,void 0):t.updatePropertyDeclaration(Z,fn,Ci(Z),void 0,void 0,rt(Z.initializer,Y,bt))}function Dn(Z){if(!!nt(Z))return t.updateConstructorDeclaration(Z,void 0,Ml(Z.parameters,Y,e),yi(Z.body,Z))}function si(Z,we,gt,fn,Er,Ar){const Jr=fn[Er],Di=we[Jr];if(Hr(Z,Un(we,Y,$i,gt,Jr-gt)),qS(Di)){const br=[];si(br,Di.tryBlock.statements,0,fn,Er+1,Ar);const Jo=t.createNodeArray(br);ut(Jo,Di.tryBlock.statements),Z.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,br),rt(Di.catchClause,Y,uE),rt(Di.finallyBlock,Y,Yo)))}else Hr(Z,Un(we,Y,$i,Jr,1)),Hr(Z,Ar);Hr(Z,Un(we,Y,$i,Jr+1))}function yi(Z,we){const gt=we&&Vn(we.parameters,br=>gp(br,we));if(!St(gt))return lf(Z,Y,e);let fn=[];o();const Er=t.copyPrologue(Z.statements,fn,!1,Y),Ar=gW(Z.statements,Er),Jr=Vi(gt,oo);Ar.length?si(fn,Z.statements,Er,Ar,0,Jr):(Hr(fn,Jr),Hr(fn,Un(Z.statements,Y,$i,Er))),fn=t.mergeLexicalEnvironment(fn,s());const Di=t.createBlock(ut(t.createNodeArray(fn),Z.statements),!0);return ut(Di,Z),kr(Di,Z),Di}function oo(Z){const we=Z.name;if(!Ue(we))return;const gt=Qa(ut(t.cloneNode(we),we),we.parent);hr(gt,3168);const fn=Qa(ut(t.cloneNode(we),we),we.parent);return hr(fn,3072),Qu(Qk(ut(kr(t.createExpressionStatement(t.createAssignment(ut(t.createPropertyAccessExpression(t.createThis(),gt),Z.name),fn)),Z),E0(Z,-1))))}function Po(Z,we){if(!(Z.transformFlags&1))return Z;if(!nt(Z))return;let gt=di(we)?Un(Z.modifiers,Y,dl):Un(Z.modifiers,Oe,dl);return gt=yn(gt,Z,we),t.updateMethodDeclaration(Z,gt,Z.asteriskToken,Ci(Z),void 0,void 0,Ml(Z.parameters,Y,e),void 0,lf(Z.body,Y,e))}function _a(Z){return!(Hl(Z.body)&&Qr(Z,64))}function Ba(Z,we){if(!(Z.transformFlags&1))return Z;if(!_a(Z))return;let gt=di(we)?Un(Z.modifiers,Y,dl):Un(Z.modifiers,Oe,dl);return gt=yn(gt,Z,we),t.updateGetAccessorDeclaration(Z,gt,Ci(Z),Ml(Z.parameters,Y,e),void 0,lf(Z.body,Y,e)||t.createBlock([]))}function Tn(Z,we){if(!(Z.transformFlags&1))return Z;if(!_a(Z))return;let gt=di(we)?Un(Z.modifiers,Y,dl):Un(Z.modifiers,Oe,dl);return gt=yn(gt,Z,we),t.updateSetAccessorDeclaration(Z,gt,Ci(Z),Ml(Z.parameters,Y,e),lf(Z.body,Y,e)||t.createBlock([]))}function On(Z){if(!nt(Z))return t.createNotEmittedStatement(Z);const we=t.updateFunctionDeclaration(Z,Un(Z.modifiers,be,Ra),Z.asteriskToken,Z.name,void 0,Ml(Z.parameters,Y,e),void 0,lf(Z.body,Y,e)||t.createBlock([]));if(Qt(Z)){const gt=[we];return ka(gt,Z),gt}return we}function Je(Z){return nt(Z)?t.updateFunctionExpression(Z,Un(Z.modifiers,be,Ra),Z.asteriskToken,Z.name,void 0,Ml(Z.parameters,Y,e),void 0,lf(Z.body,Y,e)||t.createBlock([])):t.createOmittedExpression()}function mt(Z){return t.updateArrowFunction(Z,Un(Z.modifiers,be,Ra),void 0,Ml(Z.parameters,Y,e),void 0,Z.equalsGreaterThanToken,lf(Z.body,Y,e))}function pt(Z){if(K1(Z))return;const we=t.updateParameterDeclaration(Z,Un(Z.modifiers,gt=>Au(gt)?Y(gt):void 0,dl),Z.dotDotDotToken,N.checkDefined(rt(Z.name,Y,vS)),void 0,void 0,rt(Z.initializer,Y,bt));return we!==Z&&(fc(we,Z),ut(we,L_(Z)),Ma(we,L_(Z)),hr(we.name,64)),we}function Pt(Z){if(Qt(Z)){const we=rC(Z.declarationList);return we.length===0?void 0:ut(t.createExpressionStatement(t.inlineExpressions(Wt(we,le))),Z)}else return xn(Z,Y,e)}function le(Z){const we=Z.name;return na(we)?tT(Z,Y,e,0,!1,oc):ut(t.createAssignment(co(we),N.checkDefined(rt(Z.initializer,Y,bt))),Z)}function Fe(Z){const we=t.updateVariableDeclaration(Z,N.checkDefined(rt(Z.name,Y,vS)),void 0,void 0,rt(Z.initializer,Y,bt));return Z.type&&Bae(we.name,Z.type),we}function dt(Z){const we=ic(Z.expression,-7);if(bS(we)){const gt=rt(Z.expression,Y,bt);return N.assert(gt),t.createPartiallyEmittedExpression(gt,Z)}return xn(Z,Y,e)}function j(Z){const we=rt(Z.expression,Y,bt);return N.assert(we),t.createPartiallyEmittedExpression(we,Z)}function ot(Z){const we=rt(Z.expression,Y,tp);return N.assert(we),t.createPartiallyEmittedExpression(we,Z)}function Dt(Z){const we=rt(Z.expression,Y,bt);return N.assert(we),t.createPartiallyEmittedExpression(we,Z)}function Ye(Z){return t.updateCallExpression(Z,N.checkDefined(rt(Z.expression,Y,bt)),void 0,Un(Z.arguments,Y,bt))}function _t(Z){return t.updateNewExpression(Z,N.checkDefined(rt(Z.expression,Y,bt)),void 0,Un(Z.arguments,Y,bt))}function Gt(Z){return t.updateTaggedTemplateExpression(Z,N.checkDefined(rt(Z.tag,Y,bt)),void 0,N.checkDefined(rt(Z.template,Y,FA)))}function gn(Z){return t.updateJsxSelfClosingElement(Z,N.checkDefined(rt(Z.tagName,Y,CN)),void 0,N.checkDefined(rt(Z.attributes,Y,cE)))}function hn(Z){return t.updateJsxOpeningElement(Z,N.checkDefined(rt(Z.tagName,Y,CN)),void 0,N.checkDefined(rt(Z.attributes,Y,cE)))}function pn(Z){return!z1(Z)||tE(p)}function q(Z){if(!pn(Z))return t.createNotEmittedStatement(Z);const we=[];let gt=4;const fn=ke(we,Z);fn&&(f!==4||U!==M)&&(gt|=1024);const Er=da(Z),Ar=mu(Z),Jr=Qt(Z)?t.getExternalModuleOrNamespaceExportName(W,Z,!1,!0):t.getDeclarationName(Z,!1,!0);let Di=t.createLogicalOr(Jr,t.createAssignment(Jr,t.createObjectLiteralExpression()));if(Qt(Z)){const Jo=t.getLocalName(Z,!1,!0);Di=t.createAssignment(Jo,Di)}const br=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Er)],void 0,We(Z,Ar)),void 0,[Di]));return kr(br,Z),fn&&(I0(br,void 0),iI(br,void 0)),ut(br,Z),k_(br,gt),we.push(br),we}function We(Z,we){const gt=W;W=we;const fn=[];i();const Er=Wt(Z.members,Lt);return tg(fn,s()),Hr(fn,Er),W=gt,t.createBlock(ut(t.createNodeArray(fn),Z.members),!0)}function Lt(Z){const we=tr(Z,!1),gt=L(Z),fn=t.createAssignment(t.createElementAccessExpression(W,we),gt),Er=gt.kind===11?fn:t.createAssignment(t.createElementAccessExpression(W,fn),we);return ut(t.createExpressionStatement(ut(Er,Z)),Z)}function L(Z){const we=u.getConstantValue(Z);return we!==void 0?typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we):(Ps(),Z.initializer?N.checkDefined(rt(Z.initializer,Y,bt)):t.createVoidZero())}function me(Z){const we=Lo(Z,nc);return we?iJ(we,tE(p)):!0}function J(Z){X||(X=new Map);const we=je(Z);X.has(we)||X.set(we,Z)}function fe(Z){if(X){const we=je(Z);return X.get(we)===Z}return!0}function je(Z){return N.assertNode(Z.name,Ue),Z.name.escapedText}function ke(Z,we){const gt=t.createVariableDeclaration(t.getLocalName(we,!1,!0)),fn=U.kind===312?0:1,Er=t.createVariableStatement(Un(we.modifiers,be,Ra),t.createVariableDeclarationList([gt],fn));return kr(gt,we),I0(gt,void 0),iI(gt,void 0),kr(Er,we),J(we),fe(we)?(we.kind===266?Ma(Er.declarationList,we):Ma(Er,we),fc(Er,we),k_(Er,2048),Z.push(Er),!0):!1}function Tt(Z){if(!me(Z))return t.createNotEmittedStatement(Z);N.assertNode(Z.name,Ue,"A TypeScript namespace should have an Identifier name."),wa();const we=[];let gt=4;const fn=ke(we,Z);fn&&(f!==4||U!==M)&&(gt|=1024);const Er=da(Z),Ar=mu(Z),Jr=Qt(Z)?t.getExternalModuleOrNamespaceExportName(W,Z,!1,!0):t.getDeclarationName(Z,!1,!0);let Di=t.createLogicalOr(Jr,t.createAssignment(Jr,t.createObjectLiteralExpression()));if(Qt(Z)){const Jo=t.getLocalName(Z,!1,!0);Di=t.createAssignment(Jo,Di)}const br=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,Er)],void 0,kt(Z,Ar)),void 0,[Di]));return kr(br,Z),fn&&(I0(br,void 0),iI(br,void 0)),ut(br,Z),k_(br,gt),we.push(br),we}function kt(Z,we){const gt=W,fn=C,Er=X;W=we,C=Z,X=void 0;const Ar=[];i();let Jr,Di;if(Z.body)if(Z.body.kind===268)ye(Z.body,Jo=>Hr(Ar,Un(Jo.statements,ge,$i))),Jr=Z.body.statements,Di=Z.body;else{const Jo=Tt(Z.body);Jo&&(Do(Jo)?Hr(Ar,Jo):Ar.push(Jo));const kl=nn(Z).body;Jr=E0(kl.statements,-1)}tg(Ar,s()),W=gt,C=fn,X=Er;const br=t.createBlock(ut(t.createNodeArray(Ar),Jr),!0);return ut(br,Di),(!Z.body||Z.body.kind!==268)&&hr(br,Ka(br)|3072),br}function nn(Z){if(Z.body.kind===267)return nn(Z.body)||Z.body}function En(Z){if(!Z.importClause)return Z;if(Z.importClause.isTypeOnly)return;const we=rt(Z.importClause,or,Ih);return we||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?t.updateImportDeclaration(Z,void 0,we,Z.moduleSpecifier,Z.attributes):void 0}function or(Z){N.assert(!Z.isTypeOnly);const we=pe(Z)?Z.name:void 0,gt=rt(Z.namedBindings,pr,Sj);return we||gt?t.updateImportClause(Z,!1,we,gt):void 0}function pr(Z){if(Z.kind===274)return pe(Z)?Z:void 0;{const we=p.verbatimModuleSyntax||p.preserveValueImports&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),gt=Un(Z.elements,ai,rp);return we||St(gt)?t.updateNamedImports(Z,gt):void 0}}function ai(Z){return!Z.isTypeOnly&&pe(Z)?Z:void 0}function li(Z){return p.verbatimModuleSyntax||u.isValueAliasDeclaration(Z)?xn(Z,Y,e):void 0}function Qn(Z){if(Z.isTypeOnly)return;if(!Z.exportClause||xh(Z.exportClause))return Z;const we=p.verbatimModuleSyntax||!!Z.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),gt=rt(Z.exportClause,fn=>Fi(fn,we),uj);return gt?t.updateExportDeclaration(Z,void 0,Z.isTypeOnly,gt,Z.moduleSpecifier,Z.attributes):void 0}function qr(Z,we){const gt=Un(Z.elements,vi,$u);return we||St(gt)?t.updateNamedExports(Z,gt):void 0}function Ao(Z){return t.updateNamespaceExport(Z,N.checkDefined(rt(Z.name,Y,Ue)))}function Fi(Z,we){return xh(Z)?Ao(Z):qr(Z,we)}function vi(Z){return!Z.isTypeOnly&&(p.verbatimModuleSyntax||u.isValueAliasDeclaration(Z))?Z:void 0}function ya(Z){return pe(Z)||!mc(M)&&u.isTopLevelValueImportEqualsWithEntityName(Z)}function Xa(Z){if(Z.isTypeOnly)return;if(h0(Z)){const gt=pe(Z);return!gt&&p.importsNotUsedAsValues===1?kr(ut(t.createImportDeclaration(void 0,void 0,Z.moduleReference.expression,void 0),Z),Z):gt?xn(Z,Y,e):void 0}if(!ya(Z))return;const we=hw(t,Z.moduleReference);return hr(we,7168),Gl(Z)||!Qt(Z)?kr(ut(t.createVariableStatement(Un(Z.modifiers,be,Ra),t.createVariableDeclarationList([kr(t.createVariableDeclaration(Z.name,void 0,void 0,we),Z)])),Z),Z):kr(Ts(Z.name,we,Z),Z)}function Qt(Z){return C!==void 0&&Qr(Z,32)}function ba(Z){return C===void 0&&Qr(Z,32)}function Gl(Z){return ba(Z)&&!Qr(Z,2048)}function ao(Z){return ba(Z)&&Qr(Z,2048)}function Ga(Z){const we=t.createAssignment(t.getExternalModuleOrNamespaceExportName(W,Z,!1,!0),t.getLocalName(Z));Ma(we,xf(Z.name?Z.name.pos:Z.pos,Z.end));const gt=t.createExpressionStatement(we);return Ma(gt,xf(-1,Z.end)),gt}function ka(Z,we){Z.push(Ga(we))}function Ts(Z,we,gt){return ut(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(W,Z,!1,!0),we)),gt)}function oc(Z,we,gt){return ut(t.createAssignment(co(Z),we),gt)}function co(Z){return t.getNamespaceMemberName(W,Z,!1,!0)}function da(Z){const we=t.getGeneratedNameForNode(Z);return Ma(we,Z.name),we}function mu(Z){return t.getGeneratedNameForNode(Z)}function Ps(){(V&8)===0&&(V|=8,e.enableSubstitution(80))}function wa(){(V&2)===0&&(V|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function yl(Z){return Ol(Z).kind===267}function wf(Z){return Ol(Z).kind===266}function _c(Z,we,gt){const fn=se,Er=M;io(we)&&(M=we),V&2&&yl(we)&&(se|=2),V&8&&wf(we)&&(se|=8),I(Z,we,gt),se=fn,M=Er}function Ll(Z,we){return we=R(Z,we),Z===1?Wo(we):ip(we)?fl(we):we}function fl(Z){if(V&2){const we=Z.name,gt=Xs(we);if(gt){if(Z.objectAssignmentInitializer){const fn=t.createAssignment(gt,Z.objectAssignmentInitializer);return ut(t.createPropertyAssignment(we,fn),Z)}return ut(t.createPropertyAssignment(we,gt),Z)}}return Z}function Wo(Z){switch(Z.kind){case 80:return an(Z);case 211:return su(Z);case 212:return _u(Z)}return Z}function an(Z){return Xs(Z)||Z}function Xs(Z){if(V&se&&!ul(Z)&&!Jg(Z)){const we=u.getReferencedExportContainer(Z,!1);if(we&&we.kind!==312&&(se&2&&we.kind===267||se&8&&we.kind===266))return ut(t.createPropertyAccessExpression(t.getGeneratedNameForNode(we),Z),Z)}}function su(Z){return Gs(Z)}function _u(Z){return Gs(Z)}function Dp(Z){return Z.replace(/\*\//g,"*_/")}function Gs(Z){const we=Pc(Z);if(we!==void 0){Fae(Z,we);const gt=typeof we=="string"?t.createStringLiteral(we):we<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-we)):t.createNumericLiteral(we);if(!p.removeComments){const fn=Ol(Z,js);k7(gt,3,` ${Dp(bc(fn))} `)}return gt}return Z}function Pc(Z){if(!dm(p))return Br(Z)||el(Z)?u.getConstantValue(Z):void 0}function pe(Z){return p.verbatimModuleSyntax||dr(Z)||(p.preserveValueImports?u.isValueAliasDeclaration(Z):u.isReferencedAliasDeclaration(Z))}}var l2e,XUe=S({"src/compiler/transformers/ts.ts"(){ia(),l2e=!1}});function rce(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:u}=e,p=e.getEmitResolver(),v=e.getCompilerOptions(),f=ps(v),b=TC(v),A=!!v.experimentalDecorators,I=!b,R=b&&f<9,M=I||R,C=f<9,W=f<99?-1:b?0:3,U=f<9,X=U&&f>=2,ee=M||C||W===-1,V=e.onSubstituteNode;e.onSubstituteNode=su;const se=e.onEmitNode;e.onEmitNode=Xs;let G=!1,re,_e,ye,Q,Y;const oe=new Map,he=new Set;let Ie,de,ie=!1,ge=!1;return wm(e,Ce);function Ce(pe){if(pe.isDeclarationFile||(Y=void 0,G=!!(Dm(pe)&32),!ee&&!G))return pe;const Z=xn(pe,Se,e);return Hg(Z,e.readEmitHelpers()),Z}function qe(pe){switch(pe.kind){case 129:return Bt()?void 0:pe;default:return ni(pe,Ra)}}function Se(pe){if(!(pe.transformFlags&16777216)&&!(pe.transformFlags&134234112))return pe;switch(pe.kind){case 129:return N.fail("Use `modifierVisitor` instead.");case 263:return hn(pe);case 231:return q(pe);case 175:case 172:return N.fail("Use `classElementVisitor` instead.");case 303:return Ze(pe);case 243:return It(pe);case 260:return on(pe);case 169:return Yt(pe);case 208:return Nn(pe);case 277:return Xn(pe);case 81:return Ft(pe);case 211:return _a(pe);case 212:return Ba(pe);case 224:case 225:return Tn(pe,!1);case 226:return dt(pe,!1);case 217:return ot(pe,!1);case 213:return pt(pe);case 244:return Je(pe);case 215:return Pt(pe);case 248:return On(pe);case 110:return L(pe);case 262:case 218:return Ui(void 0,Le,pe);case 176:case 174:case 177:case 178:return Ui(pe,Le,pe);default:return Le(pe)}}function Le(pe){return xn(pe,Se,e)}function Ne(pe){switch(pe.kind){case 224:case 225:return Tn(pe,!0);case 226:return dt(pe,!0);case 361:return j(pe,!0);case 217:return ot(pe,!0);default:return Se(pe)}}function Oe(pe){switch(pe.kind){case 298:return xn(pe,Oe,e);case 233:return Gt(pe);default:return Se(pe)}}function At(pe){switch(pe.kind){case 210:case 209:return an(pe);default:return Se(pe)}}function be(pe){switch(pe.kind){case 176:return Ui(pe,en,pe);case 177:case 178:case 174:return Ui(pe,bo,pe);case 172:return Ui(pe,Dn,pe);case 175:return Ui(pe,Lt,pe);case 167:return tn(pe);case 240:return pe;default:return dl(pe)?qe(pe):Se(pe)}}function He(pe){switch(pe.kind){case 167:return tn(pe);default:return Se(pe)}}function it(pe){switch(pe.kind){case 172:return nt(pe);case 177:case 178:return be(pe);default:N.assertMissingNode(pe,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Ft(pe){return!C||$i(pe.parent)?pe:kr(t.createIdentifier(""),pe)}function yt(pe){const Z=da(pe.left);if(Z){const we=rt(pe.right,Se,bt);return kr(r().createClassPrivateFieldInHelper(Z.brandCheckIdentifier,we),pe)}return xn(pe,Se,e)}function Ze(pe){return yp(pe,Fe)&&(pe=Ip(e,pe)),xn(pe,Se,e)}function It(pe){const Z=Q;Q=[];const we=xn(pe,Se,e),gt=St(Q)?[we,...Q]:we;return Q=Z,gt}function on(pe){return yp(pe,Fe)&&(pe=Ip(e,pe)),xn(pe,Se,e)}function Yt(pe){return yp(pe,Fe)&&(pe=Ip(e,pe)),xn(pe,Se,e)}function Nn(pe){return yp(pe,Fe)&&(pe=Ip(e,pe)),xn(pe,Se,e)}function Xn(pe){return yp(pe,Fe)&&(pe=Ip(e,pe,!0,pe.isExportEquals?"":"default")),xn(pe,Se,e)}function yn(pe){return St(ye)&&(Vd(pe)?(ye.push(pe.expression),pe=t.updateParenthesizedExpression(pe,t.inlineExpressions(ye))):(ye.push(pe),pe=t.inlineExpressions(ye)),ye=void 0),pe}function tn(pe){const Z=rt(pe.expression,Se,bt);return t.updateComputedPropertyName(pe,yn(Z))}function en(pe){return Ie?fe(pe,Ie):Le(pe)}function gi(pe){return!!(C||Ec(pe)&&Dm(pe)&32)}function bo(pe){if(N.assert(!If(pe)),!ud(pe)||!gi(pe))return xn(pe,be,e);const Z=da(pe.name);if(N.assert(Z,"Undeclared private name for property declaration."),!Z.isValid)return pe;const we=Co(pe);we&&Xa().push(t.createAssignment(we,t.createFunctionExpression(Vn(pe.modifiers,gt=>Ra(gt)&&!dI(gt)&&!Zae(gt)),pe.asteriskToken,we,void 0,Ml(pe.parameters,Se,e),void 0,lf(pe.body,Se,e))))}function Ui(pe,Z,we){if(pe!==de){const gt=de;de=pe;const fn=Z(we);return de=gt,fn}return Z(we)}function Co(pe){N.assert(Qi(pe.name));const Z=da(pe.name);if(N.assert(Z,"Undeclared private name for property declaration."),Z.kind==="m")return Z.methodName;if(Z.kind==="a"){if(Oy(pe))return Z.getterName;if(Fv(pe))return Z.setterName}}function tr(){var we,gt;const pe=vi(),Z=(gt=(we=pe.classThis)!=null?we:pe.classConstructor)!=null?gt:Ie==null?void 0:Ie.name;return N.checkDefined(Z)}function Ci(pe){const Z=w_(pe),we=qv(pe),gt=pe.name;let fn=gt,Er=gt;if(ss(gt)&&!z_(gt.expression)){const Gc=L5(gt);if(Gc)fn=t.updateComputedPropertyName(gt,rt(gt.expression,Se,bt)),Er=t.updateComputedPropertyName(gt,Gc.left);else{const xl=t.createTempVariable(i);Ma(xl,gt.expression);const Zl=rt(gt.expression,Se,bt),Ns=t.createAssignment(xl,Zl);Ma(Ns,gt.expression),fn=t.updateComputedPropertyName(gt,Ns),Er=t.updateComputedPropertyName(gt,xl)}}const Ar=Un(pe.modifiers,qe,Ra),Jr=dq(t,pe,Ar,pe.initializer);kr(Jr,pe),hr(Jr,3072),Ma(Jr,we);const Di=la(pe)?tr():t.createThis(),br=kse(t,pe,Ar,fn,Di);kr(br,pe),fc(br,Z),Ma(br,we);const Jo=t.createModifiersFromModifierFlags(M_(Ar)),kl=wse(t,pe,Jo,Er,Di);return kr(kl,pe),hr(kl,3072),Ma(kl,we),Kw([Jr,br,kl],it,nu)}function Nr(pe){if(gi(pe)){const Z=da(pe.name);if(N.assert(Z,"Undeclared private name for property declaration."),!Z.isValid)return pe;if(Z.isStatic&&!C){const we=kt(pe,t.createThis());if(we)return t.createClassStaticBlockDeclaration(t.createBlock([we],!0))}return}return I&&!la(pe)&&(Y==null?void 0:Y.data)&&Y.data.facts&16?t.updatePropertyDeclaration(pe,Un(pe.modifiers,Se,dl),pe.name,void 0,void 0,void 0):(yp(pe,Fe)&&(pe=Ip(e,pe)),t.updatePropertyDeclaration(pe,Un(pe.modifiers,qe,Ra),rt(pe.name,He,pc),void 0,void 0,rt(pe.initializer,Se,bt)))}function Kt(pe){if(M&&!Fd(pe)){const Z=qr(pe.name,!!pe.initializer||b);if(Z&&Xa().push(...Ose(Z)),la(pe)&&!C){const we=kt(pe,t.createThis());if(we){const gt=t.createClassStaticBlockDeclaration(t.createBlock([we]));return kr(gt,pe),fc(gt,pe),fc(we,{pos:-1,end:-1}),I0(we,void 0),iI(we,void 0),gt}}return}return t.updatePropertyDeclaration(pe,Un(pe.modifiers,qe,Ra),rt(pe.name,He,pc),void 0,void 0,rt(pe.initializer,Se,bt))}function nt(pe){return N.assert(!If(pe),"Decorators should already have been transformed and elided."),ud(pe)?Nr(pe):Kt(pe)}function Bt(){return W===-1||W===3&&!!(Y!=null&&Y.data)&&!!(Y.data.facts&16)}function Dn(pe){return Fd(pe)&&(Bt()||Ec(pe)&&Dm(pe)&32)?Ci(pe):nt(pe)}function si(){return!!de&&Ec(de)&&ky(de)&&Fd(Ol(de))}function yi(pe){if(si()){const Z=ic(pe);Z.kind===110&&he.add(Z)}}function oo(pe,Z){return Z=rt(Z,Se,bt),yi(Z),Po(pe,Z)}function Po(pe,Z){switch(fc(Z,E0(Z,-1)),pe.kind){case"a":return r().createClassPrivateFieldGetHelper(Z,pe.brandCheckIdentifier,pe.kind,pe.getterName);case"m":return r().createClassPrivateFieldGetHelper(Z,pe.brandCheckIdentifier,pe.kind,pe.methodName);case"f":return r().createClassPrivateFieldGetHelper(Z,pe.brandCheckIdentifier,pe.kind,pe.isStatic?pe.variableName:void 0);case"untransformed":return N.fail("Access helpers should not be created for untransformed private elements");default:N.assertNever(pe,"Unknown private element type")}}function _a(pe){if(Qi(pe.name)){const Z=da(pe.name);if(Z)return ut(kr(oo(Z,pe.expression),pe),pe)}if(X&&de&&Bd(pe)&&Ue(pe.name)&&rP(de)&&(Y==null?void 0:Y.data)){const{classConstructor:Z,superClassReference:we,facts:gt}=Y.data;if(gt&1)return Qn(pe);if(Z&&we){const fn=t.createReflectGetCall(we,t.createStringLiteralFromNode(pe.name),Z);return kr(fn,pe.expression),ut(fn,pe.expression),fn}}return xn(pe,Se,e)}function Ba(pe){if(X&&de&&Bd(pe)&&rP(de)&&(Y==null?void 0:Y.data)){const{classConstructor:Z,superClassReference:we,facts:gt}=Y.data;if(gt&1)return Qn(pe);if(Z&&we){const fn=t.createReflectGetCall(we,rt(pe.argumentExpression,Se,bt),Z);return kr(fn,pe.expression),ut(fn,pe.expression),fn}}return xn(pe,Se,e)}function Tn(pe,Z){if(pe.operator===46||pe.operator===47){const we=Ss(pe.operand);if(o2(we)){let gt;if(gt=da(we.name)){const fn=rt(we.expression,Se,bt);yi(fn);const{readExpression:Er,initializeExpression:Ar}=mt(fn);let Jr=oo(gt,Er);const Di=Zy(pe)||Z?void 0:t.createTempVariable(i);return Jr=x5(t,pe,Jr,i,Di),Jr=Dt(gt,Ar||Er,Jr,64),kr(Jr,pe),ut(Jr,pe),Di&&(Jr=t.createComma(Jr,Di),ut(Jr,pe)),Jr}}else if(X&&de&&Bd(we)&&rP(de)&&(Y==null?void 0:Y.data)){const{classConstructor:gt,superClassReference:fn,facts:Er}=Y.data;if(Er&1){const Ar=Qn(we);return Zy(pe)?t.updatePrefixUnaryExpression(pe,Ar):t.updatePostfixUnaryExpression(pe,Ar)}if(gt&&fn){let Ar,Jr;if(Br(we)?Ue(we.name)&&(Jr=Ar=t.createStringLiteralFromNode(we.name)):z_(we.argumentExpression)?Jr=Ar=we.argumentExpression:(Jr=t.createTempVariable(i),Ar=t.createAssignment(Jr,rt(we.argumentExpression,Se,bt))),Ar&&Jr){let Di=t.createReflectGetCall(fn,Jr,gt);ut(Di,we);const br=Z?void 0:t.createTempVariable(i);return Di=x5(t,pe,Di,i,br),Di=t.createReflectSetCall(fn,Ar,Di,gt),kr(Di,pe),ut(Di,pe),br&&(Di=t.createComma(Di,br),ut(Di,pe)),Di}}}}return xn(pe,Se,e)}function On(pe){return t.updateForStatement(pe,rt(pe.initializer,Ne,Af),rt(pe.condition,Se,bt),rt(pe.incrementor,Ne,bt),Rd(pe.statement,Se,e))}function Je(pe){return t.updateExpressionStatement(pe,rt(pe.expression,Ne,bt))}function mt(pe){const Z=Zs(pe)?pe:t.cloneNode(pe);if(pe.kind===110&&he.has(pe)&&he.add(Z),z_(pe))return{readExpression:Z,initializeExpression:void 0};const we=t.createTempVariable(i),gt=t.createAssignment(we,Z);return{readExpression:we,initializeExpression:gt}}function pt(pe){var Z;if(o2(pe.expression)&&da(pe.expression.name)){const{thisArg:we,target:gt}=t.createCallBinding(pe.expression,i,f);return hS(pe)?t.updateCallChain(pe,t.createPropertyAccessChain(rt(gt,Se,bt),pe.questionDotToken,"call"),void 0,void 0,[rt(we,Se,bt),...Un(pe.arguments,Se,bt)]):t.updateCallExpression(pe,t.createPropertyAccessExpression(rt(gt,Se,bt),"call"),void 0,[rt(we,Se,bt),...Un(pe.arguments,Se,bt)])}if(X&&de&&Bd(pe.expression)&&rP(de)&&((Z=Y==null?void 0:Y.data)==null?void 0:Z.classConstructor)){const we=t.createFunctionCallCall(rt(pe.expression,Se,bt),Y.data.classConstructor,Un(pe.arguments,Se,bt));return kr(we,pe),ut(we,pe),we}return xn(pe,Se,e)}function Pt(pe){var Z;if(o2(pe.tag)&&da(pe.tag.name)){const{thisArg:we,target:gt}=t.createCallBinding(pe.tag,i,f);return t.updateTaggedTemplateExpression(pe,t.createCallExpression(t.createPropertyAccessExpression(rt(gt,Se,bt),"bind"),void 0,[rt(we,Se,bt)]),void 0,rt(pe.template,Se,FA))}if(X&&de&&Bd(pe.tag)&&rP(de)&&((Z=Y==null?void 0:Y.data)==null?void 0:Z.classConstructor)){const we=t.createFunctionBindCall(rt(pe.tag,Se,bt),Y.data.classConstructor,[]);return kr(we,pe),ut(we,pe),t.updateTaggedTemplateExpression(pe,we,void 0,rt(pe.template,Se,FA))}return xn(pe,Se,e)}function le(pe){if(Y&&oe.set(Ol(pe),Y),C){if(tP(pe)){const gt=rt(pe.body.statements[0].expression,Se,bt);return Wc(gt,!0)&&gt.left===gt.right?void 0:gt}if(MI(pe))return rt(pe.body.statements[0].expression,Se,bt);s();let Z=Ui(pe,gt=>Un(gt,Se,$i),pe.body.statements);Z=t.mergeLexicalEnvironment(Z,o());const we=t.createImmediatelyInvokedArrowFunction(Z);return kr(Ss(we.expression),pe),k_(Ss(we.expression),4),kr(we,pe),ut(we,pe),we}}function Fe(pe){if(iu(pe)&&!pe.name){const Z=vW(pe);return St(Z,MI)?!1:(C||!!Dm(pe))&&St(Z,gt=>Pl(gt)||ud(gt)||M&&Yw(gt))}return!1}function dt(pe,Z){if(jv(pe)){const we=ye;ye=void 0,pe=t.updateBinaryExpression(pe,rt(pe.left,At,bt),pe.operatorToken,rt(pe.right,Se,bt));const gt=St(ye)?t.inlineExpressions($M([...ye,pe])):pe;return ye=we,gt}if(Wc(pe)){yp(pe,Fe)&&(pe=Ip(e,pe),N.assertNode(pe,Wc));const we=ic(pe.left,9);if(o2(we)){const gt=da(we.name);if(gt)return ut(kr(Dt(gt,we.expression,pe.right,pe.operatorToken.kind),pe),pe)}else if(X&&de&&Bd(pe.left)&&rP(de)&&(Y==null?void 0:Y.data)){const{classConstructor:gt,superClassReference:fn,facts:Er}=Y.data;if(Er&1)return t.updateBinaryExpression(pe,Qn(pe.left),pe.operatorToken,rt(pe.right,Se,bt));if(gt&&fn){let Ar=el(pe.left)?rt(pe.left.argumentExpression,Se,bt):Ue(pe.left.name)?t.createStringLiteralFromNode(pe.left.name):void 0;if(Ar){let Jr=rt(pe.right,Se,bt);if(QC(pe.operatorToken.kind)){let br=Ar;z_(Ar)||(br=t.createTempVariable(i),Ar=t.createAssignment(br,Ar));const Jo=t.createReflectGetCall(fn,br,gt);kr(Jo,pe.left),ut(Jo,pe.left),Jr=t.createBinaryExpression(Jo,ZC(pe.operatorToken.kind),Jr),ut(Jr,pe)}const Di=Z?void 0:t.createTempVariable(i);return Di&&(Jr=t.createAssignment(Di,Jr),ut(Di,pe)),Jr=t.createReflectSetCall(fn,Ar,Jr,gt),kr(Jr,pe),ut(Jr,pe),Di&&(Jr=t.createComma(Jr,Di),ut(Jr,pe)),Jr}}}}return eHe(pe)?yt(pe):xn(pe,Se,e)}function j(pe,Z){const we=Z?Xw(pe.elements,Ne):Xw(pe.elements,Se,Ne);return t.updateCommaListExpression(pe,we)}function ot(pe,Z){const we=Z?Ne:Se,gt=rt(pe.expression,we,bt);return t.updateParenthesizedExpression(pe,gt)}function Dt(pe,Z,we,gt){if(Z=rt(Z,Se,bt),we=rt(we,Se,bt),yi(Z),QC(gt)){const{readExpression:fn,initializeExpression:Er}=mt(Z);Z=Er||fn,we=t.createBinaryExpression(Po(pe,fn),ZC(gt),we)}switch(fc(Z,E0(Z,-1)),pe.kind){case"a":return r().createClassPrivateFieldSetHelper(Z,pe.brandCheckIdentifier,we,pe.kind,pe.setterName);case"m":return r().createClassPrivateFieldSetHelper(Z,pe.brandCheckIdentifier,we,pe.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(Z,pe.brandCheckIdentifier,we,pe.kind,pe.isStatic?pe.variableName:void 0);case"untransformed":return N.fail("Access helpers should not be created for untransformed private elements");default:N.assertNever(pe,"Unknown private element type")}}function Ye(pe){return Vn(pe.members,jle)}function _t(pe){var Z;let we=0;const gt=Ol(pe);Nc(gt)&&zv(A,gt)&&(we|=1),C&&(EJ(pe)||bW(pe))&&(we|=2);let fn=!1,Er=!1,Ar=!1,Jr=!1;for(const br of pe.members)la(br)?((br.name&&(Qi(br.name)||Fd(br))&&C||Fd(br)&&W===-1&&!pe.name&&!((Z=pe.emitNode)!=null&&Z.classThis))&&(we|=2),(qo(br)||Pl(br))&&(U&&br.transformFlags&16384&&(we|=8,we&1||(we|=2)),X&&br.transformFlags&134217728&&(we&1||(we|=6)))):Y1(Ol(br))||(Fd(br)?(Jr=!0,Ar||(Ar=ud(br))):ud(br)?(Ar=!0,p.getNodeCheckFlags(br)&262144&&(we|=2)):qo(br)&&(fn=!0,Er||(Er=!!br.initializer)));return(R&&fn||I&&Er||C&&Ar||C&&Jr&&W===-1)&&(we|=16),we}function Gt(pe){var Z;if((((Z=Y==null?void 0:Y.data)==null?void 0:Z.facts)||0)&4){const gt=t.createTempVariable(i,!0);return vi().superClassReference=gt,t.updateExpressionWithTypeArguments(pe,t.createAssignment(gt,rt(pe.expression,Se,bt)),void 0)}return xn(pe,Se,e)}function gn(pe,Z){var we;const gt=Ie,fn=ye,Er=Y;Ie=pe,ye=void 0,Ao();const Ar=Dm(pe)&32;if(C||Ar){const br=Oo(pe);if(br&&Ue(br))ya().data.className=br;else if((we=pe.emitNode)!=null&&we.assignedName&&La(pe.emitNode.assignedName)){if(pe.emitNode.assignedName.textSourceNode&&Ue(pe.emitNode.assignedName.textSourceNode))ya().data.className=pe.emitNode.assignedName.textSourceNode;else if(tf(pe.emitNode.assignedName.text,f)){const Jo=t.createIdentifier(pe.emitNode.assignedName.text);ya().data.className=Jo}}}if(C){const br=Ye(pe);St(br)&&(ya().data.weakSetName=oc("instances",br[0].name))}const Jr=_t(pe);Jr&&(vi().facts=Jr),Jr&8&&ai();const Di=Z(pe,Jr);return Fi(),N.assert(Y===Er),Ie=gt,ye=fn,Di}function hn(pe){return gn(pe,pn)}function pn(pe,Z){var we,gt;let fn;if(Z&2)if(C&&((we=pe.emitNode)==null?void 0:we.classThis))vi().classConstructor=pe.emitNode.classThis,fn=t.createAssignment(pe.emitNode.classThis,t.getInternalName(pe));else{const Ns=t.createTempVariable(i,!0);vi().classConstructor=t.cloneNode(Ns),fn=t.createAssignment(Ns,t.getInternalName(pe))}(gt=pe.emitNode)!=null&&gt.classThis&&(vi().classThis=pe.emitNode.classThis);const Er=p.getNodeCheckFlags(pe)&262144,Ar=Qr(pe,32),Jr=Qr(pe,2048);let Di=Un(pe.modifiers,qe,Ra);const br=Un(pe.heritageClauses,Oe,of),{members:Jo,prologue:kl}=me(pe),Gc=[];if(fn&&Xa().unshift(fn),St(ye)&&Gc.push(t.createExpressionStatement(t.inlineExpressions(ye))),I||C||Dm(pe)&32){const Ns=vW(pe);St(Ns)&&Tt(Gc,Ns,t.getInternalName(pe))}Gc.length>0&&Ar&&Jr&&(Di=Un(Di,Ns=>Ew(Ns)?void 0:Ns,Ra),Gc.push(t.createExportAssignment(void 0,!1,t.getLocalName(pe,!1,!0))));const xl=vi().classConstructor;Er&&xl&&(pr(),_e[zu(pe)]=xl);const Zl=t.updateClassDeclaration(pe,Di,pe.name,void 0,br,Jo);return Gc.unshift(Zl),kl&&Gc.unshift(t.createExpressionStatement(kl)),Gc}function q(pe){return gn(pe,We)}function We(pe,Z){var sp;var we,gt,fn;const Er=!!(Z&1),Ar=vW(pe),Jr=p.getNodeCheckFlags(pe),Di=Jr&262144;let br;function Jo(){var Yc;if(C&&((Yc=pe.emitNode)==null?void 0:Yc.classThis))return vi().classConstructor=pe.emitNode.classThis;const Cd=Jr&32768,Me=t.createTempVariable(Cd?u:i,!0);return vi().classConstructor=t.cloneNode(Me),Me}(we=pe.emitNode)!=null&&we.classThis&&(vi().classThis=pe.emitNode.classThis),Z&2&&(br!=null||(br=Jo()));const kl=Un(pe.modifiers,qe,Ra),Gc=Un(pe.heritageClauses,Oe,of),{members:xl,prologue:Zl}=me(pe),Ns=t.updateClassExpression(pe,kl,pe.name,void 0,Gc,xl),ac=[];if(Zl&&ac.push(Zl),(C||Dm(pe)&32)&&St(Ar,Yc=>Pl(Yc)||ud(Yc)||M&&Yw(Yc))||St(ye))if(Er)N.assertIsDefined(Q,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),St(ye)&&Hr(Q,Wt(ye,t.createExpressionStatement)),St(Ar)&&Tt(Q,Ar,(sp=(gt=pe.emitNode)==null?void 0:gt.classThis)!=null?sp:t.getInternalName(pe)),br?ac.push(t.createAssignment(br,Ns)):C&&((fn=pe.emitNode)==null?void 0:fn.classThis)?ac.push(t.createAssignment(pe.emitNode.classThis,Ns)):ac.push(Ns);else{if(br!=null||(br=Jo()),Di){pr();const Yc=t.cloneNode(br);Yc.emitNode.autoGenerate.flags&=-9,_e[zu(pe)]=Yc}ac.push(t.createAssignment(br,Ns)),Hr(ac,ye),Hr(ac,nn(Ar,br)),ac.push(t.cloneNode(br))}else ac.push(Ns);return ac.length>1&&(k_(Ns,131072),ac.forEach(Qu)),t.inlineExpressions(ac)}function Lt(pe){if(!C)return xn(pe,Se,e)}function L(pe){var Z;if(U&&de&&Pl(de)&&(Y==null?void 0:Y.data)){const{classThis:we,classConstructor:gt}=Y.data;return(Z=we!=null?we:gt)!=null?Z:pe}return pe}function me(pe){const Z=!!(Dm(pe)&32);if(C||G){for(const Ar of pe.members)if(ud(Ar))if(gi(Ar))Ts(Ar,Ar.name,Qt);else{const Jr=ya();eT(Jr,Ar.name,{kind:"untransformed"})}if(C&&St(Ye(pe))&&J(),Bt()){for(const Ar of pe.members)if(Fd(Ar)){const Jr=t.getGeneratedPrivateNameForNode(Ar.name,void 0,"_accessor_storage");if(C||Z&&Ec(Ar))Ts(Ar,Jr,ba);else{const Di=ya();eT(Di,Jr,{kind:"untransformed"})}}}}let we=Un(pe.members,be,nu),gt;St(we,Wl)||(gt=fe(void 0,pe));let fn,Er;if(!C&&St(ye)){let Ar=t.createExpressionStatement(t.inlineExpressions(ye));if(Ar.transformFlags&134234112){const Di=t.createTempVariable(i),br=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([Ar]));fn=t.createAssignment(Di,br),Ar=t.createExpressionStatement(t.createCallExpression(Di,void 0,[]))}const Jr=t.createBlock([Ar]);Er=t.createClassStaticBlockDeclaration(Jr),ye=void 0}if(gt||Er){let Ar;const Jr=un(we,tP),Di=un(we,MI);Ar=Rn(Ar,Jr),Ar=Rn(Ar,Di),Ar=Rn(Ar,gt),Ar=Rn(Ar,Er);const br=Jr||Di?Vn(we,Jo=>Jo!==Jr&&Jo!==Di):we;Ar=Hr(Ar,br),we=ut(t.createNodeArray(Ar),pe.members)}return{members:we,prologue:fn}}function J(){const{weakSetName:pe}=ya().data;N.assert(pe,"weakSetName should be set in private identifier environment"),Xa().push(t.createAssignment(pe,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function fe(pe,Z){if(pe=rt(pe,Se,Wl),!(Y!=null&&Y.data)||!(Y.data.facts&16))return pe;const we=D_(Z),gt=!!(we&&ic(we.expression).kind!==106),fn=Ml(pe?pe.parameters:void 0,Se,e),Er=ke(Z,pe,gt);return Er?pe?(N.assert(fn),t.updateConstructorDeclaration(pe,void 0,fn,Er)):Qu(kr(ut(t.createConstructorDeclaration(void 0,fn!=null?fn:[],Er),pe||Z),pe)):pe}function je(pe,Z,we,gt,fn,Er,Ar){const Jr=gt[fn],Di=Z[Jr];if(Hr(pe,Un(Z,Se,$i,we,Jr-we)),we=Jr+1,qS(Di)){const br=[];je(br,Di.tryBlock.statements,0,gt,fn+1,Er,Ar);const Jo=t.createNodeArray(br);ut(Jo,Di.tryBlock.statements),pe.push(t.updateTryStatement(Di,t.updateBlock(Di.tryBlock,br),rt(Di.catchClause,Se,uE),rt(Di.finallyBlock,Se,Yo)))}else{for(Hr(pe,Un(Z,Se,$i,Jr,1));we<Z.length;){const br=Z[we];if(gp(Ol(br),Ar))we++;else break}Hr(pe,Er)}Hr(pe,Un(Z,Se,$i,we))}function ke(pe,Z,we){var xl;const gt=hJ(pe,!1,!1);let fn=gt;b||(fn=Vn(fn,Zl=>!!Zl.initializer||Qi(Zl.name)||P_(Zl)));const Er=Ye(pe),Ar=St(fn)||St(Er);if(!Z&&!Ar)return lf(void 0,Se,e);l();const Jr=!Z&&we;let Di=0,br=[];const Jo=[],kl=t.createThis();if(li(Jo,Er,kl),Z){const Zl=Vn(gt,ac=>gp(Ol(ac),Z)),Ns=Vn(fn,ac=>!gp(Ol(ac),Z));Tt(Jo,Zl,kl),Tt(Jo,Ns,kl)}else Tt(Jo,fn,kl);if(Z!=null&&Z.body){Di=t.copyPrologue(Z.body.statements,br,!1,Se);const Zl=gW(Z.body.statements,Di);if(Zl.length)je(br,Z.body.statements,Di,Zl,0,Jo,Z);else{for(;Di<Z.body.statements.length;){const Ns=Z.body.statements[Di];if(gp(Ol(Ns),Z))Di++;else break}Hr(br,Jo),Hr(br,Un(Z.body.statements,Se,$i,Di))}}else Jr&&br.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),Hr(br,Jo);if(br=t.mergeLexicalEnvironment(br,o()),br.length===0&&!Z)return;const Gc=(Z==null?void 0:Z.body)&&Z.body.statements.length>=br.length&&(xl=Z.body.multiLine)!=null?xl:br.length>0;return ut(t.createBlock(ut(t.createNodeArray(br),Z?Z.body.statements:pe.members),Gc),Z?Z.body:void 0)}function Tt(pe,Z,we){for(const gt of Z){if(la(gt)&&!C)continue;const fn=kt(gt,we);!fn||pe.push(fn)}}function kt(pe,Z){const we=Pl(pe)?Ui(pe,le,pe):En(pe,Z);if(!we)return;const gt=t.createExpressionStatement(we);kr(gt,pe),k_(gt,Ka(pe)&3072),fc(gt,pe);const fn=Ol(pe);return No(fn)?(Ma(gt,fn),Qk(gt)):Ma(gt,L_(pe)),I0(we,void 0),iI(we,void 0),P_(fn)&&k_(gt,3072),gt}function nn(pe,Z){const we=[];for(const gt of pe){const fn=Pl(gt)?Ui(gt,le,gt):Ui(gt,()=>En(gt,Z),void 0);!fn||(Qu(fn),kr(fn,gt),k_(fn,Ka(gt)&3072),Ma(fn,L_(gt)),fc(fn,gt),we.push(fn))}return we}function En(pe,Z){var we;const gt=de,fn=or(pe,Z);return fn&&Ec(pe)&&((we=Y==null?void 0:Y.data)==null?void 0:we.facts)&&(kr(fn,pe),k_(fn,4),Ma(fn,qv(pe.name)),oe.set(Ol(pe),Y)),de=gt,fn}function or(pe,Z){const we=!b;yp(pe,Fe)&&(pe=Ip(e,pe));const gt=P_(pe)?t.getGeneratedPrivateNameForNode(pe.name):ss(pe.name)&&!z_(pe.name.expression)?t.updateComputedPropertyName(pe.name,t.getGeneratedNameForNode(pe.name)):pe.name;if(Ec(pe)&&(de=pe),Qi(gt)&&gi(pe)){const Ar=da(gt);if(Ar)return Ar.kind==="f"?Ar.isStatic?YUe(t,Ar.variableName,rt(pe.initializer,Se,bt)):$Ue(t,Z,rt(pe.initializer,Se,bt),Ar.brandCheckIdentifier):void 0;N.fail("Undeclared private name for property declaration.")}if((Qi(gt)||Ec(pe))&&!pe.initializer)return;const fn=Ol(pe);if(Qr(fn,64))return;let Er=rt(pe.initializer,Se,bt);if(gp(fn,fn.parent)&&Ue(gt)){const Ar=t.cloneNode(gt);Er?(Vd(Er)&&gw(Er.expression)&&xC(Er.expression.left,"___runInitializers")&&gI(Er.expression.right)&&Ep(Er.expression.right.expression)&&(Er=Er.expression.left),Er=t.inlineExpressions([Er,Ar])):Er=Ar,hr(gt,3168),Ma(Ar,fn.name),hr(Ar,3072)}else Er!=null||(Er=t.createVoidZero());if(we||Qi(gt)){const Ar=$S(t,Z,gt,gt);return k_(Ar,1024),t.createAssignment(Ar,Er)}else{const Ar=ss(gt)?gt.expression:Ue(gt)?t.createStringLiteral(Ki(gt.escapedText)):gt,Jr=t.createPropertyDescriptor({value:Er,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(Z,Ar,Jr)}}function pr(){(re&1)===0&&(re|=1,e.enableSubstitution(80),_e=[])}function ai(){(re&2)===0&&(re|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function li(pe,Z,we){if(!C||!St(Z))return;const{weakSetName:gt}=ya().data;N.assert(gt,"weakSetName should be set in private identifier environment"),pe.push(t.createExpressionStatement(QUe(t,we,gt)))}function Qn(pe){return Br(pe)?t.updatePropertyAccessExpression(pe,t.createVoidZero(),pe.name):t.updateElementAccessExpression(pe,t.createVoidZero(),rt(pe.argumentExpression,Se,bt))}function qr(pe,Z){if(ss(pe)){const we=L5(pe),gt=rt(pe.expression,Se,bt),fn=Rm(gt),Er=z_(fn);if(!(!!we||Wc(fn)&&ul(fn.left))&&!Er&&Z){const Jr=t.getGeneratedNameForNode(pe);return p.getNodeCheckFlags(pe)&32768?u(Jr):i(Jr),t.createAssignment(Jr,gt)}return Er||Ue(fn)?void 0:gt}}function Ao(){Y={previous:Y,data:void 0}}function Fi(){Y=Y==null?void 0:Y.previous}function vi(){var pe;return N.assert(Y),(pe=Y.data)!=null?pe:Y.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0}}function ya(){var pe;return N.assert(Y),(pe=Y.privateEnv)!=null?pe:Y.privateEnv=qle({className:void 0,weakSetName:void 0})}function Xa(){return ye!=null?ye:ye=[]}function Qt(pe,Z,we,gt,fn,Er,Ar){Fd(pe)?ka(pe,Z,we,gt,fn,Er):qo(pe)?ba(pe,Z,we,gt,fn,Er):Ql(pe)?Gl(pe,Z,we,gt,fn,Er):rf(pe)?ao(pe,Z,we,gt,fn,Er,Ar):Tp(pe)&&Ga(pe,Z,we,gt,fn,Er,Ar)}function ba(pe,Z,we,gt,fn,Er,Ar){var Jr;if(fn){const Di=N.checkDefined((Jr=we.classThis)!=null?Jr:we.classConstructor,"classConstructor should be set in private identifier environment"),br=co(Z);eT(gt,Z,{kind:"f",isStatic:!0,brandCheckIdentifier:Di,variableName:br,isValid:Er})}else{const Di=co(Z);eT(gt,Z,{kind:"f",isStatic:!1,brandCheckIdentifier:Di,isValid:Er}),Xa().push(t.createAssignment(Di,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Gl(pe,Z,we,gt,fn,Er,Ar){var br;const Jr=co(Z),Di=fn?N.checkDefined((br=we.classThis)!=null?br:we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(gt.data.weakSetName,"weakSetName should be set in private identifier environment");eT(gt,Z,{kind:"m",methodName:Jr,brandCheckIdentifier:Di,isStatic:fn,isValid:Er})}function ao(pe,Z,we,gt,fn,Er,Ar){var br;const Jr=co(Z,"_get"),Di=fn?N.checkDefined((br=we.classThis)!=null?br:we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(gt.data.weakSetName,"weakSetName should be set in private identifier environment");(Ar==null?void 0:Ar.kind)==="a"&&Ar.isStatic===fn&&!Ar.getterName?Ar.getterName=Jr:eT(gt,Z,{kind:"a",getterName:Jr,setterName:void 0,brandCheckIdentifier:Di,isStatic:fn,isValid:Er})}function Ga(pe,Z,we,gt,fn,Er,Ar){var br;const Jr=co(Z,"_set"),Di=fn?N.checkDefined((br=we.classThis)!=null?br:we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(gt.data.weakSetName,"weakSetName should be set in private identifier environment");(Ar==null?void 0:Ar.kind)==="a"&&Ar.isStatic===fn&&!Ar.setterName?Ar.setterName=Jr:eT(gt,Z,{kind:"a",getterName:void 0,setterName:Jr,brandCheckIdentifier:Di,isStatic:fn,isValid:Er})}function ka(pe,Z,we,gt,fn,Er,Ar){var Jo;const Jr=co(Z,"_get"),Di=co(Z,"_set"),br=fn?N.checkDefined((Jo=we.classThis)!=null?Jo:we.classConstructor,"classConstructor should be set in private identifier environment"):N.checkDefined(gt.data.weakSetName,"weakSetName should be set in private identifier environment");eT(gt,Z,{kind:"a",getterName:Jr,setterName:Di,brandCheckIdentifier:br,isStatic:fn,isValid:Er})}function Ts(pe,Z,we){const gt=vi(),fn=ya(),Er=vJ(fn,Z),Ar=Ec(pe),Jr=!ZUe(Z)&&Er===void 0;we(pe,Z,gt,fn,Ar,Jr,Er)}function oc(pe,Z,we){const{className:gt}=ya().data,fn=gt?{prefix:"_",node:gt,suffix:"_"}:"_",Er=typeof pe=="object"?t.getGeneratedNameForNode(pe,24,fn,we):typeof pe=="string"?t.createUniqueName(pe,16,fn,we):t.createTempVariable(void 0,!0,fn,we);return p.getNodeCheckFlags(Z)&32768?u(Er):i(Er),Er}function co(pe,Z){var gt;const we=kN(pe);return oc((gt=we==null?void 0:we.substring(1))!=null?gt:pe,pe,Z)}function da(pe){const Z=Jle(Y,pe);return(Z==null?void 0:Z.kind)==="untransformed"?void 0:Z}function mu(pe){const Z=t.getGeneratedNameForNode(pe),we=da(pe.name);if(!we)return xn(pe,Se,e);let gt=pe.expression;return(QL(pe)||Bd(pe)||!hE(pe.expression))&&(gt=t.createTempVariable(i,!0),Xa().push(t.createBinaryExpression(gt,64,rt(pe.expression,Se,bt)))),t.createAssignmentTargetWrapper(Z,Dt(we,gt,Z,64))}function Ps(pe){if(za(pe)||hd(pe))return an(pe);if(o2(pe))return mu(pe);if(X&&de&&Bd(pe)&&rP(de)&&(Y==null?void 0:Y.data)){const{classConstructor:Z,superClassReference:we,facts:gt}=Y.data;if(gt&1)return Qn(pe);if(Z&&we){const fn=el(pe)?rt(pe.argumentExpression,Se,bt):Ue(pe.name)?t.createStringLiteralFromNode(pe.name):void 0;if(fn){const Er=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(Er,t.createReflectSetCall(we,fn,Er,Z))}}}return xn(pe,Se,e)}function wa(pe){if(yp(pe,Fe)&&(pe=Ip(e,pe)),Wc(pe,!0)){const Z=Ps(pe.left),we=rt(pe.right,Se,bt);return t.updateBinaryExpression(pe,Z,pe.operatorToken,we)}return Ps(pe)}function yl(pe){if(tp(pe.expression)){const Z=Ps(pe.expression);return t.updateSpreadElement(pe,Z)}return xn(pe,Se,e)}function wf(pe){if(kL(pe)){if(t_(pe))return yl(pe);if(!Kc(pe))return wa(pe)}return xn(pe,Se,e)}function _c(pe){const Z=rt(pe.name,Se,pc);if(Wc(pe.initializer,!0)){const we=wa(pe.initializer);return t.updatePropertyAssignment(pe,Z,we)}if(tp(pe.initializer)){const we=Ps(pe.initializer);return t.updatePropertyAssignment(pe,Z,we)}return xn(pe,Se,e)}function Ll(pe){return yp(pe,Fe)&&(pe=Ip(e,pe)),xn(pe,Se,e)}function fl(pe){if(tp(pe.expression)){const Z=Ps(pe.expression);return t.updateSpreadAssignment(pe,Z)}return xn(pe,Se,e)}function Wo(pe){return N.assertNode(pe,LL),Xv(pe)?fl(pe):ip(pe)?Ll(pe):Tc(pe)?_c(pe):xn(pe,Se,e)}function an(pe){return hd(pe)?t.updateArrayLiteralExpression(pe,Un(pe.elements,wf,bt)):t.updateObjectLiteralExpression(pe,Un(pe.properties,Wo,Fg))}function Xs(pe,Z,we){const gt=Ol(Z),fn=oe.get(gt);if(fn){const Er=Y,Ar=ge;Y=fn,ge=ie,ie=!Pl(gt)||!(Dm(gt)&32),se(pe,Z,we),ie=ge,ge=Ar,Y=Er;return}switch(Z.kind){case 218:if(Ks(gt)||Ka(Z)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Er=Y,Ar=ge;Y=void 0,ge=ie,ie=!1,se(pe,Z,we),ie=ge,ge=Ar,Y=Er;return}case 167:{const Er=Y,Ar=ie;Y=Y==null?void 0:Y.previous,ie=ge,se(pe,Z,we),ie=Ar,Y=Er;return}}se(pe,Z,we)}function su(pe,Z){return Z=V(pe,Z),pe===1?_u(Z):Z}function _u(pe){switch(pe.kind){case 80:return Gs(pe);case 110:return Dp(pe)}return pe}function Dp(pe){if(re&2&&(Y==null?void 0:Y.data)&&!he.has(pe)){const{facts:Z,classConstructor:we,classThis:gt}=Y.data,fn=ie&&gt!=null?gt:we;if(fn)return ut(kr(t.cloneNode(fn),pe),pe);if(Z&1&&A)return t.createParenthesizedExpression(t.createVoidZero())}return pe}function Gs(pe){return Pc(pe)||pe}function Pc(pe){if(re&1&&p.getNodeCheckFlags(pe)&536870912){const Z=p.getReferencedValueDeclaration(pe);if(Z){const we=_e[Z.id];if(we){const gt=t.cloneNode(we);return Ma(gt,pe),fc(gt,pe),gt}}}}}function YUe(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function $Ue(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function QUe(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function ZUe(e){return!gS(e)&&e.escapedText==="#constructor"}function eHe(e){return Qi(e.left)&&e.operatorToken.kind===103}function tHe(e){return qo(e)&&Ec(e)}function rP(e){return Pl(e)||tHe(e)}var nHe=S({"src/compiler/transformers/classFields.ts"(){ia()}});function ice(e){const{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=ps(o),l=md(o,"strictNullChecks");let u,p;return{serializeTypeNode:(ye,Q)=>v(ye,M,Q),serializeTypeOfNode:(ye,Q)=>v(ye,b,Q),serializeParameterTypesOfNode:(ye,Q,Y)=>v(ye,A,Q,Y),serializeReturnTypeOfNode:(ye,Q)=>v(ye,R,Q)};function v(ye,Q,Y,oe){const he=u,Ie=p;u=ye.currentLexicalScope,p=ye.currentNameScope;const de=oe===void 0?Q(Y):Q(Y,oe);return u=he,p=Ie,de}function f(ye){const Q=i.getAllAccessorDeclarations(ye);return Q.setAccessor&&yoe(Q.setAccessor)||Q.getAccessor&&lm(Q.getAccessor)}function b(ye){switch(ye.kind){case 172:case 169:return M(ye.type);case 178:case 177:return M(f(ye));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function A(ye,Q){const Y=di(ye)?sg(ye):ta(ye)&&nm(ye.body)?ye:void 0,oe=[];if(Y){const he=I(Y,Q),Ie=he.length;for(let de=0;de<Ie;de++){const ie=he[de];de===0&&Ue(ie.name)&&ie.name.escapedText==="this"||(ie.dotDotDotToken?oe.push(M(qj(ie.type))):oe.push(b(ie)))}}return t.createArrayLiteralExpression(oe)}function I(ye,Q){if(Q&&ye.kind===177){const{setAccessor:Y}=wS(Q.members,ye);if(Y)return Y.parameters}return ye.parameters}function R(ye){return ta(ye)&&ye.type?M(ye.type):UN(ye)?t.createIdentifier("Promise"):t.createVoidZero()}function M(ye){if(ye===void 0)return t.createIdentifier("Object");switch(ye=gk(ye),ye.kind){case 116:case 157:case 146:return t.createVoidZero();case 184:case 185:return t.createIdentifier("Function");case 188:case 189:return t.createIdentifier("Array");case 182:return ye.assertsModifier?t.createVoidZero():t.createIdentifier("Boolean");case 136:return t.createIdentifier("Boolean");case 203:case 154:return t.createIdentifier("String");case 151:return t.createIdentifier("Object");case 201:return C(ye.literal);case 150:return t.createIdentifier("Number");case 163:return _e("BigInt",7);case 155:return _e("Symbol",2);case 183:return X(ye);case 193:return W(ye.types,!0);case 192:return W(ye.types,!1);case 194:return W([ye.trueType,ye.falseType],!1);case 198:if(ye.operator===148)return M(ye.type);break;case 186:case 199:case 200:case 187:case 133:case 159:case 197:case 205:break;case 319:case 320:case 324:case 325:case 326:break;case 321:case 322:case 323:return M(ye.type);default:return N.failBadSyntaxKind(ye)}return t.createIdentifier("Object")}function C(ye){switch(ye.kind){case 11:case 15:return t.createIdentifier("String");case 224:{const Q=ye.operand;switch(Q.kind){case 9:case 10:return C(Q);default:return N.failBadSyntaxKind(Q)}}case 9:return t.createIdentifier("Number");case 10:return _e("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return N.failBadSyntaxKind(ye)}}function W(ye,Q){let Y;for(let oe of ye){if(oe=gk(oe),oe.kind===146){if(Q)return t.createVoidZero();continue}if(oe.kind===159){if(!Q)return t.createIdentifier("Object");continue}if(oe.kind===133)return t.createIdentifier("Object");if(!l&&($y(oe)&&oe.literal.kind===106||oe.kind===157))continue;const he=M(oe);if(Ue(he)&&he.escapedText==="Object")return he;if(Y){if(!U(Y,he))return t.createIdentifier("Object")}else Y=he}return Y!=null?Y:t.createVoidZero()}function U(ye,Q){return ul(ye)?ul(Q):Ue(ye)?Ue(Q)&&ye.escapedText===Q.escapedText:Br(ye)?Br(Q)&&U(ye.expression,Q.expression)&&U(ye.name,Q.name):gI(ye)?gI(Q)&&Ep(ye.expression)&&ye.expression.text==="0"&&Ep(Q.expression)&&Q.expression.text==="0":La(ye)?La(Q)&&ye.text===Q.text:Z2(ye)?Z2(Q)&&U(ye.expression,Q.expression):Vd(ye)?Vd(Q)&&U(ye.expression,Q.expression):eR(ye)?eR(Q)&&U(ye.condition,Q.condition)&&U(ye.whenTrue,Q.whenTrue)&&U(ye.whenFalse,Q.whenFalse):vr(ye)?vr(Q)&&ye.operatorToken.kind===Q.operatorToken.kind&&U(ye.left,Q.left)&&U(ye.right,Q.right):!1}function X(ye){const Q=i.getTypeReferenceSerializationKind(ye.typeName,p!=null?p:u);switch(Q){case 0:if(jn(ye,he=>he.parent&&hI(he.parent)&&(he.parent.trueType===he||he.parent.falseType===he)))return t.createIdentifier("Object");const Y=V(ye.typeName),oe=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(oe,Y),"function"),void 0,oe,void 0,t.createIdentifier("Object"));case 1:return se(ye.typeName);case 2:return t.createVoidZero();case 4:return _e("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return _e("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return N.assertNever(Q)}}function ee(ye,Q){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ye),t.createStringLiteral("undefined")),Q)}function V(ye){if(ye.kind===80){const oe=se(ye);return ee(oe,oe)}if(ye.left.kind===80)return ee(se(ye.left),se(ye));const Q=V(ye.left),Y=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(Q.left,t.createStrictInequality(t.createAssignment(Y,Q.right),t.createVoidZero())),t.createPropertyAccessExpression(Y,ye.right))}function se(ye){switch(ye.kind){case 80:const Q=Qa(ut(Dh.cloneNode(ye),ye),ye.parent);return Q.original=void 0,Qa(Q,Lo(u)),Q;case 166:return G(ye)}}function G(ye){return t.createPropertyAccessExpression(se(ye.left),ye.right)}function re(ye){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ye),"function"),void 0,t.createIdentifier(ye),void 0,t.createIdentifier("Object"))}function _e(ye,Q){return s<Q?re(ye):t.createIdentifier(ye)}}var rHe=S({"src/compiler/transformers/typeSerializer.ts"(){ia()}});function oce(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),l=ps(s),u=e.onSubstituteNode;e.onSubstituteNode=He;let p;return wm(e,v);function v(Ze){const It=xn(Ze,b,e);return Hg(It,e.readEmitHelpers()),It}function f(Ze){return Au(Ze)?void 0:Ze}function b(Ze){if(!(Ze.transformFlags&33554432))return Ze;switch(Ze.kind){case 170:return;case 263:return A(Ze);case 231:return X(Ze);case 176:return ee(Ze);case 174:return se(Ze);case 178:return re(Ze);case 177:return G(Ze);case 172:return _e(Ze);case 169:return ye(Ze);default:return xn(Ze,b,e)}}function A(Ze){if(!(zv(!0,Ze)||WN(!0,Ze)))return xn(Ze,b,e);const It=zv(!0,Ze)?U(Ze,Ze.name):W(Ze,Ze.name);return dh(It)}function I(Ze){return!!(Ze.transformFlags&536870912)}function R(Ze){return St(Ze,I)}function M(Ze){for(const It of Ze.members){if(!QS(It))continue;const on=yW(It,Ze,!0);if(St(on==null?void 0:on.decorators,I)||St(on==null?void 0:on.parameters,R))return!0}return!1}function C(Ze,It){let on=[];return oe(on,Ze,!1),oe(on,Ze,!0),M(Ze)&&(It=ut(t.createNodeArray([...It,t.createClassStaticBlockDeclaration(t.createBlock(on,!0))]),It),on=void 0),{decorationStatements:on,members:It}}function W(Ze,It){const on=Un(Ze.modifiers,f,Ra),Yt=Un(Ze.heritageClauses,b,of);let Nn=Un(Ze.members,b,nu),Xn=[];({members:Nn,decorationStatements:Xn}=C(Ze,Nn));const yn=t.updateClassDeclaration(Ze,on,It,void 0,Yt,Nn);return Hr([yn],Xn)}function U(Ze,It){const on=Qr(Ze,32),Yt=Qr(Ze,2048),Nn=Un(Ze.modifiers,Bt=>Ew(Bt)||Au(Bt)?void 0:Bt,dl),Xn=L_(Ze),yn=Oe(Ze),tn=l<2?t.getInternalName(Ze,!1,!0):t.getLocalName(Ze,!1,!0),en=Un(Ze.heritageClauses,b,of);let gi=Un(Ze.members,b,nu),bo=[];({members:gi,decorationStatements:bo}=C(Ze,gi));const Ui=l>=9&&!!yn&&St(gi,Bt=>qo(Bt)&&Qr(Bt,256)||Pl(Bt));Ui&&(gi=ut(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(yn,t.createThis()))])),...gi]),gi));const Co=t.createClassExpression(Nn,It&&ul(It)?void 0:It,void 0,en,gi);kr(Co,Ze),ut(Co,Xn);const tr=yn&&!Ui?t.createAssignment(yn,Co):Co,Ci=t.createVariableDeclaration(tn,void 0,void 0,tr);kr(Ci,Ze);const Nr=t.createVariableDeclarationList([Ci],1),Kt=t.createVariableStatement(void 0,Nr);kr(Kt,Ze),ut(Kt,Xn),fc(Kt,Ze);const nt=[Kt];if(Hr(nt,bo),ge(nt,Ze),on)if(Yt){const Bt=t.createExportDefault(tn);nt.push(Bt)}else{const Bt=t.createExternalModuleExport(t.getDeclarationName(Ze));nt.push(Bt)}return nt}function X(Ze){return t.updateClassExpression(Ze,Un(Ze.modifiers,f,Ra),Ze.name,void 0,Un(Ze.heritageClauses,b,of),Un(Ze.members,b,nu))}function ee(Ze){return t.updateConstructorDeclaration(Ze,Un(Ze.modifiers,f,Ra),Un(Ze.parameters,b,No),rt(Ze.body,b,Yo))}function V(Ze,It){return Ze!==It&&(fc(Ze,It),Ma(Ze,L_(It))),Ze}function se(Ze){return V(t.updateMethodDeclaration(Ze,Un(Ze.modifiers,f,Ra),Ze.asteriskToken,N.checkDefined(rt(Ze.name,b,pc)),void 0,void 0,Un(Ze.parameters,b,No),void 0,rt(Ze.body,b,Yo)),Ze)}function G(Ze){return V(t.updateGetAccessorDeclaration(Ze,Un(Ze.modifiers,f,Ra),N.checkDefined(rt(Ze.name,b,pc)),Un(Ze.parameters,b,No),void 0,rt(Ze.body,b,Yo)),Ze)}function re(Ze){return V(t.updateSetAccessorDeclaration(Ze,Un(Ze.modifiers,f,Ra),N.checkDefined(rt(Ze.name,b,pc)),Un(Ze.parameters,b,No),rt(Ze.body,b,Yo)),Ze)}function _e(Ze){if(!(Ze.flags&33554432||Qr(Ze,128)))return V(t.updatePropertyDeclaration(Ze,Un(Ze.modifiers,f,Ra),N.checkDefined(rt(Ze.name,b,pc)),void 0,void 0,rt(Ze.initializer,b,bt)),Ze)}function ye(Ze){const It=t.updateParameterDeclaration(Ze,Lse(t,Ze.modifiers),Ze.dotDotDotToken,N.checkDefined(rt(Ze.name,b,vS)),void 0,void 0,rt(Ze.initializer,b,bt));return It!==Ze&&(fc(It,Ze),ut(It,L_(Ze)),Ma(It,L_(Ze)),hr(It.name,64)),It}function Q(Ze){return xC(Ze.expression,"___metadata")}function Y(Ze){if(!Ze)return;const{false:It,true:on}=K8(Ze.decorators,Q),Yt=[];return Hr(Yt,Wt(It,qe)),Hr(Yt,qi(Ze.parameters,Se)),Hr(Yt,Wt(on,qe)),Yt}function oe(Ze,It,on){Hr(Ze,Wt(de(It,on),Yt=>t.createExpressionStatement(Yt)))}function he(Ze,It,on){return ek(!0,Ze,on)&&It===la(Ze)}function Ie(Ze,It){return Vn(Ze.members,on=>he(on,It,Ze))}function de(Ze,It){const on=Ie(Ze,It);let Yt;for(const Nn of on)Yt=Rn(Yt,ie(Ze,Nn));return Yt}function ie(Ze,It){const on=yW(It,Ze,!0),Yt=Y(on);if(!Yt)return;const Nn=be(Ze,It),Xn=Le(It,!Qr(It,128)),yn=l>0?qo(It)&&!P_(It)?t.createVoidZero():t.createNull():void 0,tn=r().createDecorateHelper(Yt,Nn,Xn,yn);return hr(tn,3072),Ma(tn,L_(It)),tn}function ge(Ze,It){const on=Ce(It);on&&Ze.push(kr(t.createExpressionStatement(on),It))}function Ce(Ze){const It=gJ(Ze),on=Y(It);if(!on)return;const Yt=p&&p[zu(Ze)],Nn=l<2?t.getInternalName(Ze,!1,!0):t.getDeclarationName(Ze,!1,!0),Xn=r().createDecorateHelper(on,Nn),yn=t.createAssignment(Nn,Yt?t.createAssignment(Yt,Xn):Xn);return hr(yn,3072),Ma(yn,L_(Ze)),yn}function qe(Ze){return N.checkDefined(rt(Ze.expression,b,bt))}function Se(Ze,It){let on;if(Ze){on=[];for(const Yt of Ze){const Nn=r().createParamHelper(qe(Yt),It);ut(Nn,Yt.expression),hr(Nn,3072),on.push(Nn)}}return on}function Le(Ze,It){const on=Ze.name;return Qi(on)?t.createIdentifier(""):ss(on)?It&&!z_(on.expression)?t.getGeneratedNameForNode(on):on.expression:Ue(on)?t.createStringLiteral(Rr(on)):t.cloneNode(on)}function Ne(){p||(e.enableSubstitution(80),p=[])}function Oe(Ze){if(o.getNodeCheckFlags(Ze)&262144){Ne();const It=t.createUniqueName(Ze.name&&!ul(Ze.name)?Rr(Ze.name):"default");return p[zu(Ze)]=It,i(It),It}}function At(Ze){return t.createPropertyAccessExpression(t.getDeclarationName(Ze),"prototype")}function be(Ze,It){return la(It)?t.getDeclarationName(Ze):At(Ze)}function He(Ze,It){return It=u(Ze,It),Ze===1?it(It):It}function it(Ze){switch(Ze.kind){case 80:return Ft(Ze)}return Ze}function Ft(Ze){var It;return(It=yt(Ze))!=null?It:Ze}function yt(Ze){if(p&&o.getNodeCheckFlags(Ze)&536870912){const It=o.getReferencedValueDeclaration(Ze);if(It){const on=p[It.id];if(on){const Yt=t.cloneNode(on);return Ma(Yt,Ze),fc(Yt,Ze),Yt}}}}}var iHe=S({"src/compiler/transformers/legacyDecorators.ts"(){ia()}});function ace(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=ps(e.getCompilerOptions());let u,p,v,f,b,A;return wm(e,I);function I(L){u=void 0,A=!1;const me=xn(L,re,e);return Hg(me,e.readEmitHelpers()),A&&(rI(me,32),A=!1),me}function R(){switch(p=void 0,v=void 0,f=void 0,u==null?void 0:u.kind){case"class":p=u.classInfo;break;case"class-element":p=u.next.classInfo,v=u.classThis,f=u.classSuper;break;case"name":const L=u.next.next.next;(L==null?void 0:L.kind)==="class-element"&&(p=L.next.classInfo,v=L.classThis,f=L.classSuper);break}}function M(L){u={kind:"class",next:u,classInfo:L,savedPendingExpressions:b},b=void 0,R()}function C(){N.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),b=u.savedPendingExpressions,u=u.next,R()}function W(L){var me,J;N.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"class-element",next:u},(Pl(L)||qo(L)&&Ec(L))&&(u.classThis=(me=u.next.classInfo)==null?void 0:me.classThis,u.classSuper=(J=u.next.classInfo)==null?void 0:J.classSuper),R()}function U(){var L;N.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),N.assert(((L=u.next)==null?void 0:L.kind)==="class","Incorrect value for top.next.kind.",()=>{var me;return`Expected top.next.kind to be 'class' but got '${(me=u.next)==null?void 0:me.kind}' instead.`}),u=u.next,R()}function X(){N.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"name",next:u},R()}function ee(){N.assert((u==null?void 0:u.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u==null?void 0:u.kind}' instead.`),u=u.next,R()}function V(){(u==null?void 0:u.kind)==="other"?(N.assert(!b),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:b},b=void 0,R())}function se(){N.assert((u==null?void 0:u.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u==null?void 0:u.kind}' instead.`),u.depth>0?(N.assert(!b),u.depth--):(b=u.savedPendingExpressions,u=u.next,R())}function G(L){return!!(L.transformFlags&33554432)||!!v&&!!(L.transformFlags&16384)||!!v&&!!f&&!!(L.transformFlags&134217728)}function re(L){if(!G(L))return L;switch(L.kind){case 170:return N.fail("Use `modifierVisitor` instead.");case 263:return Ce(L);case 231:return qe(L);case 176:case 172:case 175:return N.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Xn(L);case 226:return bo(L,!1);case 303:return Kt(L);case 260:return nt(L);case 208:return Bt(L);case 277:return Je(L);case 110:return Ze(L);case 248:return en(L);case 244:return gi(L);case 361:return Co(L,!1);case 217:return mt(L,!1);case 360:return pt(L,!1);case 213:return It(L);case 215:return on(L);case 224:case 225:return Ui(L,!1);case 211:return Yt(L);case 212:return Nn(L);case 167:return Nr(L);case 174:case 178:case 177:case 218:case 262:{V();const me=xn(L,_e,e);return se(),me}default:return xn(L,_e,e)}}function _e(L){switch(L.kind){case 170:return;default:return re(L)}}function ye(L){switch(L.kind){case 170:return;default:return L}}function Q(L){switch(L.kind){case 176:return Ne(L);case 174:return be(L);case 177:return He(L);case 178:return it(L);case 172:return yt(L);case 175:return Ft(L);default:return re(L)}}function Y(L){switch(L.kind){case 224:case 225:return Ui(L,!0);case 226:return bo(L,!0);case 361:return Co(L,!0);case 217:return mt(L,!0);default:return re(L)}}function oe(L){let me=L.name&&Ue(L.name)&&!ul(L.name)?Rr(L.name):L.name&&Qi(L.name)&&!ul(L.name)?Rr(L.name).slice(1):L.name&&La(L.name)&&tf(L.name.text,99)?L.name.text:di(L)?"class":"member";return Oy(L)&&(me=`get_${me}`),Fv(L)&&(me=`set_${me}`),L.name&&Qi(L.name)&&(me=`private_${me}`),la(L)&&(me=`static_${me}`),"_"+me}function he(L,me){return t.createUniqueName(`${oe(L)}_${me}`,24)}function Ie(L,me){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(L,void 0,void 0,me)],1))}function de(L){var or,pr;const me=t.createUniqueName("_metadata",48);let J,fe,je=!1,ke=!1,Tt=!1,kt,nn,En;if(y2(!1,L)){const ai=St(L.members,li=>(ud(li)||Fd(li))&&Ec(li));kt=t.createUniqueName("_classThis",ai?24:48)}for(const ai of L.members){if(WA(ai)&&ek(!1,ai,L))if(Ec(ai)){if(!fe){fe=t.createUniqueName("_staticExtraInitializers",48);const li=r().createRunInitializersHelper(kt!=null?kt:t.createThis(),fe);Ma(li,(or=L.name)!=null?or:Vg(L)),nn!=null||(nn=[]),nn.push(li)}}else{if(!J){J=t.createUniqueName("_instanceExtraInitializers",48);const li=r().createRunInitializersHelper(t.createThis(),J);Ma(li,(pr=L.name)!=null?pr:Vg(L)),En!=null||(En=[]),En.push(li)}J!=null||(J=t.createUniqueName("_instanceExtraInitializers",48))}if(Pl(ai)?MI(ai)||(je=!0):qo(ai)&&(Ec(ai)?je||(je=!!ai.initializer||If(ai)):ke||(ke=!Fj(ai))),(ud(ai)||Fd(ai))&&Ec(ai)&&(Tt=!0),fe&&J&&je&&ke&&Tt)break}return{class:L,classThis:kt,metadataReference:me,instanceMethodExtraInitializersName:J,staticMethodExtraInitializersName:fe,hasStaticInitializers:je,hasNonAmbientInstanceFields:ke,hasStaticPrivateClassElements:Tt,pendingStaticInitializers:nn,pendingInstanceInitializers:En}}function ie(L){var ya,Xa;i(),!SJ(L)&&zv(!1,L)&&(L=EW(e,L,t.createStringLiteral("")));const me=t.getLocalName(L,!1,!1,!0),J=de(L),fe=[];let je,ke,Tt,kt,nn=!1;const En=dt(gJ(L));En&&(J.classDecoratorsName=t.createUniqueName("_classDecorators",48),J.classDescriptorName=t.createUniqueName("_classDescriptor",48),J.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),N.assertIsDefined(J.classThis),fe.push(Ie(J.classDecoratorsName,t.createArrayLiteralExpression(En)),Ie(J.classDescriptorName),Ie(J.classExtraInitializersName,t.createArrayLiteralExpression()),Ie(J.classThis)),J.hasStaticPrivateClassElements&&(nn=!0,A=!0));const or=bk(L.heritageClauses,96),pr=or&&eu(or.types),ai=pr&&rt(pr.expression,re,bt);if(ai){J.classSuper=t.createUniqueName("_classSuper",48);const Qt=ic(ai),ba=iu(Qt)&&!Qt.name||Us(Qt)&&!Qt.name||Ks(Qt)?t.createComma(t.createNumericLiteral(0),ai):ai;fe.push(Ie(J.classSuper,ba));const Gl=t.updateExpressionWithTypeArguments(pr,J.classSuper,void 0),ao=t.updateHeritageClause(or,[Gl]);kt=t.createNodeArray([ao])}const li=(ya=J.classThis)!=null?ya:t.createThis();M(J),je=Rn(je,q(J.metadataReference,J.classSuper));let Qn=L.members;if(Qn=Un(Qn,Qt=>Wl(Qt)?Qt:Q(Qt),nu),Qn=Un(Qn,Qt=>Wl(Qt)?Q(Qt):Qt,nu),b){let Qt;for(let ba of b){ba=rt(ba,function ao(Ga){if(!(Ga.transformFlags&16384))return Ga;switch(Ga.kind){case 110:return Qt||(Qt=t.createUniqueName("_outerThis",16),fe.unshift(Ie(Qt,t.createThis()))),Qt;default:return xn(Ga,ao,e)}},bt);const Gl=t.createExpressionStatement(ba);je=Rn(je,Gl)}b=void 0}if(C(),St(J.pendingInstanceInitializers)&&!sg(L)){const Qt=Se(L,J);if(Qt){const ba=D_(L),Gl=!!(ba&&ic(ba.expression).kind!==106),ao=[];if(Gl){const ka=t.createSpreadElement(t.createIdentifier("arguments")),Ts=t.createCallExpression(t.createSuper(),void 0,[ka]);ao.push(t.createExpressionStatement(Ts))}Hr(ao,Qt);const Ga=t.createBlock(ao,!0);Tt=t.createConstructorDeclaration(void 0,[],Ga)}}if(J.staticMethodExtraInitializersName&&fe.push(Ie(J.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),J.instanceMethodExtraInitializersName&&fe.push(Ie(J.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),J.memberInfos&&qc(J.memberInfos,(Qt,ba)=>{la(ba)&&(fe.push(Ie(Qt.memberDecoratorsName)),Qt.memberInitializersName&&fe.push(Ie(Qt.memberInitializersName,t.createArrayLiteralExpression())),Qt.memberExtraInitializersName&&fe.push(Ie(Qt.memberExtraInitializersName,t.createArrayLiteralExpression())),Qt.memberDescriptorName&&fe.push(Ie(Qt.memberDescriptorName)))}),J.memberInfos&&qc(J.memberInfos,(Qt,ba)=>{la(ba)||(fe.push(Ie(Qt.memberDecoratorsName)),Qt.memberInitializersName&&fe.push(Ie(Qt.memberInitializersName,t.createArrayLiteralExpression())),Qt.memberExtraInitializersName&&fe.push(Ie(Qt.memberExtraInitializersName,t.createArrayLiteralExpression())),Qt.memberDescriptorName&&fe.push(Ie(Qt.memberDescriptorName)))}),je=Hr(je,J.staticNonFieldDecorationStatements),je=Hr(je,J.nonStaticNonFieldDecorationStatements),je=Hr(je,J.staticFieldDecorationStatements),je=Hr(je,J.nonStaticFieldDecorationStatements),J.classDescriptorName&&J.classDecoratorsName&&J.classExtraInitializersName&&J.classThis){je!=null||(je=[]);const Qt=t.createPropertyAssignment("value",li),ba=t.createObjectLiteralExpression([Qt]),Gl=t.createAssignment(J.classDescriptorName,ba),ao=t.createPropertyAccessExpression(li,"name"),Ga=r().createESDecorateHelper(t.createNull(),Gl,J.classDecoratorsName,{kind:"class",name:ao,metadata:J.metadataReference},t.createNull(),J.classExtraInitializersName),ka=t.createExpressionStatement(Ga);Ma(ka,Vg(L)),je.push(ka);const Ts=t.createPropertyAccessExpression(J.classDescriptorName,"value"),oc=t.createAssignment(J.classThis,Ts),co=t.createAssignment(me,oc);je.push(t.createExpressionStatement(co))}if(je.push(We(li,J.metadataReference)),St(J.pendingStaticInitializers)){for(const Qt of J.pendingStaticInitializers){const ba=t.createExpressionStatement(Qt);Ma(ba,qv(Qt)),ke=Rn(ke,ba)}J.pendingStaticInitializers=void 0}if(J.classExtraInitializersName){const Qt=r().createRunInitializersHelper(li,J.classExtraInitializersName),ba=t.createExpressionStatement(Qt);Ma(ba,(Xa=L.name)!=null?Xa:Vg(L)),ke=Rn(ke,ba)}je&&ke&&!J.hasStaticInitializers&&(Hr(je,ke),ke=void 0);const qr=je&&t.createClassStaticBlockDeclaration(t.createBlock(je,!0));qr&&nn&&Zk(qr,32);const Ao=ke&&t.createClassStaticBlockDeclaration(t.createBlock(ke,!0));if(qr||Tt||Ao){const Qt=[],ba=Qn.findIndex(MI);qr?(Hr(Qt,Qn,0,ba+1),Qt.push(qr),Hr(Qt,Qn,ba+1)):Hr(Qt,Qn),Tt&&Qt.push(Tt),Ao&&Qt.push(Ao),Qn=ut(t.createNodeArray(Qt),Qn)}const Fi=o();let vi;if(En){vi=t.createClassExpression(void 0,void 0,void 0,kt,Qn),J.classThis&&(vi=Qle(t,vi,J.classThis));const Qt=t.createVariableDeclaration(me,void 0,void 0,vi),ba=t.createVariableDeclarationList([Qt]),Gl=J.classThis?t.createAssignment(me,J.classThis):me;fe.push(t.createVariableStatement(void 0,ba),t.createReturnStatement(Gl))}else vi=t.createClassExpression(void 0,L.name,void 0,kt,Qn),fe.push(t.createReturnStatement(vi));if(nn){rI(vi,32);for(const Qt of vi.members)(ud(Qt)||Fd(Qt))&&Ec(Qt)&&rI(Qt,32)}return kr(vi,L),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(fe,Fi))}function ge(L){return zv(!1,L)||WN(!1,L)}function Ce(L){var me;if(ge(L)){const J=[],fe=(me=Ol(L,di))!=null?me:L,je=fe.name?t.createStringLiteralFromNode(fe.name):t.createStringLiteral("default"),ke=Qr(L,32),Tt=Qr(L,2048);if(L.name||(L=EW(e,L,je)),ke&&Tt){const kt=ie(L);if(L.name){const nn=t.createVariableDeclaration(t.getLocalName(L),void 0,void 0,kt);kr(nn,L);const En=t.createVariableDeclarationList([nn],1),or=t.createVariableStatement(void 0,En);J.push(or);const pr=t.createExportDefault(t.getDeclarationName(L));kr(pr,L),fc(pr,w_(L)),Ma(pr,Vg(L)),J.push(pr)}else{const nn=t.createExportDefault(kt);kr(nn,L),fc(nn,w_(L)),Ma(nn,Vg(L)),J.push(nn)}}else{N.assertIsDefined(L.name,"A class declaration that is not a default export must have a name.");const kt=ie(L),nn=ke?Qn=>uI(Qn)?void 0:ye(Qn):ye,En=Un(L.modifiers,nn,Ra),or=t.getLocalName(L,!1,!0),pr=t.createVariableDeclaration(or,void 0,void 0,kt);kr(pr,L);const ai=t.createVariableDeclarationList([pr],1),li=t.createVariableStatement(En,ai);if(kr(li,L),fc(li,w_(L)),J.push(li),ke){const Qn=t.createExternalModuleExport(or);kr(Qn,L),J.push(Qn)}}return dh(J)}else{const J=Un(L.modifiers,ye,Ra),fe=Un(L.heritageClauses,re,of);M(void 0);const je=Un(L.members,Q,nu);return C(),t.updateClassDeclaration(L,J,L.name,void 0,fe,je)}}function qe(L){if(ge(L)){const me=ie(L);return kr(me,L),me}else{const me=Un(L.modifiers,ye,Ra),J=Un(L.heritageClauses,re,of);M(void 0);const fe=Un(L.members,Q,nu);return C(),t.updateClassExpression(L,me,L.name,void 0,J,fe)}}function Se(L,me){if(St(me.pendingInstanceInitializers)){const J=[];return J.push(t.createExpressionStatement(t.inlineExpressions(me.pendingInstanceInitializers))),me.pendingInstanceInitializers=void 0,J}}function Le(L,me,J,fe,je,ke){const Tt=fe[je],kt=me[Tt];if(Hr(L,Un(me,re,$i,J,Tt-J)),qS(kt)){const nn=[];Le(nn,kt.tryBlock.statements,0,fe,je+1,ke);const En=t.createNodeArray(nn);ut(En,kt.tryBlock.statements),L.push(t.updateTryStatement(kt,t.updateBlock(kt.tryBlock,nn),rt(kt.catchClause,re,uE),rt(kt.finallyBlock,re,Yo)))}else Hr(L,Un(me,re,$i,Tt,1)),Hr(L,ke);Hr(L,Un(me,re,$i,Tt+1))}function Ne(L){W(L);const me=Un(L.modifiers,ye,Ra),J=Un(L.parameters,re,No);let fe;if(L.body&&p){const je=Se(p.class,p);if(je){const ke=[],Tt=t.copyPrologue(L.body.statements,ke,!1,re),kt=gW(L.body.statements,Tt);kt.length>0?Le(ke,L.body.statements,Tt,kt,0,je):(Hr(ke,je),Hr(ke,Un(L.body.statements,re,$i))),fe=t.createBlock(ke,!0),kr(fe,L.body),ut(fe,L.body)}}return fe!=null||(fe=rt(L.body,re,Yo)),U(),t.updateConstructorDeclaration(L,me,J,fe)}function Oe(L,me){return L!==me&&(fc(L,me),Ma(L,Vg(me))),L}function At(L,me,J){var pr,ai,li,Qn,qr,Ao,Fi;let fe,je,ke,Tt,kt,nn;if(!me){const vi=Un(L.modifiers,ye,Ra);return X(),je=Ci(L.name),ee(),{modifiers:vi,referencedName:fe,name:je,initializersName:ke,descriptorName:nn,thisArg:kt}}const En=dt(yW(L,me.class,!1)),or=Un(L.modifiers,ye,Ra);if(En){const vi=he(L,"decorators"),ya=t.createArrayLiteralExpression(En),Xa=t.createAssignment(vi,ya),Qt={memberDecoratorsName:vi};(pr=me.memberInfos)!=null||(me.memberInfos=new Map),me.memberInfos.set(L,Qt),b!=null||(b=[]),b.push(Xa);const ba=WA(L)||Fd(L)?la(L)?(ai=me.staticNonFieldDecorationStatements)!=null?ai:me.staticNonFieldDecorationStatements=[]:(li=me.nonStaticNonFieldDecorationStatements)!=null?li:me.nonStaticNonFieldDecorationStatements=[]:qo(L)&&!Fd(L)?la(L)?(Qn=me.staticFieldDecorationStatements)!=null?Qn:me.staticFieldDecorationStatements=[]:(qr=me.nonStaticFieldDecorationStatements)!=null?qr:me.nonStaticFieldDecorationStatements=[]:N.fail(),Gl=rf(L)?"getter":Tp(L)?"setter":Ql(L)?"method":Fd(L)?"accessor":qo(L)?"field":N.fail();let ao;if(Ue(L.name)||Qi(L.name))ao={computed:!1,name:L.name};else if(N_(L.name))ao={computed:!0,name:t.createStringLiteralFromNode(L.name)};else{const ka=L.name.expression;N_(ka)&&!Ue(ka)?ao={computed:!0,name:t.createStringLiteralFromNode(ka)}:(X(),{referencedName:fe,name:je}=tr(L.name),ao={computed:!0,name:fe},ee())}const Ga={kind:Gl,name:ao,static:la(L),private:Qi(L.name),access:{get:qo(L)||rf(L)||Ql(L),set:qo(L)||Tp(L)},metadata:me.metadataReference};if(WA(L)){const ka=la(L)?me.staticMethodExtraInitializersName:me.instanceMethodExtraInitializersName;N.assertIsDefined(ka);let Ts;ud(L)&&J&&(Ts=J(L,Un(or,da=>ni(da,RC),Ra)),Qt.memberDescriptorName=nn=he(L,"descriptor"),Ts=t.createAssignment(nn,Ts));const oc=r().createESDecorateHelper(t.createThis(),Ts!=null?Ts:t.createNull(),vi,Ga,t.createNull(),ka),co=t.createExpressionStatement(oc);Ma(co,Vg(L)),ba.push(co)}else if(qo(L)){ke=(Ao=Qt.memberInitializersName)!=null?Ao:Qt.memberInitializersName=he(L,"initializers"),Tt=(Fi=Qt.memberExtraInitializersName)!=null?Fi:Qt.memberExtraInitializersName=he(L,"extraInitializers"),la(L)&&(kt=me.classThis);let ka;ud(L)&&P_(L)&&J&&(ka=J(L,void 0),Qt.memberDescriptorName=nn=he(L,"descriptor"),ka=t.createAssignment(nn,ka));const Ts=r().createESDecorateHelper(Fd(L)?t.createThis():t.createNull(),ka!=null?ka:t.createNull(),vi,Ga,ke,Tt),oc=t.createExpressionStatement(Ts);Ma(oc,Vg(L)),ba.push(oc)}}return je===void 0&&(X(),je=Ci(L.name),ee()),!St(or)&&(Ql(L)||qo(L))&&hr(je,1024),{modifiers:or,referencedName:fe,name:je,initializersName:ke,extraInitializersName:Tt,descriptorName:nn,thisArg:kt}}function be(L){W(L);const{modifiers:me,name:J,descriptorName:fe}=At(L,p,Dt);if(fe)return U(),Oe(gn(me,J,fe),L);{const je=Un(L.parameters,re,No),ke=rt(L.body,re,Yo);return U(),Oe(t.updateMethodDeclaration(L,me,L.asteriskToken,J,void 0,void 0,je,void 0,ke),L)}}function He(L){W(L);const{modifiers:me,name:J,descriptorName:fe}=At(L,p,Ye);if(fe)return U(),Oe(hn(me,J,fe),L);{const je=Un(L.parameters,re,No),ke=rt(L.body,re,Yo);return U(),Oe(t.updateGetAccessorDeclaration(L,me,J,je,void 0,ke),L)}}function it(L){W(L);const{modifiers:me,name:J,descriptorName:fe}=At(L,p,_t);if(fe)return U(),Oe(pn(me,J,fe),L);{const je=Un(L.parameters,re,No),ke=rt(L.body,re,Yo);return U(),Oe(t.updateSetAccessorDeclaration(L,me,J,je,ke),L)}}function Ft(L){W(L);let me;if(MI(L))me=xn(L,re,e);else if(tP(L)){const J=v;v=void 0,me=xn(L,re,e),v=J}else if(L=xn(L,re,e),me=L,p&&(p.hasStaticInitializers=!0,St(p.pendingStaticInitializers))){const J=[];for(const ke of p.pendingStaticInitializers){const Tt=t.createExpressionStatement(ke);Ma(Tt,qv(ke)),J.push(Tt)}const fe=t.createBlock(J,!0);me=[t.createClassStaticBlockDeclaration(fe),me],p.pendingStaticInitializers=void 0}return U(),me}function yt(L){var En,or,pr;yp(L,yn)&&(L=Ip(e,L,tn(L.initializer))),W(L),N.assert(!Fj(L),"Not yet implemented.");const{modifiers:me,name:J,initializersName:fe,extraInitializersName:je,descriptorName:ke,thisArg:Tt}=At(L,p,P_(L)?Gt:void 0);i();let kt=rt(L.initializer,re,bt);fe&&(kt=r().createRunInitializersHelper(Tt!=null?Tt:t.createThis(),fe,kt!=null?kt:t.createVoidZero())),la(L)&&p&&kt&&(p.hasStaticInitializers=!0);const nn=o();if(St(nn)&&(kt=t.createImmediatelyInvokedArrowFunction([...nn,t.createReturnStatement(kt)])),p&&(la(L)?(kt=Fe(p,!0,kt),je&&((En=p.pendingStaticInitializers)!=null||(p.pendingStaticInitializers=[]),p.pendingStaticInitializers.push(r().createRunInitializersHelper((or=p.classThis)!=null?or:t.createThis(),je)))):(kt=Fe(p,!1,kt),je&&((pr=p.pendingInstanceInitializers)!=null||(p.pendingInstanceInitializers=[]),p.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),je))))),U(),P_(L)&&ke){const ai=w_(L),li=qv(L),Qn=L.name;let qr=Qn,Ao=Qn;if(ss(Qn)&&!z_(Qn.expression)){const Qt=L5(Qn);if(Qt)qr=t.updateComputedPropertyName(Qn,rt(Qn.expression,re,bt)),Ao=t.updateComputedPropertyName(Qn,Qt.left);else{const ba=t.createTempVariable(s);Ma(ba,Qn.expression);const Gl=rt(Qn.expression,re,bt),ao=t.createAssignment(ba,Gl);Ma(ao,Qn.expression),qr=t.updateComputedPropertyName(Qn,ao),Ao=t.updateComputedPropertyName(Qn,ba)}}const Fi=Un(me,Qt=>Qt.kind!==129?Qt:void 0,Ra),vi=dq(t,L,Fi,kt);kr(vi,L),hr(vi,3072),Ma(vi,li),Ma(vi.name,L.name);const ya=hn(Fi,qr,ke);kr(ya,L),fc(ya,ai),Ma(ya,li);const Xa=pn(Fi,Ao,ke);return kr(Xa,L),hr(Xa,3072),Ma(Xa,li),[vi,ya,Xa]}return Oe(t.updatePropertyDeclaration(L,me,J,void 0,void 0,kt),L)}function Ze(L){return v!=null?v:L}function It(L){if(Bd(L.expression)&&v){const me=rt(L.expression,re,bt),J=Un(L.arguments,re,bt),fe=t.createFunctionCallCall(me,v,J);return kr(fe,L),ut(fe,L),fe}return xn(L,re,e)}function on(L){if(Bd(L.tag)&&v){const me=rt(L.tag,re,bt),J=t.createFunctionBindCall(me,v,[]);kr(J,L),ut(J,L);const fe=rt(L.template,re,FA);return t.updateTaggedTemplateExpression(L,J,void 0,fe)}return xn(L,re,e)}function Yt(L){if(Bd(L)&&Ue(L.name)&&v&&f){const me=t.createStringLiteralFromNode(L.name),J=t.createReflectGetCall(f,me,v);return kr(J,L.expression),ut(J,L.expression),J}return xn(L,re,e)}function Nn(L){if(Bd(L)&&v&&f){const me=rt(L.argumentExpression,re,bt),J=t.createReflectGetCall(f,me,v);return kr(J,L.expression),ut(J,L.expression),J}return xn(L,re,e)}function Xn(L){yp(L,yn)&&(L=Ip(e,L,tn(L.initializer)));const me=t.updateParameterDeclaration(L,void 0,L.dotDotDotToken,rt(L.name,re,vS),void 0,void 0,rt(L.initializer,re,bt));return me!==L&&(fc(me,L),ut(me,L_(L)),Ma(me,L_(L)),hr(me.name,64)),me}function yn(L){return iu(L)&&!L.name&&ge(L)}function tn(L){const me=ic(L);return iu(me)&&!me.name&&!zv(!1,me)}function en(L){return t.updateForStatement(L,rt(L.initializer,Y,Af),rt(L.condition,re,bt),rt(L.incrementor,Y,bt),Rd(L.statement,re,e))}function gi(L){return xn(L,Y,e)}function bo(L,me){if(jv(L)){const J=On(L.left),fe=rt(L.right,re,bt);return t.updateBinaryExpression(L,J,L.operatorToken,fe)}if(Wc(L)){if(yp(L,yn))return L=Ip(e,L,tn(L.right)),xn(L,re,e);if(Bd(L.left)&&v&&f){let J=el(L.left)?rt(L.left.argumentExpression,re,bt):Ue(L.left.name)?t.createStringLiteralFromNode(L.left.name):void 0;if(J){let fe=rt(L.right,re,bt);if(QC(L.operatorToken.kind)){let ke=J;z_(J)||(ke=t.createTempVariable(s),J=t.createAssignment(ke,J));const Tt=t.createReflectGetCall(f,ke,v);kr(Tt,L.left),ut(Tt,L.left),fe=t.createBinaryExpression(Tt,ZC(L.operatorToken.kind),fe),ut(fe,L)}const je=me?void 0:t.createTempVariable(s);return je&&(fe=t.createAssignment(je,fe),ut(je,L)),fe=t.createReflectSetCall(f,J,fe,v),kr(fe,L),ut(fe,L),je&&(fe=t.createComma(fe,je),ut(fe,L)),fe}}}if(L.operatorToken.kind===28){const J=rt(L.left,Y,bt),fe=rt(L.right,me?Y:re,bt);return t.updateBinaryExpression(L,J,L.operatorToken,fe)}return xn(L,re,e)}function Ui(L,me){if(L.operator===46||L.operator===47){const J=Ss(L.operand);if(Bd(J)&&v&&f){let fe=el(J)?rt(J.argumentExpression,re,bt):Ue(J.name)?t.createStringLiteralFromNode(J.name):void 0;if(fe){let je=fe;z_(fe)||(je=t.createTempVariable(s),fe=t.createAssignment(je,fe));let ke=t.createReflectGetCall(f,je,v);kr(ke,L),ut(ke,L);const Tt=me?void 0:t.createTempVariable(s);return ke=x5(t,L,ke,s,Tt),ke=t.createReflectSetCall(f,fe,ke,v),kr(ke,L),ut(ke,L),Tt&&(ke=t.createComma(ke,Tt),ut(ke,L)),ke}}}return xn(L,re,e)}function Co(L,me){const J=me?Xw(L.elements,Y):Xw(L.elements,re,Y);return t.updateCommaListExpression(L,J)}function tr(L){if(N_(L)||Qi(L)){const ke=t.createStringLiteralFromNode(L),Tt=rt(L,re,pc);return{referencedName:ke,name:Tt}}if(N_(L.expression)&&!Ue(L.expression)){const ke=t.createStringLiteralFromNode(L.expression),Tt=rt(L,re,pc);return{referencedName:ke,name:Tt}}const me=t.getGeneratedNameForNode(L);s(me);const J=r().createPropKeyHelper(rt(L.expression,re,bt)),fe=t.createAssignment(me,J),je=t.updateComputedPropertyName(L,le(fe));return{referencedName:me,name:je}}function Ci(L){return ss(L)?Nr(L):rt(L,re,pc)}function Nr(L){let me=rt(L.expression,re,bt);return z_(me)||(me=le(me)),t.updateComputedPropertyName(L,me)}function Kt(L){return yp(L,yn)&&(L=Ip(e,L,tn(L.initializer))),xn(L,re,e)}function nt(L){return yp(L,yn)&&(L=Ip(e,L,tn(L.initializer))),xn(L,re,e)}function Bt(L){return yp(L,yn)&&(L=Ip(e,L,tn(L.initializer))),xn(L,re,e)}function Dn(L){if(za(L)||hd(L))return On(L);if(Bd(L)&&v&&f){const me=el(L)?rt(L.argumentExpression,re,bt):Ue(L.name)?t.createStringLiteralFromNode(L.name):void 0;if(me){const J=t.createTempVariable(void 0),fe=t.createAssignmentTargetWrapper(J,t.createReflectSetCall(f,me,J,v));return kr(fe,L),ut(fe,L),fe}}return xn(L,re,e)}function si(L){if(Wc(L,!0)){yp(L,yn)&&(L=Ip(e,L,tn(L.right)));const me=Dn(L.left),J=rt(L.right,re,bt);return t.updateBinaryExpression(L,me,L.operatorToken,J)}else return Dn(L)}function yi(L){if(tp(L.expression)){const me=Dn(L.expression);return t.updateSpreadElement(L,me)}return xn(L,re,e)}function oo(L){return N.assertNode(L,kL),t_(L)?yi(L):Kc(L)?xn(L,re,e):si(L)}function Po(L){const me=rt(L.name,re,pc);if(Wc(L.initializer,!0)){const J=si(L.initializer);return t.updatePropertyAssignment(L,me,J)}if(tp(L.initializer)){const J=Dn(L.initializer);return t.updatePropertyAssignment(L,me,J)}return xn(L,re,e)}function _a(L){return yp(L,yn)&&(L=Ip(e,L,tn(L.objectAssignmentInitializer))),xn(L,re,e)}function Ba(L){if(tp(L.expression)){const me=Dn(L.expression);return t.updateSpreadAssignment(L,me)}return xn(L,re,e)}function Tn(L){return N.assertNode(L,LL),Xv(L)?Ba(L):ip(L)?_a(L):Tc(L)?Po(L):xn(L,re,e)}function On(L){if(hd(L)){const me=Un(L.elements,oo,bt);return t.updateArrayLiteralExpression(L,me)}else{const me=Un(L.properties,Tn,Fg);return t.updateObjectLiteralExpression(L,me)}}function Je(L){return yp(L,yn)&&(L=Ip(e,L,tn(L.expression))),xn(L,re,e)}function mt(L,me){const J=me?Y:re,fe=rt(L.expression,J,bt);return t.updateParenthesizedExpression(L,fe)}function pt(L,me){const J=me?Y:re,fe=rt(L.expression,J,bt);return t.updatePartiallyEmittedExpression(L,fe)}function Pt(L,me){return St(L)&&(me?Vd(me)?(L.push(me.expression),me=t.updateParenthesizedExpression(me,t.inlineExpressions(L))):(L.push(me),me=t.inlineExpressions(L)):me=t.inlineExpressions(L)),me}function le(L){const me=Pt(b,L);return N.assertIsDefined(me),me!==L&&(b=void 0),me}function Fe(L,me,J){const fe=Pt(me?L.pendingStaticInitializers:L.pendingInstanceInitializers,J);return fe!==J&&(me?L.pendingStaticInitializers=void 0:L.pendingInstanceInitializers=void 0),fe}function dt(L){if(!L)return;const me=[];return Hr(me,Wt(L.decorators,j)),me}function j(L){const me=rt(L.expression,re,bt);hr(me,3072);const J=ic(me);if(js(J)){const{target:fe,thisArg:je}=t.createCallBinding(me,s,l,!0);return t.restoreOuterExpressions(me,t.createFunctionBindCall(fe,je,[]))}return me}function ot(L,me,J,fe,je,ke,Tt){const kt=t.createFunctionExpression(J,fe,void 0,void 0,ke,void 0,Tt!=null?Tt:t.createBlock([]));kr(kt,L),Ma(kt,Vg(L)),hr(kt,3072);const nn=je==="get"||je==="set"?je:void 0,En=t.createStringLiteralFromNode(me,void 0),or=r().createSetFunctionNameHelper(kt,En,nn),pr=t.createPropertyAssignment(t.createIdentifier(je),or);return kr(pr,L),Ma(pr,Vg(L)),hr(pr,3072),pr}function Dt(L,me){return t.createObjectLiteralExpression([ot(L,L.name,me,L.asteriskToken,"value",Un(L.parameters,re,No),rt(L.body,re,Yo))])}function Ye(L,me){return t.createObjectLiteralExpression([ot(L,L.name,me,void 0,"get",[],rt(L.body,re,Yo))])}function _t(L,me){return t.createObjectLiteralExpression([ot(L,L.name,me,void 0,"set",Un(L.parameters,re,No),rt(L.body,re,Yo))])}function Gt(L,me){return t.createObjectLiteralExpression([ot(L,L.name,me,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(L.name)))])),ot(L,L.name,me,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(L.name)),t.createIdentifier("value")))]))])}function gn(L,me,J){return L=Un(L,fe=>dI(fe)?fe:void 0,Ra),t.createGetAccessorDeclaration(L,me,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(J,t.createIdentifier("value")))]))}function hn(L,me,J){return L=Un(L,fe=>dI(fe)?fe:void 0,Ra),t.createGetAccessorDeclaration(L,me,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(J,t.createIdentifier("get")),t.createThis(),[]))]))}function pn(L,me,J){return L=Un(L,fe=>dI(fe)?fe:void 0,Ra),t.createSetAccessorDeclaration(L,me,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(J,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function q(L,me){const J=t.createVariableDeclaration(L,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[me?Lt(me):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([J],2))}function We(L,me){const J=t.createObjectDefinePropertyCall(L,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:me},!0));return hr(t.createIfStatement(me,t.createExpressionStatement(J)),1)}function Lt(L){return t.createBinaryExpression(t.createElementAccessExpression(L,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var oHe=S({"src/compiler/transformers/esDecorators.ts"(){ia()}});function sce(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=ps(u);let v,f=0,b,A,I,R;const M=[];let C=0;const W=e.onEmitNode,U=e.onSubstituteNode;return e.onEmitNode=gi,e.onSubstituteNode=bo,wm(e,X);function X(nt){if(nt.isDeclarationFile)return nt;ee(1,!1),ee(2,!Wj(nt,u));const Bt=xn(nt,Q,e);return Hg(Bt,e.readEmitHelpers()),Bt}function ee(nt,Bt){C=Bt?C|nt:C&~nt}function V(nt){return(C&nt)!==0}function se(){return!V(1)}function G(){return V(2)}function re(nt,Bt,Dn){const si=nt&~C;if(si){ee(si,!0);const yi=Bt(Dn);return ee(si,!1),yi}return Bt(Dn)}function _e(nt){return xn(nt,Q,e)}function ye(nt){switch(nt.kind){case 218:case 262:case 174:case 177:case 178:case 176:return nt;case 169:case 208:case 260:break;case 80:if(R&&l.isArgumentsLocalBinding(nt))return R;break}return xn(nt,ye,e)}function Q(nt){if((nt.transformFlags&256)===0)return R?ye(nt):nt;switch(nt.kind){case 134:return;case 223:return ge(nt);case 174:return re(3,qe,nt);case 262:return re(3,Ne,nt);case 218:return re(3,Oe,nt);case 219:return re(1,At,nt);case 211:return A&&Br(nt)&&nt.expression.kind===108&&A.add(nt.name.escapedText),xn(nt,Q,e);case 212:return A&&nt.expression.kind===108&&(I=!0),xn(nt,Q,e);case 177:return re(3,Se,nt);case 178:return re(3,Le,nt);case 176:return re(3,Ce,nt);case 263:case 231:return re(3,_e,nt);default:return xn(nt,Q,e)}}function Y(nt){if(soe(nt))switch(nt.kind){case 243:return he(nt);case 248:return ie(nt);case 249:return Ie(nt);case 250:return de(nt);case 299:return oe(nt);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return xn(nt,Y,e);default:return N.assertNever(nt,"Unhandled node.")}return Q(nt)}function oe(nt){const Bt=new Set;be(nt.variableDeclaration,Bt);let Dn;if(Bt.forEach((si,yi)=>{b.has(yi)&&(Dn||(Dn=new Set(b)),Dn.delete(yi))}),Dn){const si=b;b=Dn;const yi=xn(nt,Y,e);return b=si,yi}else return xn(nt,Y,e)}function he(nt){if(He(nt.declarationList)){const Bt=it(nt.declarationList,!1);return Bt?t.createExpressionStatement(Bt):void 0}return xn(nt,Q,e)}function Ie(nt){return t.updateForInStatement(nt,He(nt.initializer)?it(nt.initializer,!0):N.checkDefined(rt(nt.initializer,Q,Af)),N.checkDefined(rt(nt.expression,Q,bt)),Rd(nt.statement,Y,e))}function de(nt){return t.updateForOfStatement(nt,rt(nt.awaitModifier,Q,zH),He(nt.initializer)?it(nt.initializer,!0):N.checkDefined(rt(nt.initializer,Q,Af)),N.checkDefined(rt(nt.expression,Q,bt)),Rd(nt.statement,Y,e))}function ie(nt){const Bt=nt.initializer;return t.updateForStatement(nt,He(Bt)?it(Bt,!1):rt(nt.initializer,Q,Af),rt(nt.condition,Q,bt),rt(nt.incrementor,Q,bt),Rd(nt.statement,Y,e))}function ge(nt){return se()?xn(nt,Q,e):kr(ut(t.createYieldExpression(void 0,rt(nt.expression,Q,bt)),nt),nt)}function Ce(nt){const Bt=R;R=void 0;const Dn=t.updateConstructorDeclaration(nt,Un(nt.modifiers,Q,Ra),Ml(nt.parameters,Q,e),on(nt));return R=Bt,Dn}function qe(nt){let Bt;const Dn=Jc(nt),si=R;R=void 0;const yi=t.updateMethodDeclaration(nt,Un(nt.modifiers,Q,dl),nt.asteriskToken,nt.name,void 0,void 0,Bt=Dn&2?Nn(nt):Ml(nt.parameters,Q,e),void 0,Dn&2?Xn(nt,Bt):on(nt));return R=si,yi}function Se(nt){const Bt=R;R=void 0;const Dn=t.updateGetAccessorDeclaration(nt,Un(nt.modifiers,Q,dl),nt.name,Ml(nt.parameters,Q,e),void 0,on(nt));return R=Bt,Dn}function Le(nt){const Bt=R;R=void 0;const Dn=t.updateSetAccessorDeclaration(nt,Un(nt.modifiers,Q,dl),nt.name,Ml(nt.parameters,Q,e),on(nt));return R=Bt,Dn}function Ne(nt){let Bt;const Dn=R;R=void 0;const si=Jc(nt),yi=t.updateFunctionDeclaration(nt,Un(nt.modifiers,Q,dl),nt.asteriskToken,nt.name,void 0,Bt=si&2?Nn(nt):Ml(nt.parameters,Q,e),void 0,si&2?Xn(nt,Bt):lf(nt.body,Q,e));return R=Dn,yi}function Oe(nt){let Bt;const Dn=R;R=void 0;const si=Jc(nt),yi=t.updateFunctionExpression(nt,Un(nt.modifiers,Q,Ra),nt.asteriskToken,nt.name,void 0,Bt=si&2?Nn(nt):Ml(nt.parameters,Q,e),void 0,si&2?Xn(nt,Bt):lf(nt.body,Q,e));return R=Dn,yi}function At(nt){let Bt;const Dn=Jc(nt);return t.updateArrowFunction(nt,Un(nt.modifiers,Q,Ra),void 0,Bt=Dn&2?Nn(nt):Ml(nt.parameters,Q,e),void 0,nt.equalsGreaterThanToken,Dn&2?Xn(nt,Bt):lf(nt.body,Q,e))}function be({name:nt},Bt){if(Ue(nt))Bt.add(nt.escapedText);else for(const Dn of nt.elements)Kc(Dn)||be(Dn,Bt)}function He(nt){return!!nt&&Xc(nt)&&!(nt.flags&7)&&nt.declarations.some(It)}function it(nt,Bt){Ft(nt);const Dn=rC(nt);return Dn.length===0?Bt?rt(t.converters.convertToAssignmentElementTarget(nt.declarations[0].name),Q,bt):void 0:t.inlineExpressions(Wt(Dn,Ze))}function Ft(nt){Ve(nt.declarations,yt)}function yt({name:nt}){if(Ue(nt))s(nt);else for(const Bt of nt.elements)Kc(Bt)||yt(Bt)}function Ze(nt){const Bt=Ma(t.createAssignment(t.converters.convertToAssignmentElementTarget(nt.name),nt.initializer),nt);return N.checkDefined(rt(Bt,Q,bt))}function It({name:nt}){if(Ue(nt))return b.has(nt.escapedText);for(const Bt of nt.elements)if(!Kc(Bt)&&It(Bt))return!0;return!1}function on(nt){N.assertIsDefined(nt.body);const Bt=A,Dn=I;A=new Set,I=!1;let si=lf(nt.body,Q,e);const yi=Ol(nt,Js);if(p>=2&&l.getNodeCheckFlags(nt)&384&&(Jc(yi)&3)!==3){if(en(),A.size){const Po=SW(t,l,nt,A);M[fs(Po)]=!0;const _a=si.statements.slice();tg(_a,[Po]),si=t.updateBlock(si,_a)}I&&(l.getNodeCheckFlags(nt)&256?oI(si,iw):l.getNodeCheckFlags(nt)&128&&oI(si,rw))}return A=Bt,I=Dn,si}function Yt(){N.assert(R);const nt=t.createVariableDeclaration(R,void 0,void 0,t.createIdentifier("arguments")),Bt=t.createVariableStatement(void 0,[nt]);return Qu(Bt),k_(Bt,2097152),Bt}function Nn(nt){if($w(nt.parameters))return Ml(nt.parameters,Q,e);const Bt=[];for(const si of nt.parameters){if(si.initializer||si.dotDotDotToken){if(nt.kind===219){const oo=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));Bt.push(oo)}break}const yi=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(si.name,8));Bt.push(yi)}const Dn=t.createNodeArray(Bt);return ut(Dn,nt.parameters),Dn}function Xn(nt,Bt){const Dn=$w(nt.parameters)?void 0:Ml(nt.parameters,Q,e);i();const yi=Ol(nt,ta).type,oo=p<2?tn(yi):void 0,Po=nt.kind===219,_a=R,Tn=(l.getNodeCheckFlags(nt)&512)!==0&&!R;Tn&&(R=t.createUniqueName("arguments"));let On;if(Dn)if(Po){const dt=[];N.assert(Bt.length<=nt.parameters.length);for(let j=0;j<nt.parameters.length;j++){N.assert(j<Bt.length);const ot=nt.parameters[j],Dt=Bt[j];if(N.assertNode(Dt.name,Ue),ot.initializer||ot.dotDotDotToken){N.assert(j===Bt.length-1),dt.push(t.createSpreadElement(Dt.name));break}dt.push(Dt.name)}On=t.createArrayLiteralExpression(dt)}else On=t.createIdentifier("arguments");const Je=b;b=new Set;for(const dt of nt.parameters)be(dt,b);const mt=A,pt=I;Po||(A=new Set,I=!1);const Pt=G();let le=yn(nt.body);le=t.updateBlock(le,t.mergeLexicalEnvironment(le.statements,o()));let Fe;if(Po){if(Fe=r().createAwaiterHelper(Pt,On,oo,Dn,le),Tn){const dt=t.converters.convertToFunctionBlock(Fe);Fe=t.updateBlock(dt,t.mergeLexicalEnvironment(dt.statements,[Yt()]))}}else{const dt=[];dt.push(t.createReturnStatement(r().createAwaiterHelper(Pt,On,oo,Dn,le)));const j=p>=2&&l.getNodeCheckFlags(nt)&384;if(j&&(en(),A.size)){const Dt=SW(t,l,nt,A);M[fs(Dt)]=!0,tg(dt,[Dt])}Tn&&tg(dt,[Yt()]);const ot=t.createBlock(dt,!0);ut(ot,nt.body),j&&I&&(l.getNodeCheckFlags(nt)&256?oI(ot,iw):l.getNodeCheckFlags(nt)&128&&oI(ot,rw)),Fe=ot}return b=Je,Po||(A=mt,I=pt,R=_a),Fe}function yn(nt,Bt){return Yo(nt)?t.updateBlock(nt,Un(nt.statements,Y,$i,Bt)):t.converters.convertToFunctionBlock(N.checkDefined(rt(nt,Y,U6)))}function tn(nt){const Bt=nt&&ZL(nt);if(Bt&&ep(Bt)){const Dn=l.getTypeReferenceSerializationKind(Bt);if(Dn===1||Dn===0)return Bt}}function en(){(v&1)===0&&(v|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function gi(nt,Bt,Dn){if(v&1&&Nr(Bt)){const si=l.getNodeCheckFlags(Bt)&384;if(si!==f){const yi=f;f=si,W(nt,Bt,Dn),f=yi;return}}else if(v&&M[fs(Bt)]){const si=f;f=0,W(nt,Bt,Dn),f=si;return}W(nt,Bt,Dn)}function bo(nt,Bt){return Bt=U(nt,Bt),nt===1&&f?Ui(Bt):Bt}function Ui(nt){switch(nt.kind){case 211:return Co(nt);case 212:return tr(nt);case 213:return Ci(nt)}return nt}function Co(nt){return nt.expression.kind===108?ut(t.createPropertyAccessExpression(t.createUniqueName("_super",48),nt.name),nt):nt}function tr(nt){return nt.expression.kind===108?Kt(nt.argumentExpression,nt):nt}function Ci(nt){const Bt=nt.expression;if(Bd(Bt)){const Dn=Br(Bt)?Co(Bt):tr(Bt);return t.createCallExpression(t.createPropertyAccessExpression(Dn,"call"),void 0,[t.createThis(),...nt.arguments])}return nt}function Nr(nt){const Bt=nt.kind;return Bt===263||Bt===176||Bt===174||Bt===177||Bt===178}function Kt(nt,Bt){return f&256?ut(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[nt]),"value"),Bt):ut(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[nt]),Bt)}}function SW(e,t,r,i){const o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((l,u)=>{const p=Ki(u),v=[];v.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,hr(e.createPropertyAccessExpression(hr(e.createSuper(),8),p),8)))),o&&v.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(hr(e.createPropertyAccessExpression(hr(e.createSuper(),8),p),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(p,e.createObjectLiteralExpression(v)))}),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 aHe=S({"src/compiler/transformers/es2017.ts"(){ia()}});function lce(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),p=ps(u),v=e.onEmitNode;e.onEmitNode=_a;const f=e.onSubstituteNode;e.onSubstituteNode=Ba;let b=!1,A,I,R,M=0,C=0,W,U,X,ee;const V=[];return wm(e,ye);function se(le,Fe){return C!==(C&~le|Fe)}function G(le,Fe){const dt=C;return C=(C&~le|Fe)&3,dt}function re(le){C=le}function _e(le){U=Rn(U,t.createVariableDeclaration(le))}function ye(le){if(le.isDeclarationFile)return le;W=le;const Fe=At(le);return Hg(Fe,e.readEmitHelpers()),W=void 0,U=void 0,Fe}function Q(le){return de(le,!1)}function Y(le){return de(le,!0)}function oe(le){if(le.kind!==134)return le}function he(le,Fe,dt,j){if(se(dt,j)){const ot=G(dt,j),Dt=le(Fe);return re(ot),Dt}return le(Fe)}function Ie(le){return xn(le,Q,e)}function de(le,Fe){if((le.transformFlags&128)===0)return le;switch(le.kind){case 223:return ie(le);case 229:return ge(le);case 253:return Ce(le);case 256:return qe(le);case 210:return Le(le);case 226:return He(le,Fe);case 361:return it(le,Fe);case 299:return Ft(le);case 243:return yt(le);case 260:return Ze(le);case 246:case 247:case 249:return he(Ie,le,0,2);case 250:return Nn(le,void 0);case 248:return he(on,le,0,2);case 222:return Yt(le);case 176:return he(Co,le,2,1);case 174:return he(Nr,le,2,1);case 177:return he(tr,le,2,1);case 178:return he(Ci,le,2,1);case 262:return he(Kt,le,2,1);case 218:return he(Bt,le,2,1);case 219:return he(nt,le,2,0);case 169:return bo(le);case 244:return Ne(le);case 217:return Oe(le,Fe);case 215:return be(le);case 211:return X&&Br(le)&&le.expression.kind===108&&X.add(le.name.escapedText),xn(le,Q,e);case 212:return X&&le.expression.kind===108&&(ee=!0),xn(le,Q,e);case 263:case 231:return he(Ie,le,2,1);default:return xn(le,Q,e)}}function ie(le){return I&2&&I&1?kr(ut(t.createYieldExpression(void 0,r().createAwaitHelper(rt(le.expression,Q,bt))),le),le):xn(le,Q,e)}function ge(le){if(I&2&&I&1){if(le.asteriskToken){const Fe=rt(N.checkDefined(le.expression),Q,bt);return kr(ut(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(le,le.asteriskToken,ut(r().createAsyncDelegatorHelper(ut(r().createAsyncValuesHelper(Fe),Fe)),Fe)))),le),le)}return kr(ut(t.createYieldExpression(void 0,tn(le.expression?rt(le.expression,Q,bt):t.createVoidZero())),le),le)}return xn(le,Q,e)}function Ce(le){return I&2&&I&1?t.updateReturnStatement(le,tn(le.expression?rt(le.expression,Q,bt):t.createVoidZero())):xn(le,Q,e)}function qe(le){if(I&2){const Fe=Jj(le);return Fe.kind===250&&Fe.awaitModifier?Nn(Fe,le):t.restoreEnclosingLabel(rt(Fe,Q,$i,t.liftToBlock),le)}return xn(le,Q,e)}function Se(le){let Fe;const dt=[];for(const j of le)if(j.kind===305){Fe&&(dt.push(t.createObjectLiteralExpression(Fe)),Fe=void 0);const ot=j.expression;dt.push(rt(ot,Q,bt))}else Fe=Rn(Fe,j.kind===303?t.createPropertyAssignment(j.name,rt(j.initializer,Q,bt)):rt(j,Q,Fg));return Fe&&dt.push(t.createObjectLiteralExpression(Fe)),dt}function Le(le){if(le.transformFlags&65536){const Fe=Se(le.properties);Fe.length&&Fe[0].kind!==210&&Fe.unshift(t.createObjectLiteralExpression());let dt=Fe[0];if(Fe.length>1){for(let j=1;j<Fe.length;j++)dt=r().createAssignHelper([dt,Fe[j]]);return dt}else return r().createAssignHelper(Fe)}return xn(le,Q,e)}function Ne(le){return xn(le,Y,e)}function Oe(le,Fe){return xn(le,Fe?Y:Q,e)}function At(le){const Fe=G(2,Wj(le,u)?0:1);b=!1;const dt=xn(le,Q,e),j=Ro(dt.statements,U&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(U))]),ot=t.updateSourceFile(dt,ut(t.createNodeArray(j),le.statements));return re(Fe),ot}function be(le){return TJ(e,le,Q,W,_e,0)}function He(le,Fe){return jv(le)&&Tw(le.left)?tT(le,Q,e,1,!Fe):le.operatorToken.kind===28?t.updateBinaryExpression(le,rt(le.left,Y,bt),le.operatorToken,rt(le.right,Fe?Y:Q,bt)):xn(le,Q,e)}function it(le,Fe){if(Fe)return xn(le,Y,e);let dt;for(let ot=0;ot<le.elements.length;ot++){const Dt=le.elements[ot],Ye=rt(Dt,ot<le.elements.length-1?Y:Q,bt);(dt||Ye!==Dt)&&(dt||(dt=le.elements.slice(0,ot)),dt.push(Ye))}const j=dt?ut(t.createNodeArray(dt),le.elements):le.elements;return t.updateCommaListExpression(le,j)}function Ft(le){if(le.variableDeclaration&&na(le.variableDeclaration.name)&&le.variableDeclaration.name.transformFlags&65536){const Fe=t.getGeneratedNameForNode(le.variableDeclaration.name),dt=t.updateVariableDeclaration(le.variableDeclaration,le.variableDeclaration.name,void 0,void 0,Fe),j=gE(dt,Q,e,1);let ot=rt(le.block,Q,Yo);return St(j)&&(ot=t.updateBlock(ot,[t.createVariableStatement(void 0,j),...ot.statements])),t.updateCatchClause(le,t.updateVariableDeclaration(le.variableDeclaration,Fe,void 0,void 0,void 0),ot)}return xn(le,Q,e)}function yt(le){if(Qr(le,32)){const Fe=b;b=!0;const dt=xn(le,Q,e);return b=Fe,dt}return xn(le,Q,e)}function Ze(le){if(b){const Fe=b;b=!1;const dt=It(le,!0);return b=Fe,dt}return It(le,!1)}function It(le,Fe){return na(le.name)&&le.name.transformFlags&65536?gE(le,Q,e,1,void 0,Fe):xn(le,Q,e)}function on(le){return t.updateForStatement(le,rt(le.initializer,Y,Af),rt(le.condition,Q,bt),rt(le.incrementor,Y,bt),Rd(le.statement,Q,e))}function Yt(le){return xn(le,Y,e)}function Nn(le,Fe){const dt=G(0,2);(le.initializer.transformFlags&65536||NN(le.initializer)&&Tw(le.initializer))&&(le=Xn(le));const j=le.awaitModifier?en(le,Fe,dt):t.restoreEnclosingLabel(xn(le,Q,e),Fe);return re(dt),j}function Xn(le){const Fe=Ss(le.initializer);if(Xc(Fe)||NN(Fe)){let dt,j;const ot=t.createTempVariable(void 0),Dt=[nq(t,Fe,ot)];return Yo(le.statement)?(Hr(Dt,le.statement.statements),dt=le.statement,j=le.statement.statements):le.statement&&(Rn(Dt,le.statement),dt=le.statement,j=le.statement),t.updateForOfStatement(le,le.awaitModifier,ut(t.createVariableDeclarationList([ut(t.createVariableDeclaration(ot),le.initializer)],1),le.initializer),le.expression,ut(t.createBlock(ut(t.createNodeArray(Dt),j),!0),dt))}return le}function yn(le,Fe,dt){const j=t.createTempVariable(s),ot=t.createAssignment(j,Fe),Dt=t.createExpressionStatement(ot);Ma(Dt,le.expression);const Ye=t.createAssignment(dt,t.createFalse()),_t=t.createExpressionStatement(Ye);Ma(_t,le.expression);const Gt=[Dt,_t],gn=nq(t,le.initializer,j);Gt.push(rt(gn,Q,$i));let hn,pn;const q=Rd(le.statement,Q,e);return Yo(q)?(Hr(Gt,q.statements),hn=q,pn=q.statements):Gt.push(q),ut(t.createBlock(ut(t.createNodeArray(Gt),pn),!0),hn)}function tn(le){return I&1?t.createYieldExpression(void 0,r().createAwaitHelper(le)):t.createAwaitExpression(le)}function en(le,Fe,dt){const j=rt(le.expression,Q,bt),ot=Ue(j)?t.getGeneratedNameForNode(j):t.createTempVariable(void 0),Dt=Ue(j)?t.getGeneratedNameForNode(ot):t.createTempVariable(void 0),Ye=t.createTempVariable(void 0),_t=t.createTempVariable(s),Gt=t.createUniqueName("e"),gn=t.getGeneratedNameForNode(Gt),hn=t.createTempVariable(void 0),pn=ut(r().createAsyncValuesHelper(j),le.expression),q=t.createCallExpression(t.createPropertyAccessExpression(ot,"next"),void 0,[]),We=t.createPropertyAccessExpression(Dt,"done"),Lt=t.createPropertyAccessExpression(Dt,"value"),L=t.createFunctionCallCall(hn,ot,[]);s(Gt),s(hn);const me=dt&2?t.inlineExpressions([t.createAssignment(Gt,t.createVoidZero()),pn]):pn,J=hr(ut(t.createForStatement(hr(ut(t.createVariableDeclarationList([t.createVariableDeclaration(Ye,void 0,void 0,t.createTrue()),ut(t.createVariableDeclaration(ot,void 0,void 0,me),le.expression),t.createVariableDeclaration(Dt)]),le.expression),4194304),t.inlineExpressions([t.createAssignment(Dt,tn(q)),t.createAssignment(_t,We),t.createLogicalNot(_t)]),t.createAssignment(Ye,t.createTrue()),yn(le,Lt,Ye)),le),512);return kr(J,le),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(J,Fe)]),t.createCatchClause(t.createVariableDeclaration(gn),hr(t.createBlock([t.createExpressionStatement(t.createAssignment(Gt,t.createObjectLiteralExpression([t.createPropertyAssignment("error",gn)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([hr(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(Ye),t.createLogicalNot(_t)),t.createAssignment(hn,t.createPropertyAccessExpression(ot,"return"))),t.createExpressionStatement(tn(L))),1)]),void 0,hr(t.createBlock([hr(t.createIfStatement(Gt,t.createThrowStatement(t.createPropertyAccessExpression(Gt,"error"))),1)]),1))]))}function gi(le){return N.assertNode(le,No),bo(le)}function bo(le){return R!=null&&R.has(le)?t.updateParameterDeclaration(le,void 0,le.dotDotDotToken,na(le.name)?t.getGeneratedNameForNode(le):le.name,void 0,void 0,void 0):le.transformFlags&65536?t.updateParameterDeclaration(le,void 0,le.dotDotDotToken,t.getGeneratedNameForNode(le),void 0,void 0,rt(le.initializer,Q,bt)):xn(le,Q,e)}function Ui(le){let Fe;for(const dt of le.parameters)Fe?Fe.add(dt):dt.transformFlags&65536&&(Fe=new Set);return Fe}function Co(le){const Fe=I,dt=R;I=Jc(le),R=Ui(le);const j=t.updateConstructorDeclaration(le,le.modifiers,Ml(le.parameters,gi,e),yi(le));return I=Fe,R=dt,j}function tr(le){const Fe=I,dt=R;I=Jc(le),R=Ui(le);const j=t.updateGetAccessorDeclaration(le,le.modifiers,rt(le.name,Q,pc),Ml(le.parameters,gi,e),void 0,yi(le));return I=Fe,R=dt,j}function Ci(le){const Fe=I,dt=R;I=Jc(le),R=Ui(le);const j=t.updateSetAccessorDeclaration(le,le.modifiers,rt(le.name,Q,pc),Ml(le.parameters,gi,e),yi(le));return I=Fe,R=dt,j}function Nr(le){const Fe=I,dt=R;I=Jc(le),R=Ui(le);const j=t.updateMethodDeclaration(le,I&1?Un(le.modifiers,oe,dl):le.modifiers,I&2?void 0:le.asteriskToken,rt(le.name,Q,pc),rt(void 0,Q,Xy),void 0,I&2&&I&1?Dn(le):Ml(le.parameters,gi,e),void 0,I&2&&I&1?si(le):yi(le));return I=Fe,R=dt,j}function Kt(le){const Fe=I,dt=R;I=Jc(le),R=Ui(le);const j=t.updateFunctionDeclaration(le,I&1?Un(le.modifiers,oe,Ra):le.modifiers,I&2?void 0:le.asteriskToken,le.name,void 0,I&2&&I&1?Dn(le):Ml(le.parameters,gi,e),void 0,I&2&&I&1?si(le):yi(le));return I=Fe,R=dt,j}function nt(le){const Fe=I,dt=R;I=Jc(le),R=Ui(le);const j=t.updateArrowFunction(le,le.modifiers,void 0,Ml(le.parameters,gi,e),void 0,le.equalsGreaterThanToken,yi(le));return I=Fe,R=dt,j}function Bt(le){const Fe=I,dt=R;I=Jc(le),R=Ui(le);const j=t.updateFunctionExpression(le,I&1?Un(le.modifiers,oe,Ra):le.modifiers,I&2?void 0:le.asteriskToken,le.name,void 0,I&2&&I&1?Dn(le):Ml(le.parameters,gi,e),void 0,I&2&&I&1?si(le):yi(le));return I=Fe,R=dt,j}function Dn(le){if($w(le.parameters))return Ml(le.parameters,Q,e);const Fe=[];for(const j of le.parameters){if(j.initializer||j.dotDotDotToken)break;const ot=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(j.name,8));Fe.push(ot)}const dt=t.createNodeArray(Fe);return ut(dt,le.parameters),dt}function si(le){const Fe=$w(le.parameters)?void 0:Ml(le.parameters,Q,e);i();const dt=X,j=ee;X=new Set,ee=!1;const ot=[];let Dt=t.updateBlock(le.body,Un(le.body.statements,Q,$i));Dt=t.updateBlock(Dt,t.mergeLexicalEnvironment(Dt.statements,oo(o(),le)));const Ye=t.createReturnStatement(r().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(42),le.name&&t.getGeneratedNameForNode(le.name),void 0,Fe!=null?Fe:[],void 0,Dt),!!(C&1))),_t=p>=2&&l.getNodeCheckFlags(le)&384;if(_t){Po();const gn=SW(t,l,le,X);V[fs(gn)]=!0,tg(ot,[gn])}ot.push(Ye);const Gt=t.updateBlock(le.body,ot);return _t&&ee&&(l.getNodeCheckFlags(le)&256?oI(Gt,iw):l.getNodeCheckFlags(le)&128&&oI(Gt,rw)),X=dt,ee=j,Gt}function yi(le){var Dt;i();let Fe=0;const dt=[],j=(Dt=rt(le.body,Q,U6))!=null?Dt:t.createBlock([]);Yo(j)&&(Fe=t.copyPrologue(j.statements,dt,!1,Q)),Hr(dt,oo(void 0,le));const ot=o();if(Fe>0||St(dt)||St(ot)){const Ye=t.converters.convertToFunctionBlock(j,!0);return tg(dt,ot),Hr(dt,Ye.statements.slice(Fe)),t.updateBlock(Ye,ut(t.createNodeArray(dt),Ye.statements))}return j}function oo(le,Fe){let dt=!1;for(const j of Fe.parameters)if(dt){if(na(j.name)){if(j.name.elements.length>0){const ot=gE(j,Q,e,0,t.getGeneratedNameForNode(j));if(St(ot)){const Dt=t.createVariableDeclarationList(ot),Ye=t.createVariableStatement(void 0,Dt);hr(Ye,2097152),le=Rn(le,Ye)}}else if(j.initializer){const ot=t.getGeneratedNameForNode(j),Dt=rt(j.initializer,Q,bt),Ye=t.createAssignment(ot,Dt),_t=t.createExpressionStatement(Ye);hr(_t,2097152),le=Rn(le,_t)}}else if(j.initializer){const ot=t.cloneNode(j.name);ut(ot,j.name),hr(ot,96);const Dt=rt(j.initializer,Q,bt);k_(Dt,3168);const Ye=t.createAssignment(ot,Dt);ut(Ye,j),hr(Ye,3072);const _t=t.createBlock([t.createExpressionStatement(Ye)]);ut(_t,j),hr(_t,3905);const Gt=t.createTypeCheck(t.cloneNode(j.name),"undefined"),gn=t.createIfStatement(Gt,_t);Qu(gn),ut(gn,j),hr(gn,2101056),le=Rn(le,gn)}}else if(j.transformFlags&65536){dt=!0;const ot=gE(j,Q,e,1,t.getGeneratedNameForNode(j),!1,!0);if(St(ot)){const Dt=t.createVariableDeclarationList(ot),Ye=t.createVariableStatement(void 0,Dt);hr(Ye,2097152),le=Rn(le,Ye)}}return le}function Po(){(A&1)===0&&(A|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function _a(le,Fe,dt){if(A&1&&pt(Fe)){const j=l.getNodeCheckFlags(Fe)&384;if(j!==M){const ot=M;M=j,v(le,Fe,dt),M=ot;return}}else if(A&&V[fs(Fe)]){const j=M;M=0,v(le,Fe,dt),M=j;return}v(le,Fe,dt)}function Ba(le,Fe){return Fe=f(le,Fe),le===1&&M?Tn(Fe):Fe}function Tn(le){switch(le.kind){case 211:return On(le);case 212:return Je(le);case 213:return mt(le)}return le}function On(le){return le.expression.kind===108?ut(t.createPropertyAccessExpression(t.createUniqueName("_super",48),le.name),le):le}function Je(le){return le.expression.kind===108?Pt(le.argumentExpression,le):le}function mt(le){const Fe=le.expression;if(Bd(Fe)){const dt=Br(Fe)?On(Fe):Je(Fe);return t.createCallExpression(t.createPropertyAccessExpression(dt,"call"),void 0,[t.createThis(),...le.arguments])}return le}function pt(le){const Fe=le.kind;return Fe===263||Fe===176||Fe===174||Fe===177||Fe===178}function Pt(le,Fe){return M&256?ut(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),"value"),Fe):ut(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[le]),Fe)}}var sHe=S({"src/compiler/transformers/es2018.ts"(){ia()}});function cce(e){const t=e.factory;return wm(e,r);function r(s){return s.isDeclarationFile?s:xn(s,i,e)}function i(s){if((s.transformFlags&64)===0)return s;switch(s.kind){case 299:return o(s);default:return xn(s,i,e)}}function o(s){return s.variableDeclaration?xn(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),rt(s.block,i,Yo))}}var lHe=S({"src/compiler/transformers/es2019.ts"(){ia()}});function uce(e){const{factory:t,hoistVariableDeclaration:r}=e;return wm(e,i);function i(R){return R.isDeclarationFile?R:xn(R,o,e)}function o(R){if((R.transformFlags&32)===0)return R;switch(R.kind){case 213:{const M=p(R,!1);return N.assertNotNode(M,bI),M}case 211:case 212:if(Xu(R)){const M=f(R,!1,!1);return N.assertNotNode(M,bI),M}return xn(R,o,e);case 226:return R.operatorToken.kind===61?A(R):xn(R,o,e);case 220:return I(R);default:return xn(R,o,e)}}function s(R){N.assertNotNode(R,z6);const M=[R];for(;!R.questionDotToken&&!oE(R);)R=sa(Rm(R.expression),Xu),N.assertNotNode(R,z6),M.unshift(R);return{expression:R.expression,chain:M}}function l(R,M,C){const W=v(R.expression,M,C);return bI(W)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(R,W.expression),W.thisArg):t.updateParenthesizedExpression(R,W)}function u(R,M,C){if(Xu(R))return f(R,M,C);let W=rt(R.expression,o,bt);N.assertNotNode(W,bI);let U;return M&&(hE(W)?U=W:(U=t.createTempVariable(r),W=t.createAssignment(U,W))),W=R.kind===211?t.updatePropertyAccessExpression(R,W,rt(R.name,o,Ue)):t.updateElementAccessExpression(R,W,rt(R.argumentExpression,o,bt)),U?t.createSyntheticReferenceExpression(W,U):W}function p(R,M){if(Xu(R))return f(R,M,!1);if(Vd(R.expression)&&Xu(Ss(R.expression))){const C=l(R.expression,!0,!1),W=Un(R.arguments,o,bt);return bI(C)?ut(t.createFunctionCallCall(C.expression,C.thisArg,W),R):t.updateCallExpression(R,C,void 0,W)}return xn(R,o,e)}function v(R,M,C){switch(R.kind){case 217:return l(R,M,C);case 211:case 212:return u(R,M,C);case 213:return p(R,M);default:return rt(R,o,bt)}}function f(R,M,C){const{expression:W,chain:U}=s(R),X=v(Rm(W),hS(U[0]),!1);let ee=bI(X)?X.thisArg:void 0,V=bI(X)?X.expression:X,se=t.restoreOuterExpressions(W,V,8);hE(V)||(V=t.createTempVariable(r),se=t.createAssignment(V,se));let G=V,re;for(let ye=0;ye<U.length;ye++){const Q=U[ye];switch(Q.kind){case 211:case 212:ye===U.length-1&&M&&(hE(G)?re=G:(re=t.createTempVariable(r),G=t.createAssignment(re,G))),G=Q.kind===211?t.createPropertyAccessExpression(G,rt(Q.name,o,Ue)):t.createElementAccessExpression(G,rt(Q.argumentExpression,o,bt));break;case 213:ye===0&&ee?(ul(ee)||(ee=t.cloneNode(ee),k_(ee,3072)),G=t.createFunctionCallCall(G,ee.kind===108?t.createThis():ee,Un(Q.arguments,o,bt))):G=t.createCallExpression(G,void 0,Un(Q.arguments,o,bt));break}kr(G,Q)}const _e=C?t.createConditionalExpression(b(se,V,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(G)):t.createConditionalExpression(b(se,V,!0),void 0,t.createVoidZero(),void 0,G);return ut(_e,R),re?t.createSyntheticReferenceExpression(_e,re):_e}function b(R,M,C){return t.createBinaryExpression(t.createBinaryExpression(R,t.createToken(C?37:38),t.createNull()),t.createToken(C?57:56),t.createBinaryExpression(M,t.createToken(C?37:38),t.createVoidZero()))}function A(R){let M=rt(R.left,o,bt),C=M;return hE(M)||(C=t.createTempVariable(r),M=t.createAssignment(C,M)),ut(t.createConditionalExpression(b(M,C),void 0,C,void 0,rt(R.right,o,bt)),R)}function I(R){return Xu(Ss(R.expression))?kr(v(R.expression,!1,!0),R):t.updateDeleteExpression(R,rt(R.expression,o,bt))}}var cHe=S({"src/compiler/transformers/es2020.ts"(){ia()}});function dce(e){const{hoistVariableDeclaration:t,factory:r}=e;return wm(e,i);function i(l){return l.isDeclarationFile?l:xn(l,o,e)}function o(l){return(l.transformFlags&16)===0?l:NU(l)?s(l):xn(l,o,e)}function s(l){const u=l.operatorToken,p=ZC(u.kind);let v=Ss(rt(l.left,o,tp)),f=v;const b=Ss(rt(l.right,o,bt));if(js(v)){const A=hE(v.expression),I=A?v.expression:r.createTempVariable(t),R=A?v.expression:r.createAssignment(I,v.expression);if(Br(v))f=r.createPropertyAccessExpression(I,v.name),v=r.createPropertyAccessExpression(R,v.name);else{const M=hE(v.argumentExpression),C=M?v.argumentExpression:r.createTempVariable(t);f=r.createElementAccessExpression(I,C),v=r.createElementAccessExpression(R,M?v.argumentExpression:r.createAssignment(C,v.argumentExpression))}}return r.createBinaryExpression(v,p,r.createParenthesizedExpression(r.createAssignment(f,b)))}}var uHe=S({"src/compiler/transformers/es2021.ts"(){ia()}});function pce(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,startLexicalEnvironment:o,endLexicalEnvironment:s}=e;let l,u,p,v;return wm(e,f);function f(he){if(he.isDeclarationFile)return he;const Ie=rt(he,b,io);return Hg(Ie,e.readEmitHelpers()),u=void 0,l=void 0,p=void 0,Ie}function b(he){if((he.transformFlags&4)===0)return he;switch(he.kind){case 312:return A(he);case 241:return I(he);case 248:return R(he);case 250:return M(he);case 255:return W(he);default:return xn(he,b,e)}}function A(he){const Ie=IJ(he.statements);if(Ie){o(),l=new CI,u=[];const de=c2e(he.statements),ie=[];Hr(ie,Kw(he.statements,b,$i,0,de));let ge=de;for(;ge<he.statements.length;){const Se=he.statements[ge];if(_ce(Se)!==0){ge>de&&Hr(ie,Un(he.statements,b,$i,de,ge-de));break}ge++}N.assert(ge<he.statements.length,"Should have encountered at least one 'using' statement.");const Ce=Y(),qe=U(he.statements,ge,he.statements.length,Ce,ie);return l.size&&Rn(ie,t.createExportDeclaration(void 0,!1,t.createNamedExports(Go(l.values())))),Hr(ie,s()),u.length&&ie.push(t.createVariableStatement(t.createModifiersFromModifierFlags(32),t.createVariableDeclarationList(u,1))),Hr(ie,oe(qe,Ce,Ie===2)),v&&ie.push(t.createExportAssignment(void 0,!0,v)),t.updateSourceFile(he,ie)}return xn(he,b,e)}function I(he){const Ie=IJ(he.statements);if(Ie){const de=c2e(he.statements),ie=Y();return t.updateBlock(he,[...Kw(he.statements,b,$i,0,de),...oe(U(he.statements,de,he.statements.length,ie,void 0),ie,Ie===2)])}return xn(he,b,e)}function R(he){return he.initializer&&fce(he.initializer)?rt(t.createBlock([t.createVariableStatement(void 0,he.initializer),t.updateForStatement(he,void 0,he.condition,he.incrementor,he.statement)]),b,$i):xn(he,b,e)}function M(he){if(fce(he.initializer)){const Ie=he.initializer;N.assertNode(Ie,fce),N.assert(Ie.declarations.length===1,"ForInitializer may only have one declaration");const de=Ie.declarations[0];N.assert(!de.initializer,"ForInitializer may not have an initializer");const ie=mce(Ie)===2,ge=t.getGeneratedNameForNode(de.name),Ce=t.updateVariableDeclaration(de,de.name,void 0,void 0,ge),qe=t.createVariableDeclarationList([Ce],ie?6:4),Se=t.createVariableStatement(void 0,qe);return rt(t.updateForOfStatement(he,he.awaitModifier,t.createVariableDeclarationList([t.createVariableDeclaration(ge)],2),he.expression,Yo(he.statement)?t.updateBlock(he.statement,[Se,...he.statement.statements]):t.createBlock([Se,he.statement],!0)),b,$i)}return xn(he,b,e)}function C(he,Ie){return IJ(he.statements)!==0?tR(he)?t.updateCaseClause(he,rt(he.expression,b,bt),U(he.statements,0,he.statements.length,Ie,void 0)):t.updateDefaultClause(he,U(he.statements,0,he.statements.length,Ie,void 0)):xn(he,b,e)}function W(he){const Ie=pHe(he.caseBlock.clauses);if(Ie){const de=Y();return oe([t.updateSwitchStatement(he,rt(he.expression,b,bt),t.updateCaseBlock(he.caseBlock,he.caseBlock.clauses.map(ie=>C(ie,de))))],de,Ie===2)}return xn(he,b,e)}function U(he,Ie,de,ie,ge){var Le;const Ce=[];for(let Ne=Ie;Ne<de;Ne++){const Oe=he[Ne],At=_ce(Oe);if(At){N.assertNode(Oe,Fl);const He=[];for(let it of Oe.declarationList.declarations){if(!Ue(it.name)){He.length=0;break}yp(it)&&(it=Ip(e,it));const Ft=(Le=rt(it.initializer,b,bt))!=null?Le:t.createVoidZero();He.push(t.updateVariableDeclaration(it,it.name,void 0,void 0,r().createAddDisposableResourceHelper(ie,Ft,At===2)))}if(He.length){const it=t.createVariableDeclarationList(He,2);kr(it,Oe.declarationList),ut(it,Oe.declarationList),qe(t.updateVariableStatement(Oe,void 0,it));continue}}const be=b(Oe);Do(be)?be.forEach(qe):be&&qe(be)}return Ce;function qe(Ne){N.assertNode(Ne,$i),Rn(Ce,Se(Ne))}function Se(Ne){if(!ge)return Ne;switch(Ne.kind){case 272:case 271:case 278:case 262:return X(Ne,ge);case 277:return ee(Ne);case 263:return G(Ne);case 243:return re(Ne)}return Ne}}function X(he,Ie){Ie.push(he)}function ee(he){return he.isExportEquals?se(he):V(he)}function V(he){if(p)return he;p=t.createUniqueName("_default",56),Q(p,!0,"default",he);let Ie=he.expression,de=ic(Ie);yp(de)&&(de=Ip(e,de,!1,"default"),Ie=t.restoreOuterExpressions(Ie,de));const ie=t.createAssignment(p,Ie);return t.createExpressionStatement(ie)}function se(he){if(v)return he;v=t.createUniqueName("_default",56),i(v);const Ie=t.createAssignment(v,he.expression);return t.createExpressionStatement(Ie)}function G(he){if(!he.name&&p)return he;const Ie=Qr(he,32),de=Qr(he,2048);let ie=t.converters.convertToClassExpression(he);return he.name&&(Q(t.getLocalName(he),Ie&&!de,void 0,he),ie=t.createAssignment(t.getDeclarationName(he),ie),yp(ie)&&(ie=Ip(e,ie,!1)),kr(ie,he),Ma(ie,he),fc(ie,he)),de&&!p&&(p=t.createUniqueName("_default",56),Q(p,!0,"default",he),ie=t.createAssignment(p,ie),yp(ie)&&(ie=Ip(e,ie,!1,"default")),kr(ie,he)),t.createExpressionStatement(ie)}function re(he){let Ie;const de=Qr(he,32);for(const ie of he.declarationList.declarations)ye(ie,de,ie),ie.initializer&&(Ie=Rn(Ie,_e(ie)));if(Ie){const ie=t.createExpressionStatement(t.inlineExpressions(Ie));return kr(ie,he),fc(ie,he),Ma(ie,he),ie}}function _e(he){N.assertIsDefined(he.initializer);let Ie;Ue(he.name)?(Ie=t.cloneNode(he.name),hr(Ie,Ka(Ie)&-114689)):Ie=t.converters.convertToAssignmentPattern(he.name);const de=t.createAssignment(Ie,he.initializer);return kr(de,he),fc(de,he),Ma(de,he),de}function ye(he,Ie,de){if(na(he.name))for(const ie of he.name.elements)Kc(ie)||ye(ie,Ie,de);else Q(he.name,Ie,void 0,de)}function Q(he,Ie,de,ie){const ge=ul(he)?he:t.cloneNode(he);if(Ie){if(de===void 0&&!Jg(ge)){const Le=t.createVariableDeclaration(ge);ie&&kr(Le,ie),u.push(Le);return}const Ce=de!==void 0?ge:void 0,qe=de!==void 0?de:ge,Se=t.createExportSpecifier(!1,Ce,qe);ie&&kr(Se,ie),l.set(ge,Se)}i(ge)}function Y(){return t.createUniqueName("env")}function oe(he,Ie,de){const ie=[],ge=t.createObjectLiteralExpression([t.createPropertyAssignment("stack",t.createArrayLiteralExpression()),t.createPropertyAssignment("error",t.createVoidZero()),t.createPropertyAssignment("hasError",t.createFalse())]),Ce=t.createVariableDeclaration(Ie,void 0,void 0,ge),qe=t.createVariableDeclarationList([Ce],2),Se=t.createVariableStatement(void 0,qe);ie.push(Se);const Le=t.createBlock(he,!0),Ne=t.createUniqueName("e"),Oe=t.createCatchClause(Ne,t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(Ie,"error"),Ne)),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(Ie,"hasError"),t.createTrue()))],!0));let At;if(de){const He=t.createUniqueName("result");At=t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(He,void 0,void 0,r().createDisposeResourcesHelper(Ie))],2)),t.createIfStatement(He,t.createExpressionStatement(t.createAwaitExpression(He)))],!0)}else At=t.createBlock([t.createExpressionStatement(r().createDisposeResourcesHelper(Ie))],!0);const be=t.createTryStatement(Le,Oe,At);return ie.push(be),ie}}function c2e(e){for(let t=0;t<e.length;t++)if(!Nm(e[t])&&!XL(e[t]))return t;return 0}function fce(e){return Xc(e)&&mce(e)!==0}function mce(e){return(e.flags&7)===6?2:(e.flags&7)===4?1:0}function dHe(e){return mce(e.declarationList)}function _ce(e){return Fl(e)?dHe(e):0}function IJ(e){let t=0;for(const r of e){const i=_ce(r);if(i===2)return 2;i>t&&(t=i)}return t}function pHe(e){let t=0;for(const r of e){const i=IJ(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var fHe=S({"src/compiler/transformers/esnext.ts"(){ia()}});function hce(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let o,s;return wm(e,b);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;const be=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=be,s.filenameDeclaration.name}function u(be){return i.jsx===5?"jsxDEV":be?"jsxs":"jsx"}function p(be){const He=u(be);return f(He)}function v(){return f("Fragment")}function f(be){var He,it;const Ft=be==="createElement"?s.importSpecifier:s7(s.importSpecifier,i),yt=(it=(He=s.utilizedImplicitRuntimeImports)==null?void 0:He.get(Ft))==null?void 0:it.get(be);if(yt)return yt.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let Ze=s.utilizedImplicitRuntimeImports.get(Ft);Ze||(Ze=new Map,s.utilizedImplicitRuntimeImports.set(Ft,Ze));const It=t.createUniqueName(`_${be}`,112),on=t.createImportSpecifier(!1,t.createIdentifier(be),It);return Vae(It,on),Ze.set(be,on),It}function b(be){if(be.isDeclarationFile)return be;o=be,s={},s.importSpecifier=a7(i,be);let He=xn(be,A,e);Hg(He,e.readEmitHelpers());let it=He.statements;if(s.filenameDeclaration&&(it=SS(it.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(const[Ft,yt]of Go(s.utilizedImplicitRuntimeImports.entries()))if(mc(be)){const Ze=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Go(yt.values()))),t.createStringLiteral(Ft),void 0);Hy(Ze,!1),it=SS(it.slice(),Ze)}else if(Bp(be)){const Ze=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Go(yt.values(),It=>t.createBindingElement(void 0,It.propertyName,It.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Ft)]))],2));Hy(Ze,!1),it=SS(it.slice(),Ze)}}return it!==He.statements&&(He=t.updateSourceFile(He,it)),s=void 0,He}function A(be){return be.transformFlags&2?I(be):be}function I(be){switch(be.kind){case 284:return U(be,!1);case 285:return X(be,!1);case 288:return ee(be,!1);case 294:return At(be);default:return xn(be,A,e)}}function R(be){switch(be.kind){case 12:return ge(be);case 294:return At(be);case 284:return U(be,!0);case 285:return X(be,!0);case 288:return ee(be,!0);default:return N.failBadSyntaxKind(be)}}function M(be){return be.properties.some(He=>Tc(He)&&(Ue(He.name)&&Rr(He.name)==="__proto__"||La(He.name)&&He.name.text==="__proto__"))}function C(be){let He=!1;for(const it of be.attributes.properties)if(SI(it)&&(!za(it.expression)||it.expression.properties.some(Xv)))He=!0;else if(He&&F_(it)&&Ue(it.name)&&it.name.escapedText==="key")return!0;return!1}function W(be){return s.importSpecifier===void 0||C(be)}function U(be,He){return(W(be.openingElement)?_e:G)(be.openingElement,be.children,He,be)}function X(be,He){return(W(be)?_e:G)(be,void 0,He,be)}function ee(be,He){return(s.importSpecifier===void 0?Q:ye)(be.openingFragment,be.children,He,be)}function V(be){const He=se(be);return He&&t.createObjectLiteralExpression([He])}function se(be){const He=P2(be);if(Pe(He)===1&&!He[0].dotDotDotToken){const Ft=R(He[0]);return Ft&&t.createPropertyAssignment("children",Ft)}const it=Vi(be,R);return Pe(it)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(it)):void 0}function G(be,He,it,Ft){const yt=Ne(be),Ze=He&&He.length?se(He):void 0,It=un(be.attributes.properties,Nn=>!!Nn.name&&Ue(Nn.name)&&Nn.name.escapedText==="key"),on=It?Vn(be.attributes.properties,Nn=>Nn!==It):be.attributes.properties,Yt=Pe(on)?oe(on,Ze):t.createObjectLiteralExpression(Ze?[Ze]:et);return re(yt,Yt,It,He||et,it,Ft)}function re(be,He,it,Ft,yt,Ze){var It;const on=P2(Ft),Yt=Pe(on)>1||!!((It=on[0])!=null&&It.dotDotDotToken),Nn=[be,He];if(it&&Nn.push(ie(it.initializer)),i.jsx===5){const yn=Ol(o);if(yn&&io(yn)){it===void 0&&Nn.push(t.createVoidZero()),Nn.push(Yt?t.createTrue():t.createFalse());const tn=Rs(yn,Ze.pos);Nn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(tn.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(tn.character+1))])),Nn.push(t.createThis())}}const Xn=ut(t.createCallExpression(p(Yt),void 0,Nn),Ze);return yt&&Qu(Xn),Xn}function _e(be,He,it,Ft){const yt=Ne(be),Ze=be.attributes.properties,It=Pe(Ze)?oe(Ze):t.createNull(),on=s.importSpecifier===void 0?tq(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,be):f("createElement"),Yt=vse(t,on,yt,It,Vi(He,R),Ft);return it&&Qu(Yt),Yt}function ye(be,He,it,Ft){let yt;if(He&&He.length){const Ze=V(He);Ze&&(yt=Ze)}return re(v(),yt||t.createObjectLiteralExpression([]),void 0,He,it,Ft)}function Q(be,He,it,Ft){const yt=yse(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,Vi(He,R),be,Ft);return it&&Qu(yt),yt}function Y(be){return za(be.expression)&&!M(be.expression)?mo(be.expression.properties,He=>N.checkDefined(rt(He,A,Fg))):t.createSpreadAssignment(N.checkDefined(rt(be.expression,A,bt)))}function oe(be,He){const it=ps(i);return it&&it>=5?t.createObjectLiteralExpression(he(be,He)):Ie(be,He)}function he(be,He){const it=Oa(vG(be,SI,(Ft,yt)=>Oa(Wt(Ft,Ze=>yt?Y(Ze):de(Ze)))));return He&&it.push(He),it}function Ie(be,He){const it=[];let Ft=[];for(const Ze of be){if(SI(Ze)){if(za(Ze.expression)&&!M(Ze.expression)){for(const It of Ze.expression.properties){if(Xv(It)){yt(),it.push(N.checkDefined(rt(It.expression,A,bt)));continue}Ft.push(N.checkDefined(rt(It,A)))}continue}yt(),it.push(N.checkDefined(rt(Ze.expression,A,bt)));continue}Ft.push(de(Ze))}return He&&Ft.push(He),yt(),it.length&&!za(it[0])&&it.unshift(t.createObjectLiteralExpression()),uh(it)||r().createAssignHelper(it);function yt(){Ft.length&&(it.push(t.createObjectLiteralExpression(Ft)),Ft=[])}}function de(be){const He=Oe(be),it=ie(be.initializer);return t.createPropertyAssignment(He,it)}function ie(be){if(be===void 0)return t.createTrue();if(be.kind===11){const He=be.singleQuote!==void 0?be.singleQuote:!I3(be,o),it=t.createStringLiteral(Le(be.text)||be.text,He);return ut(it,be)}return be.kind===294?be.expression===void 0?t.createTrue():N.checkDefined(rt(be.expression,A,bt)):pg(be)?U(be,!1):JS(be)?X(be,!1):lE(be)?ee(be,!1):N.failBadSyntaxKind(be)}function ge(be){const He=Ce(be.text);return He===void 0?void 0:t.createStringLiteral(He)}function Ce(be){let He,it=0,Ft=-1;for(let yt=0;yt<be.length;yt++){const Ze=be.charCodeAt(yt);Ku(Ze)?(it!==-1&&Ft!==-1&&(He=qe(He,be.substr(it,Ft-it+1))),it=-1):A_(Ze)||(Ft=yt,it===-1&&(it=yt))}return it!==-1?qe(He,be.substr(it)):He}function qe(be,He){const it=Se(He);return be===void 0?it:be+" "+it}function Se(be){return be.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(He,it,Ft,yt,Ze,It,on)=>{if(Ze)return e2(parseInt(Ze,10));if(It)return e2(parseInt(It,16));{const Yt=u2e.get(on);return Yt?e2(Yt):He}})}function Le(be){const He=Se(be);return He===be?void 0:He}function Ne(be){if(be.kind===284)return Ne(be.openingElement);{const He=be.tagName;return Ue(He)&&L2(He.escapedText)?t.createStringLiteral(Rr(He)):n_(He)?t.createStringLiteral(Rr(He.namespace)+":"+Rr(He.name)):hw(t,He)}}function Oe(be){const He=be.name;if(Ue(He)){const it=Rr(He);return/^[A-Za-z_]\w*$/.test(it)?He:t.createStringLiteral(it)}return t.createStringLiteral(Rr(He.namespace)+":"+Rr(He.name))}function At(be){const He=rt(be.expression,A,bt);return be.dotDotDotToken?t.createSpreadElement(He):He}}var u2e,mHe=S({"src/compiler/transformers/jsx.ts"(){ia(),u2e=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 gce(e){const{factory:t,hoistVariableDeclaration:r}=e;return wm(e,i);function i(p){return p.isDeclarationFile?p:xn(p,o,e)}function o(p){if((p.transformFlags&512)===0)return p;switch(p.kind){case 226:return s(p);default:return xn(p,o,e)}}function s(p){switch(p.operatorToken.kind){case 68:return l(p);case 43:return u(p);default:return xn(p,o,e)}}function l(p){let v,f;const b=rt(p.left,o,bt),A=rt(p.right,o,bt);if(el(b)){const I=t.createTempVariable(r),R=t.createTempVariable(r);v=ut(t.createElementAccessExpression(ut(t.createAssignment(I,b.expression),b.expression),ut(t.createAssignment(R,b.argumentExpression),b.argumentExpression)),b),f=ut(t.createElementAccessExpression(I,R),b)}else if(Br(b)){const I=t.createTempVariable(r);v=ut(t.createPropertyAccessExpression(ut(t.createAssignment(I,b.expression),b.expression),b.name),b),f=ut(t.createPropertyAccessExpression(I,b.name),b)}else v=b,f=b;return ut(t.createAssignment(v,ut(t.createGlobalMethodCall("Math","pow",[f,A]),p)),p)}function u(p){const v=rt(p.left,o,bt),f=rt(p.right,o,bt);return ut(t.createGlobalMethodCall("Math","pow",[v,f]),p)}}var _He=S({"src/compiler/transformers/es2016.ts"(){ia()}});function d2e(e,t){return{kind:e,expression:t}}function vce(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=e.getEmitResolver(),v=e.onSubstituteNode,f=e.onEmitNode;e.onEmitNode=ff,e.onSubstituteNode=Of;let b,A,I,R;function M(te){R=Rn(R,t.createVariableDeclaration(te))}let C,W;return wm(e,U);function U(te){if(te.isDeclarationFile)return te;b=te,A=te.text;const lt=oe(te);return Hg(lt,e.readEmitHelpers()),b=void 0,A=void 0,R=void 0,I=0,lt}function X(te,lt){const zt=I;return I=(I&~te|lt)&32767,zt}function ee(te,lt,zt){I=(I&~lt|zt)&-32768|te}function V(te){return(I&8192)!==0&&te.kind===253&&!te.expression}function se(te){return te.transformFlags&4194304&&(Mm(te)||US(te)||ose(te)||LC(te)||kC(te)||tR(te)||OC(te)||qS(te)||uE(te)||aE(te)||wy(te,!1)||Yo(te))}function G(te){return(te.transformFlags&1024)!==0||C!==void 0||I&8192&&se(te)||wy(te,!1)&&co(te)||(Dm(te)&1)!==0}function re(te){return G(te)?Y(te,!1):te}function _e(te){return G(te)?Y(te,!0):te}function ye(te){if(G(te)){const lt=Ol(te);if(qo(lt)&&Ec(lt)){const zt=X(32670,16449),qt=Y(te,!1);return ee(zt,229376,0),qt}return Y(te,!1)}return te}function Q(te){return te.kind===108?lc(te,!0):re(te)}function Y(te,lt){switch(te.kind){case 126:return;case 263:return Ne(te);case 231:return Oe(te);case 169:return Ba(te);case 262:return hn(te);case 219:return Gt(te);case 218:return gn(te);case 260:return En(te);case 80:return Se(te);case 261:return ke(te);case 255:return he(te);case 269:return Ie(te);case 241:return We(te,!1);case 252:case 251:return Le(te);case 256:return ai(te);case 246:case 247:return qr(te,void 0);case 248:return Ao(te,void 0);case 249:return vi(te,void 0);case 250:return ya(te,void 0);case 244:return Lt(te);case 210:return ao(te);case 299:return Di(te);case 304:return Gc(te);case 167:return xl(te);case 209:return Ns(te);case 213:return ac(te);case 214:return Yc(te);case 217:return L(te,lt);case 226:return me(te,lt);case 361:return J(te,lt);case 15:case 16:case 17:case 18:return ra(te);case 11:return sc(te);case 9:return Ic(te);case 215:return ml(te);case 228:return Sl(te);case 229:return Zl(te);case 230:return Qo(te);case 108:return lc(te,!1);case 110:return Ce(te);case 236:return $c(te);case 174:return Jo(te);case 177:case 178:return kl(te);case 243:return je(te);case 253:return ge(te);case 222:return qe(te);default:return xn(te,re,e)}}function oe(te){const lt=X(8064,64),zt=[],qt=[];i();const F=t.copyPrologue(te.statements,zt,!1,re);return Hr(qt,Un(te.statements,re,$i,F)),R&&qt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(R))),t.mergeLexicalEnvironment(zt,s()),le(zt,te),ee(lt,0,0),t.updateSourceFile(te,ut(t.createNodeArray(Ro(zt,qt)),te.statements))}function he(te){if(C!==void 0){const lt=C.allowedNonLabeledJumps;C.allowedNonLabeledJumps|=2;const zt=xn(te,re,e);return C.allowedNonLabeledJumps=lt,zt}return xn(te,re,e)}function Ie(te){const lt=X(7104,0),zt=xn(te,re,e);return ee(lt,0,0),zt}function de(te){return kr(t.createReturnStatement(ie()),te)}function ie(){return t.createUniqueName("_this",48)}function ge(te){return C?(C.nonLocalJumps|=8,V(te)&&(te=de(te)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),te.expression?N.checkDefined(rt(te.expression,re,bt)):t.createVoidZero())]))):V(te)?de(te):xn(te,re,e)}function Ce(te){return I|=65536,I&2&&!(I&16384)&&(I|=131072),C?I&2?(C.containsLexicalThis=!0,te):C.thisName||(C.thisName=t.createUniqueName("this")):te}function qe(te){return xn(te,_e,e)}function Se(te){return C&&p.isArgumentsLocalBinding(te)?C.argumentsName||(C.argumentsName=t.createUniqueName("arguments")):te.flags&256?kr(ut(t.createIdentifier(Ki(te.escapedText)),te),te):te}function Le(te){if(C){const lt=te.kind===252?2:4;if(!(te.label&&C.labels&&C.labels.get(Rr(te.label))||!te.label&&C.allowedNonLabeledJumps&lt)){let qt;const F=te.label;F?te.kind===252?(qt=`break-${F.escapedText}`,Z(C,!0,Rr(F),qt)):(qt=`continue-${F.escapedText}`,Z(C,!1,Rr(F),qt)):te.kind===252?(C.nonLocalJumps|=2,qt="break"):(C.nonLocalJumps|=4,qt="continue");let De=t.createStringLiteral(qt);if(C.loopOutParameters.length){const st=C.loopOutParameters;let Vt;for(let lr=0;lr<st.length;lr++){const ri=Dp(st[lr],1);lr===0?Vt=ri:Vt=t.createBinaryExpression(Vt,28,ri)}De=t.createBinaryExpression(Vt,28,De)}return t.createReturnStatement(De)}}return xn(te,re,e)}function Ne(te){const lt=t.createVariableDeclaration(t.getLocalName(te,!0),void 0,void 0,At(te));kr(lt,te);const zt=[],qt=t.createVariableStatement(void 0,t.createVariableDeclarationList([lt]));if(kr(qt,te),ut(qt,te),Qu(qt),zt.push(qt),Qr(te,32)){const F=Qr(te,2048)?t.createExportDefault(t.getLocalName(te)):t.createExternalModuleExport(t.getLocalName(te));kr(F,qt),zt.push(F)}return dh(zt)}function Oe(te){return At(te)}function At(te){te.name&&Ud();const lt=H1(te),zt=t.createFunctionExpression(void 0,void 0,void 0,void 0,lt?[t.createParameterDeclaration(void 0,void 0,Kl())]:[],void 0,be(te,lt));hr(zt,Ka(te)&131072|1048576);const qt=t.createPartiallyEmittedExpression(zt);j2(qt,te.end),hr(qt,3072);const F=t.createPartiallyEmittedExpression(qt);j2(F,Wa(A,te.pos)),hr(F,3072);const De=t.createParenthesizedExpression(t.createCallExpression(F,void 0,lt?[N.checkDefined(rt(lt.expression,re,bt))]:[]));return IC(De,3,"* @class "),De}function be(te,lt){const zt=[],qt=t.getInternalName(te),F=pU(qt)?t.getGeneratedNameForNode(qt):qt;i(),He(zt,te,lt),it(zt,te,F,lt),j(zt,te);const De=wU(Wa(A,te.members.end),20),st=t.createPartiallyEmittedExpression(F);j2(st,De.end),hr(st,3072);const Vt=t.createReturnStatement(st);fC(Vt,De.pos),hr(Vt,3840),zt.push(Vt),tg(zt,s());const lr=t.createBlock(ut(t.createNodeArray(zt),te.members),!0);return hr(lr,3072),lr}function He(te,lt,zt){zt&&te.push(ut(t.createExpressionStatement(r().createExtendsHelper(t.getInternalName(lt))),zt))}function it(te,lt,zt,qt){const F=C;C=void 0;const De=X(32662,73),st=sg(lt),Vt=Hd(st,qt!==void 0),lr=t.createFunctionDeclaration(void 0,void 0,zt,void 0,Ft(st,Vt),void 0,on(st,lt,qt,Vt));ut(lr,st||lt),qt&&hr(lr,16),te.push(lr),ee(De,229376,0),C=F}function Ft(te,lt){return Ml(te&&!lt?te.parameters:void 0,re,e)||[]}function yt(te,lt){const zt=[];o(),t.mergeLexicalEnvironment(zt,s()),lt&&zt.push(t.createReturnStatement(_a()));const qt=t.createNodeArray(zt);ut(qt,te.members);const F=t.createBlock(qt,!0);return ut(F,te),hr(F,3072),F}function Ze(te){return Fl(te)&&Bn(te.declarationList.declarations,lt=>Ue(lt.name)&&!lt.initializer)}function It(te){if(IS(te))return!0;if(!(te.transformFlags&134217728))return!1;switch(te.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const lt=te;return ss(lt.name)?!!Uo(lt.name,It):!1}}return!!Uo(te,It)}function on(te,lt,zt,qt){const F=!!zt&&ic(zt.expression).kind!==106;if(!te)return yt(lt,F);const De=[],st=[];o();const Vt=t.copyStandardPrologue(te.body.statements,De,0);(qt||It(te.body))&&(I|=8192),Hr(st,Un(te.body.statements,re,$i,Vt));const lr=F||I&8192;On(De,te),Pt(De,te,qt),dt(De,te),lr?Fe(De,te,Po()):le(De,te),t.mergeLexicalEnvironment(De,s()),lr&&!oo(te.body)&&st.push(t.createReturnStatement(ie()));const ri=t.createBlock(ut(t.createNodeArray([...De,...st]),te.body.statements),!0);return ut(ri,te.body),yi(ri,te.body,qt)}function Yt(te){return ul(te)&&Rr(te)==="_this"}function Nn(te){return ul(te)&&Rr(te)==="_super"}function Xn(te){return Fl(te)&&te.declarationList.declarations.length===1&&yn(te.declarationList.declarations[0])}function yn(te){return Wi(te)&&Yt(te.name)&&!!te.initializer}function tn(te){return Wc(te,!0)&&Yt(te.left)}function en(te){return ca(te)&&Br(te.expression)&&Nn(te.expression.expression)&&Ue(te.expression.name)&&(Rr(te.expression.name)==="call"||Rr(te.expression.name)==="apply")&&te.arguments.length>=1&&te.arguments[0].kind===110}function gi(te){return vr(te)&&te.operatorToken.kind===57&&te.right.kind===110&&en(te.left)}function bo(te){return vr(te)&&te.operatorToken.kind===56&&vr(te.left)&&te.left.operatorToken.kind===38&&Nn(te.left.left)&&te.left.right.kind===106&&en(te.right)&&Rr(te.right.expression.name)==="apply"}function Ui(te){return vr(te)&&te.operatorToken.kind===57&&te.right.kind===110&&bo(te.left)}function Co(te){return tn(te)&&gi(te.right)}function tr(te){return tn(te)&&Ui(te.right)}function Ci(te){return en(te)||gi(te)||Co(te)||bo(te)||Ui(te)||tr(te)}function Nr(te){for(let lt=0;lt<te.statements.length-1;lt++){const zt=te.statements[lt];if(!Xn(zt))continue;const qt=zt.declarationList.declarations[0];if(qt.initializer.kind!==110)continue;const F=lt;let De=lt+1;for(;De<te.statements.length;){const Va=te.statements[De];if(ou(Va)&&Ci(ic(Va.expression)))break;if(Ze(Va)){De++;continue}return te}const st=te.statements[De];let Vt=st.expression;tn(Vt)&&(Vt=Vt.right);const lr=t.updateVariableDeclaration(qt,qt.name,void 0,void 0,Vt),ri=t.updateVariableDeclarationList(zt.declarationList,[lr]),Yr=t.createVariableStatement(zt.modifiers,ri);kr(Yr,st),ut(Yr,st);const uo=t.createNodeArray([...te.statements.slice(0,F),...te.statements.slice(F+1,De),Yr,...te.statements.slice(De+1)]);return ut(uo,te.statements),t.updateBlock(te,uo)}return te}function Kt(te,lt){for(const qt of lt.statements)if(qt.transformFlags&134217728&&!hW(qt))return te;const zt=!(lt.transformFlags&16384)&&!(I&65536)&&!(I&131072);for(let qt=te.statements.length-1;qt>0;qt--){const F=te.statements[qt];if(Mm(F)&&F.expression&&Yt(F.expression)){const De=te.statements[qt-1];let st;if(ou(De)&&Co(ic(De.expression)))st=De.expression;else if(zt&&Xn(De)){const ri=De.declarationList.declarations[0];Ci(ic(ri.initializer))&&(st=t.createAssignment(ie(),ri.initializer))}if(!st)break;const Vt=t.createReturnStatement(st);kr(Vt,De),ut(Vt,De);const lr=t.createNodeArray([...te.statements.slice(0,qt-1),Vt,...te.statements.slice(qt+1)]);return ut(lr,te.statements),t.updateBlock(te,lr)}}return te}function nt(te){if(Xn(te)){if(te.declarationList.declarations[0].initializer.kind===110)return}else if(tn(te))return t.createPartiallyEmittedExpression(te.right,te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{const lt=te;return ss(lt.name)?t.replacePropertyName(lt,xn(lt.name,nt,void 0)):te}}return xn(te,nt,void 0)}function Bt(te,lt){if(lt.transformFlags&16384||I&65536||I&131072)return te;for(const zt of lt.statements)if(zt.transformFlags&134217728&&!hW(zt))return te;return t.updateBlock(te,Un(te.statements,nt,$i))}function Dn(te){if(en(te)&&te.arguments.length===2&&Ue(te.arguments[1])&&Rr(te.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Kl(),t.createNull()),te);switch(te.kind){case 219:case 218:case 262:case 176:case 175:return te;case 177:case 178:case 174:case 172:{const lt=te;return ss(lt.name)?t.replacePropertyName(lt,xn(lt.name,Dn,void 0)):te}}return xn(te,Dn,void 0)}function si(te){return t.updateBlock(te,Un(te.statements,Dn,$i))}function yi(te,lt,zt){const qt=te;return te=Nr(te),te=Kt(te,lt),te!==qt&&(te=Bt(te,lt)),zt&&(te=si(te)),te}function oo(te){if(te.kind===253)return!0;if(te.kind===245){const lt=te;if(lt.elseStatement)return oo(lt.thenStatement)&&oo(lt.elseStatement)}else if(te.kind===241){const lt=il(te.statements);if(lt&&oo(lt))return!0}return!1}function Po(){return hr(t.createThis(),8)}function _a(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Kl(),t.createNull()),t.createFunctionApplyCall(Kl(),Po(),t.createIdentifier("arguments"))),Po())}function Ba(te){if(!te.dotDotDotToken)return na(te.name)?kr(ut(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(te),void 0,void 0,void 0),te),te):te.initializer?kr(ut(t.createParameterDeclaration(void 0,void 0,te.name,void 0,void 0,void 0),te),te):te}function Tn(te){return te.initializer!==void 0||na(te.name)}function On(te,lt){if(!St(lt.parameters,Tn))return!1;let zt=!1;for(const qt of lt.parameters){const{name:F,initializer:De,dotDotDotToken:st}=qt;st||(na(F)?zt=Je(te,qt,F,De)||zt:De&&(mt(te,qt,F,De),zt=!0))}return zt}function Je(te,lt,zt,qt){return zt.elements.length>0?(SS(te,hr(t.createVariableStatement(void 0,t.createVariableDeclarationList(gE(lt,re,e,0,t.getGeneratedNameForNode(lt)))),2097152)),!0):qt?(SS(te,hr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(lt),N.checkDefined(rt(qt,re,bt)))),2097152)),!0):!1}function mt(te,lt,zt,qt){qt=N.checkDefined(rt(qt,re,bt));const F=t.createIfStatement(t.createTypeCheck(t.cloneNode(zt),"undefined"),hr(ut(t.createBlock([t.createExpressionStatement(hr(ut(t.createAssignment(hr(Qa(ut(t.cloneNode(zt),zt),zt.parent),96),hr(qt,96|Ka(qt)|3072)),lt),3072))]),lt),3905));Qu(F),ut(F,lt),hr(F,2101056),SS(te,F)}function pt(te,lt){return!!(te&&te.dotDotDotToken&&!lt)}function Pt(te,lt,zt){const qt=[],F=il(lt.parameters);if(!pt(F,zt))return!1;const De=F.name.kind===80?Qa(ut(t.cloneNode(F.name),F.name),F.name.parent):t.createTempVariable(void 0);hr(De,96);const st=F.name.kind===80?t.cloneNode(F.name):De,Vt=lt.parameters.length-1,lr=t.createLoopVariable();qt.push(hr(ut(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(De,void 0,void 0,t.createArrayLiteralExpression([]))])),F),2097152));const ri=t.createForStatement(ut(t.createVariableDeclarationList([t.createVariableDeclaration(lr,void 0,void 0,t.createNumericLiteral(Vt))]),F),ut(t.createLessThan(lr,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),F),ut(t.createPostfixIncrement(lr),F),t.createBlock([Qu(ut(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(st,Vt===0?lr:t.createSubtract(lr,t.createNumericLiteral(Vt))),t.createElementAccessExpression(t.createIdentifier("arguments"),lr))),F))]));return hr(ri,2097152),Qu(ri),qt.push(ri),F.name.kind!==80&&qt.push(hr(ut(t.createVariableStatement(void 0,t.createVariableDeclarationList(gE(F,re,e,0,st))),F),2097152)),Nj(te,qt),!0}function le(te,lt){return I&131072&&lt.kind!==219?(Fe(te,lt,t.createThis()),!0):!1}function Fe(te,lt,zt){Pd();const qt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ie(),void 0,void 0,zt)]));hr(qt,2100224),Ma(qt,lt),SS(te,qt)}function dt(te,lt){if(I&32768){let zt;switch(lt.kind){case 219:return te;case 174:case 177:case 178:zt=t.createVoidZero();break;case 176:zt=t.createPropertyAccessExpression(hr(t.createThis(),8),"constructor");break;case 262:case 218:zt=t.createConditionalExpression(t.createLogicalAnd(hr(t.createThis(),8),t.createBinaryExpression(hr(t.createThis(),8),104,t.getLocalName(lt))),void 0,t.createPropertyAccessExpression(hr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return N.failBadSyntaxKind(lt)}const qt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,zt)]));hr(qt,2100224),SS(te,qt)}return te}function j(te,lt){for(const zt of lt.members)switch(zt.kind){case 240:te.push(ot(zt));break;case 174:te.push(Dt(hg(lt,zt),zt,lt));break;case 177:case 178:const qt=wS(lt.members,zt);zt===qt.firstAccessor&&te.push(Ye(hg(lt,zt),qt,lt));break;case 176:case 175:break;default:N.failBadSyntaxKind(zt,b&&b.fileName);break}}function ot(te){return ut(t.createEmptyStatement(),te)}function Dt(te,lt,zt){const qt=w_(lt),F=qv(lt),De=pn(lt,lt,void 0,zt),st=rt(lt.name,re,pc);N.assert(st);let Vt;if(!Qi(st)&&TC(e.getCompilerOptions())){const ri=ss(st)?st.expression:Ue(st)?t.createStringLiteral(Ki(st.escapedText)):st;Vt=t.createObjectDefinePropertyCall(te,ri,t.createPropertyDescriptor({value:De,enumerable:!1,writable:!0,configurable:!0}))}else{const ri=$S(t,te,st,lt.name);Vt=t.createAssignment(ri,De)}hr(De,3072),Ma(De,F);const lr=ut(t.createExpressionStatement(Vt),lt);return kr(lr,lt),fc(lr,qt),hr(lr,96),lr}function Ye(te,lt,zt){const qt=t.createExpressionStatement(_t(te,lt,zt,!1));return hr(qt,3072),Ma(qt,qv(lt.firstAccessor)),qt}function _t(te,{firstAccessor:lt,getAccessor:zt,setAccessor:qt},F,De){const st=Qa(ut(t.cloneNode(te),te),te.parent);hr(st,3136),Ma(st,lt.name);const Vt=rt(lt.name,re,pc);if(N.assert(Vt),Qi(Vt))return N.failBadSyntaxKind(Vt,"Encountered unhandled private identifier while transforming ES2015.");const lr=rq(t,Vt);hr(lr,3104),Ma(lr,lt.name);const ri=[];if(zt){const uo=pn(zt,void 0,void 0,F);Ma(uo,qv(zt)),hr(uo,1024);const Va=t.createPropertyAssignment("get",uo);fc(Va,w_(zt)),ri.push(Va)}if(qt){const uo=pn(qt,void 0,void 0,F);Ma(uo,qv(qt)),hr(uo,1024);const Va=t.createPropertyAssignment("set",uo);fc(Va,w_(qt)),ri.push(Va)}ri.push(t.createPropertyAssignment("enumerable",zt||qt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const Yr=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[st,lr,t.createObjectLiteralExpression(ri,!0)]);return De&&Qu(Yr),Yr}function Gt(te){te.transformFlags&16384&&!(I&16384)&&(I|=131072);const lt=C;C=void 0;const zt=X(15232,66),qt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Ml(te.parameters,re,e),void 0,q(te));return ut(qt,te),kr(qt,te),hr(qt,16),ee(zt,0,0),C=lt,qt}function gn(te){const lt=Ka(te)&524288?X(32662,69):X(32670,65),zt=C;C=void 0;const qt=Ml(te.parameters,re,e),F=q(te),De=I&32768?t.getLocalName(te):te.name;return ee(lt,229376,0),C=zt,t.updateFunctionExpression(te,void 0,te.asteriskToken,De,void 0,qt,void 0,F)}function hn(te){const lt=C;C=void 0;const zt=X(32670,65),qt=Ml(te.parameters,re,e),F=q(te),De=I&32768?t.getLocalName(te):te.name;return ee(zt,229376,0),C=lt,t.updateFunctionDeclaration(te,Un(te.modifiers,re,Ra),te.asteriskToken,De,void 0,qt,void 0,F)}function pn(te,lt,zt,qt){const F=C;C=void 0;const De=qt&&di(qt)&&!la(te)?X(32670,73):X(32670,65),st=Ml(te.parameters,re,e),Vt=q(te);return I&32768&&!zt&&(te.kind===262||te.kind===218)&&(zt=t.getGeneratedNameForNode(te)),ee(De,229376,0),C=F,kr(ut(t.createFunctionExpression(void 0,te.asteriskToken,zt,void 0,st,void 0,Vt),lt),te)}function q(te){let lt=!1,zt=!1,qt,F;const De=[],st=[],Vt=te.body;let lr;if(o(),Yo(Vt)&&(lr=t.copyStandardPrologue(Vt.statements,De,0,!1),lr=t.copyCustomPrologue(Vt.statements,st,lr,re,c3),lr=t.copyCustomPrologue(Vt.statements,st,lr,re,u3)),lt=On(st,te)||lt,lt=Pt(st,te,!1)||lt,Yo(Vt))lr=t.copyCustomPrologue(Vt.statements,st,lr,re),qt=Vt.statements,Hr(st,Un(Vt.statements,re,$i,lr)),!lt&&Vt.multiLine&&(lt=!0);else{N.assert(te.kind===219),qt=X3(Vt,-1);const Yr=te.equalsGreaterThanToken;!Zs(Yr)&&!Zs(Vt)&&(Pk(Yr,Vt,b)?zt=!0:lt=!0);const uo=rt(Vt,re,bt),Va=t.createReturnStatement(uo);ut(Va,Vt),Oae(Va,Vt),hr(Va,2880),st.push(Va),F=Vt}if(t.mergeLexicalEnvironment(De,s()),dt(De,te),le(De,te),St(De)&&(lt=!0),st.unshift(...De),Yo(Vt)&&Xm(st,Vt.statements))return Vt;const ri=t.createBlock(ut(t.createNodeArray(st),qt),lt);return ut(ri,te.body),!lt&&zt&&hr(ri,1),F&&wae(ri,20,F),kr(ri,te.body),ri}function We(te,lt){if(lt)return xn(te,re,e);const zt=I&256?X(7104,512):X(6976,128),qt=xn(te,re,e);return ee(zt,0,0),qt}function Lt(te){return xn(te,_e,e)}function L(te,lt){return xn(te,lt?_e:re,e)}function me(te,lt){return jv(te)?tT(te,re,e,0,!lt):te.operatorToken.kind===28?t.updateBinaryExpression(te,N.checkDefined(rt(te.left,_e,bt)),te.operatorToken,N.checkDefined(rt(te.right,lt?_e:re,bt))):xn(te,re,e)}function J(te,lt){if(lt)return xn(te,_e,e);let zt;for(let F=0;F<te.elements.length;F++){const De=te.elements[F],st=rt(De,F<te.elements.length-1?_e:re,bt);(zt||st!==De)&&(zt||(zt=te.elements.slice(0,F)),N.assert(st),zt.push(st))}const qt=zt?ut(t.createNodeArray(zt),te.elements):te.elements;return t.updateCommaListExpression(te,qt)}function fe(te){return te.declarationList.declarations.length===1&&!!te.declarationList.declarations[0].initializer&&!!(Dm(te.declarationList.declarations[0].initializer)&1)}function je(te){const lt=X(0,Qr(te,32)?32:0);let zt;if(C&&(te.declarationList.flags&7)===0&&!fe(te)){let qt;for(const F of te.declarationList.declarations)if(mu(C,F),F.initializer){let De;na(F.name)?De=tT(F,re,e,0):(De=t.createBinaryExpression(F.name,64,N.checkDefined(rt(F.initializer,re,bt))),ut(De,F)),qt=Rn(qt,De)}qt?zt=ut(t.createExpressionStatement(t.inlineExpressions(qt)),te):zt=void 0}else zt=xn(te,re,e);return ee(lt,0,0),zt}function ke(te){if(te.flags&7||te.transformFlags&524288){te.flags&7&&Ud();const lt=Un(te.declarations,te.flags&1?nn:En,Wi),zt=t.createVariableDeclarationList(lt);return kr(zt,te),ut(zt,te),fc(zt,te),te.transformFlags&524288&&(na(te.declarations[0].name)||na(rs(te.declarations).name))&&Ma(zt,Tt(lt)),zt}return xn(te,re,e)}function Tt(te){let lt=-1,zt=-1;for(const qt of te)lt=lt===-1?qt.pos:qt.pos===-1?lt:Math.min(lt,qt.pos),zt=Math.max(zt,qt.end);return xf(lt,zt)}function kt(te){const lt=p.getNodeCheckFlags(te),zt=lt&16384,qt=lt&32768;return!((I&64)!==0||zt&&qt&&(I&512)!==0)&&(I&4096)===0&&(!p.isDeclarationWithCollidingName(te)||qt&&!zt&&(I&6144)===0)}function nn(te){const lt=te.name;return na(lt)?En(te):!te.initializer&&kt(te)?t.updateVariableDeclaration(te,te.name,void 0,void 0,t.createVoidZero()):xn(te,re,e)}function En(te){const lt=X(32,0);let zt;return na(te.name)?zt=gE(te,re,e,0,void 0,(lt&32)!==0):zt=xn(te,re,e),ee(lt,0,0),zt}function or(te){C.labels.set(Rr(te.label),!0)}function pr(te){C.labels.set(Rr(te.label),!1)}function ai(te){C&&!C.labels&&(C.labels=new Map);const lt=Jj(te,C&&or);return wy(lt,!1)?li(lt,te):t.restoreEnclosingLabel(N.checkDefined(rt(lt,re,$i,t.liftToBlock)),te,C&&pr)}function li(te,lt){switch(te.kind){case 246:case 247:return qr(te,lt);case 248:return Ao(te,lt);case 249:return vi(te,lt);case 250:return ya(te,lt)}}function Qn(te,lt,zt,qt,F){const De=X(te,lt),st=Ps(zt,qt,De,F);return ee(De,0,0),st}function qr(te,lt){return Qn(0,1280,te,lt)}function Ao(te,lt){return Qn(5056,3328,te,lt)}function Fi(te){return t.updateForStatement(te,rt(te.initializer,_e,Af),rt(te.condition,re,bt),rt(te.incrementor,_e,bt),N.checkDefined(rt(te.statement,re,$i,t.liftToBlock)))}function vi(te,lt){return Qn(3008,5376,te,lt)}function ya(te,lt){return Qn(3008,5376,te,lt,u.downlevelIteration?Gl:ba)}function Xa(te,lt,zt){const qt=[],F=te.initializer;if(Xc(F)){te.initializer.flags&7&&Ud();const De=eu(F.declarations);if(De&&na(De.name)){const st=gE(De,re,e,0,lt),Vt=ut(t.createVariableDeclarationList(st),te.initializer);kr(Vt,te.initializer),Ma(Vt,xf(st[0].pos,rs(st).end)),qt.push(t.createVariableStatement(void 0,Vt))}else qt.push(ut(t.createVariableStatement(void 0,kr(ut(t.createVariableDeclarationList([t.createVariableDeclaration(De?De.name:t.createTempVariable(void 0),void 0,void 0,lt)]),E0(F,-1)),F)),X3(F,-1)))}else{const De=t.createAssignment(F,lt);jv(De)?qt.push(t.createExpressionStatement(me(De,!0))):(j2(De,F.end),qt.push(ut(t.createExpressionStatement(N.checkDefined(rt(De,re,bt))),X3(F,-1))))}if(zt)return Qt(Hr(qt,zt));{const De=rt(te.statement,re,$i,t.liftToBlock);return N.assert(De),Yo(De)?t.updateBlock(De,ut(t.createNodeArray(Ro(qt,De.statements)),De.statements)):(qt.push(De),Qt(qt))}}function Qt(te){return hr(t.createBlock(t.createNodeArray(te),!0),864)}function ba(te,lt,zt){const qt=rt(te.expression,re,bt);N.assert(qt);const F=t.createLoopVariable(),De=Ue(qt)?t.getGeneratedNameForNode(qt):t.createTempVariable(void 0);hr(qt,96|Ka(qt));const st=ut(t.createForStatement(hr(ut(t.createVariableDeclarationList([ut(t.createVariableDeclaration(F,void 0,void 0,t.createNumericLiteral(0)),E0(te.expression,-1)),ut(t.createVariableDeclaration(De,void 0,void 0,qt),te.expression)]),te.expression),4194304),ut(t.createLessThan(F,t.createPropertyAccessExpression(De,"length")),te.expression),ut(t.createPostfixIncrement(F),te.expression),Xa(te,t.createElementAccessExpression(De,F),zt)),te);return hr(st,512),ut(st,te),t.restoreEnclosingLabel(st,lt,C&&pr)}function Gl(te,lt,zt,qt){const F=rt(te.expression,re,bt);N.assert(F);const De=Ue(F)?t.getGeneratedNameForNode(F):t.createTempVariable(void 0),st=Ue(F)?t.getGeneratedNameForNode(De):t.createTempVariable(void 0),Vt=t.createUniqueName("e"),lr=t.getGeneratedNameForNode(Vt),ri=t.createTempVariable(void 0),Yr=ut(r().createValuesHelper(F),te.expression),uo=t.createCallExpression(t.createPropertyAccessExpression(De,"next"),void 0,[]);l(Vt),l(ri);const Va=qt&1024?t.inlineExpressions([t.createAssignment(Vt,t.createVoidZero()),Yr]):Yr,ja=hr(ut(t.createForStatement(hr(ut(t.createVariableDeclarationList([ut(t.createVariableDeclaration(De,void 0,void 0,Va),te.expression),t.createVariableDeclaration(st,void 0,void 0,uo)]),te.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(st,"done")),t.createAssignment(st,uo),Xa(te,t.createPropertyAccessExpression(st,"value"),zt)),te),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(ja,lt,C&&pr)]),t.createCatchClause(t.createVariableDeclaration(lr),hr(t.createBlock([t.createExpressionStatement(t.createAssignment(Vt,t.createObjectLiteralExpression([t.createPropertyAssignment("error",lr)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([hr(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(st,t.createLogicalNot(t.createPropertyAccessExpression(st,"done"))),t.createAssignment(ri,t.createPropertyAccessExpression(De,"return"))),t.createExpressionStatement(t.createFunctionCallCall(ri,De,[]))),1)]),void 0,hr(t.createBlock([hr(t.createIfStatement(Vt,t.createThrowStatement(t.createPropertyAccessExpression(Vt,"error"))),1)]),1))]))}function ao(te){const lt=te.properties;let zt=-1,qt=!1;for(let Vt=0;Vt<lt.length;Vt++){const lr=lt[Vt];if(lr.transformFlags&1048576&&I&4||(qt=N.checkDefined(lr.name).kind===167)){zt=Vt;break}}if(zt<0)return xn(te,re,e);const F=t.createTempVariable(l),De=[],st=t.createAssignment(F,hr(t.createObjectLiteralExpression(Un(lt,re,Fg,0,zt),te.multiLine),qt?131072:0));return te.multiLine&&Qu(st),De.push(st),fn(De,te,F,zt),De.push(te.multiLine?Qu(Qa(ut(t.cloneNode(F),F),F.parent)):F),t.inlineExpressions(De)}function Ga(te){return(p.getNodeCheckFlags(te)&8192)!==0}function ka(te){return HS(te)&&!!te.initializer&&Ga(te.initializer)}function Ts(te){return HS(te)&&!!te.condition&&Ga(te.condition)}function oc(te){return HS(te)&&!!te.incrementor&&Ga(te.incrementor)}function co(te){return da(te)||ka(te)}function da(te){return(p.getNodeCheckFlags(te)&4096)!==0}function mu(te,lt){te.hoistedLocalVariables||(te.hoistedLocalVariables=[]),zt(lt.name);function zt(qt){if(qt.kind===80)te.hoistedLocalVariables.push(qt);else for(const F of qt.elements)Kc(F)||zt(F.name)}}function Ps(te,lt,zt,qt){if(!co(te)){let Yr;C&&(Yr=C.allowedNonLabeledJumps,C.allowedNonLabeledJumps=6);const uo=qt?qt(te,lt,void 0,zt):t.restoreEnclosingLabel(HS(te)?Fi(te):xn(te,re,e),lt,C&&pr);return C&&(C.allowedNonLabeledJumps=Yr),uo}const F=Wo(te),De=[],st=C;C=F;const Vt=ka(te)?su(te,F):void 0,lr=da(te)?_u(te,F,st):void 0;C=st,Vt&&De.push(Vt.functionDeclaration),lr&&De.push(lr.functionDeclaration),an(De,F,st),Vt&&De.push(Pc(Vt.functionName,Vt.containsYield));let ri;if(lr)if(qt)ri=qt(te,lt,lr.part,zt);else{const Yr=wa(te,Vt,t.createBlock(lr.part,!0));ri=t.restoreEnclosingLabel(Yr,lt,C&&pr)}else{const Yr=wa(te,Vt,N.checkDefined(rt(te.statement,re,$i,t.liftToBlock)));ri=t.restoreEnclosingLabel(Yr,lt,C&&pr)}return De.push(ri),De}function wa(te,lt,zt){switch(te.kind){case 248:return yl(te,lt,zt);case 249:return _c(te,zt);case 250:return wf(te,zt);case 246:return Ll(te,zt);case 247:return fl(te,zt);default:return N.failBadSyntaxKind(te,"IterationStatement expected")}}function yl(te,lt,zt){const qt=te.condition&&Ga(te.condition),F=qt||te.incrementor&&Ga(te.incrementor);return t.updateForStatement(te,rt(lt?lt.part:te.initializer,_e,Af),rt(qt?void 0:te.condition,re,bt),rt(F?void 0:te.incrementor,_e,bt),zt)}function wf(te,lt){return t.updateForOfStatement(te,void 0,N.checkDefined(rt(te.initializer,re,Af)),N.checkDefined(rt(te.expression,re,bt)),lt)}function _c(te,lt){return t.updateForInStatement(te,N.checkDefined(rt(te.initializer,re,Af)),N.checkDefined(rt(te.expression,re,bt)),lt)}function Ll(te,lt){return t.updateDoStatement(te,lt,N.checkDefined(rt(te.expression,re,bt)))}function fl(te,lt){return t.updateWhileStatement(te,N.checkDefined(rt(te.expression,re,bt)),lt)}function Wo(te){let lt;switch(te.kind){case 248:case 249:case 250:const De=te.initializer;De&&De.kind===261&&(lt=De);break}const zt=[],qt=[];if(lt&&Ov(lt)&7){const De=ka(te)||Ts(te)||oc(te);for(const st of lt.declarations)gt(te,st,zt,qt,De)}const F={loopParameters:zt,loopOutParameters:qt};return C&&(C.argumentsName&&(F.argumentsName=C.argumentsName),C.thisName&&(F.thisName=C.thisName),C.hoistedLocalVariables&&(F.hoistedLocalVariables=C.hoistedLocalVariables)),F}function an(te,lt,zt){let qt;if(lt.argumentsName&&(zt?zt.argumentsName=lt.argumentsName:(qt||(qt=[])).push(t.createVariableDeclaration(lt.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),lt.thisName&&(zt?zt.thisName=lt.thisName:(qt||(qt=[])).push(t.createVariableDeclaration(lt.thisName,void 0,void 0,t.createIdentifier("this")))),lt.hoistedLocalVariables)if(zt)zt.hoistedLocalVariables=lt.hoistedLocalVariables;else{qt||(qt=[]);for(const F of lt.hoistedLocalVariables)qt.push(t.createVariableDeclaration(F))}if(lt.loopOutParameters.length){qt||(qt=[]);for(const F of lt.loopOutParameters)qt.push(t.createVariableDeclaration(F.outParamName))}lt.conditionVariable&&(qt||(qt=[]),qt.push(t.createVariableDeclaration(lt.conditionVariable,void 0,void 0,t.createFalse()))),qt&&te.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(qt)))}function Xs(te){return t.createVariableDeclaration(te.originalName,void 0,void 0,te.outParamName)}function su(te,lt){const zt=t.createUniqueName("_loop_init"),qt=(te.initializer.transformFlags&1048576)!==0;let F=0;lt.containsLexicalThis&&(F|=16),qt&&I&4&&(F|=524288);const De=[];De.push(t.createVariableStatement(void 0,te.initializer)),Gs(lt.loopOutParameters,2,1,De);const st=t.createVariableStatement(void 0,hr(t.createVariableDeclarationList([t.createVariableDeclaration(zt,void 0,void 0,hr(t.createFunctionExpression(void 0,qt?t.createToken(42):void 0,void 0,void 0,void 0,void 0,N.checkDefined(rt(t.createBlock(De,!0),re,Yo))),F))]),4194304)),Vt=t.createVariableDeclarationList(Wt(lt.loopOutParameters,Xs));return{functionName:zt,containsYield:qt,functionDeclaration:st,part:Vt}}function _u(te,lt,zt){const qt=t.createUniqueName("_loop");i();const F=rt(te.statement,re,$i,t.liftToBlock),De=s(),st=[];(Ts(te)||oc(te))&&(lt.conditionVariable=t.createUniqueName("inc"),te.incrementor?st.push(t.createIfStatement(lt.conditionVariable,t.createExpressionStatement(N.checkDefined(rt(te.incrementor,re,bt))),t.createExpressionStatement(t.createAssignment(lt.conditionVariable,t.createTrue())))):st.push(t.createIfStatement(t.createLogicalNot(lt.conditionVariable),t.createExpressionStatement(t.createAssignment(lt.conditionVariable,t.createTrue())))),Ts(te)&&st.push(t.createIfStatement(t.createPrefixUnaryExpression(54,N.checkDefined(rt(te.condition,re,bt))),N.checkDefined(rt(t.createBreakStatement(),re,$i))))),N.assert(F),Yo(F)?Hr(st,F.statements):st.push(F),Gs(lt.loopOutParameters,1,1,st),tg(st,De);const Vt=t.createBlock(st,!0);Yo(F)&&kr(Vt,F);const lr=(te.statement.transformFlags&1048576)!==0;let ri=1048576;lt.containsLexicalThis&&(ri|=16),lr&&(I&4)!==0&&(ri|=524288);const Yr=t.createVariableStatement(void 0,hr(t.createVariableDeclarationList([t.createVariableDeclaration(qt,void 0,void 0,hr(t.createFunctionExpression(void 0,lr?t.createToken(42):void 0,void 0,void 0,lt.loopParameters,void 0,Vt),ri))]),4194304)),uo=pe(qt,lt,zt,lr);return{functionName:qt,containsYield:lr,functionDeclaration:Yr,part:uo}}function Dp(te,lt){const zt=lt===0?te.outParamName:te.originalName,qt=lt===0?te.originalName:te.outParamName;return t.createBinaryExpression(qt,64,zt)}function Gs(te,lt,zt,qt){for(const F of te)F.flags&lt&&qt.push(t.createExpressionStatement(Dp(F,zt)))}function Pc(te,lt){const zt=t.createCallExpression(te,void 0,[]),qt=lt?t.createYieldExpression(t.createToken(42),hr(zt,8388608)):zt;return t.createExpressionStatement(qt)}function pe(te,lt,zt,qt){const F=[],De=!(lt.nonLocalJumps&-5)&&!lt.labeledNonLocalBreaks&&!lt.labeledNonLocalContinues,st=t.createCallExpression(te,void 0,Wt(lt.loopParameters,lr=>lr.name)),Vt=qt?t.createYieldExpression(t.createToken(42),hr(st,8388608)):st;if(De)F.push(t.createExpressionStatement(Vt)),Gs(lt.loopOutParameters,1,0,F);else{const lr=t.createUniqueName("state"),ri=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(lr,void 0,void 0,Vt)]));if(F.push(ri),Gs(lt.loopOutParameters,1,0,F),lt.nonLocalJumps&8){let Yr;zt?(zt.nonLocalJumps|=8,Yr=t.createReturnStatement(lr)):Yr=t.createReturnStatement(t.createPropertyAccessExpression(lr,"value")),F.push(t.createIfStatement(t.createTypeCheck(lr,"object"),Yr))}if(lt.nonLocalJumps&2&&F.push(t.createIfStatement(t.createStrictEquality(lr,t.createStringLiteral("break")),t.createBreakStatement())),lt.labeledNonLocalBreaks||lt.labeledNonLocalContinues){const Yr=[];we(lt.labeledNonLocalBreaks,!0,lr,zt,Yr),we(lt.labeledNonLocalContinues,!1,lr,zt,Yr),F.push(t.createSwitchStatement(lr,t.createCaseBlock(Yr)))}}return F}function Z(te,lt,zt,qt){lt?(te.labeledNonLocalBreaks||(te.labeledNonLocalBreaks=new Map),te.labeledNonLocalBreaks.set(zt,qt)):(te.labeledNonLocalContinues||(te.labeledNonLocalContinues=new Map),te.labeledNonLocalContinues.set(zt,qt))}function we(te,lt,zt,qt,F){!te||te.forEach((De,st)=>{const Vt=[];if(!qt||qt.labels&&qt.labels.get(st)){const lr=t.createIdentifier(st);Vt.push(lt?t.createBreakStatement(lr):t.createContinueStatement(lr))}else Z(qt,lt,st,De),Vt.push(t.createReturnStatement(zt));F.push(t.createCaseClause(t.createStringLiteral(De),Vt))})}function gt(te,lt,zt,qt,F){const De=lt.name;if(na(De))for(const st of De.elements)Kc(st)||gt(te,st,zt,qt,F);else{zt.push(t.createParameterDeclaration(void 0,void 0,De));const st=p.getNodeCheckFlags(lt);if(st&65536||F){const Vt=t.createUniqueName("out_"+Rr(De));let lr=0;st&65536&&(lr|=1),HS(te)&&(te.initializer&&p.isBindingCapturedByNode(te.initializer,lt)&&(lr|=2),(te.condition&&p.isBindingCapturedByNode(te.condition,lt)||te.incrementor&&p.isBindingCapturedByNode(te.incrementor,lt))&&(lr|=1)),qt.push({flags:lr,originalName:De,outParamName:Vt})}}}function fn(te,lt,zt,qt){const F=lt.properties,De=F.length;for(let st=qt;st<De;st++){const Vt=F[st];switch(Vt.kind){case 177:case 178:const lr=wS(lt.properties,Vt);Vt===lr.firstAccessor&&te.push(_t(zt,lr,lt,!!lt.multiLine));break;case 174:te.push(Jr(Vt,zt,lt,lt.multiLine));break;case 303:te.push(Er(Vt,zt,lt.multiLine));break;case 304:te.push(Ar(Vt,zt,lt.multiLine));break;default:N.failBadSyntaxKind(lt);break}}}function Er(te,lt,zt){const qt=t.createAssignment($S(t,lt,N.checkDefined(rt(te.name,re,pc))),N.checkDefined(rt(te.initializer,re,bt)));return ut(qt,te),zt&&Qu(qt),qt}function Ar(te,lt,zt){const qt=t.createAssignment($S(t,lt,N.checkDefined(rt(te.name,re,pc))),t.cloneNode(te.name));return ut(qt,te),zt&&Qu(qt),qt}function Jr(te,lt,zt,qt){const F=t.createAssignment($S(t,lt,N.checkDefined(rt(te.name,re,pc))),pn(te,te,void 0,zt));return ut(F,te),qt&&Qu(F),F}function Di(te){const lt=X(7104,0);let zt;if(N.assert(!!te.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),na(te.variableDeclaration.name)){const qt=t.createTempVariable(void 0),F=t.createVariableDeclaration(qt);ut(F,te.variableDeclaration);const De=gE(te.variableDeclaration,re,e,0,qt),st=t.createVariableDeclarationList(De);ut(st,te.variableDeclaration);const Vt=t.createVariableStatement(void 0,st);zt=t.updateCatchClause(te,F,br(te.block,Vt))}else zt=xn(te,re,e);return ee(lt,0,0),zt}function br(te,lt){const zt=Un(te.statements,re,$i);return t.updateBlock(te,[lt,...zt])}function Jo(te){N.assert(!ss(te.name));const lt=pn(te,E0(te,-1),void 0,void 0);return hr(lt,1024|Ka(lt)),ut(t.createPropertyAssignment(te.name,lt),te)}function kl(te){N.assert(!ss(te.name));const lt=C;C=void 0;const zt=X(32670,65);let qt;const F=Ml(te.parameters,re,e),De=q(te);return te.kind===177?qt=t.updateGetAccessorDeclaration(te,te.modifiers,te.name,F,te.type,De):qt=t.updateSetAccessorDeclaration(te,te.modifiers,te.name,F,De),ee(zt,229376,0),C=lt,qt}function Gc(te){return ut(t.createPropertyAssignment(te.name,Se(t.cloneNode(te.name))),te)}function xl(te){return xn(te,re,e)}function Zl(te){return xn(te,re,e)}function Ns(te){return St(te.elements,t_)?Cd(te.elements,!1,!!te.multiLine,!!te.elements.hasTrailingComma):xn(te,re,e)}function ac(te){if(Dm(te)&1)return ap(te);const lt=ic(te.expression);return lt.kind===108||Bd(lt)||St(te.arguments,t_)?sp(te,!0):t.updateCallExpression(te,N.checkDefined(rt(te.expression,Q,bt)),void 0,Un(te.arguments,re,bt))}function ap(te){const lt=sa(sa(ic(te.expression),Ks).body,Yo),zt=qd=>Fl(qd)&&!!$a(qd.declarationList.declarations).initializer,qt=C;C=void 0;const F=Un(lt.statements,ye,$i);C=qt;const De=Vn(F,zt),st=Vn(F,qd=>!zt(qd)),lr=sa($a(De),Fl).declarationList.declarations[0],ri=ic(lr.initializer);let Yr=ni(ri,Wc);!Yr&&vr(ri)&&ri.operatorToken.kind===28&&(Yr=ni(ri.left,Wc));const uo=sa(Yr?ic(Yr.right):ri,ca),Va=sa(ic(uo.expression),Us),ja=Va.body.statements;let Vl=0,hu=-1;const Mc=[];if(Yr){const qd=ni(ja[Vl],ou);qd&&(Mc.push(qd),Vl++),Mc.push(ja[Vl]),Vl++,Mc.push(t.createExpressionStatement(t.createAssignment(Yr.left,sa(lr.name,Ue))))}for(;!Mm(Lv(ja,hu));)hu--;Hr(Mc,ja,Vl,hu),hu<-1&&Hr(Mc,ja,hu+1);const Cp=ni(Lv(ja,hu),Mm);for(const qd of st)Mm(qd)&&(Cp==null?void 0:Cp.expression)&&!Ue(Cp.expression)?Mc.push(Cp):Mc.push(qd);return Hr(Mc,De,1),t.restoreOuterExpressions(te.expression,t.restoreOuterExpressions(lr.initializer,t.restoreOuterExpressions(Yr&&Yr.right,t.updateCallExpression(uo,t.restoreOuterExpressions(uo.expression,t.updateFunctionExpression(Va,void 0,void 0,void 0,void 0,Va.parameters,void 0,t.updateBlock(Va.body,Mc))),void 0,uo.arguments))))}function sp(te,lt){if(te.transformFlags&32768||te.expression.kind===108||Bd(ic(te.expression))){const{target:zt,thisArg:qt}=t.createCallBinding(te.expression,l);te.expression.kind===108&&hr(qt,8);let F;if(te.transformFlags&32768?F=t.createFunctionApplyCall(N.checkDefined(rt(zt,Q,bt)),te.expression.kind===108?qt:N.checkDefined(rt(qt,re,bt)),Cd(te.arguments,!0,!1,!1)):F=ut(t.createFunctionCallCall(N.checkDefined(rt(zt,Q,bt)),te.expression.kind===108?qt:N.checkDefined(rt(qt,re,bt)),Un(te.arguments,re,bt)),te),te.expression.kind===108){const De=t.createLogicalOr(F,Po());F=lt?t.createAssignment(ie(),De):De}return kr(F,te)}return IS(te)&&(I|=131072),xn(te,re,e)}function Yc(te){if(St(te.arguments,t_)){const{target:lt,thisArg:zt}=t.createCallBinding(t.createPropertyAccessExpression(te.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(N.checkDefined(rt(lt,re,bt)),zt,Cd(t.createNodeArray([t.createVoidZero(),...te.arguments]),!0,!1,!1)),void 0,[])}return xn(te,re,e)}function Cd(te,lt,zt,qt){const F=te.length,De=Oa(vG(te,Me,(ri,Yr,uo,Va)=>Yr(ri,zt,qt&&Va===F)));if(De.length===1){const ri=De[0];if(lt&&!u.downlevelIteration||eH(ri.expression)||xC(ri.expression,"___spreadArray"))return ri.expression}const st=r(),Vt=De[0].kind!==0;let lr=Vt?t.createArrayLiteralExpression():De[0].expression;for(let ri=Vt?0:1;ri<De.length;ri++){const Yr=De[ri];lr=st.createSpreadArrayHelper(lr,Yr.expression,Yr.kind===1&&!lt)}return lr}function Me(te){return t_(te)?Ot:Io}function Ot(te){return Wt(te,Yn)}function Yn(te){N.assertNode(te,t_);let lt=rt(te.expression,re,bt);N.assert(lt);const zt=xC(lt,"___read");let qt=zt||eH(lt)?2:1;return u.downlevelIteration&&qt===1&&!hd(lt)&&!zt&&(lt=r().createReadHelper(lt,void 0),qt=2),d2e(qt,lt)}function Io(te,lt,zt){const qt=t.createArrayLiteralExpression(Un(t.createNodeArray(te,zt),re,bt),lt);return d2e(0,qt)}function Qo(te){return rt(te.expression,re,bt)}function ra(te){return ut(t.createStringLiteral(te.text),te)}function sc(te){return te.hasExtendedUnicodeEscape?ut(t.createStringLiteral(te.text),te):te}function Ic(te){return te.numericLiteralFlags&384?ut(t.createNumericLiteral(te.text),te):te}function ml(te){return TJ(e,te,re,b,M,1)}function Sl(te){let lt=t.createStringLiteral(te.head.text);for(const zt of te.templateSpans){const qt=[N.checkDefined(rt(zt.expression,re,bt))];zt.literal.text.length>0&&qt.push(t.createStringLiteral(zt.literal.text)),lt=t.createCallExpression(t.createPropertyAccessExpression(lt,"concat"),void 0,qt)}return ut(lt,te)}function Kl(){return t.createUniqueName("_super",48)}function lc(te,lt){const zt=I&8&&!lt?t.createPropertyAccessExpression(kr(Kl(),te),"prototype"):Kl();return kr(zt,te),fc(zt,te),Ma(zt,te),zt}function $c(te){return te.keywordToken===105&&te.name.escapedText==="target"?(I|=32768,t.createUniqueName("_newTarget",48)):te}function ff(te,lt,zt){if(W&1&&ta(lt)){const qt=X(32670,Ka(lt)&16?81:65);f(te,lt,zt),ee(qt,0,0);return}f(te,lt,zt)}function Ud(){(W&2)===0&&(W|=2,e.enableSubstitution(80))}function Pd(){(W&1)===0&&(W|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function Of(te,lt){return lt=v(te,lt),te===1?Qg(lt):Ue(lt)?H_(lt):lt}function H_(te){if(W&2&&!iq(te)){const lt=Lo(te,Ue);if(lt&&Mh(lt))return ut(t.getGeneratedNameForNode(lt),te)}return te}function Mh(te){switch(te.parent.kind){case 208:case 263:case 266:case 260:return te.parent.name===te&&p.isDeclarationWithCollidingName(te.parent)}return!1}function Qg(te){switch(te.kind){case 80:return Vu(te);case 110:return Np(te)}return te}function Vu(te){if(W&2&&!iq(te)){const lt=p.getReferencedDeclarationWithCollidingName(te);if(lt&&!(di(lt)&&Zg(lt,te)))return ut(t.getGeneratedNameForNode(Oo(lt)),te)}return te}function Zg(te,lt){let zt=Lo(lt);if(!zt||zt===te||zt.end<=te.pos||zt.pos>=te.end)return!1;const qt=yh(te);for(;zt;){if(zt===qt||zt===te)return!1;if(nu(zt)&&zt.parent===te)return!0;zt=zt.parent}return!1}function Np(te){return W&1&&I&16?ut(ie(),te):te}function hg(te,lt){return la(lt)?t.getInternalName(te):t.createPropertyAccessExpression(t.getInternalName(te),"prototype")}function Hd(te,lt){if(!te||!lt||St(te.parameters))return!1;const zt=eu(te.body.statements);if(!zt||!Zs(zt)||zt.kind!==244)return!1;const qt=zt.expression;if(!Zs(qt)||qt.kind!==213)return!1;const F=qt.expression;if(!Zs(F)||F.kind!==108)return!1;const De=uh(qt.arguments);if(!De||!Zs(De)||De.kind!==230)return!1;const st=De.expression;return Ue(st)&&st.escapedText==="arguments"}}var hHe=S({"src/compiler/transformers/es2015.ts"(){ia()}});function yce(e){const{factory:t}=e,r=e.getCompilerOptions();let i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=u,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),o=[]);const s=e.onSubstituteNode;return e.onSubstituteNode=p,e.enableSubstitution(211),e.enableSubstitution(303),wm(e,l);function l(A){return A}function u(A,I,R){switch(I.kind){case 286:case 287:case 285:const M=I.tagName;o[zu(M)]=!0;break}i(A,I,R)}function p(A,I){return I.id&&o&&o[I.id]?s(A,I):(I=s(A,I),Br(I)?v(I):Tc(I)?f(I):I)}function v(A){if(Qi(A.name))return A;const I=b(A.name);return I?ut(t.createElementAccessExpression(A.expression,I),A):A}function f(A){const I=Ue(A.name)&&b(A.name);return I?t.updatePropertyAssignment(A,I,A.initializer):A}function b(A){const I=u0(A);if(I!==void 0&&I>=83&&I<=118)return ut(t.createStringLiteralFromNode(A),A)}}var gHe=S({"src/compiler/transformers/es5.ts"(){ia()}});function vHe(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 bce(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=ps(u),v=e.getEmitResolver(),f=e.onSubstituteNode;e.onSubstituteNode=Lt;let b,A,I,R,M,C,W,U,X,ee,V=1,se,G,re,_e,ye=0,Q=0,Y,oe,he,Ie,de,ie,ge,Ce;return wm(e,qe);function qe(Me){if(Me.isDeclarationFile||(Me.transformFlags&2048)===0)return Me;const Ot=xn(Me,Se,e);return Hg(Ot,e.readEmitHelpers()),Ot}function Se(Me){const Ot=Me.transformFlags;return R?Le(Me):I?Ne(Me):Js(Me)&&Me.asteriskToken?At(Me):Ot&2048?xn(Me,Se,e):Me}function Le(Me){switch(Me.kind){case 246:return _a(Me);case 247:return Tn(Me);case 255:return _t(Me);case 256:return gn(Me);default:return Ne(Me)}}function Ne(Me){switch(Me.kind){case 262:return be(Me);case 218:return He(Me);case 177:case 178:return it(Me);case 243:return yt(Me);case 248:return Je(Me);case 249:return pt(Me);case 252:return dt(Me);case 251:return le(Me);case 253:return ot(Me);default:return Me.transformFlags&1048576?Oe(Me):Me.transformFlags&4196352?xn(Me,Se,e):Me}}function Oe(Me){switch(Me.kind){case 226:return Ze(Me);case 361:return Nn(Me);case 227:return yn(Me);case 229:return tn(Me);case 209:return en(Me);case 210:return bo(Me);case 212:return Ui(Me);case 213:return Co(Me);case 214:return tr(Me);default:return xn(Me,Se,e)}}function At(Me){switch(Me.kind){case 262:return be(Me);case 218:return He(Me);default:return N.failBadSyntaxKind(Me)}}function be(Me){if(Me.asteriskToken)Me=kr(ut(t.createFunctionDeclaration(Me.modifiers,void 0,Me.name,void 0,Ml(Me.parameters,Se,e),void 0,Ft(Me.body)),Me),Me);else{const Ot=I,Yn=R;I=!1,R=!1,Me=xn(Me,Se,e),I=Ot,R=Yn}if(I){s(Me);return}else return Me}function He(Me){if(Me.asteriskToken)Me=kr(ut(t.createFunctionExpression(void 0,void 0,Me.name,void 0,Ml(Me.parameters,Se,e),void 0,Ft(Me.body)),Me),Me);else{const Ot=I,Yn=R;I=!1,R=!1,Me=xn(Me,Se,e),I=Ot,R=Yn}return Me}function it(Me){const Ot=I,Yn=R;return I=!1,R=!1,Me=xn(Me,Se,e),I=Ot,R=Yn,Me}function Ft(Me){const Ot=[],Yn=I,Io=R,Qo=M,ra=C,sc=W,Ic=U,ml=X,Sl=ee,Kl=V,lc=se,$c=G,ff=re,Ud=_e;I=!0,R=!1,M=void 0,C=void 0,W=void 0,U=void 0,X=void 0,ee=void 0,V=1,se=void 0,G=void 0,re=void 0,_e=t.createTempVariable(void 0),i();const Pd=t.copyPrologue(Me.statements,Ot,!1,Se);Ci(Me.statements,Pd);const Of=Z();return tg(Ot,o()),Ot.push(t.createReturnStatement(Of)),I=Yn,R=Io,M=Qo,C=ra,W=sc,U=Ic,X=ml,ee=Sl,V=Kl,se=lc,G=$c,re=ff,_e=Ud,ut(t.createBlock(Ot,Me.multiLine),Me)}function yt(Me){if(Me.transformFlags&1048576){si(Me.declarationList);return}else{if(Ka(Me)&2097152)return Me;for(const Yn of Me.declarationList.declarations)l(Yn.name);const Ot=rC(Me.declarationList);return Ot.length===0?void 0:Ma(t.createExpressionStatement(t.inlineExpressions(Wt(Ot,yi))),Me)}}function Ze(Me){const Ot=hU(Me);switch(Ot){case 0:return on(Me);case 1:return It(Me);default:return N.assertNever(Ot)}}function It(Me){const{left:Ot,right:Yn}=Me;if(q(Yn)){let Io;switch(Ot.kind){case 211:Io=t.updatePropertyAccessExpression(Ot,J(N.checkDefined(rt(Ot.expression,Se,tp))),Ot.name);break;case 212:Io=t.updateElementAccessExpression(Ot,J(N.checkDefined(rt(Ot.expression,Se,tp))),J(N.checkDefined(rt(Ot.argumentExpression,Se,bt))));break;default:Io=N.checkDefined(rt(Ot,Se,bt));break}const Qo=Me.operatorToken.kind;return QC(Qo)?ut(t.createAssignment(Io,ut(t.createBinaryExpression(J(Io),ZC(Qo),N.checkDefined(rt(Yn,Se,bt))),Me)),Me):t.updateBinaryExpression(Me,Io,Me.operatorToken,N.checkDefined(rt(Yn,Se,bt)))}return xn(Me,Se,e)}function on(Me){return q(Me.right)?Moe(Me.operatorToken.kind)?Xn(Me):Me.operatorToken.kind===28?Yt(Me):t.updateBinaryExpression(Me,J(N.checkDefined(rt(Me.left,Se,bt))),Me.operatorToken,N.checkDefined(rt(Me.right,Se,bt))):xn(Me,Se,e)}function Yt(Me){let Ot=[];return Yn(Me.left),Yn(Me.right),t.inlineExpressions(Ot);function Yn(Io){vr(Io)&&Io.operatorToken.kind===28?(Yn(Io.left),Yn(Io.right)):(q(Io)&&Ot.length>0&&(pe(1,[t.createExpressionStatement(t.inlineExpressions(Ot))]),Ot=[]),Ot.push(N.checkDefined(rt(Io,Se,bt))))}}function Nn(Me){let Ot=[];for(const Yn of Me.elements)vr(Yn)&&Yn.operatorToken.kind===28?Ot.push(Yt(Yn)):(q(Yn)&&Ot.length>0&&(pe(1,[t.createExpressionStatement(t.inlineExpressions(Ot))]),Ot=[]),Ot.push(N.checkDefined(rt(Yn,Se,bt))));return t.inlineExpressions(Ot)}function Xn(Me){const Ot=je(),Yn=fe();return fl(Yn,N.checkDefined(rt(Me.left,Se,bt)),Me.left),Me.operatorToken.kind===56?Xs(Ot,Yn,Me.left):an(Ot,Yn,Me.left),fl(Yn,N.checkDefined(rt(Me.right,Se,bt)),Me.right),ke(Ot),Yn}function yn(Me){if(q(Me.whenTrue)||q(Me.whenFalse)){const Ot=je(),Yn=je(),Io=fe();return Xs(Ot,N.checkDefined(rt(Me.condition,Se,bt)),Me.condition),fl(Io,N.checkDefined(rt(Me.whenTrue,Se,bt)),Me.whenTrue),Wo(Yn),ke(Ot),fl(Io,N.checkDefined(rt(Me.whenFalse,Se,bt)),Me.whenFalse),ke(Yn),Io}return xn(Me,Se,e)}function tn(Me){const Ot=je(),Yn=rt(Me.expression,Se,bt);if(Me.asteriskToken){const Io=(Ka(Me.expression)&8388608)===0?ut(r().createValuesHelper(Yn),Me):Yn;su(Io,Me)}else _u(Yn,Me);return ke(Ot),wf(Me)}function en(Me){return gi(Me.elements,void 0,void 0,Me.multiLine)}function gi(Me,Ot,Yn,Io){const Qo=We(Me);let ra;if(Qo>0){ra=fe();const ml=Un(Me,Se,bt,0,Qo);fl(ra,t.createArrayLiteralExpression(Ot?[Ot,...ml]:ml)),Ot=void 0}const sc=ad(Me,Ic,[],Qo);return ra?t.createArrayConcatCall(ra,[t.createArrayLiteralExpression(sc,Io)]):ut(t.createArrayLiteralExpression(Ot?[Ot,...sc]:sc,Io),Yn);function Ic(ml,Sl){if(q(Sl)&&ml.length>0){const Kl=ra!==void 0;ra||(ra=fe()),fl(ra,Kl?t.createArrayConcatCall(ra,[t.createArrayLiteralExpression(ml,Io)]):t.createArrayLiteralExpression(Ot?[Ot,...ml]:ml,Io)),Ot=void 0,ml=[]}return ml.push(N.checkDefined(rt(Sl,Se,bt))),ml}}function bo(Me){const Ot=Me.properties,Yn=Me.multiLine,Io=We(Ot),Qo=fe();fl(Qo,t.createObjectLiteralExpression(Un(Ot,Se,Fg,0,Io),Yn));const ra=ad(Ot,sc,[],Io);return ra.push(Yn?Qu(Qa(ut(t.cloneNode(Qo),Qo),Qo.parent)):Qo),t.inlineExpressions(ra);function sc(Ic,ml){q(ml)&&Ic.length>0&&(Ll(t.createExpressionStatement(t.inlineExpressions(Ic))),Ic=[]);const Sl=bse(t,Me,ml,Qo),Kl=rt(Sl,Se,bt);return Kl&&(Yn&&Qu(Kl),Ic.push(Kl)),Ic}}function Ui(Me){return q(Me.argumentExpression)?t.updateElementAccessExpression(Me,J(N.checkDefined(rt(Me.expression,Se,tp))),N.checkDefined(rt(Me.argumentExpression,Se,bt))):xn(Me,Se,e)}function Co(Me){if(!Gp(Me)&&Ve(Me.arguments,q)){const{target:Ot,thisArg:Yn}=t.createCallBinding(Me.expression,l,p,!0);return kr(ut(t.createFunctionApplyCall(J(N.checkDefined(rt(Ot,Se,tp))),Yn,gi(Me.arguments)),Me),Me)}return xn(Me,Se,e)}function tr(Me){if(Ve(Me.arguments,q)){const{target:Ot,thisArg:Yn}=t.createCallBinding(t.createPropertyAccessExpression(Me.expression,"bind"),l);return kr(ut(t.createNewExpression(t.createFunctionApplyCall(J(N.checkDefined(rt(Ot,Se,bt))),Yn,gi(Me.arguments,t.createVoidZero())),void 0,[]),Me),Me)}return xn(Me,Se,e)}function Ci(Me,Ot=0){const Yn=Me.length;for(let Io=Ot;Io<Yn;Io++)Kt(Me[Io])}function Nr(Me){Yo(Me)?Ci(Me.statements):Kt(Me)}function Kt(Me){const Ot=R;R||(R=q(Me)),nt(Me),R=Ot}function nt(Me){switch(Me.kind){case 241:return Bt(Me);case 244:return Dn(Me);case 245:return oo(Me);case 246:return Po(Me);case 247:return Ba(Me);case 248:return On(Me);case 249:return mt(Me);case 251:return Pt(Me);case 252:return Fe(Me);case 253:return j(Me);case 254:return Dt(Me);case 255:return Ye(Me);case 256:return Gt(Me);case 257:return hn(Me);case 258:return pn(Me);default:return Ll(rt(Me,Se,$i))}}function Bt(Me){q(Me)?Ci(Me.statements):Ll(rt(Me,Se,$i))}function Dn(Me){Ll(rt(Me,Se,$i))}function si(Me){for(const ra of Me.declarations){const sc=t.cloneNode(ra.name);fc(sc,ra.name),l(sc)}const Ot=rC(Me),Yn=Ot.length;let Io=0,Qo=[];for(;Io<Yn;){for(let ra=Io;ra<Yn;ra++){const sc=Ot[ra];if(q(sc.initializer)&&Qo.length>0)break;Qo.push(yi(sc))}Qo.length&&(Ll(t.createExpressionStatement(t.inlineExpressions(Qo))),Io+=Qo.length,Qo=[])}}function yi(Me){return Ma(t.createAssignment(Ma(t.cloneNode(Me.name),Me.name),N.checkDefined(rt(Me.initializer,Se,bt))),Me)}function oo(Me){if(q(Me))if(q(Me.thenStatement)||q(Me.elseStatement)){const Ot=je(),Yn=Me.elseStatement?je():void 0;Xs(Me.elseStatement?Yn:Ot,N.checkDefined(rt(Me.expression,Se,bt)),Me.expression),Nr(Me.thenStatement),Me.elseStatement&&(Wo(Ot),ke(Yn),Nr(Me.elseStatement)),ke(Ot)}else Ll(rt(Me,Se,$i));else Ll(rt(Me,Se,$i))}function Po(Me){if(q(Me)){const Ot=je(),Yn=je();Fi(Ot),ke(Yn),Nr(Me.statement),ke(Ot),an(Yn,N.checkDefined(rt(Me.expression,Se,bt))),vi()}else Ll(rt(Me,Se,$i))}function _a(Me){return R?(Ao(),Me=xn(Me,Se,e),vi(),Me):xn(Me,Se,e)}function Ba(Me){if(q(Me)){const Ot=je(),Yn=Fi(Ot);ke(Ot),Xs(Yn,N.checkDefined(rt(Me.expression,Se,bt))),Nr(Me.statement),Wo(Ot),vi()}else Ll(rt(Me,Se,$i))}function Tn(Me){return R?(Ao(),Me=xn(Me,Se,e),vi(),Me):xn(Me,Se,e)}function On(Me){if(q(Me)){const Ot=je(),Yn=je(),Io=Fi(Yn);if(Me.initializer){const Qo=Me.initializer;Xc(Qo)?si(Qo):Ll(ut(t.createExpressionStatement(N.checkDefined(rt(Qo,Se,bt))),Qo))}ke(Ot),Me.condition&&Xs(Io,N.checkDefined(rt(Me.condition,Se,bt))),Nr(Me.statement),ke(Yn),Me.incrementor&&Ll(ut(t.createExpressionStatement(N.checkDefined(rt(Me.incrementor,Se,bt))),Me.incrementor)),Wo(Ot),vi()}else Ll(rt(Me,Se,$i))}function Je(Me){R&&Ao();const Ot=Me.initializer;if(Ot&&Xc(Ot)){for(const Io of Ot.declarations)l(Io.name);const Yn=rC(Ot);Me=t.updateForStatement(Me,Yn.length>0?t.inlineExpressions(Wt(Yn,yi)):void 0,rt(Me.condition,Se,bt),rt(Me.incrementor,Se,bt),Rd(Me.statement,Se,e))}else Me=xn(Me,Se,e);return R&&vi(),Me}function mt(Me){if(q(Me)){const Ot=fe(),Yn=fe(),Io=fe(),Qo=t.createLoopVariable(),ra=Me.initializer;l(Qo),fl(Ot,N.checkDefined(rt(Me.expression,Se,bt))),fl(Yn,t.createArrayLiteralExpression()),Ll(t.createForInStatement(Io,Ot,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Yn,"push"),void 0,[Io])))),fl(Qo,t.createNumericLiteral(0));const sc=je(),Ic=je(),ml=Fi(Ic);ke(sc),Xs(ml,t.createLessThan(Qo,t.createPropertyAccessExpression(Yn,"length"))),fl(Io,t.createElementAccessExpression(Yn,Qo)),Xs(Ic,t.createBinaryExpression(Io,103,Ot));let Sl;if(Xc(ra)){for(const Kl of ra.declarations)l(Kl.name);Sl=t.cloneNode(ra.declarations[0].name)}else Sl=N.checkDefined(rt(ra,Se,bt)),N.assert(tp(Sl));fl(Sl,Io),Nr(Me.statement),ke(Ic),Ll(t.createExpressionStatement(t.createPostfixIncrement(Qo))),Wo(sc),vi()}else Ll(rt(Me,Se,$i))}function pt(Me){R&&Ao();const Ot=Me.initializer;if(Xc(Ot)){for(const Yn of Ot.declarations)l(Yn.name);Me=t.updateForInStatement(Me,Ot.declarations[0].name,N.checkDefined(rt(Me.expression,Se,bt)),N.checkDefined(rt(Me.statement,Se,$i,t.liftToBlock)))}else Me=xn(Me,Se,e);return R&&vi(),Me}function Pt(Me){const Ot=da(Me.label?Rr(Me.label):void 0);Ot>0?Wo(Ot,Me):Ll(Me)}function le(Me){if(R){const Ot=da(Me.label&&Rr(Me.label));if(Ot>0)return wa(Ot,Me)}return xn(Me,Se,e)}function Fe(Me){const Ot=co(Me.label?Rr(Me.label):void 0);Ot>0?Wo(Ot,Me):Ll(Me)}function dt(Me){if(R){const Ot=co(Me.label&&Rr(Me.label));if(Ot>0)return wa(Ot,Me)}return xn(Me,Se,e)}function j(Me){Dp(rt(Me.expression,Se,bt),Me)}function ot(Me){return yl(rt(Me.expression,Se,bt),Me)}function Dt(Me){q(Me)?(or(J(N.checkDefined(rt(Me.expression,Se,bt)))),Nr(Me.statement),pr()):Ll(rt(Me,Se,$i))}function Ye(Me){if(q(Me.caseBlock)){const Ot=Me.caseBlock,Yn=Ot.clauses.length,Io=Xa(),Qo=J(N.checkDefined(rt(Me.expression,Se,bt))),ra=[];let sc=-1;for(let Sl=0;Sl<Yn;Sl++){const Kl=Ot.clauses[Sl];ra.push(je()),Kl.kind===297&&sc===-1&&(sc=Sl)}let Ic=0,ml=[];for(;Ic<Yn;){let Sl=0;for(let Kl=Ic;Kl<Yn;Kl++){const lc=Ot.clauses[Kl];if(lc.kind===296){if(q(lc.expression)&&ml.length>0)break;ml.push(t.createCaseClause(N.checkDefined(rt(lc.expression,Se,bt)),[wa(ra[Kl],lc.expression)]))}else Sl++}ml.length&&(Ll(t.createSwitchStatement(Qo,t.createCaseBlock(ml))),Ic+=ml.length,ml=[]),Sl>0&&(Ic+=Sl,Sl=0)}sc>=0?Wo(ra[sc]):Wo(Io);for(let Sl=0;Sl<Yn;Sl++)ke(ra[Sl]),Ci(Ot.clauses[Sl].statements);Qt()}else Ll(rt(Me,Se,$i))}function _t(Me){return R&&ya(),Me=xn(Me,Se,e),R&&Qt(),Me}function Gt(Me){q(Me)?(Gl(Rr(Me.label)),Nr(Me.statement),ao()):Ll(rt(Me,Se,$i))}function gn(Me){return R&&ba(Rr(Me.label)),Me=xn(Me,Se,e),R&&ao(),Me}function hn(Me){var Ot;Gs(N.checkDefined(rt((Ot=Me.expression)!=null?Ot:t.createVoidZero(),Se,bt)),Me)}function pn(Me){q(Me)?(ai(),Nr(Me.tryBlock),Me.catchClause&&(li(Me.catchClause.variableDeclaration),Nr(Me.catchClause.block)),Me.finallyBlock&&(Qn(),Nr(Me.finallyBlock)),qr()):Ll(xn(Me,Se,e))}function q(Me){return!!Me&&(Me.transformFlags&1048576)!==0}function We(Me){const Ot=Me.length;for(let Yn=0;Yn<Ot;Yn++)if(q(Me[Yn]))return Yn;return-1}function Lt(Me,Ot){return Ot=f(Me,Ot),Me===1?L(Ot):Ot}function L(Me){return Ue(Me)?me(Me):Me}function me(Me){if(!ul(Me)&&b&&b.has(Rr(Me))){const Ot=Ol(Me);if(Ue(Ot)&&Ot.parent){const Yn=v.getReferencedValueDeclaration(Ot);if(Yn){const Io=A[zu(Yn)];if(Io){const Qo=Qa(ut(t.cloneNode(Io),Io),Io.parent);return Ma(Qo,Me),fc(Qo,Me),Qo}}}}return Me}function J(Me){if(ul(Me)||Ka(Me)&8192)return Me;const Ot=t.createTempVariable(l);return fl(Ot,Me,Me),Ot}function fe(Me){const Ot=Me?t.createUniqueName(Me):t.createTempVariable(void 0);return l(Ot),Ot}function je(){X||(X=[]);const Me=V;return V++,X[Me]=-1,Me}function ke(Me){N.assert(X!==void 0,"No labels were defined."),X[Me]=se?se.length:0}function Tt(Me){M||(M=[],W=[],C=[],U=[]);const Ot=W.length;return W[Ot]=0,C[Ot]=se?se.length:0,M[Ot]=Me,U.push(Me),Ot}function kt(){const Me=nn();if(Me===void 0)return N.fail("beginBlock was never called.");const Ot=W.length;return W[Ot]=1,C[Ot]=se?se.length:0,M[Ot]=Me,U.pop(),Me}function nn(){return il(U)}function En(){const Me=nn();return Me&&Me.kind}function or(Me){const Ot=je(),Yn=je();ke(Ot),Tt({kind:1,expression:Me,startLabel:Ot,endLabel:Yn})}function pr(){N.assert(En()===1);const Me=kt();ke(Me.endLabel)}function ai(){const Me=je(),Ot=je();return ke(Me),Tt({kind:0,state:0,startLabel:Me,endLabel:Ot}),_c(),Ot}function li(Me){N.assert(En()===0);let Ot;if(ul(Me.name))Ot=Me.name,l(Me.name);else{const ra=Rr(Me.name);Ot=fe(ra),b||(b=new Map,A=[],e.enableSubstitution(80)),b.set(ra,!0),A[zu(Me)]=Ot}const Yn=nn();N.assert(Yn.state<1);const Io=Yn.endLabel;Wo(Io);const Qo=je();ke(Qo),Yn.state=1,Yn.catchVariable=Ot,Yn.catchLabel=Qo,fl(Ot,t.createCallExpression(t.createPropertyAccessExpression(_e,"sent"),void 0,[])),_c()}function Qn(){N.assert(En()===0);const Me=nn();N.assert(Me.state<2);const Ot=Me.endLabel;Wo(Ot);const Yn=je();ke(Yn),Me.state=2,Me.finallyLabel=Yn}function qr(){N.assert(En()===0);const Me=kt();Me.state<2?Wo(Me.endLabel):Pc(),ke(Me.endLabel),_c(),Me.state=3}function Ao(){Tt({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function Fi(Me){const Ot=je();return Tt({kind:3,isScript:!1,breakLabel:Ot,continueLabel:Me}),Ot}function vi(){N.assert(En()===3);const Me=kt(),Ot=Me.breakLabel;Me.isScript||ke(Ot)}function ya(){Tt({kind:2,isScript:!0,breakLabel:-1})}function Xa(){const Me=je();return Tt({kind:2,isScript:!1,breakLabel:Me}),Me}function Qt(){N.assert(En()===2);const Me=kt(),Ot=Me.breakLabel;Me.isScript||ke(Ot)}function ba(Me){Tt({kind:4,isScript:!0,labelText:Me,breakLabel:-1})}function Gl(Me){const Ot=je();Tt({kind:4,isScript:!1,labelText:Me,breakLabel:Ot})}function ao(){N.assert(En()===4);const Me=kt();Me.isScript||ke(Me.breakLabel)}function Ga(Me){return Me.kind===2||Me.kind===3}function ka(Me){return Me.kind===4}function Ts(Me){return Me.kind===3}function oc(Me,Ot){for(let Yn=Ot;Yn>=0;Yn--){const Io=U[Yn];if(ka(Io)){if(Io.labelText===Me)return!0}else break}return!1}function co(Me){if(U)if(Me)for(let Ot=U.length-1;Ot>=0;Ot--){const Yn=U[Ot];if(ka(Yn)&&Yn.labelText===Me)return Yn.breakLabel;if(Ga(Yn)&&oc(Me,Ot-1))return Yn.breakLabel}else for(let Ot=U.length-1;Ot>=0;Ot--){const Yn=U[Ot];if(Ga(Yn))return Yn.breakLabel}return 0}function da(Me){if(U)if(Me)for(let Ot=U.length-1;Ot>=0;Ot--){const Yn=U[Ot];if(Ts(Yn)&&oc(Me,Ot-1))return Yn.continueLabel}else for(let Ot=U.length-1;Ot>=0;Ot--){const Yn=U[Ot];if(Ts(Yn))return Yn.continueLabel}return 0}function mu(Me){if(Me!==void 0&&Me>0){ee===void 0&&(ee=[]);const Ot=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return ee[Me]===void 0?ee[Me]=[Ot]:ee[Me].push(Ot),Ot}return t.createOmittedExpression()}function Ps(Me){const Ot=t.createNumericLiteral(Me);return k7(Ot,3,vHe(Me)),Ot}function wa(Me,Ot){return N.assertLessThan(0,Me,"Invalid label"),ut(t.createReturnStatement(t.createArrayLiteralExpression([Ps(3),mu(Me)])),Ot)}function yl(Me,Ot){return ut(t.createReturnStatement(t.createArrayLiteralExpression(Me?[Ps(2),Me]:[Ps(2)])),Ot)}function wf(Me){return ut(t.createCallExpression(t.createPropertyAccessExpression(_e,"sent"),void 0,[]),Me)}function _c(){pe(0)}function Ll(Me){Me?pe(1,[Me]):_c()}function fl(Me,Ot,Yn){pe(2,[Me,Ot],Yn)}function Wo(Me,Ot){pe(3,[Me],Ot)}function an(Me,Ot,Yn){pe(4,[Me,Ot],Yn)}function Xs(Me,Ot,Yn){pe(5,[Me,Ot],Yn)}function su(Me,Ot){pe(7,[Me],Ot)}function _u(Me,Ot){pe(6,[Me],Ot)}function Dp(Me,Ot){pe(8,[Me],Ot)}function Gs(Me,Ot){pe(9,[Me],Ot)}function Pc(){pe(10)}function pe(Me,Ot,Yn){se===void 0&&(se=[],G=[],re=[]),X===void 0&&ke(je());const Io=se.length;se[Io]=Me,G[Io]=Ot,re[Io]=Yn}function Z(){ye=0,Q=0,Y=void 0,oe=!1,he=!1,Ie=void 0,de=void 0,ie=void 0,ge=void 0,Ce=void 0;const Me=we();return r().createGeneratorHelper(hr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,_e)],void 0,t.createBlock(Me,Me.length>0)),1048576))}function we(){if(se){for(let Me=0;Me<se.length;Me++)Jo(Me);fn(se.length)}else fn(0);if(Ie){const Me=t.createPropertyAccessExpression(_e,"label"),Ot=t.createSwitchStatement(Me,t.createCaseBlock(Ie));return[Qu(Ot)]}return de||[]}function gt(){!de||(Ar(!oe),oe=!1,he=!1,Q++)}function fn(Me){Er(Me)&&(Jr(Me),Ce=void 0,Zl(void 0,void 0)),de&&Ie&&Ar(!1),Di()}function Er(Me){if(!he)return!0;if(!X||!ee)return!1;for(let Ot=0;Ot<X.length;Ot++)if(X[Ot]===Me&&ee[Ot])return!0;return!1}function Ar(Me){if(Ie||(Ie=[]),de){if(Ce)for(let Ot=Ce.length-1;Ot>=0;Ot--){const Yn=Ce[Ot];de=[t.createWithStatement(Yn.expression,t.createBlock(de))]}if(ge){const{startLabel:Ot,catchLabel:Yn,finallyLabel:Io,endLabel:Qo}=ge;de.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(_e,"trys"),"push"),void 0,[t.createArrayLiteralExpression([mu(Ot),mu(Yn),mu(Io),mu(Qo)])]))),ge=void 0}Me&&de.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(_e,"label"),t.createNumericLiteral(Q+1))))}Ie.push(t.createCaseClause(t.createNumericLiteral(Q),de||[])),de=void 0}function Jr(Me){if(!!X)for(let Ot=0;Ot<X.length;Ot++)X[Ot]===Me&&(gt(),Y===void 0&&(Y=[]),Y[Q]===void 0?Y[Q]=[Ot]:Y[Q].push(Ot))}function Di(){if(ee!==void 0&&Y!==void 0)for(let Me=0;Me<Y.length;Me++){const Ot=Y[Me];if(Ot!==void 0)for(const Yn of Ot){const Io=ee[Yn];if(Io!==void 0)for(const Qo of Io)Qo.text=String(Me)}}}function br(Me){if(M)for(;ye<W.length&&C[ye]<=Me;ye++){const Ot=M[ye],Yn=W[ye];switch(Ot.kind){case 0:Yn===0?(ie||(ie=[]),de||(de=[]),ie.push(ge),ge=Ot):Yn===1&&(ge=ie.pop());break;case 1:Yn===0?(Ce||(Ce=[]),Ce.push(Ot)):Yn===1&&Ce.pop();break}}}function Jo(Me){if(Jr(Me),br(Me),oe)return;oe=!1,he=!1;const Ot=se[Me];if(Ot===0)return;if(Ot===10)return Cd();const Yn=G[Me];if(Ot===1)return kl(Yn[0]);const Io=re[Me];switch(Ot){case 2:return Gc(Yn[0],Yn[1],Io);case 3:return Ns(Yn[0],Io);case 4:return ac(Yn[0],Yn[1],Io);case 5:return ap(Yn[0],Yn[1],Io);case 6:return sp(Yn[0],Io);case 7:return Yc(Yn[0],Io);case 8:return Zl(Yn[0],Io);case 9:return xl(Yn[0],Io)}}function kl(Me){Me&&(de?de.push(Me):de=[Me])}function Gc(Me,Ot,Yn){kl(ut(t.createExpressionStatement(t.createAssignment(Me,Ot)),Yn))}function xl(Me,Ot){oe=!0,he=!0,kl(ut(t.createThrowStatement(Me),Ot))}function Zl(Me,Ot){oe=!0,he=!0,kl(hr(ut(t.createReturnStatement(t.createArrayLiteralExpression(Me?[Ps(2),Me]:[Ps(2)])),Ot),768))}function Ns(Me,Ot){oe=!0,kl(hr(ut(t.createReturnStatement(t.createArrayLiteralExpression([Ps(3),mu(Me)])),Ot),768))}function ac(Me,Ot,Yn){kl(hr(t.createIfStatement(Ot,hr(ut(t.createReturnStatement(t.createArrayLiteralExpression([Ps(3),mu(Me)])),Yn),768)),1))}function ap(Me,Ot,Yn){kl(hr(t.createIfStatement(t.createLogicalNot(Ot),hr(ut(t.createReturnStatement(t.createArrayLiteralExpression([Ps(3),mu(Me)])),Yn),768)),1))}function sp(Me,Ot){oe=!0,kl(hr(ut(t.createReturnStatement(t.createArrayLiteralExpression(Me?[Ps(4),Me]:[Ps(4)])),Ot),768))}function Yc(Me,Ot){oe=!0,kl(hr(ut(t.createReturnStatement(t.createArrayLiteralExpression([Ps(5),Me])),Ot),768))}function Cd(){oe=!0,kl(t.createReturnStatement(t.createArrayLiteralExpression([Ps(7)])))}}var yHe=S({"src/compiler/transformers/generators.ts"(){ia()}});function xJ(e){function t(q){switch(q){case 2:return se;case 3:return G;default:return V}}const{factory:r,getEmitHelperFactory:i,startLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),p=e.getEmitResolver(),v=e.getEmitHost(),f=ps(u),b=Wu(u),A=e.onSubstituteNode,I=e.onEmitNode;e.onSubstituteNode=ot,e.onEmitNode=j,e.enableSubstitution(213),e.enableSubstitution(215),e.enableSubstitution(80),e.enableSubstitution(226),e.enableSubstitution(304),e.enableEmitNotification(312);const R=[];let M,C;const W=[];let U;return wm(e,X);function X(q){if(q.isDeclarationFile||!(BA(q,u)||q.transformFlags&8388608||im(q)&&r7(u)&&Bs(u)))return q;M=q,C=_J(e,q),R[zu(q)]=C;const Lt=t(b)(q);return M=void 0,C=void 0,U=!1,Lt}function ee(){return!!(!C.exportEquals&&mc(M))}function V(q){o();const We=[],Lt=md(u,"alwaysStrict")||!u.noImplicitUseStrict&&mc(M),L=r.copyPrologue(q.statements,We,Lt&&!im(q),Y);if(ee()&&Rn(We,Pt()),Pe(C.exportedNames))for(let fe=0;fe<C.exportedNames.length;fe+=50)Rn(We,r.createExpressionStatement(ad(C.exportedNames.slice(fe,fe+50),(je,ke)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Rr(ke))),je),r.createVoidZero())));Rn(We,rt(C.externalHelpersImportDeclaration,Y,$i)),Hr(We,Un(q.statements,Y,$i,L)),Q(We,!1),tg(We,s());const me=r.updateSourceFile(q,ut(r.createNodeArray(We),q.statements));return Hg(me,e.readEmitHelpers()),me}function se(q){const We=r.createIdentifier("define"),Lt=yw(r,q,v,u),L=im(q)&&q,{aliasedModuleNames:me,unaliasedModuleNames:J,importAliasNames:fe}=re(q,!0),je=r.updateSourceFile(q,ut(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(We,void 0,[...Lt?[Lt]:[],r.createArrayLiteralExpression(L?et:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...me,...J]),L?L.statements.length?L.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...fe],void 0,ye(q))]))]),q.statements));return Hg(je,e.readEmitHelpers()),je}function G(q){const{aliasedModuleNames:We,unaliasedModuleNames:Lt,importAliasNames:L}=re(q,!1),me=yw(r,q,v,u),J=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,ut(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),hr(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[...me?[me]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...We,...Lt]),r.createIdentifier("factory")]))])))],!0),void 0)),fe=r.updateSourceFile(q,ut(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(J,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...L],void 0,ye(q))]))]),q.statements));return Hg(fe,e.readEmitHelpers()),fe}function re(q,We){const Lt=[],L=[],me=[];for(const J of q.amdDependencies)J.name?(Lt.push(r.createStringLiteral(J.path)),me.push(r.createParameterDeclaration(void 0,void 0,J.name))):L.push(r.createStringLiteral(J.path));for(const J of C.externalImports){const fe=AI(r,J,M,v,p,u),je=sR(r,J,M);fe&&(We&&je?(hr(je,8),Lt.push(fe),me.push(r.createParameterDeclaration(void 0,void 0,je))):L.push(fe))}return{aliasedModuleNames:Lt,unaliasedModuleNames:L,importAliasNames:me}}function _e(q){if(au(q)||rc(q)||!AI(r,q,M,v,p,u))return;const We=sR(r,q,M),Lt=Co(q,We);if(Lt!==We)return r.createExpressionStatement(r.createAssignment(We,Lt))}function ye(q){o();const We=[],Lt=r.copyPrologue(q.statements,We,!u.noImplicitUseStrict,Y);ee()&&Rn(We,Pt()),Pe(C.exportedNames)&&Rn(We,r.createExpressionStatement(ad(C.exportedNames,(me,J)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Rr(J))),me),r.createVoidZero()))),Rn(We,rt(C.externalHelpersImportDeclaration,Y,$i)),b===2&&Hr(We,Vi(C.externalImports,_e)),Hr(We,Un(q.statements,Y,$i,Lt)),Q(We,!0),tg(We,s());const L=r.createBlock(We,!0);return U&&oI(L,p2e),L}function Q(q,We){if(C.exportEquals){const Lt=rt(C.exportEquals.expression,Ie,bt);if(Lt)if(We){const L=r.createReturnStatement(Lt);ut(L,C.exportEquals),hr(L,3840),q.push(L)}else{const L=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Lt));ut(L,C.exportEquals),hr(L,3072),q.push(L)}}}function Y(q){switch(q.kind){case 272:return tr(q);case 271:return Nr(q);case 278:return Kt(q);case 277:return nt(q);default:return oe(q)}}function oe(q){switch(q.kind){case 243:return si(q);case 262:return Bt(q);case 263:return Dn(q);case 248:return Ce(q,!0);case 249:return qe(q);case 250:return Se(q);case 246:return Le(q);case 247:return Ne(q);case 256:return Oe(q);case 254:return At(q);case 245:return be(q);case 255:return He(q);case 269:return it(q);case 296:return Ft(q);case 297:return yt(q);case 258:return Ze(q);case 299:return It(q);case 241:return on(q);default:return Ie(q)}}function he(q,We){if(!(q.transformFlags&276828160))return q;switch(q.kind){case 248:return Ce(q,!1);case 244:return Yt(q);case 217:return Nn(q,We);case 360:return Xn(q,We);case 213:if(Gp(q)&&M.impliedNodeFormat===void 0)return tn(q);break;case 226:if(jv(q))return ge(q,We);break;case 224:case 225:return yn(q,We)}return xn(q,Ie,e)}function Ie(q){return he(q,!1)}function de(q){return he(q,!0)}function ie(q){if(za(q))for(const We of q.properties)switch(We.kind){case 303:if(ie(We.initializer))return!0;break;case 304:if(ie(We.name))return!0;break;case 305:if(ie(We.expression))return!0;break;case 174:case 177:case 178:return!1;default:N.assertNever(We,"Unhandled object member kind")}else if(hd(q)){for(const We of q.elements)if(t_(We)){if(ie(We.expression))return!0}else if(ie(We))return!0}else if(Ue(q))return Pe(pn(q))>(R5(q)?1:0);return!1}function ge(q,We){return ie(q.left)?tT(q,Ie,e,0,!We,yi):xn(q,Ie,e)}function Ce(q,We){if(We&&q.initializer&&Xc(q.initializer)&&!(q.initializer.flags&7)){const Lt=Tn(void 0,q.initializer,!1);if(Lt){const L=[],me=rt(q.initializer,de,Xc),J=r.createVariableStatement(void 0,me);L.push(J),Hr(L,Lt);const fe=rt(q.condition,Ie,bt),je=rt(q.incrementor,de,bt),ke=Rd(q.statement,We?oe:Ie,e);return L.push(r.updateForStatement(q,void 0,fe,je,ke)),L}}return r.updateForStatement(q,rt(q.initializer,de,Af),rt(q.condition,Ie,bt),rt(q.incrementor,de,bt),Rd(q.statement,We?oe:Ie,e))}function qe(q){if(Xc(q.initializer)&&!(q.initializer.flags&7)){const We=Tn(void 0,q.initializer,!0);if(St(We)){const Lt=rt(q.initializer,de,Af),L=rt(q.expression,Ie,bt),me=Rd(q.statement,oe,e),J=Yo(me)?r.updateBlock(me,[...We,...me.statements]):r.createBlock([...We,me],!0);return r.updateForInStatement(q,Lt,L,J)}}return r.updateForInStatement(q,rt(q.initializer,de,Af),rt(q.expression,Ie,bt),Rd(q.statement,oe,e))}function Se(q){if(Xc(q.initializer)&&!(q.initializer.flags&7)){const We=Tn(void 0,q.initializer,!0),Lt=rt(q.initializer,de,Af),L=rt(q.expression,Ie,bt);let me=Rd(q.statement,oe,e);return St(We)&&(me=Yo(me)?r.updateBlock(me,[...We,...me.statements]):r.createBlock([...We,me],!0)),r.updateForOfStatement(q,q.awaitModifier,Lt,L,me)}return r.updateForOfStatement(q,q.awaitModifier,rt(q.initializer,de,Af),rt(q.expression,Ie,bt),Rd(q.statement,oe,e))}function Le(q){return r.updateDoStatement(q,Rd(q.statement,oe,e),rt(q.expression,Ie,bt))}function Ne(q){return r.updateWhileStatement(q,rt(q.expression,Ie,bt),Rd(q.statement,oe,e))}function Oe(q){return r.updateLabeledStatement(q,q.label,N.checkDefined(rt(q.statement,oe,$i,r.liftToBlock)))}function At(q){return r.updateWithStatement(q,rt(q.expression,Ie,bt),N.checkDefined(rt(q.statement,oe,$i,r.liftToBlock)))}function be(q){return r.updateIfStatement(q,rt(q.expression,Ie,bt),N.checkDefined(rt(q.thenStatement,oe,$i,r.liftToBlock)),rt(q.elseStatement,oe,$i,r.liftToBlock))}function He(q){return r.updateSwitchStatement(q,rt(q.expression,Ie,bt),N.checkDefined(rt(q.caseBlock,oe,kC)))}function it(q){return r.updateCaseBlock(q,Un(q.clauses,oe,q6))}function Ft(q){return r.updateCaseClause(q,rt(q.expression,Ie,bt),Un(q.statements,oe,$i))}function yt(q){return xn(q,oe,e)}function Ze(q){return xn(q,oe,e)}function It(q){return r.updateCatchClause(q,q.variableDeclaration,N.checkDefined(rt(q.block,oe,Yo)))}function on(q){return q=xn(q,oe,e),q}function Yt(q){return r.updateExpressionStatement(q,rt(q.expression,de,bt))}function Nn(q,We){return r.updateParenthesizedExpression(q,rt(q.expression,We?de:Ie,bt))}function Xn(q,We){return r.updatePartiallyEmittedExpression(q,rt(q.expression,We?de:Ie,bt))}function yn(q,We){if((q.operator===46||q.operator===47)&&Ue(q.operand)&&!ul(q.operand)&&!Jg(q.operand)&&!WU(q.operand)){const Lt=pn(q.operand);if(Lt){let L,me=rt(q.operand,Ie,bt);Zy(q)?me=r.updatePrefixUnaryExpression(q,me):(me=r.updatePostfixUnaryExpression(q,me),We||(L=r.createTempVariable(l),me=r.createAssignment(L,me),ut(me,q)),me=r.createComma(me,r.cloneNode(q.operand)),ut(me,q));for(const J of Lt)W[fs(me)]=!0,me=Fe(J,me),ut(me,q);return L&&(W[fs(me)]=!0,me=r.createComma(me,L),ut(me,q)),me}}return xn(q,Ie,e)}function tn(q){if(b===0&&f>=7)return xn(q,Ie,e);const We=AI(r,q,M,v,p,u),Lt=rt(eu(q.arguments),Ie,bt),L=We&&(!Lt||!La(Lt)||Lt.text!==We.text)?We:Lt,me=!!(q.transformFlags&16384);switch(u.module){case 2:return gi(L,me);case 3:return en(L!=null?L:r.createVoidZero(),me);case 1:default:return bo(L)}}function en(q,We){if(U=!0,hE(q)){const Lt=ul(q)?q:La(q)?r.createStringLiteralFromNode(q):hr(ut(r.cloneNode(q),q),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,bo(q),void 0,gi(Lt,We))}else{const Lt=r.createTempVariable(l);return r.createComma(r.createAssignment(Lt,q),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,bo(Lt,!0),void 0,gi(Lt,We)))}}function gi(q,We){const Lt=r.createUniqueName("resolve"),L=r.createUniqueName("reject"),me=[r.createParameterDeclaration(void 0,void 0,Lt),r.createParameterDeclaration(void 0,void 0,L)],J=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([q||r.createOmittedExpression()]),Lt,L]))]);let fe;f>=2?fe=r.createArrowFunction(void 0,void 0,me,void 0,void 0,J):(fe=r.createFunctionExpression(void 0,void 0,void 0,void 0,me,void 0,J),We&&hr(fe,16));const je=r.createNewExpression(r.createIdentifier("Promise"),void 0,[fe]);return Sh(u)?r.createCallExpression(r.createPropertyAccessExpression(je,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):je}function bo(q,We){const Lt=q&&!z_(q)&&!We,L=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Lt?f>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(q,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[q])]:[]);let me=r.createCallExpression(r.createIdentifier("require"),void 0,Lt?[r.createIdentifier("s")]:q?[q]:[]);Sh(u)&&(me=i().createImportStarHelper(me));const J=Lt?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let fe;return f>=2?fe=r.createArrowFunction(void 0,void 0,J,void 0,void 0,me):fe=r.createFunctionExpression(void 0,void 0,void 0,void 0,J,void 0,r.createBlock([r.createReturnStatement(me)])),r.createCallExpression(r.createPropertyAccessExpression(L,"then"),void 0,[fe])}function Ui(q,We){return!Sh(u)||Dm(q)&2?We:Vle(q)?i().createImportStarHelper(We):We}function Co(q,We){return!Sh(u)||Dm(q)&2?We:_W(q)?i().createImportStarHelper(We):mJ(q)?i().createImportDefaultHelper(We):We}function tr(q){let We;const Lt=I2(q);if(b!==2)if(q.importClause){const L=[];Lt&&!VA(q)?L.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,Co(q,Ci(q)))):(L.push(r.createVariableDeclaration(r.getGeneratedNameForNode(q),void 0,void 0,Co(q,Ci(q)))),Lt&&VA(q)&&L.push(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(q)))),We=Rn(We,kr(ut(r.createVariableStatement(void 0,r.createVariableDeclarationList(L,f>=2?2:0)),q),q))}else return kr(ut(r.createExpressionStatement(Ci(q)),q),q);else Lt&&VA(q)&&(We=Rn(We,r.createVariableStatement(void 0,r.createVariableDeclarationList([kr(ut(r.createVariableDeclaration(r.cloneNode(Lt.name),void 0,void 0,r.getGeneratedNameForNode(q)),q),q)],f>=2?2:0))));return We=Po(We,q),dh(We)}function Ci(q){const We=AI(r,q,M,v,p,u),Lt=[];return We&&Lt.push(We),r.createCallExpression(r.createIdentifier("require"),void 0,Lt)}function Nr(q){N.assert(h0(q),"import= for internal module references should be handled in an earlier transformer.");let We;return b!==2?Qr(q,32)?We=Rn(We,kr(ut(r.createExpressionStatement(Fe(q.name,Ci(q))),q),q)):We=Rn(We,kr(ut(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(q.name),void 0,void 0,Ci(q))],f>=2?2:0)),q),q)):Qr(q,32)&&(We=Rn(We,kr(ut(r.createExpressionStatement(Fe(r.getExportName(q),r.getLocalName(q))),q),q))),We=_a(We,q),dh(We)}function Kt(q){if(!q.moduleSpecifier)return;const We=r.getGeneratedNameForNode(q);if(q.exportClause&&Pf(q.exportClause)){const Lt=[];b!==2&&Lt.push(kr(ut(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(We,void 0,void 0,Ci(q))])),q),q));for(const L of q.exportClause.elements)if(f===0)Lt.push(kr(ut(r.createExpressionStatement(i().createCreateBindingHelper(We,r.createStringLiteralFromNode(L.propertyName||L.name),L.propertyName?r.createStringLiteralFromNode(L.name):void 0)),L),L));else{const me=!!Sh(u)&&!(Dm(q)&2)&&Rr(L.propertyName||L.name)==="default",J=r.createPropertyAccessExpression(me?i().createImportDefaultHelper(We):We,L.propertyName||L.name);Lt.push(kr(ut(r.createExpressionStatement(Fe(r.getExportName(L),J,void 0,!0)),L),L))}return dh(Lt)}else if(q.exportClause){const Lt=[];return Lt.push(kr(ut(r.createExpressionStatement(Fe(r.cloneNode(q.exportClause.name),Ui(q,b!==2?Ci(q):r3(q)?We:r.createIdentifier(Rr(q.exportClause.name))))),q),q)),dh(Lt)}else return kr(ut(r.createExpressionStatement(i().createExportStarHelper(b!==2?Ci(q):We)),q),q)}function nt(q){if(!q.isExportEquals)return le(r.createIdentifier("default"),rt(q.expression,Ie,bt),q,!0)}function Bt(q){let We;return Qr(q,32)?We=Rn(We,kr(ut(r.createFunctionDeclaration(Un(q.modifiers,dt,Ra),q.asteriskToken,r.getDeclarationName(q,!0,!0),void 0,Un(q.parameters,Ie,No),void 0,xn(q.body,Ie,e)),q),q)):We=Rn(We,xn(q,Ie,e)),We=Je(We,q),dh(We)}function Dn(q){let We;return Qr(q,32)?We=Rn(We,kr(ut(r.createClassDeclaration(Un(q.modifiers,dt,dl),r.getDeclarationName(q,!0,!0),void 0,Un(q.heritageClauses,Ie,of),Un(q.members,Ie,nu)),q),q)):We=Rn(We,xn(q,Ie,e)),We=Je(We,q),dh(We)}function si(q){let We,Lt,L;if(Qr(q,32)){let me,J=!1;for(const fe of q.declarationList.declarations)if(Ue(fe.name)&&Jg(fe.name))if(me||(me=Un(q.modifiers,dt,Ra)),fe.initializer){const je=r.updateVariableDeclaration(fe,fe.name,void 0,void 0,Fe(fe.name,rt(fe.initializer,Ie,bt)));Lt=Rn(Lt,je)}else Lt=Rn(Lt,fe);else if(fe.initializer)if(!na(fe.name)&&(Ks(fe.initializer)||Us(fe.initializer)||iu(fe.initializer))){const je=r.createAssignment(ut(r.createPropertyAccessExpression(r.createIdentifier("exports"),fe.name),fe.name),r.createIdentifier(am(fe.name))),ke=r.createVariableDeclaration(fe.name,fe.exclamationToken,fe.type,rt(fe.initializer,Ie,bt));Lt=Rn(Lt,ke),L=Rn(L,je),J=!0}else L=Rn(L,oo(fe));if(Lt&&(We=Rn(We,r.updateVariableStatement(q,me,r.updateVariableDeclarationList(q.declarationList,Lt)))),L){const fe=kr(ut(r.createExpressionStatement(r.inlineExpressions(L)),q),q);J&&Qk(fe),We=Rn(We,fe)}}else We=Rn(We,xn(q,Ie,e));return We=Ba(We,q),dh(We)}function yi(q,We,Lt){const L=pn(q);if(L){let me=R5(q)?We:r.createAssignment(q,We);for(const J of L)hr(me,8),me=Fe(J,me,Lt);return me}return r.createAssignment(q,We)}function oo(q){return na(q.name)?tT(rt(q,Ie,Mk),Ie,e,0,!1,yi):r.createAssignment(ut(r.createPropertyAccessExpression(r.createIdentifier("exports"),q.name),q.name),q.initializer?rt(q.initializer,Ie,bt):r.createVoidZero())}function Po(q,We){if(C.exportEquals)return q;const Lt=We.importClause;if(!Lt)return q;const L=new CI;Lt.name&&(q=mt(q,L,Lt));const me=Lt.namedBindings;if(me)switch(me.kind){case 274:q=mt(q,L,me);break;case 275:for(const J of me.elements)q=mt(q,L,J,!0);break}return q}function _a(q,We){return C.exportEquals?q:mt(q,new CI,We)}function Ba(q,We){return Tn(q,We.declarationList,!1)}function Tn(q,We,Lt){if(C.exportEquals)return q;for(const L of We.declarations)q=On(q,L,Lt);return q}function On(q,We,Lt){if(C.exportEquals)return q;if(na(We.name))for(const L of We.name.elements)Kc(L)||(q=On(q,L,Lt));else!ul(We.name)&&(!Wi(We)||We.initializer||Lt)&&(q=mt(q,new CI,We));return q}function Je(q,We){if(C.exportEquals)return q;const Lt=new CI;if(Qr(We,32)){const L=Qr(We,2048)?r.createIdentifier("default"):r.getDeclarationName(We);q=pt(q,Lt,L,r.getLocalName(We),We)}return We.name&&(q=mt(q,Lt,We)),q}function mt(q,We,Lt,L){const me=r.getDeclarationName(Lt),J=C.exportSpecifiers.get(me);if(J)for(const fe of J)q=pt(q,We,fe.name,me,fe.name,void 0,L);return q}function pt(q,We,Lt,L,me,J,fe){return We.has(Lt)||(We.set(Lt,!0),q=Rn(q,le(Lt,L,me,J,fe))),q}function Pt(){let q;return f===0?q=r.createExpressionStatement(Fe(r.createIdentifier("__esModule"),r.createTrue())):q=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),hr(q,2097152),q}function le(q,We,Lt,L,me){const J=ut(r.createExpressionStatement(Fe(q,We,void 0,me)),Lt);return Qu(J),L||hr(J,3072),J}function Fe(q,We,Lt,L){return ut(L&&f!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(q),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(We)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(q)),We),Lt)}function dt(q){switch(q.kind){case 95:case 90:return}return q}function j(q,We,Lt){We.kind===312?(M=We,C=R[zu(M)],I(q,We,Lt),M=void 0,C=void 0):I(q,We,Lt)}function ot(q,We){return We=A(q,We),We.id&&W[We.id]?We:q===1?Ye(We):ip(We)?Dt(We):We}function Dt(q){const We=q.name,Lt=gn(We);if(Lt!==We){if(q.objectAssignmentInitializer){const L=r.createAssignment(Lt,q.objectAssignmentInitializer);return ut(r.createPropertyAssignment(We,L),q)}return ut(r.createPropertyAssignment(We,Lt),q)}return q}function Ye(q){switch(q.kind){case 80:return gn(q);case 213:return _t(q);case 215:return Gt(q);case 226:return hn(q)}return q}function _t(q){if(Ue(q.expression)){const We=gn(q.expression);if(W[fs(We)]=!0,!Ue(We)&&!(Ka(q.expression)&8192))return rI(r.updateCallExpression(q,We,void 0,q.arguments),16)}return q}function Gt(q){if(Ue(q.tag)){const We=gn(q.tag);if(W[fs(We)]=!0,!Ue(We)&&!(Ka(q.tag)&8192))return rI(r.updateTaggedTemplateExpression(q,We,void 0,q.template),16)}return q}function gn(q){var We,Lt;if(Ka(q)&8192){const L=vw(M);return L?r.createPropertyAccessExpression(L,q):q}else if(!(ul(q)&&!(q.emitNode.autoGenerate.flags&64))&&!Jg(q)){const L=p.getReferencedExportContainer(q,R5(q));if(L&&L.kind===312)return ut(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(q)),q);const me=p.getReferencedImportDeclaration(q);if(me){if(Ih(me))return ut(r.createPropertyAccessExpression(r.getGeneratedNameForNode(me.parent),r.createIdentifier("default")),q);if(rp(me)){const J=me.propertyName||me.name;return ut(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((Lt=(We=me.parent)==null?void 0:We.parent)==null?void 0:Lt.parent)||me),r.cloneNode(J)),q)}}}return q}function hn(q){if(Vv(q.operatorToken.kind)&&Ue(q.left)&&(!ul(q.left)||CL(q.left))&&!Jg(q.left)){const We=pn(q.left);if(We){let Lt=q;for(const L of We)W[fs(Lt)]=!0,Lt=Fe(L,Lt,q);return Lt}}return q}function pn(q){if(ul(q)){if(CL(q)){const We=C==null?void 0:C.exportSpecifiers.get(q);if(We){const Lt=[];for(const L of We)Lt.push(L.name);return Lt}}}else{const We=p.getReferencedImportDeclaration(q);if(We)return C==null?void 0:C.exportedBindings[zu(We)];const Lt=new Set,L=p.getReferencedValueDeclarations(q);if(L){for(const me of L){const J=C==null?void 0:C.exportedBindings[zu(me)];if(J)for(const fe of J)Lt.add(fe)}if(Lt.size)return Go(Lt)}}}}var p2e,bHe=S({"src/compiler/transformers/module/module.ts"(){ia(),p2e={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Ece(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),u=e.getEmitHost(),p=e.onSubstituteNode,v=e.onEmitNode;e.onSubstituteNode=Fe,e.onEmitNode=le,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const f=[],b=[],A=[],I=[];let R,M,C,W,U,X,ee;return wm(e,V);function V(q){if(q.isDeclarationFile||!(BA(q,s)||q.transformFlags&8388608))return q;const We=zu(q);R=q,X=q,M=f[We]=_J(e,q),C=t.createUniqueName("exports"),b[We]=C,W=I[We]=t.createUniqueName("context");const Lt=se(M.externalImports),L=G(q,Lt),me=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,C),t.createParameterDeclaration(void 0,void 0,W)],void 0,L),J=yw(t,q,u,s),fe=t.createArrayLiteralExpression(Wt(Lt,ke=>ke.name)),je=hr(t.updateSourceFile(q,ut(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,J?[J,fe,me]:[fe,me]))]),q.statements)),2048);return Bs(s)||zae(je,L,ke=>!ke.scoped),ee&&(A[We]=ee,ee=void 0),R=void 0,M=void 0,C=void 0,W=void 0,U=void 0,X=void 0,je}function se(q){const We=new Map,Lt=[];for(const L of q){const me=AI(t,L,R,u,l,s);if(me){const J=me.text,fe=We.get(J);fe!==void 0?Lt[fe].externalImports.push(L):(We.set(J,Lt.length),Lt.push({name:me,externalImports:[L]}))}}return Lt}function G(q,We){const Lt=[];r();const L=md(s,"alwaysStrict")||!s.noImplicitUseStrict&&mc(R),me=t.copyPrologue(q.statements,Lt,L,Q);Lt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(W,t.createPropertyAccessExpression(W,"id")))]))),rt(M.externalHelpersImportDeclaration,Q,$i);const J=Un(q.statements,Q,$i,me);Hr(Lt,U),tg(Lt,i());const fe=re(Lt),je=q.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,ke=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ye(fe,We)),t.createPropertyAssignment("execute",t.createFunctionExpression(je,void 0,void 0,void 0,[],void 0,t.createBlock(J,!0)))],!0);return Lt.push(t.createReturnStatement(ke)),t.createBlock(Lt,!0)}function re(q){if(!M.hasExportStarsToExportValues)return;if(!M.exportedNames&&M.exportSpecifiers.size===0){let me=!1;for(const J of M.externalImports)if(J.kind===278&&J.exportClause){me=!0;break}if(!me){const J=_e(void 0);return q.push(J),J.name}}const We=[];if(M.exportedNames)for(const me of M.exportedNames)me.escapedText!=="default"&&We.push(t.createPropertyAssignment(t.createStringLiteralFromNode(me),t.createTrue()));const Lt=t.createUniqueName("exportedNames");q.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Lt,void 0,void 0,t.createObjectLiteralExpression(We,!0))])));const L=_e(Lt);return q.push(L),L.name}function _e(q){const We=t.createUniqueName("exportStar"),Lt=t.createIdentifier("m"),L=t.createIdentifier("n"),me=t.createIdentifier("exports");let J=t.createStrictInequality(L,t.createStringLiteral("default"));return q&&(J=t.createLogicalAnd(J,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(q,"hasOwnProperty"),void 0,[L])))),t.createFunctionDeclaration(void 0,void 0,We,void 0,[t.createParameterDeclaration(void 0,void 0,Lt)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(me,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(L)]),Lt,t.createBlock([hr(t.createIfStatement(J,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(me,L),t.createElementAccessExpression(Lt,L)))),1)])),t.createExpressionStatement(t.createCallExpression(C,void 0,[me]))],!0))}function ye(q,We){const Lt=[];for(const L of We){const me=Ve(L.externalImports,je=>sR(t,je,R)),J=me?t.getGeneratedNameForNode(me):t.createUniqueName(""),fe=[];for(const je of L.externalImports){const ke=sR(t,je,R);switch(je.kind){case 272:if(!je.importClause)break;case 271:N.assert(ke!==void 0),fe.push(t.createExpressionStatement(t.createAssignment(ke,J))),Qr(je,32)&&fe.push(t.createExpressionStatement(t.createCallExpression(C,void 0,[t.createStringLiteral(Rr(ke)),J])));break;case 278:if(N.assert(ke!==void 0),je.exportClause)if(Pf(je.exportClause)){const Tt=[];for(const kt of je.exportClause.elements)Tt.push(t.createPropertyAssignment(t.createStringLiteral(Rr(kt.name)),t.createElementAccessExpression(J,t.createStringLiteral(Rr(kt.propertyName||kt.name)))));fe.push(t.createExpressionStatement(t.createCallExpression(C,void 0,[t.createObjectLiteralExpression(Tt,!0)])))}else fe.push(t.createExpressionStatement(t.createCallExpression(C,void 0,[t.createStringLiteral(Rr(je.exportClause.name)),J])));else fe.push(t.createExpressionStatement(t.createCallExpression(q,void 0,[J])));break}}Lt.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,J)],void 0,t.createBlock(fe,!0)))}return t.createArrayLiteralExpression(Lt,!0)}function Q(q){switch(q.kind){case 272:return Y(q);case 271:return he(q);case 278:return oe(q);case 277:return Ie(q);default:return Yt(q)}}function Y(q){let We;return q.importClause&&o(sR(t,q,R)),dh(At(We,q))}function oe(q){N.assertIsDefined(q)}function he(q){N.assert(h0(q),"import= for internal module references should be handled in an earlier transformer.");let We;return o(sR(t,q,R)),dh(be(We,q))}function Ie(q){if(q.isExportEquals)return;const We=rt(q.expression,oo,bt);return It(t.createIdentifier("default"),We,!0)}function de(q){Qr(q,32)?U=Rn(U,t.updateFunctionDeclaration(q,Un(q.modifiers,Pt,dl),q.asteriskToken,t.getDeclarationName(q,!0,!0),void 0,Un(q.parameters,oo,No),void 0,rt(q.body,oo,Yo))):U=Rn(U,xn(q,oo,e)),U=Ft(U,q)}function ie(q){let We;const Lt=t.getLocalName(q);return o(Lt),We=Rn(We,ut(t.createExpressionStatement(t.createAssignment(Lt,ut(t.createClassExpression(Un(q.modifiers,Pt,dl),q.name,void 0,Un(q.heritageClauses,oo,of),Un(q.members,oo,nu)),q))),q)),We=Ft(We,q),dh(We)}function ge(q){if(!qe(q.declarationList))return rt(q,oo,$i);let We;if(KL(q.declarationList)||JL(q.declarationList)){const Lt=Un(q.modifiers,Pt,dl),L=[];for(const J of q.declarationList.declarations)L.push(t.updateVariableDeclaration(J,t.getGeneratedNameForNode(J.name),void 0,void 0,Se(J,!1)));const me=t.updateVariableDeclarationList(q.declarationList,L);We=Rn(We,t.updateVariableStatement(q,Lt,me))}else{let Lt;const L=Qr(q,32);for(const me of q.declarationList.declarations)me.initializer?Lt=Rn(Lt,Se(me,L)):Ce(me);Lt&&(We=Rn(We,ut(t.createExpressionStatement(t.inlineExpressions(Lt)),q)))}return We=He(We,q,!1),dh(We)}function Ce(q){if(na(q.name))for(const We of q.name.elements)Kc(We)||Ce(We);else o(t.cloneNode(q.name))}function qe(q){return(Ka(q)&4194304)===0&&(X.kind===312||(Ol(q).flags&7)===0)}function Se(q,We){const Lt=We?Le:Ne;return na(q.name)?tT(q,oo,e,0,!1,Lt):q.initializer?Lt(q.name,rt(q.initializer,oo,bt)):q.name}function Le(q,We,Lt){return Oe(q,We,Lt,!0)}function Ne(q,We,Lt){return Oe(q,We,Lt,!1)}function Oe(q,We,Lt,L){return o(t.cloneNode(q)),L?on(q,hn(ut(t.createAssignment(q,We),Lt))):hn(ut(t.createAssignment(q,We),Lt))}function At(q,We){if(M.exportEquals)return q;const Lt=We.importClause;if(!Lt)return q;Lt.name&&(q=yt(q,Lt));const L=Lt.namedBindings;if(L)switch(L.kind){case 274:q=yt(q,L);break;case 275:for(const me of L.elements)q=yt(q,me);break}return q}function be(q,We){return M.exportEquals?q:yt(q,We)}function He(q,We,Lt){if(M.exportEquals)return q;for(const L of We.declarationList.declarations)(L.initializer||Lt)&&(q=it(q,L,Lt));return q}function it(q,We,Lt){if(M.exportEquals)return q;if(na(We.name))for(const L of We.name.elements)Kc(L)||(q=it(q,L,Lt));else if(!ul(We.name)){let L;Lt&&(q=Ze(q,We.name,t.getLocalName(We)),L=Rr(We.name)),q=yt(q,We,L)}return q}function Ft(q,We){if(M.exportEquals)return q;let Lt;if(Qr(We,32)){const L=Qr(We,2048)?t.createStringLiteral("default"):We.name;q=Ze(q,L,t.getLocalName(We)),Lt=am(L)}return We.name&&(q=yt(q,We,Lt)),q}function yt(q,We,Lt){if(M.exportEquals)return q;const L=t.getDeclarationName(We),me=M.exportSpecifiers.get(L);if(me)for(const J of me)J.name.escapedText!==Lt&&(q=Ze(q,J.name,L));return q}function Ze(q,We,Lt,L){return q=Rn(q,It(We,Lt,L)),q}function It(q,We,Lt){const L=t.createExpressionStatement(on(q,We));return Qu(L),Lt||hr(L,3072),L}function on(q,We){const Lt=Ue(q)?t.createStringLiteralFromNode(q):q;return hr(We,Ka(We)|3072),fc(t.createCallExpression(C,void 0,[Lt,We]),We)}function Yt(q){switch(q.kind){case 243:return ge(q);case 262:return de(q);case 263:return ie(q);case 248:return Nn(q,!0);case 249:return Xn(q);case 250:return yn(q);case 246:return gi(q);case 247:return bo(q);case 256:return Ui(q);case 254:return Co(q);case 245:return tr(q);case 255:return Ci(q);case 269:return Nr(q);case 296:return Kt(q);case 297:return nt(q);case 258:return Bt(q);case 299:return Dn(q);case 241:return si(q);default:return oo(q)}}function Nn(q,We){const Lt=X;return X=q,q=t.updateForStatement(q,rt(q.initializer,We?en:Po,Af),rt(q.condition,oo,bt),rt(q.incrementor,Po,bt),Rd(q.statement,We?Yt:oo,e)),X=Lt,q}function Xn(q){const We=X;return X=q,q=t.updateForInStatement(q,en(q.initializer),rt(q.expression,oo,bt),Rd(q.statement,Yt,e)),X=We,q}function yn(q){const We=X;return X=q,q=t.updateForOfStatement(q,q.awaitModifier,en(q.initializer),rt(q.expression,oo,bt),Rd(q.statement,Yt,e)),X=We,q}function tn(q){return Xc(q)&&qe(q)}function en(q){if(tn(q)){let We;for(const Lt of q.declarations)We=Rn(We,Se(Lt,!1)),Lt.initializer||Ce(Lt);return We?t.inlineExpressions(We):t.createOmittedExpression()}else return rt(q,Po,Af)}function gi(q){return t.updateDoStatement(q,Rd(q.statement,Yt,e),rt(q.expression,oo,bt))}function bo(q){return t.updateWhileStatement(q,rt(q.expression,oo,bt),Rd(q.statement,Yt,e))}function Ui(q){return t.updateLabeledStatement(q,q.label,N.checkDefined(rt(q.statement,Yt,$i,t.liftToBlock)))}function Co(q){return t.updateWithStatement(q,rt(q.expression,oo,bt),N.checkDefined(rt(q.statement,Yt,$i,t.liftToBlock)))}function tr(q){return t.updateIfStatement(q,rt(q.expression,oo,bt),N.checkDefined(rt(q.thenStatement,Yt,$i,t.liftToBlock)),rt(q.elseStatement,Yt,$i,t.liftToBlock))}function Ci(q){return t.updateSwitchStatement(q,rt(q.expression,oo,bt),N.checkDefined(rt(q.caseBlock,Yt,kC)))}function Nr(q){const We=X;return X=q,q=t.updateCaseBlock(q,Un(q.clauses,Yt,q6)),X=We,q}function Kt(q){return t.updateCaseClause(q,rt(q.expression,oo,bt),Un(q.statements,Yt,$i))}function nt(q){return xn(q,Yt,e)}function Bt(q){return xn(q,Yt,e)}function Dn(q){const We=X;return X=q,q=t.updateCatchClause(q,q.variableDeclaration,N.checkDefined(rt(q.block,Yt,Yo))),X=We,q}function si(q){const We=X;return X=q,q=xn(q,Yt,e),X=We,q}function yi(q,We){if(!(q.transformFlags&276828160))return q;switch(q.kind){case 248:return Nn(q,!1);case 244:return _a(q);case 217:return Ba(q,We);case 360:return Tn(q,We);case 226:if(jv(q))return Je(q,We);break;case 213:if(Gp(q))return On(q);break;case 224:case 225:return pt(q,We)}return xn(q,oo,e)}function oo(q){return yi(q,!1)}function Po(q){return yi(q,!0)}function _a(q){return t.updateExpressionStatement(q,rt(q.expression,Po,bt))}function Ba(q,We){return t.updateParenthesizedExpression(q,rt(q.expression,We?Po:oo,bt))}function Tn(q,We){return t.updatePartiallyEmittedExpression(q,rt(q.expression,We?Po:oo,bt))}function On(q){const We=AI(t,q,R,u,l,s),Lt=rt(eu(q.arguments),oo,bt),L=We&&(!Lt||!La(Lt)||Lt.text!==We.text)?We:Lt;return t.createCallExpression(t.createPropertyAccessExpression(W,t.createIdentifier("import")),void 0,L?[L]:[])}function Je(q,We){return mt(q.left)?tT(q,oo,e,0,!We):xn(q,oo,e)}function mt(q){if(Wc(q,!0))return mt(q.left);if(t_(q))return mt(q.expression);if(za(q))return St(q.properties,mt);if(hd(q))return St(q.elements,mt);if(ip(q))return mt(q.name);if(Tc(q))return mt(q.initializer);if(Ue(q)){const We=l.getReferencedExportContainer(q);return We!==void 0&&We.kind===312}else return!1}function pt(q,We){if((q.operator===46||q.operator===47)&&Ue(q.operand)&&!ul(q.operand)&&!Jg(q.operand)&&!WU(q.operand)){const Lt=Gt(q.operand);if(Lt){let L,me=rt(q.operand,oo,bt);Zy(q)?me=t.updatePrefixUnaryExpression(q,me):(me=t.updatePostfixUnaryExpression(q,me),We||(L=t.createTempVariable(o),me=t.createAssignment(L,me),ut(me,q)),me=t.createComma(me,t.cloneNode(q.operand)),ut(me,q));for(const J of Lt)me=on(J,hn(me));return L&&(me=t.createComma(me,L),ut(me,q)),me}}return xn(q,oo,e)}function Pt(q){switch(q.kind){case 95:case 90:return}return q}function le(q,We,Lt){if(We.kind===312){const L=zu(We);R=We,M=f[L],C=b[L],ee=A[L],W=I[L],ee&&delete A[L],v(q,We,Lt),R=void 0,M=void 0,C=void 0,W=void 0,ee=void 0}else v(q,We,Lt)}function Fe(q,We){return We=p(q,We),pn(We)?We:q===1?ot(We):q===4?dt(We):We}function dt(q){switch(q.kind){case 304:return j(q)}return q}function j(q){var We,Lt;const L=q.name;if(!ul(L)&&!Jg(L)){const me=l.getReferencedImportDeclaration(L);if(me){if(Ih(me))return ut(t.createPropertyAssignment(t.cloneNode(L),t.createPropertyAccessExpression(t.getGeneratedNameForNode(me.parent),t.createIdentifier("default"))),q);if(rp(me))return ut(t.createPropertyAssignment(t.cloneNode(L),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(We=me.parent)==null?void 0:We.parent)==null?void 0:Lt.parent)||me),t.cloneNode(me.propertyName||me.name))),q)}}return q}function ot(q){switch(q.kind){case 80:return Dt(q);case 226:return Ye(q);case 236:return _t(q)}return q}function Dt(q){var We,Lt;if(Ka(q)&8192){const L=vw(R);return L?t.createPropertyAccessExpression(L,q):q}if(!ul(q)&&!Jg(q)){const L=l.getReferencedImportDeclaration(q);if(L){if(Ih(L))return ut(t.createPropertyAccessExpression(t.getGeneratedNameForNode(L.parent),t.createIdentifier("default")),q);if(rp(L))return ut(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((Lt=(We=L.parent)==null?void 0:We.parent)==null?void 0:Lt.parent)||L),t.cloneNode(L.propertyName||L.name)),q)}}return q}function Ye(q){if(Vv(q.operatorToken.kind)&&Ue(q.left)&&(!ul(q.left)||CL(q.left))&&!Jg(q.left)){const We=Gt(q.left);if(We){let Lt=q;for(const L of We)Lt=on(L,hn(Lt));return Lt}}return q}function _t(q){return h2(q)?t.createPropertyAccessExpression(W,t.createIdentifier("meta")):q}function Gt(q){let We;const Lt=gn(q);if(Lt){const L=l.getReferencedExportContainer(q,!1);L&&L.kind===312&&(We=Rn(We,t.getDeclarationName(Lt))),We=Hr(We,M==null?void 0:M.exportedBindings[zu(Lt)])}else if(ul(q)&&CL(q)){const L=M==null?void 0:M.exportSpecifiers.get(q);if(L){const me=[];for(const J of L)me.push(J.name);return me}}return We}function gn(q){if(!ul(q)){const We=l.getReferencedImportDeclaration(q);if(We)return We;const Lt=l.getReferencedValueDeclaration(q);if(Lt&&(M==null?void 0:M.exportedBindings[zu(Lt)]))return Lt;const L=l.getReferencedValueDeclarations(q);if(L){for(const me of L)if(me!==Lt&&(M==null?void 0:M.exportedBindings[zu(me)]))return me}return Lt}}function hn(q){return ee===void 0&&(ee=[]),ee[fs(q)]=!0,q}function pn(q){return ee&&q.id&&ee[q.id]}}var EHe=S({"src/compiler/transformers/module/system.ts"(){ia()}});function RJ(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=ps(s),u=e.onEmitNode,p=e.onSubstituteNode;e.onEmitNode=ee,e.onSubstituteNode=V,e.enableEmitNotification(312),e.enableSubstitution(80);let v,f,b;return wm(e,A);function A(G){if(G.isDeclarationFile)return G;if(mc(G)||dm(s)){f=G,b=void 0;let re=I(G);return f=void 0,b&&(re=t.updateSourceFile(re,ut(t.createNodeArray(Nj(re.statements.slice(),b)),re.statements))),!mc(G)||Wu(s)===200||St(re.statements,wL)?re:t.updateSourceFile(re,ut(t.createNodeArray([...re.statements,_w(t)]),re.statements))}return G}function I(G){const re=aq(t,r(),G,s);if(re){const _e=[],ye=t.copyPrologue(G.statements,_e);return Rn(_e,re),Hr(_e,Un(G.statements,R,$i,ye)),t.updateSourceFile(G,ut(t.createNodeArray(_e),G.statements))}else return xn(G,R,e)}function R(G){switch(G.kind){case 271:return Wu(s)>=100?C(G):void 0;case 277:return U(G);case 278:return X(G)}return G}function M(G){const re=AI(t,G,N.checkDefined(f),i,o,s),_e=[];if(re&&_e.push(re),Wu(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,_e);if(!b){const Q=t.createUniqueName("_createRequire",48),Y=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),Q)])),t.createStringLiteral("module"),void 0),oe=t.createUniqueName("__require",48),he=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(oe,void 0,void 0,t.createCallExpression(t.cloneNode(Q),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));b=[Y,he]}const ye=b[1].declarationList.declarations[0].name;return N.assertNode(ye,Ue),t.createCallExpression(t.cloneNode(ye),void 0,_e)}function C(G){N.assert(h0(G),"import= for internal module references should be handled in an earlier transformer.");let re;return re=Rn(re,kr(ut(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(G.name),void 0,void 0,M(G))],l>=2?2:0)),G),G)),re=W(re,G),dh(re)}function W(G,re){return Qr(re,32)&&(G=Rn(G,t.createExportDeclaration(void 0,re.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Rr(re.name))])))),G}function U(G){return G.isExportEquals?Wu(s)===200?kr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),G.expression)),G):void 0:G}function X(G){if(s.module!==void 0&&s.module>5||!G.exportClause||!xh(G.exportClause)||!G.moduleSpecifier)return G;const re=G.exportClause.name,_e=t.getGeneratedNameForNode(re),ye=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(_e)),G.moduleSpecifier,G.attributes);kr(ye,G.exportClause);const Q=r3(G)?t.createExportDefault(_e):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,_e,re)]));return kr(Q,G),[ye,Q]}function ee(G,re,_e){io(re)?((mc(re)||dm(s))&&s.importHelpers&&(v=new Map),u(G,re,_e),v=void 0):u(G,re,_e)}function V(G,re){return re=p(G,re),v&&Ue(re)&&Ka(re)&8192?se(re):re}function se(G){const re=Rr(G);let _e=v.get(re);return _e||v.set(re,_e=t.createUniqueName(re,48)),_e}}var SHe=S({"src/compiler/transformers/module/esnextAnd2015.ts"(){ia()}});function Sce(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=RJ(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const l=xJ(e),u=e.onSubstituteNode,p=e.onEmitNode;e.onSubstituteNode=f,e.onEmitNode=b,e.enableSubstitution(312),e.enableEmitNotification(312);let v;return R;function f(C,W){return io(W)?(v=W,t(C,W)):v?v.impliedNodeFormat===99?o(C,W):u(C,W):t(C,W)}function b(C,W,U){return io(W)&&(v=W),v?v.impliedNodeFormat===99?s(C,W,U):p(C,W,U):r(C,W,U)}function A(C){return C.impliedNodeFormat===99?i:l}function I(C){if(C.isDeclarationFile)return C;v=C;const W=A(C)(C);return v=void 0,N.assert(io(W)),W}function R(C){return C.kind===312?I(C):M(C)}function M(C){return e.factory.createBundle(Wt(C.sourceFiles,I),C.prepends)}}var THe=S({"src/compiler/transformers/module/node.ts"(){ia()}});function TW(e){return Wi(e)||qo(e)||Sp(e)||os(e)||Fv(e)||Oy(e)||sw(e)||pI(e)||Ql(e)||Th(e)||Dc(e)||No(e)||El(e)||Kv(e)||au(e)||Lm(e)||Wl(e)||nE(e)||Br(e)||el(e)||vr(e)||om(e)}function Tce(e){if(Fv(e)||Oy(e))return t;return Th(e)||Ql(e)?i:Yv(e);function t(s){const l=r(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(s){return la(e)?s.errorModuleName?s.accessibility===2?m.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?m.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_property_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?m.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(s){const l=o(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function o(s){return la(e)?s.errorModuleName?s.accessibility===2?m.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?m.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_method_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?m.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function Yv(e){if(Wi(e)||qo(e)||Sp(e)||Br(e)||el(e)||vr(e)||os(e)||Wl(e))return r;return Fv(e)||Oy(e)?i:sw(e)||pI(e)||Ql(e)||Th(e)||Dc(e)||nE(e)?o:No(e)?gp(e,e.parent)&&Qr(e.parent,2)?r:s:El(e)?u:Kv(e)?p:au(e)?v:Lm(e)||om(e)?f:N.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${N.formatSyntaxKind(e.kind)}`);function t(b){if(e.kind===260||e.kind===208)return b.errorModuleName?b.accessibility===2?m.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:m.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&Qr(e.parent,2))return la(e)?b.errorModuleName?b.accessibility===2?m.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?b.errorModuleName?b.accessibility===2?m.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:m.Public_property_0_of_exported_class_has_or_is_using_private_name_1:b.errorModuleName?m.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(b){const A=t(b);return A!==void 0?{diagnosticMessage:A,errorNode:e,typeName:e.name}:void 0}function i(b){let A;return e.kind===178?la(e)?A=b.errorModuleName?m.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:A=b.errorModuleName?m.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:la(e)?A=b.errorModuleName?b.accessibility===2?m.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:A=b.errorModuleName?b.accessibility===2?m.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:A,errorNode:e.name,typeName:e.name}}function o(b){let A;switch(e.kind){case 180:A=b.errorModuleName?m.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:A=b.errorModuleName?m.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:A=b.errorModuleName?m.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:la(e)?A=b.errorModuleName?b.accessibility===2?m.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:m.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?A=b.errorModuleName?b.accessibility===2?m.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:m.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:A=b.errorModuleName?m.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:A=b.errorModuleName?b.accessibility===2?m.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:m.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:m.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return N.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:A,errorNode:e.name||e}}function s(b){const A=l(b);return A!==void 0?{diagnosticMessage:A,errorNode:e,typeName:e.name}:void 0}function l(b){switch(e.parent.kind){case 176:return b.errorModuleName?b.accessibility===2?m.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return b.errorModuleName?m.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return b.errorModuleName?m.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return b.errorModuleName?m.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return la(e.parent)?b.errorModuleName?b.accessibility===2?m.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?b.errorModuleName?b.accessibility===2?m.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b.errorModuleName?m.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return b.errorModuleName?b.accessibility===2?m.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return b.errorModuleName?b.accessibility===2?m.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:m.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:m.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return N.fail(`Unknown parent for parameter: ${N.formatSyntaxKind(e.parent.kind)}`)}}function u(){let b;switch(e.parent.kind){case 263:b=m.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:b=m.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:b=m.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:b=m.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:b=m.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:la(e.parent)?b=m.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?b=m.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b=m.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:b=m.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:b=m.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:b=m.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return N.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:b,errorNode:e,typeName:e.name}}function p(){let b;return Nc(e.parent.parent)?b=of(e.parent)&&e.parent.token===119?m.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?m.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:m.extends_clause_of_exported_class_has_or_is_using_private_name_0:b=m.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:b,errorNode:e,typeName:Oo(e.parent.parent)}}function v(){return{diagnosticMessage:m.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function f(b){return{diagnosticMessage:b.errorModuleName?m.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:m.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:om(e)?N.checkDefined(e.typeExpression):e.type,typeName:om(e)?Oo(e):e.name}}}var AHe=S({"src/compiler/transformers/declarations/diagnostics.ts"(){ia()}});function Ace(e,t,r){const i=e.getCompilerOptions();return Zw(t,e,O,i,r?[r]:Vn(e.getSourceFiles(),$j),[DJ],!1).diagnostics}function DJ(e){const t=()=>N.fail("Diagnostic emitted without context");let r=t,i=!0,o=!1,s=!1,l=!1,u=!1,p,v,f,b,A,I;const{factory:R}=e,M=e.getEmitHost(),C={trackSymbol:de,reportInaccessibleThisError:Se,reportInaccessibleUniqueSymbolError:Ce,reportCyclicStructureError:qe,reportPrivateInBaseOfClassExpression:ie,reportLikelyUnsafeImportRequiredError:Le,reportTruncationError:Ne,moduleResolverHost:M,trackReferencedAmbientModule:Y,trackExternalModuleSymbolOfImportTypeNode:Ie,reportNonlocalAugmentation:Oe,reportNonSerializableProperty:At};let W,U,X,ee,V,se;const G=e.getEmitResolver(),re=e.getCompilerOptions(),{noResolve:_e,stripInternal:ye}=re;return He;function Q(j){if(!!j){v=v||new Set;for(const ot of j)v.add(ot)}}function Y(j,ot){const Dt=G.getTypeReferenceDirectivesForSymbol(ot,-1);if(Pe(Dt))return Q(Dt);const Ye=Jn(j);ee.set(zu(Ye),Ye)}function oe(j){const ot=T2(j),Dt=ot&&G.tryFindAmbientModule(ot);if(Dt!=null&&Dt.declarations)for(const Ye of Dt.declarations)Ou(Ye)&&Jn(Ye)!==X&&Y(Ye,Dt)}function he(j){if(j.accessibility===0){if(j.aliasesToMakeVisible)if(!f)f=j.aliasesToMakeVisible;else for(const ot of j.aliasesToMakeVisible)Tf(f,ot)}else{const ot=r(j);if(ot)return ot.typeName?e.addDiagnostic(Fr(j.errorNode||ot.errorNode,ot.diagnosticMessage,bc(ot.typeName),j.errorSymbolName,j.errorModuleName)):e.addDiagnostic(Fr(j.errorNode||ot.errorNode,ot.diagnosticMessage,j.errorSymbolName,j.errorModuleName)),!0}return!1}function Ie(j){o||(I||(I=[])).push(j)}function de(j,ot,Dt){if(j.flags&262144)return!1;const Ye=he(G.isSymbolAccessible(j,ot,Dt,!0));return Q(G.getTypeReferenceDirectivesForSymbol(j,Dt)),Ye}function ie(j){(W||U)&&e.addDiagnostic(Fr(W||U,m.Property_0_of_exported_class_expression_may_not_be_private_or_protected,j))}function ge(){return W?ks(W):U&&Oo(U)?ks(Oo(U)):U&&zl(U)?U.isExportEquals?"export=":"default":"(Missing)"}function Ce(){(W||U)&&e.addDiagnostic(Fr(W||U,m.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ge(),"unique symbol"))}function qe(){(W||U)&&e.addDiagnostic(Fr(W||U,m.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,ge()))}function Se(){(W||U)&&e.addDiagnostic(Fr(W||U,m.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ge(),"this"))}function Le(j){(W||U)&&e.addDiagnostic(Fr(W||U,m.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,ge(),j))}function Ne(){(W||U)&&e.addDiagnostic(Fr(W||U,m.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Oe(j,ot,Dt){var Ye;const _t=(Ye=ot.declarations)==null?void 0:Ye.find(gn=>Jn(gn)===j),Gt=Vn(Dt.declarations,gn=>Jn(gn)!==j);if(_t&&Gt)for(const gn of Gt)e.addDiagnostic(Fa(Fr(gn,m.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Fr(_t,m.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function At(j){(W||U)&&e.addDiagnostic(Fr(W||U,m.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,j))}function be(j,ot){const Dt=r;r=_t=>_t.errorNode&&TW(_t.errorNode)?Yv(_t.errorNode)(_t):{diagnosticMessage:_t.errorModuleName?m.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:m.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:_t.errorNode||j};const Ye=G.getDeclarationStatementsForSourceFile(j,nT,C,ot);return r=Dt,Ye}function He(j){if(j.kind===312&&j.isDeclarationFile)return j;if(j.kind===313){o=!0,ee=new Map,V=new Map;let We=!1;const Lt=R.createBundle(Wt(j.sourceFiles,J=>{if(J.isDeclarationFile)return;if(We=We||J.hasNoDefaultLib,X=J,p=J,f=void 0,A=!1,b=new Map,r=t,l=!1,u=!1,it(J,ee),Ft(J,V),Bp(J)||im(J)){s=!1,i=!1;const je=pd(J)?R.createNodeArray(be(J,!0)):Un(J.statements,si,$i);return R.updateSourceFile(J,[R.createModuleDeclaration([R.createModifier(138)],R.createStringLiteral(O3(e.getEmitHost(),J)),R.createModuleBlock(ut(R.createNodeArray(nt(je)),J.statements)))],!0,[],[],!1,[])}i=!0;const fe=pd(J)?R.createNodeArray(be(J)):Un(J.statements,si,$i);return R.updateSourceFile(J,nt(fe),!0,[],[],!1,[])}),Vi(j.prepends,J=>{if(J.kind===315){const fe=AH(J,"dts",ye);return We=We||!!fe.hasNoDefaultLib,it(fe,ee),Q(Wt(fe.typeReferenceDirectives,je=>[je.fileName,je.resolutionMode])),Ft(fe,V),fe}return J}));Lt.syntheticFileReferences=[],Lt.syntheticTypeReferences=hn(),Lt.syntheticLibReferences=gn(),Lt.hasNoDefaultLib=We;const L=ii(wu(sP(j,M,!0).declarationFilePath)),me=q(Lt.syntheticFileReferences,L);return ee.forEach(me),Lt}i=!0,l=!1,u=!1,p=j,X=j,r=t,o=!1,s=!1,A=!1,f=void 0,b=new Map,v=void 0,ee=it(X,new Map),V=Ft(X,new Map);const ot=[],Dt=ii(wu(sP(j,M,!0).declarationFilePath)),Ye=q(ot,Dt);let _t;if(pd(X))_t=R.createNodeArray(be(j)),ee.forEach(Ye),se=Vn(_t,TS);else{const We=Un(j.statements,si,$i);_t=ut(R.createNodeArray(nt(We)),j.statements),ee.forEach(Ye),se=Vn(_t,TS),mc(j)&&(!s||l&&!u)&&(_t=ut(R.createNodeArray([..._t,_w(R)]),_t))}const Gt=R.updateSourceFile(j,_t,!0,ot,hn(),j.hasNoDefaultLib,gn());return Gt.exportedModulesFromDeclarationEmit=I,Gt;function gn(){return Go(V.keys(),We=>({fileName:We,pos:-1,end:-1}))}function hn(){return v?Vi(Go(v.keys()),pn):[]}function pn([We,Lt]){if(se){for(const L of se)if(au(L)&&Rh(L.moduleReference)){const me=L.moduleReference.expression;if(hs(me)&&me.text===We)return}else if(Fc(L)&&La(L.moduleSpecifier)&&L.moduleSpecifier.text===We)return}return{fileName:We,pos:-1,end:-1,...Lt?{resolutionMode:Lt}:void 0}}function q(We,Lt){return L=>{if(I!=null&&I.includes(L.symbol))return;let me;if(L.isDeclarationFile)me=L.fileName;else{if(o&&Mn(j.sourceFiles,L))return;const J=sP(L,M,!0);me=J.declarationFilePath||J.jsFilePath||L.fileName}if(me){const J=iW(re,X,To(Lt,M.getCurrentDirectory()),To(me,M.getCurrentDirectory()),M);if(!Fp(J)){Q([[J,void 0]]);return}let fe=MA(Lt,me,M.getCurrentDirectory(),M.getCanonicalFileName,!1);if(ho(fe,"./")&&PA(fe)&&(fe=fe.substring(2)),ho(fe,"node_modules/")||L0(fe))return;We.push({pos:-1,end:-1,fileName:fe})}}}}function it(j,ot){return _e||!KS(j)&&pd(j)||Ve(j.referencedFiles,Dt=>{const Ye=M.getSourceFileFromReference(j,Dt);Ye&&ot.set(zu(Ye),Ye)}),ot}function Ft(j,ot){return Ve(j.libReferenceDirectives,Dt=>{M.getLibFileFromReference(Dt)&&ot.set(ph(Dt.fileName),!0)}),ot}function yt(j){if(j.kind===80)return j;return j.kind===207?R.updateArrayBindingPattern(j,Un(j.elements,ot,V6)):R.updateObjectBindingPattern(j,Un(j.elements,ot,os));function ot(Dt){return Dt.kind===232?Dt:(Dt.propertyName&&ss(Dt.propertyName)&&Jl(Dt.propertyName.expression)&&Ui(Dt.propertyName.expression,p),R.updateBindingElement(Dt,Dt.dotDotDotToken,Dt.propertyName,yt(Dt.name),It(Dt)?Dt.initializer:void 0))}}function Ze(j,ot,Dt){let Ye;A||(Ye=r,r=Yv(j));const _t=R.updateParameterDeclaration(j,xHe(R,j,ot),j.dotDotDotToken,yt(j.name),G.isOptionalParameter(j)?j.questionToken||R.createToken(58):void 0,Yt(j,Dt||j.type,!0),on(j));return A||(r=Ye),_t}function It(j){return RHe(j)&&G.isLiteralConstDeclaration(Lo(j))}function on(j){if(It(j))return G.createLiteralConstValue(Lo(j),C)}function Yt(j,ot,Dt){if(!Dt&&bp(j,2)||It(j))return;const Ye=j.kind===169&&(G.isRequiredInitializedParameter(j)||G.isOptionalUninitializedParameterProperty(j));if(ot&&!Ye)return rt(ot,Bt,Xi);if(!Lo(j))return ot?rt(ot,Bt,Xi):R.createKeywordTypeNode(133);if(j.kind===178)return R.createKeywordTypeNode(133);W=j.name;let _t;if(A||(_t=r,r=Yv(j)),j.kind===260||j.kind===208)return Gt(G.createTypeOfDeclaration(j,p,nT,C));if(j.kind===169||j.kind===172||j.kind===171)return Sp(j)||!j.initializer?Gt(G.createTypeOfDeclaration(j,p,nT,C,Ye)):Gt(G.createTypeOfDeclaration(j,p,nT,C,Ye)||G.createTypeOfExpression(j.initializer,p,nT,C));return Gt(G.createReturnTypeOfSignatureDeclaration(j,p,nT,C));function Gt(gn){return W=void 0,A||(r=_t),gn||R.createKeywordTypeNode(133)}}function Nn(j){switch(j=Lo(j),j.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!G.isDeclarationVisible(j);case 260:return!yn(j);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Xn(j){var ot;if(j.body)return!0;const Dt=(ot=j.symbol.declarations)==null?void 0:ot.filter(Ye=>Dc(Ye)&&!Ye.body);return!Dt||Dt.indexOf(j)===Dt.length-1}function yn(j){return Kc(j)?!1:na(j.name)?St(j.name.elements,yn):G.isDeclarationVisible(j)}function tn(j,ot,Dt){if(bp(j,2))return R.createNodeArray();const Ye=Wt(ot,_t=>Ze(_t,Dt));return Ye?R.createNodeArray(Ye,ot.hasTrailingComma):R.createNodeArray()}function en(j,ot){let Dt;if(!ot){const Ye=J1(j);Ye&&(Dt=[Ze(Ye)])}if(Tp(j)){let Ye;if(!ot){const _t=YN(j);if(_t){const Gt=Fe(j,G.getAllAccessorDeclarations(j));Ye=Ze(_t,void 0,Gt)}}Ye||(Ye=R.createParameterDeclaration(void 0,void 0,"value")),Dt=Rn(Dt,Ye)}return R.createNodeArray(Dt||et)}function gi(j,ot){return bp(j,2)?void 0:Un(ot,Bt,El)}function bo(j){return io(j)||Lm(j)||nc(j)||Nc(j)||gd(j)||ta(j)||nE(j)||Q2(j)}function Ui(j,ot){const Dt=G.isEntityNameVisible(j,ot);he(Dt),Q(G.getTypeReferenceDirectivesForEntityName(j))}function Co(j,ot){return zp(j)&&zp(ot)&&(j.jsDoc=ot.jsDoc),fc(j,w_(ot))}function tr(j,ot){if(!!ot){if(s=s||j.kind!==267&&j.kind!==205,hs(ot))if(o){const Dt=_oe(e.getEmitHost(),G,j);if(Dt)return R.createStringLiteral(Dt)}else{const Dt=G.getSymbolOfExternalModuleSpecifier(ot);Dt&&(I||(I=[])).push(Dt)}return ot}}function Ci(j){if(!!G.isDeclarationVisible(j))if(j.moduleReference.kind===283){const ot=FN(j);return R.updateImportEqualsDeclaration(j,j.modifiers,j.isTypeOnly,j.name,R.updateExternalModuleReference(j.moduleReference,tr(j,ot)))}else{const ot=r;return r=Yv(j),Ui(j.moduleReference,p),r=ot,j}}function Nr(j){if(!j.importClause)return R.updateImportDeclaration(j,j.modifiers,j.importClause,tr(j,j.moduleSpecifier),Kt(j.attributes));const ot=j.importClause&&j.importClause.name&&G.isDeclarationVisible(j.importClause)?j.importClause.name:void 0;if(!j.importClause.namedBindings)return ot&&R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,ot,void 0),tr(j,j.moduleSpecifier),Kt(j.attributes));if(j.importClause.namedBindings.kind===274){const Ye=G.isDeclarationVisible(j.importClause.namedBindings)?j.importClause.namedBindings:void 0;return ot||Ye?R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,ot,Ye),tr(j,j.moduleSpecifier),Kt(j.attributes)):void 0}const Dt=Vi(j.importClause.namedBindings.elements,Ye=>G.isDeclarationVisible(Ye)?Ye:void 0);if(Dt&&Dt.length||ot)return R.updateImportDeclaration(j,j.modifiers,R.updateImportClause(j.importClause,j.importClause.isTypeOnly,ot,Dt&&Dt.length?R.updateNamedImports(j.importClause.namedBindings,Dt):void 0),tr(j,j.moduleSpecifier),Kt(j.attributes));if(G.isImportRequiredByAugmentation(j))return R.updateImportDeclaration(j,j.modifiers,void 0,tr(j,j.moduleSpecifier),Kt(j.attributes))}function Kt(j){const ot=ER(j);return j&&ot!==void 0?j:void 0}function nt(j){for(;Pe(f);){const Dt=f.shift();if(!o3(Dt))return N.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${N.formatSyntaxKind(Dt.kind)}`);const Ye=i;i=Dt.parent&&io(Dt.parent)&&!(mc(Dt.parent)&&o);const _t=Po(Dt);i=Ye,b.set(zu(Dt),_t)}return Un(j,ot,$i);function ot(Dt){if(o3(Dt)){const Ye=zu(Dt);if(b.has(Ye)){const _t=b.get(Ye);return b.delete(Ye),_t&&((Do(_t)?St(_t,j6):j6(_t))&&(l=!0),io(Dt.parent)&&(Do(_t)?St(_t,wL):wL(_t))&&(s=!0)),_t}}return Dt}}function Bt(j){if(Je(j)||Yu(j)&&(Nn(j)||Gy(j)&&!G.isLateBound(Lo(j)))||ta(j)&&G.isImplementationOfOverload(j)||ise(j))return;let ot;bo(j)&&(ot=p,p=j);const Dt=r,Ye=TW(j),_t=A;let Gt=(j.kind===187||j.kind===200)&&j.parent.kind!==265;if((Ql(j)||Th(j))&&bp(j,2))return j.symbol&&j.symbol.declarations&&j.symbol.declarations[0]!==j?void 0:gn(R.createPropertyDeclaration(Pt(j),j.name,void 0,void 0,void 0));if(Ye&&!A&&(r=Yv(j)),fI(j)&&Ui(j.exprName,p),Gt&&(A=!0),NHe(j))switch(j.kind){case 233:{(ep(j.expression)||Jl(j.expression))&&Ui(j.expression,p);const hn=xn(j,Bt,e);return gn(R.updateExpressionWithTypeArguments(hn,hn.expression,hn.typeArguments))}case 183:{Ui(j.typeName,p);const hn=xn(j,Bt,e);return gn(R.updateTypeReferenceNode(hn,hn.typeName,hn.typeArguments))}case 180:return gn(R.updateConstructSignature(j,gi(j,j.typeParameters),tn(j,j.parameters),Yt(j,j.type)));case 176:{const hn=R.createConstructorDeclaration(Pt(j),tn(j,j.parameters,0),void 0);return gn(hn)}case 174:{if(Qi(j.name))return gn(void 0);const hn=R.createMethodDeclaration(Pt(j),void 0,j.name,j.questionToken,gi(j,j.typeParameters),tn(j,j.parameters),Yt(j,j.type),void 0);return gn(hn)}case 177:{if(Qi(j.name))return gn(void 0);const hn=Fe(j,G.getAllAccessorDeclarations(j));return gn(R.updateGetAccessorDeclaration(j,Pt(j),j.name,en(j,bp(j,2)),Yt(j,hn),void 0))}case 178:return Qi(j.name)?gn(void 0):gn(R.updateSetAccessorDeclaration(j,Pt(j),j.name,en(j,bp(j,2)),void 0));case 172:return Qi(j.name)?gn(void 0):gn(R.updatePropertyDeclaration(j,Pt(j),j.name,j.questionToken,Yt(j,j.type),on(j)));case 171:return Qi(j.name)?gn(void 0):gn(R.updatePropertySignature(j,Pt(j),j.name,j.questionToken,Yt(j,j.type)));case 173:return Qi(j.name)?gn(void 0):gn(R.updateMethodSignature(j,Pt(j),j.name,j.questionToken,gi(j,j.typeParameters),tn(j,j.parameters),Yt(j,j.type)));case 179:return gn(R.updateCallSignature(j,gi(j,j.typeParameters),tn(j,j.parameters),Yt(j,j.type)));case 181:return gn(R.updateIndexSignature(j,Pt(j),tn(j,j.parameters),rt(j.type,Bt,Xi)||R.createKeywordTypeNode(133)));case 260:return na(j.name)?Ba(j.name):(Gt=!0,A=!0,gn(R.updateVariableDeclaration(j,j.name,void 0,Yt(j,j.type),on(j))));case 168:return Dn(j)&&(j.default||j.constraint)?gn(R.updateTypeParameterDeclaration(j,j.modifiers,j.name,void 0,void 0)):gn(xn(j,Bt,e));case 194:{const hn=rt(j.checkType,Bt,Xi),pn=rt(j.extendsType,Bt,Xi),q=p;p=j.trueType;const We=rt(j.trueType,Bt,Xi);p=q;const Lt=rt(j.falseType,Bt,Xi);return N.assert(hn),N.assert(pn),N.assert(We),N.assert(Lt),gn(R.updateConditionalTypeNode(j,hn,pn,We,Lt))}case 184:return gn(R.updateFunctionTypeNode(j,Un(j.typeParameters,Bt,El),tn(j,j.parameters),N.checkDefined(rt(j.type,Bt,Xi))));case 185:return gn(R.updateConstructorTypeNode(j,Pt(j),Un(j.typeParameters,Bt,El),tn(j,j.parameters),N.checkDefined(rt(j.type,Bt,Xi))));case 205:return By(j)?(oe(j),gn(R.updateImportTypeNode(j,R.updateLiteralTypeNode(j.argument,tr(j,j.argument.literal)),j.attributes,j.qualifier,Un(j.typeArguments,Bt,Xi),j.isTypeOf))):gn(j);default:N.assertNever(j,`Attempted to process unhandled node kind: ${N.formatSyntaxKind(j.kind)}`)}return mI(j)&&Rs(X,j.pos).line===Rs(X,j.end).line&&hr(j,1),gn(xn(j,Bt,e));function gn(hn){return hn&&Ye&&Gy(j)&&On(j),bo(j)&&(p=ot),Ye&&!A&&(r=Dt),Gt&&(A=_t),hn===j?hn:hn&&kr(Co(hn,j),j)}}function Dn(j){return j.parent.kind===174&&bp(j.parent,2)}function si(j){if(!DHe(j)||Je(j))return;switch(j.kind){case 278:return io(j.parent)&&(s=!0),u=!0,oe(j),R.updateExportDeclaration(j,j.modifiers,j.isTypeOnly,j.exportClause,tr(j,j.moduleSpecifier),Kt(j.attributes));case 277:{if(io(j.parent)&&(s=!0),u=!0,j.expression.kind===80)return j;{const Dt=R.createUniqueName("_default",16);r=()=>({diagnosticMessage:m.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:j}),U=j;const Ye=R.createVariableDeclaration(Dt,void 0,G.createTypeOfExpression(j.expression,j,nT,C),void 0);U=void 0;const _t=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([Ye],2));return Co(_t,j),Qk(j),[_t,R.updateExportAssignment(j,j.modifiers,Dt)]}}}const ot=Po(j);return b.set(zu(j),ot),j}function yi(j){if(au(j)||bp(j,2048)||!km(j))return j;const ot=R.createModifiersFromModifierFlags(fd(j)&131039);return R.replaceModifiers(j,ot)}function oo(j,ot,Dt,Ye){const _t=R.updateModuleDeclaration(j,ot,Dt,Ye);if(Ou(_t)||_t.flags&32)return _t;const Gt=R.createModuleDeclaration(_t.modifiers,_t.name,_t.body,_t.flags|32);return kr(Gt,_t),ut(Gt,_t),Gt}function Po(j){if(f)for(;qx(f,j););if(Je(j))return;switch(j.kind){case 271:{const gn=Ci(j);return gn&&oe(j),gn}case 272:{const gn=Nr(j);return gn&&oe(j),gn}}if(Yu(j)&&Nn(j)||ta(j)&&G.isImplementationOfOverload(j))return;let ot;bo(j)&&(ot=p,p=j);const Dt=TW(j),Ye=r;Dt&&(r=Yv(j));const _t=i;switch(j.kind){case 265:{i=!1;const gn=Gt(R.updateTypeAliasDeclaration(j,Pt(j),j.name,Un(j.typeParameters,Bt,El),N.checkDefined(rt(j.type,Bt,Xi))));return i=_t,gn}case 264:return Gt(R.updateInterfaceDeclaration(j,Pt(j),j.name,gi(j,j.typeParameters),dt(j.heritageClauses),Un(j.members,Bt,yS)));case 262:{const gn=Gt(R.updateFunctionDeclaration(j,Pt(j),void 0,j.name,gi(j,j.typeParameters),tn(j,j.parameters),Yt(j,j.type),void 0));if(gn&&G.isExpandoFunctionDeclaration(j)&&Xn(j)){const hn=G.getPropertiesOfContainerFunction(j),pn=Dh.createModuleDeclaration(void 0,gn.name||R.createIdentifier("_default"),R.createModuleBlock([]),32);Qa(pn,p),pn.locals=pa(hn),pn.symbol=hn[0].parent;const q=[];let We=Vi(hn,je=>{if(!E7(je.valueDeclaration))return;const ke=Ki(je.escapedName);if(!tf(ke,99))return;r=Yv(je.valueDeclaration);const Tt=G.createTypeOfDeclaration(je.valueDeclaration,pn,nT,C);r=Ye;const kt=qA(ke),nn=kt?R.getGeneratedNameForNode(je.valueDeclaration):R.createIdentifier(ke);kt&&q.push([nn,ke]);const En=R.createVariableDeclaration(nn,void 0,Tt,void 0);return R.createVariableStatement(kt?void 0:[R.createToken(95)],R.createVariableDeclarationList([En]))});q.length?We.push(R.createExportDeclaration(void 0,!1,R.createNamedExports(Wt(q,([je,ke])=>R.createExportSpecifier(!1,je,ke))))):We=Vi(We,je=>R.replaceModifiers(je,0));const Lt=R.createModuleDeclaration(Pt(j),j.name,R.createModuleBlock(We),32);if(!bp(gn,2048))return[gn,Lt];const L=R.createModifiersFromModifierFlags(fd(gn)&-2081|128),me=R.updateFunctionDeclaration(gn,L,void 0,gn.name,gn.typeParameters,gn.parameters,gn.type,void 0),J=R.updateModuleDeclaration(Lt,L,Lt.name,Lt.body),fe=R.createExportAssignment(void 0,!1,Lt.name);return io(j.parent)&&(s=!0),u=!0,[me,J,fe]}else return gn}case 267:{i=!1;const gn=j.body;if(gn&&gn.kind===268){const hn=l,pn=u;u=!1,l=!1;const q=Un(gn.statements,si,$i);let We=nt(q);j.flags&33554432&&(l=!1),!R_(j)&&!pt(We)&&!u&&(l?We=R.createNodeArray([...We,_w(R)]):We=Un(We,yi,$i));const Lt=R.updateModuleBlock(gn,We);i=_t,l=hn,u=pn;const L=Pt(j);return Gt(oo(j,L,F1(j)?tr(j,j.name):j.name,Lt))}else{i=_t;const hn=Pt(j);i=!1,rt(gn,si);const pn=zu(gn),q=b.get(pn);return b.delete(pn),Gt(oo(j,hn,j.name,q))}}case 263:{W=j.name,U=j;const gn=R.createNodeArray(Pt(j)),hn=gi(j,j.typeParameters),pn=sg(j);let q;if(pn){const fe=r;q=$M(qi(pn.parameters,je=>{if(!Qr(je,31)||Je(je))return;if(r=Yv(je),je.name.kind===80)return Co(R.createPropertyDeclaration(Pt(je),je.name,je.questionToken,Yt(je,je.type),on(je)),je);return ke(je.name);function ke(Tt){let kt;for(const nn of Tt.elements)Kc(nn)||(na(nn.name)&&(kt=Ro(kt,ke(nn.name))),kt=kt||[],kt.push(R.createPropertyDeclaration(Pt(je),nn.name,void 0,Yt(nn,void 0),void 0)));return kt}})),r=fe}const Lt=St(j.members,fe=>!!fe.name&&Qi(fe.name))?[R.createPropertyDeclaration(void 0,R.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,L=Ro(Ro(Lt,q),Un(j.members,Bt,nu)),me=R.createNodeArray(L),J=D_(j);if(J&&!Jl(J.expression)&&J.expression.kind!==106){const fe=j.name?Ki(j.name.escapedText):"default",je=R.createUniqueName(`${fe}_base`,16);r=()=>({diagnosticMessage:m.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:J,typeName:j.name});const ke=R.createVariableDeclaration(je,void 0,G.createTypeOfExpression(J.expression,j,nT,C),void 0),Tt=R.createVariableStatement(i?[R.createModifier(138)]:[],R.createVariableDeclarationList([ke],2)),kt=R.createNodeArray(Wt(j.heritageClauses,nn=>{if(nn.token===96){const En=r;r=Yv(nn.types[0]);const or=R.updateHeritageClause(nn,Wt(nn.types,pr=>R.updateExpressionWithTypeArguments(pr,je,Un(pr.typeArguments,Bt,Xi))));return r=En,or}return R.updateHeritageClause(nn,Un(R.createNodeArray(Vn(nn.types,En=>Jl(En.expression)||En.expression.kind===106)),Bt,Kv))}));return[Tt,Gt(R.updateClassDeclaration(j,gn,j.name,hn,kt,me))]}else{const fe=dt(j.heritageClauses);return Gt(R.updateClassDeclaration(j,gn,j.name,hn,fe,me))}}case 243:return Gt(_a(j));case 266:return Gt(R.updateEnumDeclaration(j,R.createNodeArray(Pt(j)),j.name,R.createNodeArray(Vi(j.members,gn=>{if(Je(gn))return;const hn=G.getConstantValue(gn),pn=hn===void 0?void 0:typeof hn=="string"?R.createStringLiteral(hn):hn<0?R.createPrefixUnaryExpression(41,R.createNumericLiteral(-hn)):R.createNumericLiteral(hn);return Co(R.updateEnumMember(gn,gn.name,pn),gn)}))))}return N.assertNever(j,`Unhandled top-level node in declaration emit: ${N.formatSyntaxKind(j.kind)}`);function Gt(gn){return bo(j)&&(p=ot),Dt&&(r=Ye),j.kind===267&&(i=_t),gn===j?gn:(U=void 0,W=void 0,gn&&kr(Co(gn,j),j))}}function _a(j){if(!Ve(j.declarationList.declarations,yn))return;const ot=Un(j.declarationList.declarations,Bt,Wi);if(!Pe(ot))return;const Dt=R.createNodeArray(Pt(j));let Ye;return KL(j.declarationList)||JL(j.declarationList)?(Ye=R.createVariableDeclarationList(ot,2),kr(Ye,j.declarationList),ut(Ye,j.declarationList),fc(Ye,j.declarationList)):Ye=R.updateVariableDeclarationList(j.declarationList,ot),R.updateVariableStatement(j,Dt,Ye)}function Ba(j){return Oa(Vi(j.elements,ot=>Tn(ot)))}function Tn(j){if(j.kind!==232&&j.name)return yn(j)?na(j.name)?Ba(j.name):R.createVariableDeclaration(j.name,void 0,Yt(j,void 0),void 0):void 0}function On(j){let ot;A||(ot=r,r=Tce(j)),W=j.name,N.assert(G.isLateBound(Lo(j)));const Ye=j.name.expression;Ui(Ye,p),A||(r=ot),W=void 0}function Je(j){return!!ye&&!!j&&Ij(j,X)}function mt(j){return zl(j)||rc(j)}function pt(j){return St(j,mt)}function Pt(j){const ot=fd(j),Dt=le(j);return ot===Dt?Kw(j.modifiers,Ye=>ni(Ye,Ra),Ra):R.createModifiersFromModifierFlags(Dt)}function le(j){let ot=130030,Dt=i&&!IHe(j)?128:0;const Ye=j.parent.kind===312;return(!Ye||o&&Ye&&mc(j.parent))&&(ot^=128,Dt=0),f2e(j,ot,Dt)}function Fe(j,ot){let Dt=Ice(j);return!Dt&&j!==ot.firstAccessor&&(Dt=Ice(ot.firstAccessor),r=Yv(ot.firstAccessor)),!Dt&&ot.secondAccessor&&j!==ot.secondAccessor&&(Dt=Ice(ot.secondAccessor),r=Yv(ot.secondAccessor)),Dt}function dt(j){return R.createNodeArray(Vn(Wt(j,ot=>R.updateHeritageClause(ot,Un(R.createNodeArray(Vn(ot.types,Dt=>Jl(Dt.expression)||ot.token===96&&Dt.expression.kind===106)),Bt,Kv))),ot=>ot.types&&!!ot.types.length))}}function IHe(e){return e.kind===264}function xHe(e,t,r,i){return e.createModifiersFromModifierFlags(f2e(t,r,i))}function f2e(e,t=131070,r=0){let i=fd(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function Ice(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function RHe(e){switch(e.kind){case 172:case 171:return!bp(e,2);case 169:case 260:return!0}return!1}function DHe(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function NHe(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var nT,CHe=S({"src/compiler/transformers/declarations.ts"(){ia(),Cle(),nT=531469}});function PHe(e){switch(e){case 99:case 7:case 6:case 5:case 200:return RJ;case 4:return Ece;case 100:case 199:return Sce;default:return xJ}}function NJ(e,t,r){return{scriptTransformers:MHe(e,t,r),declarationTransformers:LHe(t)}}function MHe(e,t,r){if(r)return et;const i=ps(e),o=Wu(e),s=TC(e),l=[];return Hr(l,t&&Wt(t.before,_2e)),l.push(nce),e.experimentalDecorators&&l.push(oce),o7(e)&&l.push(hce),i<99&&l.push(pce),!e.experimentalDecorators&&(i<99||!s)&&l.push(ace),l.push(rce),i<8&&l.push(dce),i<7&&l.push(uce),i<6&&l.push(cce),i<5&&l.push(lce),i<4&&l.push(sce),i<3&&l.push(gce),i<2&&(l.push(vce),l.push(bce)),l.push(PHe(o)),i<1&&l.push(yce),Hr(l,t&&Wt(t.after,_2e)),l}function LHe(e){const t=[];return t.push(DJ),Hr(t,e&&Wt(e.afterDeclarations,wHe)),t}function kHe(e){return t=>qH(t)?e.transformBundle(t):e.transformSourceFile(t)}function m2e(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):kHe(i)}}function _2e(e){return m2e(e,wm)}function wHe(e){return m2e(e,(t,r)=>r)}function iP(e,t){return t}function Qw(e,t,r){r(e,t)}function Zw(e,t,r,i,o,s,l){var u,p;const v=new Array(363);let f,b,A,I=0,R=[],M=[],C=[],W=[],U=0,X=!1,ee=[],V=0,se,G,re=iP,_e=Qw,ye=0;const Q=[],Y={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Td(()=>Uae(Y)),startLexicalEnvironment:be,suspendLexicalEnvironment:He,resumeLexicalEnvironment:it,endLexicalEnvironment:Ft,setLexicalEnvironmentFlags:yt,getLexicalEnvironmentFlags:Ze,hoistVariableDeclaration:Ne,hoistFunctionDeclaration:Oe,addInitializationStatement:At,startBlockScope:It,endBlockScope:on,addBlockScopedVariable:Yt,requestEmitHelper:Nn,readEmitHelpers:Xn,enableSubstitution:ie,enableEmitNotification:qe,isSubstitutionEnabled:ge,isEmitNotificationEnabled:Se,get onSubstituteNode(){return re},set onSubstituteNode(tn){N.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),N.assert(tn!==void 0,"Value must not be 'undefined'"),re=tn},get onEmitNode(){return _e},set onEmitNode(tn){N.assert(ye<1,"Cannot modify transformation hooks after initialization has completed."),N.assert(tn!==void 0,"Value must not be 'undefined'"),_e=tn},addDiagnostic(tn){Q.push(tn)}};for(const tn of o)DH(Jn(Lo(tn)));sl("beforeTransform");const oe=s.map(tn=>tn(Y)),he=tn=>{for(const en of oe)tn=en(tn);return tn};ye=1;const Ie=[];for(const tn of o)(u=ur)==null||u.push(ur.Phase.Emit,"transformNodes",tn.kind===312?{path:tn.path}:{kind:tn.kind,pos:tn.pos,end:tn.end}),Ie.push((l?he:de)(tn)),(p=ur)==null||p.pop();return ye=2,sl("afterTransform"),ef("transformTime","beforeTransform","afterTransform"),{transformed:Ie,substituteNode:Ce,emitNodeWithNotification:Le,isEmitNotificationEnabled:Se,dispose:yn,diagnostics:Q};function de(tn){return tn&&(!io(tn)||!tn.isDeclarationFile)?he(tn):tn}function ie(tn){N.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),v[tn]|=1}function ge(tn){return(v[tn.kind]&1)!==0&&(Ka(tn)&8)===0}function Ce(tn,en){return N.assert(ye<3,"Cannot substitute a node after the result is disposed."),en&&ge(en)&&re(tn,en)||en}function qe(tn){N.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),v[tn]|=2}function Se(tn){return(v[tn.kind]&2)!==0||(Ka(tn)&4)!==0}function Le(tn,en,gi){N.assert(ye<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),en&&(Se(en)?_e(tn,en,gi):gi(tn,en))}function Ne(tn){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed.");const en=hr(r.createVariableDeclaration(tn),128);f?f.push(en):f=[en],I&1&&(I|=2)}function Oe(tn){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),hr(tn,2097152),b?b.push(tn):b=[tn]}function At(tn){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),hr(tn,2097152),A?A.push(tn):A=[tn]}function be(){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(!X,"Lexical environment is suspended."),R[U]=f,M[U]=b,C[U]=A,W[U]=I,U++,f=void 0,b=void 0,A=void 0,I=0}function He(){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(!X,"Lexical environment is already suspended."),X=!0}function it(){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(X,"Lexical environment is not suspended."),X=!1}function Ft(){N.assert(ye>0,"Cannot modify the lexical environment during initialization."),N.assert(ye<2,"Cannot modify the lexical environment after transformation has completed."),N.assert(!X,"Lexical environment is suspended.");let tn;if(f||b||A){if(b&&(tn=[...b]),f){const en=r.createVariableStatement(void 0,r.createVariableDeclarationList(f));hr(en,2097152),tn?tn.push(en):tn=[en]}A&&(tn?tn=[...tn,...A]:tn=[...A])}return U--,f=R[U],b=M[U],A=C[U],I=W[U],U===0&&(R=[],M=[],C=[],W=[]),tn}function yt(tn,en){I=en?I|tn:I&~tn}function Ze(){return I}function It(){N.assert(ye>0,"Cannot start a block scope during initialization."),N.assert(ye<2,"Cannot start a block scope after transformation has completed."),ee[V]=se,V++,se=void 0}function on(){N.assert(ye>0,"Cannot end a block scope during initialization."),N.assert(ye<2,"Cannot end a block scope after transformation has completed.");const tn=St(se)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(se.map(en=>r.createVariableDeclaration(en)),1))]:void 0;return V--,se=ee[V],V===0&&(ee=[]),tn}function Yt(tn){N.assert(V>0,"Cannot add a block scoped variable outside of an iteration body."),(se||(se=[])).push(tn)}function Nn(tn){if(N.assert(ye>0,"Cannot modify the transformation context during initialization."),N.assert(ye<2,"Cannot modify the transformation context after transformation has completed."),N.assert(!tn.scoped,"Cannot request a scoped emit helper."),tn.dependencies)for(const en of tn.dependencies)Nn(en);G=Rn(G,tn)}function Xn(){N.assert(ye>0,"Cannot modify the transformation context during initialization."),N.assert(ye<2,"Cannot modify the transformation context after transformation has completed.");const tn=G;return G=void 0,tn}function yn(){if(ye<3){for(const tn of o)DH(Jn(Lo(tn)));f=void 0,R=void 0,b=void 0,M=void 0,re=void 0,_e=void 0,G=void 0,ye=3}}}var CJ,oP,OHe=S({"src/compiler/transformer.ts"(){ia(),fS(),CJ={scriptTransformers:et,declarationTransformers:et},oP={factory:O,getCompilerOptions:()=>({}),getEmitResolver:Ko,getEmitHost:Ko,getEmitHelperFactory:Ko,startLexicalEnvironment:is,resumeLexicalEnvironment:is,suspendLexicalEnvironment:is,endLexicalEnvironment:r0,setLexicalEnvironmentFlags:is,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:is,hoistFunctionDeclaration:is,addInitializationStatement:is,startBlockScope:is,endBlockScope:r0,addBlockScopedVariable:is,requestEmitHelper:is,readEmitHelpers:Ko,enableSubstitution:is,enableEmitNotification:is,isSubstitutionEnabled:Ko,isEmitNotificationEnabled:Ko,onSubstituteNode:iP,onEmitNode:Qw,addDiagnostic:is}}});function xce(e){return Nl(e,".tsbuildinfo")}function PJ(e,t,r,i=!1,o,s){const l=Do(r)?r:AU(e,r,i),u=e.getCompilerOptions();if(Bs(u)){const p=e.getPrependNodes();if(l.length||p.length){const v=O.createBundle(l,p),f=t(sP(v,e,i),v);if(f)return f}}else{if(!o)for(const p of l){const v=t(sP(p,e,i),p);if(v)return v}if(s){const p=$v(u);if(p)return t({buildInfoPath:p},void 0)}}}function $v(e){const t=e.configFilePath;if(!SC(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=Bs(e);let i;if(r)i=Id(r);else{if(!t)return;const o=Id(t);i=e.outDir?e.rootDir?Ny(e.outDir,Im(e.rootDir,o,!0)):$r(e.outDir,dc(o)):o}return i+".tsbuildinfo"}function aP(e,t){const r=Bs(e),i=e.emitDeclarationOnly?void 0:r,o=i&&h2e(i,e),s=t||Nf(e)?Id(r)+".d.ts":void 0,l=s&&Hk(e)?s+".map":void 0,u=$v(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:u}}function sP(e,t,r){const i=t.getCompilerOptions();if(e.kind===313)return aP(i,r);{const o=hoe(e.fileName,t,AW(e.fileName,i)),s=im(e),l=s&&kg(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||l?void 0:o,p=!u||im(e)?void 0:h2e(u,i),v=r||Nf(i)&&!s?goe(e.fileName,t):void 0,f=v&&Hk(i)?v+".map":void 0;return{jsFilePath:u,sourceMapFilePath:p,declarationFilePath:v,declarationMapPath:f,buildInfoPath:void 0}}}function h2e(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function AW(e,t){return Nl(e,".json")?".json":t.jsx===1&&Rc(e,[".jsx",".tsx"])?".jsx":Rc(e,[".mts",".mjs"])?".mjs":Rc(e,[".cts",".cjs"])?".cjs":".js"}function g2e(e,t,r,i){return r?Ny(r,Im(i(),e,t)):e}function lP(e,t,r,i=()=>bR(t,r)){return MJ(e,t.options,r,i)}function MJ(e,t,r,i){return S0(g2e(e,r,t.declarationDir||t.outDir,i),F3(e))}function v2e(e,t,r,i=()=>bR(t,r)){if(t.options.emitDeclarationOnly)return;const o=Nl(e,".json"),s=LJ(e,t.options,r,i);return!o||kg(e,s,N.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function LJ(e,t,r,i){return S0(g2e(e,r,t.outDir,i),AW(e,t))}function y2e(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||et}}function b2e(e,t){const{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:l}=aP(e.options,!1);t(r),t(i),t(o),t(s),t(l)}function E2e(e,t,r,i,o){if(Iu(t))return;const s=v2e(t,e,r,o);if(i(s),!Nl(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),Nf(e.options))){const l=lP(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function cP(e,t,r,i,o){let s;return e.rootDir?(s=To(e.rootDir,r),o==null||o(e.rootDir)):e.composite&&e.configFilePath?(s=ii(wu(e.configFilePath)),o==null||o(s)):s=Mce(t(),r,i),s&&s[s.length-1]!==cl&&(s+=cl),s}function bR({options:e,fileNames:t},r){return cP(e,()=>Vn(t,i=>!(e.noEmitForJsFiles&&Rc(i,J2))&&!Iu(i)),ii(wu(N.checkDefined(e.configFilePath))),ku(!r))}function IW(e,t){const{addOutput:r,getOutputs:i}=y2e();if(Bs(e.options))b2e(e,r);else{const o=Td(()=>bR(e,t));for(const s of e.fileNames)E2e(e,s,t,r,o);r($v(e.options))}return i()}function S2e(e,t,r){t=va(t),N.assert(Mn(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:o}=y2e();return Bs(e.options)?b2e(e,i):E2e(e,t,r,i),o()}function kJ(e,t){if(Bs(e.options)){const{jsFilePath:o,declarationFilePath:s}=aP(e.options,!1);return N.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}const r=Td(()=>bR(e,t));for(const o of e.fileNames){if(Iu(o))continue;const s=v2e(o,e,t,r);if(s)return s;if(!Nl(o,".json")&&Nf(e.options))return lP(o,e,t,r)}const i=$v(e.options);return i||N.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function xW(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,u){var p=t.getCompilerOptions(),v=p.sourceMap||p.inlineSourceMap||Hk(p)?[]:void 0,f=p.listEmittedFiles?[]:void 0,b=M2(),A=Uv(p),I=xk(A),{enter:R,exit:M}=GG("printTime","beforePrint","afterPrint"),C,W=!1;return R(),PJ(t,U,AU(t,r,u),u,l,!r),M(),{emitSkipped:W,diagnostics:b.getDiagnostics(),emittedFiles:f,sourceMaps:v};function U({jsFilePath:Y,sourceMapFilePath:oe,declarationFilePath:he,declarationMapPath:Ie,buildInfoPath:de},ie){var ge,Ce,qe,Se,Le,Ne;let Oe;de&&ie&&qH(ie)&&(Oe=ii(To(de,t.getCurrentDirectory())),C={commonSourceDirectory:At(t.getCommonSourceDirectory()),sourceFiles:ie.sourceFiles.map(be=>At(To(be.fileName,t.getCurrentDirectory())))}),(ge=ur)==null||ge.push(ur.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:Y}),ee(ie,Y,oe,At),(Ce=ur)==null||Ce.pop(),(qe=ur)==null||qe.push(ur.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:he}),V(ie,he,Ie,At),(Se=ur)==null||Se.pop(),(Le=ur)==null||Le.push(ur.Phase.Emit,"emitBuildInfo",{buildInfoPath:de}),X(C,de),(Ne=ur)==null||Ne.pop();function At(be){return P1(Im(Oe,be,t.getCanonicalFileName))}}function X(Y,oe){if(!oe||r||W)return;if(t.isEmitBlocked(oe)){W=!0;return}const he=t.getBuildInfo(Y)||eO(void 0,Y);KN(t,b,oe,Rce(he),!1,void 0,{buildInfo:he}),f==null||f.push(oe)}function ee(Y,oe,he,Ie){if(!Y||s||!oe)return;if(t.isEmitBlocked(oe)||p.noEmit){W=!0;return}const de=Zw(e,t,O,p,[Y],i,!1),ie={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:p.noEmitHelpers,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,inlineSources:p.inlineSources,extendedDiagnostics:p.extendedDiagnostics,writeBundleFileInfo:!!C,relativeToBuildInfo:Ie},ge=k0(ie,{hasGlobalName:e.hasGlobalName,onEmitNode:de.emitNodeWithNotification,isEmitNotificationEnabled:de.isEmitNotificationEnabled,substituteNode:de.substituteNode});N.assert(de.transformed.length===1,"Should only see one output from the transform"),G(oe,he,de,ge,p),de.dispose(),C&&(C.js=ge.bundleFileInfo),f&&(f.push(oe),he&&f.push(he))}function V(Y,oe,he,Ie){if(!Y||s===0)return;if(!oe){(s||p.emitDeclarationOnly)&&(W=!0);return}const de=io(Y)?[Y]:Y.sourceFiles,ie=u?de:Vn(de,$j),ge=Bs(p)?[O.createBundle(ie,io(Y)?void 0:Y.prepends)]:ie;s&&!Nf(p)&&ie.forEach(se);const Ce=Zw(e,t,O,p,ge,o,!1);if(Pe(Ce.diagnostics))for(const Se of Ce.diagnostics)b.add(Se);const qe=!!Ce.diagnostics&&!!Ce.diagnostics.length||!!t.isEmitBlocked(oe)||!!p.noEmit;if(W=W||qe,!qe||u){N.assert(Ce.transformed.length===1,"Should only see one output from the decl transform");const Se={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:!0,module:p.module,target:p.target,sourceMap:!u&&p.declarationMap,inlineSourceMap:p.inlineSourceMap,extendedDiagnostics:p.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!C,recordInternalSection:!!C,relativeToBuildInfo:Ie},Le=k0(Se,{hasGlobalName:e.hasGlobalName,onEmitNode:Ce.emitNodeWithNotification,isEmitNotificationEnabled:Ce.isEmitNotificationEnabled,substituteNode:Ce.substituteNode});G(oe,he,Ce,Le,{sourceMap:Se.sourceMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),f&&(f.push(oe),he&&f.push(he)),C&&(C.dts=Le.bundleFileInfo)}Ce.dispose()}function se(Y){if(zl(Y)){Y.expression.kind===80&&e.collectLinkedAliases(Y.expression,!0);return}else if($u(Y)){e.collectLinkedAliases(Y.propertyName||Y.name,!0);return}Uo(Y,se)}function G(Y,oe,he,Ie,de){const ie=he.transformed[0],ge=ie.kind===313?ie:void 0,Ce=ie.kind===312?ie:void 0,qe=ge?ge.sourceFiles:[Ce];let Se;re(de,ie)&&(Se=Wle(t,dc(wu(Y)),_e(de),ye(de,Y,Ce),de)),ge?Ie.writeBundle(ge,I,Se):Ie.writeFile(Ce,I,Se);let Le;if(Se){v&&v.push({inputSourceFileNames:Se.getSources(),sourceMap:Se.toJSON()});const Oe=Q(de,Se,Y,oe,Ce);if(Oe&&(I.isAtStartOfLine()||I.rawWrite(A),Le=I.getTextPos(),I.writeComment(`//# sourceMappingURL=${Oe}`)),oe){const At=Se.toString();KN(t,b,oe,At,!1,qe),Ie.bundleFileInfo&&(Ie.bundleFileInfo.mapHash=iT(At,t))}}else I.writeLine();const Ne=I.getText();KN(t,b,Y,Ne,!!p.emitBOM,qe,{sourceMapUrlPos:Le,diagnostics:he.diagnostics}),Ie.bundleFileInfo&&(Ie.bundleFileInfo.hash=iT(Ne,t)),I.clear()}function re(Y,oe){return(Y.sourceMap||Y.inlineSourceMap)&&(oe.kind!==312||!Nl(oe.fileName,".json"))}function _e(Y){const oe=wu(Y.sourceRoot||"");return oe&&Hc(oe)}function ye(Y,oe,he){if(Y.sourceRoot)return t.getCommonSourceDirectory();if(Y.mapRoot){let Ie=wu(Y.mapRoot);return he&&(Ie=ii(B3(he.fileName,t,Ie))),_h(Ie)===0&&(Ie=$r(t.getCommonSourceDirectory(),Ie)),Ie}return ii(va(oe))}function Q(Y,oe,he,Ie,de){if(Y.inlineSourceMap){const ge=oe.toString();return`data:application/json;base64,${Woe(bu,ge)}`}const ie=dc(wu(N.checkDefined(Ie)));if(Y.mapRoot){let ge=wu(Y.mapRoot);return de&&(ge=ii(B3(de.fileName,t,ge))),_h(ge)===0?(ge=$r(t.getCommonSourceDirectory(),ge),encodeURI(MA(ii(va(he)),$r(ge,ie),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI($r(ge,ie))}return encodeURI(ie)}}function eO(e,t){return{bundle:t,program:e,version:Ae}}function Rce(e){return JSON.stringify(e)}function RW(e,t){return kU(e,t)}function WHe(e,t,r){var i;const o=N.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&C1(o.sources.prologues,l=>l.file);return e.sourceFiles.map((l,u)=>{var A,I;const p=s==null?void 0:s.get(u),v=p==null?void 0:p.directives.map(R=>{const M=ut(O.createStringLiteral(R.expression.text),R.expression),C=ut(O.createExpressionStatement(M),R);return Qa(M,C),C}),f=O.createToken(1),b=O.createSourceFile(v!=null?v:[],f,0);return b.fileName=Im(r.getCurrentDirectory(),To(l,t),!r.useCaseSensitiveFileNames()),b.text=(A=p==null?void 0:p.text)!=null?A:"",mC(b,0,(I=p==null?void 0:p.text.length)!=null?I:0),U2(b.statements,b),mC(f,b.end,0),Qa(f,b),b})}function Dce(e,t,r,i){var o,s;(o=ur)==null||o.push(ur.Phase.Emit,"emitUsingBuildInfo",{},!0),sl("beforeEmit");const l=FHe(e,t,r,i);return sl("afterEmit"),ef("Emit","beforeEmit","afterEmit"),(s=ur)==null||s.pop(),l}function FHe(e,t,r,i){const{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:u,declarationMapPath:p}=aP(e.options,!1),v=t.getBuildInfo(o,e.options.configFilePath);if(!v||!v.bundle||!v.bundle.js||u&&!v.bundle.dts)return o;const f=t.readFile(N.checkDefined(s));if(!f||iT(f,t)!==v.bundle.js.hash)return s;const b=l&&t.readFile(l);if(l&&!b||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&iT(b,t)!==v.bundle.js.mapHash)return l;const A=u&&t.readFile(u);if(u&&!A||u&&iT(A,t)!==v.bundle.dts.hash)return u;const I=p&&t.readFile(p);if(p&&!I||e.options.inlineSourceMap)return p||"inline sourcemap decoding";if(p&&iT(I,t)!==v.bundle.dts.mapHash)return p;const R=ii(To(o,t.getCurrentDirectory())),M=xH(s,f,l,b,u,A,p,I,o,v,!0),C=[],W=rK(e.projectReferences,r,se=>t.readFile(se),t),U=WHe(v.bundle,R,t);let X,ee;const V={getPrependNodes:Td(()=>[...W,M]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>To(v.bundle.commonSourceDirectory,R),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:r0,getSourceFileByPath:r0,getSourceFiles:()=>U,getLibFileFromReference:Ko,isSourceFileFromExternalLibrary:Ym,getResolvedProjectReferenceToRedirect:r0,getProjectReferenceRedirect:r0,isSourceOfProjectReferenceRedirect:Ym,writeFile:(se,G,re,_e,ye,Q)=>{switch(se){case s:if(f===G)return;break;case l:if(b===G)return;break;case o:break;case u:if(A===G)return;X=G,ee=Q;break;case p:if(I===G)return;break;default:N.fail(`Unexpected path: ${se}`)}C.push({name:se,text:G,writeByteOrderMark:re,data:Q})},isEmitBlocked:Ym,readFile:se=>t.readFile(se),fileExists:se=>t.fileExists(se),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:se=>{const G=v.program;G&&X!==void 0&&e.options.composite&&(G.outSignature=iT(X,t,ee));const{js:re,dts:_e,sourceFiles:ye}=v.bundle;return se.js.sources=re.sources,_e&&(se.dts.sources=_e.sources),se.sourceFiles=ye,eO(G,se)},getSourceFileFromReference:r0,redirectTargetsMap:Zp(),getFileIncludeReasons:Ko,createHash:aa(t,t.createHash)};return xW(DW,V,void 0,NJ(e.options,i)),C}function k0(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Qw,isEmitNotificationEnabled:o,substituteNode:s=iP,onBeforeEmitNode:l,onAfterEmitNode:u,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:v,onBeforeEmitToken:f,onAfterEmitToken:b}=t,A=!!e.extendedDiagnostics,I=!!e.omitBraceSourceMapPositions,R=Uv(e),M=Wu(e),C=new Map,W,U,X,ee,V,se,G,re,_e,ye,Q,Y,oe,he,Ie,de=e.preserveSourceNewlines,ie,ge,Ce,qe=RT,Se,Le=e.writeBundleFileInfo?{sections:[]}:void 0,Ne=Le?N.checkDefined(e.relativeToBuildInfo):void 0,Oe=e.recordInternalSection,At=0,be="text",He=!0,it,Ft,yt=-1,Ze,It=-1,on=-1,Yt=-1,Nn=-1,Xn,yn,tn=!1,en=!!e.removeComments,gi,bo,{enter:Ui,exit:Co}=tSe(A,"commentTime","beforeComment","afterComment"),tr=O.parenthesizer,Ci={select:D=>D===0?tr.parenthesizeLeadingTypeArgument:void 0},Nr=Zg();return ot(),{printNode:Kt,printList:nt,printFile:Dn,printBundle:Bt,writeNode:yi,writeList:oo,writeFile:pt,writeBundle:Je,bundleFileInfo:Le};function Kt(D,ae,ht){switch(D){case 0:N.assert(io(ae),"Expected a SourceFile node.");break;case 2:N.assert(Ue(ae),"Expected an Identifier node.");break;case 1:N.assert(bt(ae),"Expected an Expression node.");break}switch(ae.kind){case 312:return Dn(ae);case 313:return Bt(ae);case 314:return si(ae)}return yi(D,ae,ht,Pt()),le()}function nt(D,ae,ht){return oo(D,ae,ht,Pt()),le()}function Bt(D){return Je(D,Pt(),void 0),le()}function Dn(D){return pt(D,Pt(),void 0),le()}function si(D){return mt(D,Pt()),le()}function yi(D,ae,ht,ln){const Or=ge;j(ln,void 0),Fe(D,ae,ht),ot(),ge=Or}function oo(D,ae,ht,ln){const Or=ge;j(ln,void 0),ht&&dt(ht),tl(void 0,ae,D),ot(),ge=Or}function Po(){return ge.getTextPosWithWriteLine?ge.getTextPosWithWriteLine():ge.getTextPos()}function _a(D,ae,ht){const ln=il(Le.sections);ln&&ln.kind===ht?ln.end=ae:Le.sections.push({pos:D,end:ae,kind:ht})}function Ba(D){if(Oe&&Le&&W&&(Yu(D)||Fl(D))&&Ij(D,W)&&be!=="internal"){const ae=be;return On(ge.getTextPos()),At=Po(),be="internal",ae}}function Tn(D){D&&(On(ge.getTextPos()),At=Po(),be=D)}function On(D){return At<D?(_a(At,D,be),!0):!1}function Je(D,ae,ht){Se=!1;const ln=ge;j(ae,ht),gb(D),iv(D),nn(D),u_(D);for(const Or of D.prepends){Qc();const Li=ge.getTextPos(),bi=Le&&Le.sections;if(bi&&(Le.sections=[]),Fe(4,Or,void 0),Le){const lo=Le.sections;Le.sections=bi,Or.oldFileOfCurrentEmit?Le.sections.push(...lo):(lo.forEach(Ea=>N.assert(qoe(Ea))),Le.sections.push({pos:Li,end:ge.getTextPos(),kind:"prepend",data:Ne(Or.fileName),texts:lo}))}}At=Po();for(const Or of D.sourceFiles)Fe(0,Or,Or);if(Le&&D.sourceFiles.length){const Or=ge.getTextPos();if(On(Or)){const Li=HP(D);Li&&(Le.sources||(Le.sources={}),Le.sources.prologues=Li);const bi=kt(D);bi&&(Le.sources||(Le.sources={}),Le.sources.helpers=bi)}}ot(),ge=ln}function mt(D,ae){const ht=ge;j(ae,void 0),Fe(4,D,void 0),ot(),ge=ht}function pt(D,ae,ht){Se=!0;const ln=ge;j(ae,ht),gb(D),iv(D),Fe(0,D,D),ot(),ge=ln}function Pt(){return Ce||(Ce=xk(R))}function le(){const D=Ce.getText();return Ce.clear(),D}function Fe(D,ae,ht){ht&&dt(ht),q(D,ae,void 0)}function dt(D){W=D,Xn=void 0,yn=void 0,D&&cv(D)}function j(D,ae){D&&e.omitTrailingSemicolon&&(D=SU(D)),ge=D,it=ae,He=!ge||!it}function ot(){U=[],X=[],ee=[],V=new Set,se=[],G=new Map,re=[],_e=0,ye=[],Q=0,Y=[],oe=void 0,he=[],Ie=void 0,W=void 0,Xn=void 0,yn=void 0,j(void 0,void 0)}function Dt(){return Xn||(Xn=wg(N.checkDefined(W)))}function Ye(D,ae){if(D===void 0)return;const ht=Ba(D);q(4,D,ae),Tn(ht)}function _t(D){D!==void 0&&q(2,D,void 0)}function Gt(D,ae){D!==void 0&&q(1,D,ae)}function gn(D){q(La(D)?6:4,D)}function hn(D){de&&Dm(D)&4&&(de=!1)}function pn(D){de=D}function q(D,ae,ht){bo=ht,L(0,D,ae)(D,ae),bo=void 0}function We(D){return!en&&!io(D)}function Lt(D){return!He&&!io(D)&&!S3(D)&&!KS(D)&&!cse(D)}function L(D,ae,ht){switch(D){case 0:if(i!==Qw&&(!o||o(ht)))return J;case 1:if(s!==iP&&(gi=s(ae,ht)||ht)!==ht)return bo&&(gi=bo(gi)),Tt;case 2:if(We(ht))return gD;case 3:if(Lt(ht))return n1;case 4:return fe;default:return N.assertNever(D)}}function me(D,ae,ht){return L(D+1,ae,ht)}function J(D,ae){const ht=me(0,D,ae);i(D,ae,ht)}function fe(D,ae){if(l==null||l(ae),de){const ht=de;hn(ae),je(D,ae),pn(ht)}else je(D,ae);u==null||u(ae),bo=void 0}function je(D,ae,ht=!0){if(ht){const ln=NH(ae);if(ln)return Ao(D,ae,ln)}if(D===0)return cx(sa(ae,io));if(D===2)return ya(sa(ae,Ue));if(D===6)return pr(sa(ae,La),!0);if(D===3)return ke(sa(ae,El));if(D===7)return nx(sa(ae,yI));if(D===5)return N.assertNode(ae,jH),uo(!0);if(D===4){switch(ae.kind){case 16:case 17:case 18:return pr(ae,!1);case 80:return ya(ae);case 81:return Xa(ae);case 166:return Qt(ae);case 167:return Gl(ae);case 168:return ao(ae);case 169:return Ga(ae);case 170:return ka(ae);case 171:return Ts(ae);case 172:return oc(ae);case 173:return co(ae);case 174:return da(ae);case 175:return mu(ae);case 176:return Ps(ae);case 177:case 178:return wa(ae);case 179:return yl(ae);case 180:return wf(ae);case 181:return _c(ae);case 182:return Wo(ae);case 183:return an(ae);case 184:return Xs(ae);case 185:return Pc(ae);case 186:return pe(ae);case 187:return Z(ae);case 188:return we(ae);case 189:return fn(ae);case 190:return Ar(ae);case 192:return Jr(ae);case 193:return Di(ae);case 194:return br(ae);case 195:return Jo(ae);case 196:return kl(ae);case 233:return zt(ae);case 197:return Gc();case 198:return xl(ae);case 199:return Zl(ae);case 200:return Ns(ae);case 201:return ac(ae);case 202:return Er(ae);case 203:return ap(ae);case 204:return Ll(ae);case 205:return sp(ae);case 206:return Yc(ae);case 207:return Cd(ae);case 208:return Me(ae);case 239:return Vt(ae);case 240:return fl();case 241:return lr(ae);case 243:return Yr(ae);case 242:return uo(!1);case 244:return Va(ae);case 245:return ja(ae);case 246:return hu(ae);case 247:return Mc(ae);case 248:return Cp(ae);case 249:return qd(ae);case 250:return ub(ae);case 251:return Wf(ae);case 252:return Ff(ae);case 253:return pb(ae);case 254:return mf(ae);case 255:return q_(ae);case 256:return _f(ae);case 257:return ev(ae);case 258:return ze(ae);case 259:return Qe(ae);case 260:return Ct(ae);case 261:return jt(ae);case 262:return vn(ae);case 263:return Zo(ae);case 264:return nd(ae);case 265:return gu(ae);case 266:return tv(ae);case 267:return j0(ae);case 268:return QI(ae);case 269:return U0(ae);case 270:return ix(ae);case 271:return rD(ae);case 272:return oD(ae);case 273:return hT(ae);case 274:return RE(ae);case 280:return DE(ae);case 275:return ZI(ae);case 276:return aD(ae);case 277:return ex(ae);case 278:return tx(ae);case 279:return NE(ae);case 281:return fb(ae);case 300:return rx(ae);case 301:return gT(ae);case 282:return;case 283:return H0(ae);case 12:return nv(ae);case 286:case 289:return q0(ae);case 287:case 290:return kh(ae);case 291:return Jd(ae);case 292:return Bf(ae);case 293:return Pp(ae);case 294:return lD(ae);case 295:return ox(ae);case 296:return J0(ae);case 297:return ax(ae);case 298:return sy(ae);case 299:return sx(ae);case 303:return s_(ae);case 304:return bT(ae);case 305:return Xe(ae);case 306:return l_(ae);case 307:return li(ae);case 314:case 308:return ai(ae);case 309:case 310:return Qn(ae);case 311:return qr(ae);case 312:return cx(ae);case 313:return N.fail("Bundles should be printed using printBundle");case 315:return N.fail("InputFiles should not be printed");case 316:return rv(ae);case 317:return hb(ae);case 319:return Sr("*");case 320:return Sr("?");case 321:return _u(ae);case 322:return Dp(ae);case 323:return Gs(ae);case 324:return su(ae);case 191:case 325:return gt(ae);case 326:return;case 327:return vu(ae);case 329:return ST(ae);case 330:return X0(ae);case 334:case 339:case 344:return ET(ae);case 335:case 336:return ly(ae);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return ts(ae);case 346:return c_(ae);case 348:case 355:return TT(ae);case 347:case 349:case 350:case 351:case 356:case 357:return K0(ae);case 352:return cy(ae);case 353:return jP(ae);case 354:return lx(ae);case 359:return}if(bt(ae)&&(D=1,s!==iP)){const ln=s(D,ae)||ae;ln!==ae&&(ae=ln,bo&&(ae=bo(ae)))}}if(D===1)switch(ae.kind){case 9:case 10:return or(ae);case 11:case 14:case 15:return pr(ae,!1);case 80:return ya(ae);case 81:return Xa(ae);case 209:return Ot(ae);case 210:return Yn(ae);case 211:return Io(ae);case 212:return ra(ae);case 213:return sc(ae);case 214:return Ic(ae);case 215:return ml(ae);case 216:return Sl(ae);case 217:return Kl(ae);case 218:return lc(ae);case 219:return $c(ae);case 220:return Ud(ae);case 221:return Pd(ae);case 222:return Of(ae);case 223:return H_(ae);case 224:return Mh(ae);case 225:return Vu(ae);case 226:return Nr(ae);case 227:return Np(ae);case 228:return hg(ae);case 229:return Hd(ae);case 230:return te(ae);case 231:return lt(ae);case 232:return;case 234:return qt(ae);case 235:return F(ae);case 233:return zt(ae);case 238:return De(ae);case 236:return st(ae);case 237:return N.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return cs(ae);case 285:return vT(ae);case 288:return sD(ae);case 358:return N.fail("SyntaxList should not be printed");case 359:return;case 360:return Zr(ae);case 361:return wh(ae);case 362:return N.fail("SyntheticReferenceExpression should not be printed")}if(Gd(ae.kind))return kE(ae,so);if(pj(ae.kind))return kE(ae,Sr);N.fail(`Unhandled SyntaxKind: ${N.formatSyntaxKind(ae.kind)}.`)}function ke(D){Ye(D.name),mr(),so("in"),mr(),Ye(D.constraint)}function Tt(D,ae){const ht=me(1,D,ae);N.assertIsDefined(gi),ae=gi,gi=void 0,ht(D,ae)}function kt(D){let ae;if(M===0||e.noEmitHelpers)return;const ht=new Map;for(const ln of D.sourceFiles){const Or=vw(ln)!==void 0,Li=En(ln);if(!!Li)for(const bi of Li)!bi.scoped&&!Or&&!ht.get(bi.name)&&(ht.set(bi.name,!0),(ae||(ae=[])).push(bi.name))}return ae}function nn(D){let ae=!1;const ht=D.kind===313?D:void 0;if(ht&&M===0)return;const ln=ht?ht.prepends.length:0,Or=ht?ht.sourceFiles.length+ln:1;for(let Li=0;Li<Or;Li++){const bi=ht?Li<ln?ht.prepends[Li]:ht.sourceFiles[Li-ln]:D,lo=io(bi)?bi:KS(bi)?void 0:W,Ea=e.noEmitHelpers||!!lo&&Tse(lo),rd=(io(bi)||KS(bi))&&!Se,Ld=KS(bi)?bi.helpers:En(bi);if(Ld)for(const jf of Ld){if(jf.scoped){if(ht)continue}else{if(Ea)continue;if(rd){if(C.get(jf.name))continue;C.set(jf.name,!0)}}const xb=Po();typeof jf.text=="string"?NT(jf.text):NT(jf.text(fx)),Le&&Le.sections.push({pos:xb,end:ge.getTextPos(),kind:"emitHelpers",data:jf.name}),ae=!0}}return ae}function En(D){const ae=w7(D);return ae&&Dv(ae,Hae)}function or(D){pr(D,!1)}function pr(D,ae){const ht=MT(D,e.neverAsciiEscape,ae);(e.sourceMap||e.inlineSourceMap)&&(D.kind===11||Ly(D.kind))?yb(ht):fD(ht)}function ai(D){for(const ae of D.texts)Qc(),Ye(ae)}function li(D){ge.rawWrite(D.parent.text.substring(D.pos,D.end))}function Qn(D){const ae=Po();li(D),Le&&_a(ae,ge.getTextPos(),D.kind===309?"text":"internal")}function qr(D){const ae=Po();if(li(D),Le){const ht=xG(D.section);ht.pos=ae,ht.end=ge.getTextPos(),Le.sections.push(ht)}}function Ao(D,ae,ht){switch(ht.kind){case 1:Fi(D,ae,ht);break;case 0:vi(D,ae,ht);break}}function Fi(D,ae,ht){Y0(`\${${ht.order}:`),je(D,ae,!1),Y0("}")}function vi(D,ae,ht){N.assert(ae.kind===242,`A tab stop cannot be attached to a node of kind ${N.formatSyntaxKind(ae.kind)}.`),N.assert(D!==5,"A tab stop cannot be attached to an embedded statement."),Y0(`$${ht.order}`)}function ya(D){(D.symbol?qP:qe)(Vc(D,!1),D.symbol),tl(D,zS(D),53776)}function Xa(D){qe(Vc(D,!1))}function Qt(D){ba(D.left),Sr("."),Ye(D.right)}function ba(D){D.kind===80?Gt(D):Ye(D)}function Gl(D){const ae=_e,ht=Ie;Sb(),Sr("["),Gt(D.expression,tr.parenthesizeExpressionOfComputedPropertyName),Sr("]"),Gf(ae,ht)}function ao(D){yg(D,D.modifiers),Ye(D.name),D.constraint&&(mr(),so("extends"),mr(),Ye(D.constraint)),D.default&&(mr(),hf("="),mr(),Ye(D.default))}function Ga(D){Hp(D,D.modifiers,!0),Ye(D.dotDotDotToken),Tl(D.name,dy),Ye(D.questionToken),D.parent&&D.parent.kind===324&&!D.name?Ye(D.type):gm(D.type),vb(D.initializer,D.type?D.type.end:D.questionToken?D.questionToken.end:D.name?D.name.end:D.modifiers?D.modifiers.end:D.pos,D,tr.parenthesizeExpressionForDisallowedComma)}function ka(D){Sr("@"),Gt(D.expression,tr.parenthesizeLeftSideOfAccess)}function Ts(D){yg(D,D.modifiers),Tl(D.name,DT),Ye(D.questionToken),gm(D.type),lu()}function oc(D){Hp(D,D.modifiers,!0),Ye(D.name),Ye(D.questionToken),Ye(D.exclamationToken),gm(D.type),vb(D.initializer,D.type?D.type.end:D.questionToken?D.questionToken.end:D.name.end,D),lu()}function co(D){Ru(D),yg(D,D.modifiers),Ye(D.name),Ye(D.questionToken),J_(D,D.typeParameters),uy(D,D.parameters),gm(D.type),lu(),cp(D)}function da(D){Hp(D,D.modifiers,!0),Ye(D.asteriskToken),Ye(D.name),Ye(D.questionToken),bn(D,er)}function mu(D){so("static"),fr(D.body)}function Ps(D){Hp(D,D.modifiers,!1),so("constructor"),bn(D,er)}function wa(D){const ae=Hp(D,D.modifiers,!0),ht=D.kind===177?139:153;Hi(ht,ae,so,D),mr(),Ye(D.name),bn(D,er)}function yl(D){Ru(D),J_(D,D.typeParameters),uy(D,D.parameters),gm(D.type),lu(),cp(D)}function wf(D){Ru(D),so("new"),mr(),J_(D,D.typeParameters),uy(D,D.parameters),gm(D.type),lu(),cp(D)}function _c(D){Hp(D,D.modifiers,!1),pD(D,D.parameters),gm(D.type),lu()}function Ll(D){Ye(D.type),Ye(D.literal)}function fl(){lu()}function Wo(D){D.assertsModifier&&(Ye(D.assertsModifier),mr()),Ye(D.parameterName),D.type&&(mr(),so("is"),mr(),Ye(D.type))}function an(D){Ye(D.typeName),Eg(D,D.typeArguments)}function Xs(D){Ru(D),J_(D,D.typeParameters),dD(D,D.parameters),mr(),Sr("=>"),mr(),Ye(D.type),cp(D)}function su(D){so("function"),uy(D,D.parameters),Sr(":"),Ye(D.type)}function _u(D){Sr("?"),Ye(D.type)}function Dp(D){Sr("!"),Ye(D.type)}function Gs(D){Ye(D.type),Sr("=")}function Pc(D){Ru(D),yg(D,D.modifiers),so("new"),mr(),J_(D,D.typeParameters),uy(D,D.parameters),mr(),Sr("=>"),mr(),Ye(D.type),cp(D)}function pe(D){so("typeof"),mr(),Ye(D.exprName),Eg(D,D.typeArguments)}function Z(D){Gf(0,void 0),Sr("{");const ae=Ka(D)&1?768:32897;tl(D,D.members,ae|524288),Sr("}"),Sb()}function we(D){Ye(D.elementType,tr.parenthesizeNonArrayTypeOfPostfixType),Sr("["),Sr("]")}function gt(D){Sr("..."),Ye(D.type)}function fn(D){Hi(23,D.pos,Sr,D);const ae=Ka(D)&1?528:657;tl(D,D.elements,ae|524288,tr.parenthesizeElementTypeOfTupleType),Hi(24,D.elements.end,Sr,D)}function Er(D){Ye(D.dotDotDotToken),Ye(D.name),Ye(D.questionToken),Hi(59,D.name.end,Sr,D),mr(),Ye(D.type)}function Ar(D){Ye(D.type,tr.parenthesizeTypeOfOptionalType),Sr("?")}function Jr(D){tl(D,D.types,516,tr.parenthesizeConstituentTypeOfUnionType)}function Di(D){tl(D,D.types,520,tr.parenthesizeConstituentTypeOfIntersectionType)}function br(D){Ye(D.checkType,tr.parenthesizeCheckTypeOfConditionalType),mr(),so("extends"),mr(),Ye(D.extendsType,tr.parenthesizeExtendsTypeOfConditionalType),mr(),Sr("?"),mr(),Ye(D.trueType),mr(),Sr(":"),mr(),Ye(D.falseType)}function Jo(D){so("infer"),mr(),Ye(D.typeParameter)}function kl(D){Sr("("),Ye(D.type),Sr(")")}function Gc(){so("this")}function xl(D){bb(D.operator,so),mr();const ae=D.operator===148?tr.parenthesizeOperandOfReadonlyTypeOperator:tr.parenthesizeOperandOfTypeOperator;Ye(D.type,ae)}function Zl(D){Ye(D.objectType,tr.parenthesizeNonArrayTypeOfPostfixType),Sr("["),Ye(D.indexType),Sr("]")}function Ns(D){const ae=Ka(D);Sr("{"),ae&1?mr():(Qc(),Oh()),D.readonlyToken&&(Ye(D.readonlyToken),D.readonlyToken.kind!==148&&so("readonly"),mr()),Sr("["),q(3,D.typeParameter),D.nameType&&(mr(),so("as"),mr(),Ye(D.nameType)),Sr("]"),D.questionToken&&(Ye(D.questionToken),D.questionToken.kind!==58&&Sr("?")),Sr(":"),mr(),Ye(D.type),lu(),ae&1?mr():(Qc(),Bm()),tl(D,D.members,2),Sr("}")}function ac(D){Gt(D.literal)}function ap(D){Ye(D.head),tl(D,D.templateSpans,262144)}function sp(D){D.isTypeOf&&(so("typeof"),mr()),so("import"),Sr("("),Ye(D.argument),D.attributes&&(Sr(","),mr(),q(7,D.attributes)),Sr(")"),D.qualifier&&(Sr("."),Ye(D.qualifier)),Eg(D,D.typeArguments)}function Yc(D){Sr("{"),tl(D,D.elements,525136),Sr("}")}function Cd(D){Sr("["),tl(D,D.elements,524880),Sr("]")}function Me(D){Ye(D.dotDotDotToken),D.propertyName&&(Ye(D.propertyName),Sr(":"),mr()),Ye(D.name),vb(D.initializer,D.name.end,D,tr.parenthesizeExpressionForDisallowedComma)}function Ot(D){const ae=D.elements,ht=D.multiLine?65536:0;ME(D,ae,8914|ht,tr.parenthesizeExpressionForDisallowedComma)}function Yn(D){Gf(0,void 0),Ve(D.properties,px);const ae=Ka(D)&131072;ae&&Oh();const ht=D.multiLine?65536:0,ln=W&&W.languageVersion>=1&&!im(W)?64:0;tl(D,D.properties,526226|ln|ht),ae&&Bm(),Sb()}function Io(D){Gt(D.expression,tr.parenthesizeLeftSideOfAccess);const ae=D.questionDotToken||Eh(O.createToken(25),D.expression.end,D.name.pos),ht=qp(D,D.expression,ae),ln=qp(D,ae,D.name);Gm(ht,!1),ae.kind!==29&&Qo(D.expression)&&!ge.hasTrailingComment()&&!ge.hasTrailingWhitespace()&&Sr("."),D.questionDotToken?Ye(ae):Hi(ae.kind,D.expression.end,Sr,D),Gm(ln,!1),Ye(D.name),$0(ht,ln)}function Qo(D){if(D=Rm(D),Ep(D)){const ae=MT(D,!0,!1);return!(D.numericLiteralFlags&448)&&!ae.includes(ma(25))&&!ae.includes(String.fromCharCode(69))&&!ae.includes(String.fromCharCode(101))}else if(js(D)){const ae=Wae(D);return typeof ae=="number"&&isFinite(ae)&&ae>=0&&Math.floor(ae)===ae}}function ra(D){Gt(D.expression,tr.parenthesizeLeftSideOfAccess),Ye(D.questionDotToken),Hi(23,D.expression.end,Sr,D),Gt(D.argumentExpression),Hi(24,D.argumentExpression.end,Sr,D)}function sc(D){const ae=Dm(D)&16;ae&&(Sr("("),yb("0"),Sr(","),mr()),Gt(D.expression,tr.parenthesizeLeftSideOfAccess),ae&&Sr(")"),Ye(D.questionDotToken),Eg(D,D.typeArguments),ME(D,D.arguments,2576,tr.parenthesizeExpressionForDisallowedComma)}function Ic(D){Hi(105,D.pos,so,D),mr(),Gt(D.expression,tr.parenthesizeExpressionOfNew),Eg(D,D.typeArguments),ME(D,D.arguments,18960,tr.parenthesizeExpressionForDisallowedComma)}function ml(D){const ae=Dm(D)&16;ae&&(Sr("("),yb("0"),Sr(","),mr()),Gt(D.tag,tr.parenthesizeLeftSideOfAccess),ae&&Sr(")"),Eg(D,D.typeArguments),mr(),Gt(D.template)}function Sl(D){Sr("<"),Ye(D.type),Sr(">"),Gt(D.expression,tr.parenthesizeOperandOfPrefixUnary)}function Kl(D){const ae=Hi(21,D.pos,Sr,D),ht=mD(D.expression,D);Gt(D.expression,void 0),wE(D.expression,D),$0(ht),Hi(22,D.expression?D.expression.end:ae,Sr,D)}function lc(D){Jp(D.name),$n(D)}function $c(D){yg(D,D.modifiers),bn(D,ff)}function ff(D){J_(D,D.typeParameters),dD(D,D.parameters),gm(D.type),mr(),Ye(D.equalsGreaterThanToken)}function Ud(D){Hi(91,D.pos,so,D),mr(),Gt(D.expression,tr.parenthesizeOperandOfPrefixUnary)}function Pd(D){Hi(114,D.pos,so,D),mr(),Gt(D.expression,tr.parenthesizeOperandOfPrefixUnary)}function Of(D){Hi(116,D.pos,so,D),mr(),Gt(D.expression,tr.parenthesizeOperandOfPrefixUnary)}function H_(D){Hi(135,D.pos,so,D),mr(),Gt(D.expression,tr.parenthesizeOperandOfPrefixUnary)}function Mh(D){bb(D.operator,hf),Qg(D)&&mr(),Gt(D.operand,tr.parenthesizeOperandOfPrefixUnary)}function Qg(D){const ae=D.operand;return ae.kind===224&&(D.operator===40&&(ae.operator===40||ae.operator===46)||D.operator===41&&(ae.operator===41||ae.operator===47))}function Vu(D){Gt(D.operand,tr.parenthesizeOperandOfPostfixUnary),bb(D.operator,hf)}function Zg(){return M5(D,ae,ht,ln,Or,void 0);function D(bi,lo){if(lo){lo.stackIndex++,lo.preserveSourceNewlinesStack[lo.stackIndex]=de,lo.containerPosStack[lo.stackIndex]=on,lo.containerEndStack[lo.stackIndex]=Yt,lo.declarationListContainerEndStack[lo.stackIndex]=Nn;const Ea=lo.shouldEmitCommentsStack[lo.stackIndex]=We(bi),rd=lo.shouldEmitSourceMapsStack[lo.stackIndex]=Lt(bi);l==null||l(bi),Ea&&OT(bi),rd&&gx(bi),hn(bi)}else lo={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return lo}function ae(bi,lo,Ea){return Li(bi,Ea,"left")}function ht(bi,lo,Ea){const rd=bi.kind!==28,Ld=qp(Ea,Ea.left,bi),jf=qp(Ea,bi,Ea.right);Gm(Ld,rd),Tg(bi.pos),kE(bi,bi.kind===103?so:hf),Vm(bi.end,!0),Gm(jf,!0)}function ln(bi,lo,Ea){return Li(bi,Ea,"right")}function Or(bi,lo){const Ea=qp(bi,bi.left,bi.operatorToken),rd=qp(bi,bi.operatorToken,bi.right);if($0(Ea,rd),lo.stackIndex>0){const Ld=lo.preserveSourceNewlinesStack[lo.stackIndex],jf=lo.containerPosStack[lo.stackIndex],xb=lo.containerEndStack[lo.stackIndex],Ti=lo.declarationListContainerEndStack[lo.stackIndex],zh=lo.shouldEmitCommentsStack[lo.stackIndex],Kn=lo.shouldEmitSourceMapsStack[lo.stackIndex];pn(Ld),Kn&&zT(bi),zh&&vD(bi,jf,xb,Ti),u==null||u(bi),lo.stackIndex--}}function Li(bi,lo,Ea){const rd=Ea==="left"?tr.getParenthesizeLeftSideOfBinaryForOperator(lo.operatorToken.kind):tr.getParenthesizeRightSideOfBinaryForOperator(lo.operatorToken.kind);let Ld=L(0,1,bi);if(Ld===Tt&&(N.assertIsDefined(gi),bi=rd(sa(gi,bt)),Ld=me(1,1,bi),gi=void 0),(Ld===gD||Ld===n1||Ld===fe)&&vr(bi))return bi;bo=rd,Ld(1,bi)}}function Np(D){const ae=qp(D,D.condition,D.questionToken),ht=qp(D,D.questionToken,D.whenTrue),ln=qp(D,D.whenTrue,D.colonToken),Or=qp(D,D.colonToken,D.whenFalse);Gt(D.condition,tr.parenthesizeConditionOfConditionalExpression),Gm(ae,!0),Ye(D.questionToken),Gm(ht,!0),Gt(D.whenTrue,tr.parenthesizeBranchOfConditionalExpression),$0(ae,ht),Gm(ln,!0),Ye(D.colonToken),Gm(Or,!0),Gt(D.whenFalse,tr.parenthesizeBranchOfConditionalExpression),$0(ln,Or)}function hg(D){Ye(D.head),tl(D,D.templateSpans,262144)}function Hd(D){Hi(127,D.pos,so,D),Ye(D.asteriskToken),PE(D.expression&&zf(D.expression),db)}function te(D){Hi(26,D.pos,Sr,D),Gt(D.expression,tr.parenthesizeExpressionForDisallowedComma)}function lt(D){Jp(D.name),es(D)}function zt(D){Gt(D.expression,tr.parenthesizeLeftSideOfAccess),Eg(D,D.typeArguments)}function qt(D){Gt(D.expression,void 0),D.type&&(mr(),so("as"),mr(),Ye(D.type))}function F(D){Gt(D.expression,tr.parenthesizeLeftSideOfAccess),hf("!")}function De(D){Gt(D.expression,void 0),D.type&&(mr(),so("satisfies"),mr(),Ye(D.type))}function st(D){LE(D.keywordToken,D.pos,Sr),Sr("."),Ye(D.name)}function Vt(D){Gt(D.expression),Ye(D.literal)}function lr(D){ri(D,!D.multiLine&&PT(D))}function ri(D,ae){Hi(19,D.pos,Sr,D);const ht=ae||Ka(D)&1?768:129;tl(D,D.statements,ht),Hi(20,D.statements.end,Sr,D,!!(ht&1))}function Yr(D){Hp(D,D.modifiers,!1),Ye(D.declarationList),lu()}function uo(D){D?Sr(";"):lu()}function Va(D){Gt(D.expression,tr.parenthesizeExpressionOfExpressionStatement),(!W||!im(W)||Zs(D.expression))&&lu()}function ja(D){const ae=Hi(101,D.pos,so,D);mr(),Hi(21,ae,Sr,D),Gt(D.expression),Hi(22,D.expression.end,Sr,D),bg(D,D.thenStatement),D.elseStatement&&(av(D,D.thenStatement,D.elseStatement),Hi(93,D.thenStatement.end,so,D),D.elseStatement.kind===245?(mr(),Ye(D.elseStatement)):bg(D,D.elseStatement))}function Vl(D,ae){const ht=Hi(117,ae,so,D);mr(),Hi(21,ht,Sr,D),Gt(D.expression),Hi(22,D.expression.end,Sr,D)}function hu(D){Hi(92,D.pos,so,D),bg(D,D.statement),Yo(D.statement)&&!de?mr():av(D,D.statement,D.expression),Vl(D,D.statement.end),lu()}function Mc(D){Vl(D,D.pos),bg(D,D.statement)}function Cp(D){const ae=Hi(99,D.pos,so,D);mr();let ht=Hi(21,ae,Sr,D);gs(D.initializer),ht=Hi(27,D.initializer?D.initializer.end:ht,Sr,D),PE(D.condition),ht=Hi(27,D.condition?D.condition.end:ht,Sr,D),PE(D.incrementor),Hi(22,D.incrementor?D.incrementor.end:ht,Sr,D),bg(D,D.statement)}function qd(D){const ae=Hi(99,D.pos,so,D);mr(),Hi(21,ae,Sr,D),gs(D.initializer),mr(),Hi(103,D.initializer.end,so,D),mr(),Gt(D.expression),Hi(22,D.expression.end,Sr,D),bg(D,D.statement)}function ub(D){const ae=Hi(99,D.pos,so,D);mr(),AT(D.awaitModifier),Hi(21,ae,Sr,D),gs(D.initializer),mr(),Hi(165,D.initializer.end,so,D),mr(),Gt(D.expression),Hi(22,D.expression.end,Sr,D),bg(D,D.statement)}function gs(D){D!==void 0&&(D.kind===261?Ye(D):Gt(D))}function Wf(D){Hi(88,D.pos,so,D),ov(D.label),lu()}function Ff(D){Hi(83,D.pos,so,D),ov(D.label),lu()}function Hi(D,ae,ht,ln,Or){const Li=Lo(ln),bi=Li&&Li.kind===ln.kind,lo=ae;if(bi&&W&&(ae=Wa(W.text,ae)),bi&&ln.pos!==lo){const Ea=Or&&W&&!Rf(lo,ae,W);Ea&&Oh(),Tg(lo),Ea&&Bm()}if(!I&&(D===19||D===20)?ae=LE(D,ae,ht,ln):ae=bb(D,ht,ae),bi&&ln.end!==ae){const Ea=ln.kind===294;Vm(ae,!Ea,Ea)}return ae}function Lh(D){return D.kind===2||!!D.hasTrailingNewLine}function gg(D){if(!W)return!1;const ae=$h(W.text,D.pos);if(ae){const ht=Lo(D);if(ht&&Vd(ht.parent))return!0}return St(ae,Lh)||St(K2(D),Lh)?!0:v5(D)?D.pos!==D.expression.pos&&St(a0(W.text,D.expression.pos),Lh)?!0:gg(D.expression):!1}function zf(D){if(!en&&v5(D)&&gg(D)){const ae=Lo(D);if(ae&&Vd(ae)){const ht=O.createParenthesizedExpression(D.expression);return kr(ht,D),ut(ht,ae),ht}return O.createParenthesizedExpression(D)}return D}function db(D){return zf(tr.parenthesizeExpressionForDisallowedComma(D))}function pb(D){Hi(107,D.pos,so,D),PE(D.expression&&zf(D.expression),zf),lu()}function mf(D){const ae=Hi(118,D.pos,so,D);mr(),Hi(21,ae,Sr,D),Gt(D.expression),Hi(22,D.expression.end,Sr,D),bg(D,D.statement)}function q_(D){const ae=Hi(109,D.pos,so,D);mr(),Hi(21,ae,Sr,D),Gt(D.expression),Hi(22,D.expression.end,Sr,D),mr(),Ye(D.caseBlock)}function _f(D){Ye(D.label),Hi(59,D.label.end,Sr,D),mr(),Ye(D.statement)}function ev(D){Hi(111,D.pos,so,D),PE(zf(D.expression),zf),lu()}function ze(D){Hi(113,D.pos,so,D),mr(),Ye(D.tryBlock),D.catchClause&&(av(D,D.tryBlock,D.catchClause),Ye(D.catchClause)),D.finallyBlock&&(av(D,D.catchClause||D.tryBlock,D.finallyBlock),Hi(98,(D.catchClause||D.tryBlock).end,so,D),mr(),Ye(D.finallyBlock))}function Qe(D){LE(89,D.pos,so),lu()}function Ct(D){var Or,Li;var ae,ht,ln;Ye(D.name),Ye(D.exclamationToken),gm(D.type),vb(D.initializer,(Li=(Or=(ae=D.type)==null?void 0:ae.end)!=null?Or:(ln=(ht=D.name.emitNode)==null?void 0:ht.typeNode)==null?void 0:ln.end)!=null?Li:D.name.end,D,tr.parenthesizeExpressionForDisallowedComma)}function jt(D){if(JL(D))so("await"),mr(),so("using");else{const ae=l3(D)?"let":_2(D)?"const":KL(D)?"using":"var";so(ae)}mr(),tl(D,D.declarations,528)}function vn(D){$n(D)}function $n(D){Hp(D,D.modifiers,!1),so("function"),Ye(D.asteriskToken),mr(),_t(D.name),bn(D,er)}function bn(D,ae){const ht=D.body;if(ht)if(Yo(ht)){const ln=Ka(D)&131072;ln&&Oh(),Ru(D),Ve(D.parameters,cu),cu(D.body),ae(D),fr(ht),cp(D),ln&&Bm()}else ae(D),mr(),Gt(ht,tr.parenthesizeConciseBodyOfArrowFunction);else ae(D),lu()}function er(D){J_(D,D.typeParameters),uy(D,D.parameters),gm(D.type)}function mi(D){if(Ka(D)&1)return!0;if(D.multiLine||!Zs(D)&&W&&!OS(D,W)||Sg(D,eu(D.statements),2)||dx(D,il(D.statements),2,D.statements))return!1;let ae;for(const ht of D.statements){if(Eb(ae,ht,2)>0)return!1;ae=ht}return!0}function fr(D){l==null||l(D),mr(),Sr("{"),Oh();const ae=mi(D)?ti:gr;Cr(D,D.statements,ae),Bm(),LE(20,D.statements.end,Sr,D),u==null||u(D)}function ti(D){gr(D,!0)}function gr(D,ae){const ht=Kd(D.statements),ln=ge.getTextPos();nn(D),ht===0&&ln===ge.getTextPos()&&ae?(Bm(),tl(D,D.statements,768),Oh()):tl(D,D.statements,1,void 0,ht)}function Zo(D){es(D)}function es(D){Gf(0,void 0),Ve(D.members,px),Hp(D,D.modifiers,!0),Hi(86,L_(D).pos,so,D),D.name&&(mr(),_t(D.name));const ae=Ka(D)&131072;ae&&Oh(),J_(D,D.typeParameters),tl(D,D.heritageClauses,0),mr(),Sr("{"),tl(D,D.members,129),Sr("}"),ae&&Bm(),Sb()}function nd(D){Gf(0,void 0),Hp(D,D.modifiers,!1),so("interface"),mr(),Ye(D.name),J_(D,D.typeParameters),tl(D,D.heritageClauses,512),mr(),Sr("{"),tl(D,D.members,129),Sr("}"),Sb()}function gu(D){Hp(D,D.modifiers,!1),so("type"),mr(),Ye(D.name),J_(D,D.typeParameters),mr(),Sr("="),mr(),Ye(D.type),lu()}function tv(D){Hp(D,D.modifiers,!1),so("enum"),mr(),Ye(D.name),mr(),Sr("{"),tl(D,D.members,145),Sr("}")}function j0(D){Hp(D,D.modifiers,!1),~D.flags&2048&&(so(D.flags&32?"namespace":"module"),mr()),Ye(D.name);let ae=D.body;if(!ae)return lu();for(;ae&&nc(ae);)Sr("."),Ye(ae.name),ae=ae.body;mr(),Ye(ae)}function QI(D){Ru(D),Ve(D.statements,cu),ri(D,PT(D)),cp(D)}function U0(D){Hi(19,D.pos,Sr,D),tl(D,D.clauses,129),Hi(20,D.clauses.end,Sr,D,!0)}function rD(D){Hp(D,D.modifiers,!1),Hi(102,D.modifiers?D.modifiers.end:D.pos,so,D),mr(),D.isTypeOnly&&(Hi(156,D.pos,so,D),mr()),Ye(D.name),mr(),Hi(64,D.name.end,Sr,D),mr(),iD(D.moduleReference),lu()}function iD(D){D.kind===80?Gt(D):Ye(D)}function oD(D){Hp(D,D.modifiers,!1),Hi(102,D.modifiers?D.modifiers.end:D.pos,so,D),mr(),D.importClause&&(Ye(D.importClause),mr(),Hi(161,D.importClause.end,so,D),mr()),Gt(D.moduleSpecifier),D.attributes&&ov(D.attributes),lu()}function hT(D){D.isTypeOnly&&(Hi(156,D.pos,so,D),mr()),Ye(D.name),D.name&&D.namedBindings&&(Hi(28,D.name.end,Sr,D),mr()),Ye(D.namedBindings)}function RE(D){const ae=Hi(42,D.pos,Sr,D);mr(),Hi(130,ae,so,D),mr(),Ye(D.name)}function ZI(D){mb(D)}function aD(D){vg(D)}function ex(D){const ae=Hi(95,D.pos,so,D);mr(),D.isExportEquals?Hi(64,ae,hf,D):Hi(90,ae,so,D),mr(),Gt(D.expression,D.isExportEquals?tr.getParenthesizeRightSideOfBinaryForOperator(64):tr.parenthesizeExpressionOfExportDefault),lu()}function tx(D){Hp(D,D.modifiers,!1);let ae=Hi(95,D.pos,so,D);if(mr(),D.isTypeOnly&&(ae=Hi(156,ae,so,D),mr()),D.exportClause?Ye(D.exportClause):ae=Hi(42,ae,Sr,D),D.moduleSpecifier){mr();const ht=D.exportClause?D.exportClause.end:ae;Hi(161,ht,so,D),mr(),Gt(D.moduleSpecifier)}D.attributes&&ov(D.attributes),lu()}function nx(D){Sr("{"),mr(),so(D.token===132?"assert":"with"),Sr(":"),mr();const ae=D.elements;tl(D,ae,526226),mr(),Sr("}")}function rx(D){Hi(D.token,D.pos,so,D),mr();const ae=D.elements;tl(D,ae,526226)}function gT(D){Ye(D.name),Sr(":"),mr();const ae=D.value;if((Ka(ae)&1024)===0){const ht=w_(ae);Vm(ht.pos)}Ye(ae)}function ix(D){let ae=Hi(95,D.pos,so,D);mr(),ae=Hi(130,ae,so,D),mr(),ae=Hi(145,ae,so,D),mr(),Ye(D.name),lu()}function DE(D){const ae=Hi(42,D.pos,Sr,D);mr(),Hi(130,ae,so,D),mr(),Ye(D.name)}function NE(D){mb(D)}function fb(D){vg(D)}function mb(D){Sr("{"),tl(D,D.elements,525136),Sr("}")}function vg(D){D.isTypeOnly&&(so("type"),mr()),D.propertyName&&(Ye(D.propertyName),mr(),Hi(130,D.propertyName.end,so,D),mr()),Ye(D.name)}function H0(D){so("require"),Sr("("),Gt(D.expression),Sr(")")}function cs(D){Ye(D.openingElement),tl(D,D.children,262144),Ye(D.closingElement)}function vT(D){Sr("<"),_b(D.tagName),Eg(D,D.typeArguments),mr(),Ye(D.attributes),Sr("/>")}function sD(D){Ye(D.openingFragment),tl(D,D.children,262144),Ye(D.closingFragment)}function q0(D){if(Sr("<"),W_(D)){const ae=mD(D.tagName,D);_b(D.tagName),Eg(D,D.typeArguments),D.attributes.properties&&D.attributes.properties.length>0&&mr(),Ye(D.attributes),wE(D.attributes,D),$0(ae)}Sr(">")}function nv(D){ge.writeLiteral(D.text)}function kh(D){Sr("</"),sE(D)&&_b(D.tagName),Sr(">")}function Bf(D){tl(D,D.properties,262656)}function Jd(D){Ye(D.name),Fm("=",Sr,D.initializer,gn)}function Pp(D){Sr("{..."),Gt(D.expression),Sr("}")}function lp(D){let ae=!1;return vL((W==null?void 0:W.text)||"",D+1,()=>ae=!0),ae}function ay(D){let ae=!1;return gL((W==null?void 0:W.text)||"",D+1,()=>ae=!0),ae}function yT(D){return lp(D)||ay(D)}function lD(D){var ae;if(D.expression||!en&&!Zs(D)&&yT(D.pos)){const ht=W&&!Zs(D)&&Rs(W,D.pos).line!==Rs(W,D.end).line;ht&&ge.increaseIndent();const ln=Hi(19,D.pos,Sr,D);Ye(D.dotDotDotToken),Gt(D.expression),Hi(20,((ae=D.expression)==null?void 0:ae.end)||ln,Sr,D),ht&&ge.decreaseIndent()}}function ox(D){_t(D.namespace),Sr(":"),_t(D.name)}function _b(D){D.kind===80?Gt(D):Ye(D)}function J0(D){Hi(84,D.pos,so,D),mr(),Gt(D.expression,tr.parenthesizeExpressionForDisallowedComma),xc(D,D.statements,D.expression.end)}function ax(D){const ae=Hi(90,D.pos,so,D);xc(D,D.statements,ae)}function xc(D,ae,ht){const ln=ae.length===1&&(!W||Zs(D)||Zs(ae[0])||Y3(D,ae[0],W));let Or=163969;ln?(LE(59,ht,Sr,D),mr(),Or&=-130):Hi(59,ht,Sr,D),tl(D,ae,Or)}function sy(D){mr(),bb(D.token,so),mr(),tl(D,D.types,528)}function sx(D){const ae=Hi(85,D.pos,so,D);mr(),D.variableDeclaration&&(Hi(21,ae,Sr,D),Ye(D.variableDeclaration),Hi(22,D.variableDeclaration.end,Sr,D),mr()),Ye(D.block)}function s_(D){Ye(D.name),Sr(":"),mr();const ae=D.initializer;if((Ka(ae)&1024)===0){const ht=w_(ae);Vm(ht.pos)}Gt(ae,tr.parenthesizeExpressionForDisallowedComma)}function bT(D){Ye(D.name),D.objectAssignmentInitializer&&(mr(),Sr("="),mr(),Gt(D.objectAssignmentInitializer,tr.parenthesizeExpressionForDisallowedComma))}function Xe(D){D.expression&&(Hi(26,D.pos,Sr,D),Gt(D.expression,tr.parenthesizeExpressionForDisallowedComma))}function l_(D){Ye(D.name),vb(D.initializer,D.name.end,D,tr.parenthesizeExpressionForDisallowedComma)}function vu(D){if(qe("/**"),D.comment){const ae=RL(D.comment);if(ae){const ht=ae.split(/\r\n?|\n/g);for(const ln of ht)Qc(),mr(),Sr("*"),mr(),qe(ln)}}D.tags&&(D.tags.length===1&&D.tags[0].kind===351&&!D.comment?(mr(),Ye(D.tags[0])):tl(D,D.tags,33)),mr(),qe("*/")}function K0(D){_m(D.tagName),rv(D.typeExpression),hm(D.comment)}function lx(D){_m(D.tagName),Ye(D.name),hm(D.comment)}function hb(D){mr(),Sr("{"),Ye(D.name),Sr("}")}function ly(D){_m(D.tagName),mr(),Sr("{"),Ye(D.class),Sr("}"),hm(D.comment)}function cy(D){_m(D.tagName),rv(D.constraint),mr(),tl(D,D.typeParameters,528),hm(D.comment)}function jP(D){_m(D.tagName),D.typeExpression&&(D.typeExpression.kind===316?rv(D.typeExpression):(mr(),Sr("{"),qe("Object"),D.typeExpression.isArrayType&&(Sr("["),Sr("]")),Sr("}"))),D.fullName&&(mr(),Ye(D.fullName)),hm(D.comment),D.typeExpression&&D.typeExpression.kind===329&&ST(D.typeExpression)}function ts(D){_m(D.tagName),D.name&&(mr(),Ye(D.name)),hm(D.comment),X0(D.typeExpression)}function c_(D){hm(D.comment),X0(D.typeExpression)}function ET(D){_m(D.tagName),hm(D.comment)}function ST(D){tl(D,O.createNodeArray(D.jsDocPropertyTags),33)}function X0(D){D.typeParameters&&tl(D,O.createNodeArray(D.typeParameters),33),D.parameters&&tl(D,O.createNodeArray(D.parameters),33),D.type&&(Qc(),mr(),Sr("*"),mr(),Ye(D.type))}function TT(D){_m(D.tagName),rv(D.typeExpression),mr(),D.isBracketed&&Sr("["),Ye(D.name),D.isBracketed&&Sr("]"),hm(D.comment)}function _m(D){Sr("@"),Ye(D)}function hm(D){const ae=RL(D);ae&&(mr(),qe(ae))}function rv(D){D&&(mr(),Sr("{"),Ye(D.type),Sr("}"))}function cx(D){Qc();const ae=D.statements;if(ae.length===0||!Nm(ae[0])||Zs(ae[0])){Cr(D,ae,eo);return}eo(D)}function u_(D){CE(!!D.hasNoDefaultLib,D.syntheticFileReferences||[],D.syntheticTypeReferences||[],D.syntheticLibReferences||[]);for(const ae of D.prepends)if(KS(ae)&&ae.syntheticReferences)for(const ht of ae.syntheticReferences)Ye(ht),Qc()}function cD(D){D.isDeclarationFile&&CE(D.hasNoDefaultLib,D.referencedFiles,D.typeReferenceDirectives,D.libReferenceDirectives)}function CE(D,ae,ht,ln){if(D){const Or=ge.getTextPos();K_('/// <reference no-default-lib="true"/>'),Le&&Le.sections.push({pos:Or,end:ge.getTextPos(),kind:"no-default-lib"}),Qc()}if(W&&W.moduleName&&(K_(`/// <amd-module name="${W.moduleName}" />`),Qc()),W&&W.amdDependencies)for(const Or of W.amdDependencies)Or.name?K_(`/// <amd-dependency name="${Or.name}" path="${Or.path}" />`):K_(`/// <amd-dependency path="${Or.path}" />`),Qc();for(const Or of ae){const Li=ge.getTextPos();K_(`/// <reference path="${Or.fileName}" />`),Le&&Le.sections.push({pos:Li,end:ge.getTextPos(),kind:"reference",data:Or.fileName}),Qc()}for(const Or of ht){const Li=ge.getTextPos(),bi=Or.resolutionMode&&Or.resolutionMode!==(W==null?void 0:W.impliedNodeFormat)?`resolution-mode="${Or.resolutionMode===99?"import":"require"}"`:"";K_(`/// <reference types="${Or.fileName}" ${bi}/>`),Le&&Le.sections.push({pos:Li,end:ge.getTextPos(),kind:Or.resolutionMode?Or.resolutionMode===99?"type-import":"type-require":"type",data:Or.fileName}),Qc()}for(const Or of ln){const Li=ge.getTextPos();K_(`/// <reference lib="${Or.fileName}" />`),Le&&Le.sections.push({pos:Li,end:ge.getTextPos(),kind:"lib",data:Or.fileName}),Qc()}}function eo(D){const ae=D.statements;Ru(D),Ve(D.statements,cu),nn(D);const ht=Ji(ae,ln=>!Nm(ln));cD(D),tl(D,ae,1,void 0,ht===-1?ae.length:ht),cp(D)}function Zr(D){const ae=Ka(D);!(ae&1024)&&D.pos!==D.expression.pos&&Vm(D.expression.pos),Gt(D.expression),!(ae&2048)&&D.end!==D.expression.end&&Tg(D.expression.end)}function wh(D){ME(D,D.elements,528,void 0)}function Kd(D,ae,ht,ln){let Or=!!ae;for(let Li=0;Li<D.length;Li++){const bi=D[Li];if(Nm(bi)){if(ht?!ht.has(bi.expression.text):!0){Or&&(Or=!1,dt(ae)),Qc();const Ea=ge.getTextPos();Ye(bi),ln&&Le&&Le.sections.push({pos:Ea,end:ge.getTextPos(),kind:"prologue",data:bi.expression.text}),ht&&ht.add(bi.expression.text)}}else return Li}return D.length}function UP(D,ae){for(const ht of D)if(!ae.has(ht.data)){Qc();const ln=ge.getTextPos();Ye(ht),Le&&Le.sections.push({pos:ln,end:ge.getTextPos(),kind:"prologue",data:ht.data}),ae&&ae.add(ht.data)}}function iv(D){if(io(D))Kd(D.statements,D);else{const ae=new Set;for(const ht of D.prepends)UP(ht.prologues,ae);for(const ht of D.sourceFiles)Kd(ht.statements,ht,ae,!0);dt(void 0)}}function HP(D){const ae=new Set;let ht;for(let ln=0;ln<D.sourceFiles.length;ln++){const Or=D.sourceFiles[ln];let Li,bi=0;for(const lo of Or.statements){if(!Nm(lo))break;ae.has(lo.expression.text)||(ae.add(lo.expression.text),(Li||(Li=[])).push({pos:lo.pos,end:lo.end,expression:{pos:lo.expression.pos,end:lo.expression.end,text:lo.expression.text}}),bi=bi<lo.end?lo.end:bi)}Li&&(ht||(ht=[])).push({file:ln,text:Or.text.substring(0,bi),directives:Li})}return ht}function gb(D){if(io(D)||KS(D)){const ae=N6(D.text);if(ae)return K_(ae),Qc(),!0}else{for(const ae of D.prepends)if(N.assertNode(ae,KS),gb(ae))return!0;for(const ae of D.sourceFiles)if(gb(ae))return!0}}function Tl(D,ae){if(!D)return;const ht=qe;qe=ae,Ye(D),qe=ht}function Hp(D,ae,ht){if(ae!=null&&ae.length){if(Bn(ae,Ra))return yg(D,ae);if(Bn(ae,Au))return ht?ux(D,ae):D.pos;p==null||p(ae);let ln,Or,Li=0,bi=0,lo;for(;Li<ae.length;){for(;bi<ae.length;){if(lo=ae[bi],Or=Au(lo)?"decorators":"modifiers",ln===void 0)ln=Or;else if(Or!==ln)break;bi++}const Ea={pos:-1,end:-1};Li===0&&(Ea.pos=ae.pos),bi===ae.length-1&&(Ea.end=ae.end),(ln==="modifiers"||ht)&&zm(Ye,D,ae,ln==="modifiers"?2359808:2146305,void 0,Li,bi-Li,!1,Ea),Li=bi,ln=Or,bi++}if(v==null||v(ae),lo&&!e_(lo.end))return lo.end}return D.pos}function yg(D,ae){tl(D,ae,2359808);const ht=il(ae);return ht&&!e_(ht.end)?ht.end:D.pos}function gm(D){D&&(Sr(":"),mr(),Ye(D))}function vb(D,ae,ht,ln){D&&(mr(),Hi(64,ae,hf,ht),mr(),Gt(D,ln))}function Fm(D,ae,ht,ln){ht&&(ae(D),ln(ht))}function ov(D){D&&(mr(),Ye(D))}function PE(D,ae){D&&(mr(),Gt(D,ae))}function AT(D){D&&(Ye(D),mr())}function bg(D,ae){Yo(ae)||Ka(D)&1||de&&!Sg(D,ae,0)?(mr(),Ye(ae)):(Qc(),Oh(),jH(ae)?q(5,ae):Ye(ae),Bm())}function ux(D,ae){tl(D,ae,2146305);const ht=il(ae);return ht&&!e_(ht.end)?ht.end:D.pos}function Eg(D,ae){tl(D,ae,53776,Ci)}function J_(D,ae){if(ta(D)&&D.typeArguments)return Eg(D,D.typeArguments);tl(D,ae,53776)}function uy(D,ae){tl(D,ae,2576)}function uD(D,ae){const ht=uh(ae);return ht&&ht.pos===D.pos&&Ks(D)&&!D.type&&!St(D.modifiers)&&!St(D.typeParameters)&&!St(ht.modifiers)&&!ht.dotDotDotToken&&!ht.questionToken&&!ht.type&&!ht.initializer&&Ue(ht.name)}function dD(D,ae){uD(D,ae)?tl(D,ae,528):uy(D,ae)}function pD(D,ae){tl(D,ae,8848)}function IT(D){switch(D&60){case 0:break;case 16:Sr(",");break;case 4:mr(),Sr("|");break;case 32:mr(),Sr("*"),mr();break;case 8:mr(),Sr("&");break}}function tl(D,ae,ht,ln,Or,Li){xT(Ye,D,ae,ht|(D&&Ka(D)&2?65536:0),ln,Or,Li)}function ME(D,ae,ht,ln,Or,Li){xT(Gt,D,ae,ht,ln,Or,Li)}function xT(D,ae,ht,ln,Or,Li=0,bi=ht?ht.length-Li:0){if(ht===void 0&&ln&16384)return;const Ea=ht===void 0||Li>=ht.length||bi===0;if(Ea&&ln&32768){p==null||p(ht),v==null||v(ht);return}ln&15360&&(Sr(BHe(ln)),Ea&&ht&&Vm(ht.pos,!0)),p==null||p(ht),Ea?ln&1&&!(de&&(!ae||W&&OS(ae,W)))?Qc():ln&256&&!(ln&524288)&&mr():zm(D,ae,ht,ln,Or,Li,bi,ht.hasTrailingComma,ht),v==null||v(ht),ln&15360&&(Ea&&ht&&Tg(ht.end),Sr(GHe(ln)))}function zm(D,ae,ht,ln,Or,Li,bi,lo,Ea){const rd=(ln&262144)===0;let Ld=rd;const jf=Sg(ae,ht[Li],ln);jf?(Qc(jf),Ld=!1):ln&256&&mr(),ln&128&&Oh();const xb=HHe(D,Or);let Ti,zh,Kn=!1;for(let VE=0;VE<bi;VE++){const Y_=ht[Li+VE];if(ln&32)Qc(),IT(ln);else if(Ti){ln&60&&Ti.end!==(ae?ae.end:-1)&&(Ka(Ti)&2048||Tg(Ti.end)),IT(ln),Tn(zh);const Bh=Eb(Ti,Y_,ln);if(Bh>0){if((ln&131)===0&&(Oh(),Kn=!0),Ld&&ln&60&&!e_(Y_.pos)){const SD=w_(Y_);Vm(SD.pos,!!(ln&512),!0)}Qc(Bh),Ld=!1}else Ti&&ln&512&&mr()}if(zh=Ba(Y_),Ld){const Bh=w_(Y_);Vm(Bh.pos)}else Ld=rd;ie=Y_.pos,xb(Y_,D,Or,VE),Kn&&(Bm(),Kn=!1),Ti=Y_}const vx=Ti?Ka(Ti):0,Rb=en||!!(vx&2048),Db=lo&&ln&64&&ln&16;Db&&(Ti&&!Rb?Hi(28,Ti.end,Sr,Ti):Sr(",")),Ti&&(ae?ae.end:-1)!==Ti.end&&ln&60&&!Rb&&Tg(Db&&(Ea==null?void 0:Ea.end)?Ea.end:Ti.end),ln&128&&Bm(),Tn(zh);const BT=dx(ae,ht[Li+bi-1],ln,Ea);BT?Qc(BT):ln&2097408&&mr()}function yb(D){ge.writeLiteral(D)}function fD(D){ge.writeStringLiteral(D)}function RT(D){ge.write(D)}function qP(D,ae){ge.writeSymbol(D,ae)}function Sr(D){ge.writePunctuation(D)}function lu(){ge.writeTrailingSemicolon(";")}function so(D){ge.writeKeyword(D)}function hf(D){ge.writeOperator(D)}function dy(D){ge.writeParameter(D)}function K_(D){ge.writeComment(D)}function mr(){ge.writeSpace(" ")}function DT(D){ge.writeProperty(D)}function Y0(D){ge.nonEscapingWrite?ge.nonEscapingWrite(D):ge.write(D)}function Qc(D=1){for(let ae=0;ae<D;ae++)ge.writeLine(ae>0)}function Oh(){ge.increaseIndent()}function Bm(){ge.decreaseIndent()}function LE(D,ae,ht,ln){return He?bb(D,ht,ae):GE(ln,D,ht,ae,bb)}function kE(D,ae){f&&f(D),ae(ma(D.kind)),b&&b(D)}function bb(D,ae,ht){const ln=ma(D);return ae(ln),ht<0?ht:ht+ln.length}function av(D,ae,ht){if(Ka(D)&1)mr();else if(de){const ln=qp(D,ae,ht);ln?Qc(ln):mr()}else Qc()}function NT(D){const ae=D.split(/\r\n?|\n/g),ht=gie(ae);for(const ln of ae){const Or=ht?ln.slice(ht):ln;Or.length&&(Qc(),qe(Or))}}function Gm(D,ae){D?(Oh(),Qc(D)):ae&&mr()}function $0(D,ae){D&&Bm(),ae&&Bm()}function Sg(D,ae,ht){if(ht&2||de){if(ht&65536)return 1;if(ae===void 0)return!D||W&&OS(D,W)?0:1;if(ae.pos===ie||ae.kind===12)return 0;if(W&&D&&!e_(D.pos)&&!Zs(ae)&&(!ae.parent||Ol(ae.parent)===Ol(D)))return de?Q0(ln=>Voe(ae.pos,D.pos,W,ln)):Y3(D,ae,W)?0:1;if(CT(ae,ht))return 1}return ht&1?1:0}function Eb(D,ae,ht){if(ht&2||de){if(D===void 0||ae===void 0||ae.kind===12)return 0;if(W&&!Zs(D)&&!Zs(ae))return de&&Md(D,ae)?Q0(ln=>OU(D,ae,W,ln)):!de&&gf(D,ae)?Pk(D,ae,W)?0:1:ht&65536?1:0;if(CT(D,ht)||CT(ae,ht))return 1}else if(AC(ae))return 1;return ht&1?1:0}function dx(D,ae,ht,ln){if(ht&2||de){if(ht&65536)return 1;if(ae===void 0)return!D||W&&OS(D,W)?0:1;if(W&&D&&!e_(D.pos)&&!Zs(ae)&&(!ae.parent||ae.parent===D)){if(de){const Or=ln&&!e_(ln.end)?ln.end:ae.end;return Q0(Li=>joe(Or,D.end,W,Li))}return zoe(D,ae,W)?0:1}if(CT(ae,ht))return 1}return ht&1&&!(ht&131072)?1:0}function Q0(D){N.assert(!!de);const ae=D(!0);return ae===0?D(!1):ae}function mD(D,ae){const ht=de&&Sg(ae,D,0);return ht&&Gm(ht,!1),!!ht}function wE(D,ae){const ht=de&&dx(ae,D,0,void 0);ht&&Qc(ht)}function CT(D,ae){if(Zs(D)){const ht=AC(D);return ht===void 0?(ae&65536)!==0:ht}return(ae&65536)!==0}function qp(D,ae,ht){return Ka(D)&262144?0:(D=Xl(D),ae=Xl(ae),ht=Xl(ht),AC(ht)?1:W&&!Zs(D)&&!Zs(ae)&&!Zs(ht)?de?Q0(ln=>OU(ae,ht,W,ln)):Pk(ae,ht,W)?0:1:0)}function PT(D){return D.statements.length===0&&(!W||Pk(D,D,W))}function Xl(D){for(;D.kind===217&&Zs(D);)D=D.expression;return D}function Vc(D,ae){if(ul(D)||gS(D))return LT(D);if(La(D)&&D.textSourceNode)return Vc(D.textSourceNode,ae);const ht=W,ln=!!ht&&!!D.parent&&!Zs(D);if(Zh(D)){if(!ln||Jn(D)!==Ol(ht))return Rr(D)}else if(n_(D)){if(!ln||Jn(D)!==Ol(ht))return bC(D)}else if(N.assertNode(D,w1),!ln)return D.text;return W1(ht,D,ae)}function MT(D,ae,ht){if(D.kind===11&&D.textSourceNode){const Or=D.textSourceNode;if(Ue(Or)||Qi(Or)||Ep(Or)||n_(Or)){const Li=Ep(Or)?Or.text:Vc(Or);return ht?`"${EU(Li)}"`:ae||Ka(D)&16777216?`"${ag(Li)}"`:`"${Ik(Li)}"`}else return MT(Or,ae,ht)}const ln=(ae?1:0)|(ht?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Die(D,W,ln)}function Ru(D){D&&Ka(D)&1048576||(ye.push(Q),Q=0,se.push(G),G=void 0,Y.push(oe))}function cp(D){D&&Ka(D)&1048576||(Q=ye.pop(),G=se.pop(),oe=Y.pop())}function Z0(D){(!oe||oe===il(Y))&&(oe=new Set),oe.add(D)}function Gf(D,ae){re.push(_e),_e=D,he.push(oe),Ie=ae}function Sb(){_e=re.pop(),Ie=he.pop()}function Tb(D){(!Ie||Ie===il(he))&&(Ie=new Set),Ie.add(D)}function cu(D){if(!!D)switch(D.kind){case 241:Ve(D.statements,cu);break;case 256:case 254:case 246:case 247:cu(D.statement);break;case 245:cu(D.thenStatement),cu(D.elseStatement);break;case 248:case 250:case 249:cu(D.initializer),cu(D.statement);break;case 255:cu(D.caseBlock);break;case 269:Ve(D.clauses,cu);break;case 296:case 297:Ve(D.statements,cu);break;case 258:cu(D.tryBlock),cu(D.catchClause),cu(D.finallyBlock);break;case 299:cu(D.variableDeclaration),cu(D.block);break;case 243:cu(D.declarationList);break;case 261:Ve(D.declarations,cu);break;case 260:case 169:case 208:case 263:Jp(D.name);break;case 262:Jp(D.name),Ka(D)&1048576&&(Ve(D.parameters,cu),cu(D.body));break;case 206:case 207:Ve(D.elements,cu);break;case 272:cu(D.importClause);break;case 273:Jp(D.name),cu(D.namedBindings);break;case 274:Jp(D.name);break;case 280:Jp(D.name);break;case 275:Ve(D.elements,cu);break;case 276:Jp(D.propertyName||D.name);break}}function px(D){if(!!D)switch(D.kind){case 303:case 304:case 172:case 174:case 177:case 178:Jp(D.name);break}}function Jp(D){D&&(ul(D)||gS(D)?LT(D):na(D)&&cu(D))}function LT(D){const ae=D.emitNode.autoGenerate;if((ae.flags&7)===4)return kT(Sw(D),Qi(D),ae.flags,ae.prefix,ae.suffix);{const ht=ae.id;return ee[ht]||(ee[ht]=hD(D))}}function kT(D,ae,ht,ln,Or){const Li=fs(D),bi=ae?X:U;return bi[Li]||(bi[Li]=wT(D,ae,ht!=null?ht:0,cR(ln,LT),cR(Or)))}function Ys(D,ae){return e1(D)&&!_D(D,ae)&&!V.has(D)}function _D(D,ae){return ae?!!(Ie!=null&&Ie.has(D)):!!(oe!=null&&oe.has(D))}function e1(D,ae){return W?t3(W,D,r):!0}function OE(D,ae){for(let ht=ae;ht&&U1(ht,ae);ht=ht.nextContainer)if(hh(ht)&&ht.locals){const ln=ht.locals.get(bl(D));if(ln&&ln.flags&3257279)return!1}return!0}function JP(D){var ae;switch(D){case"":return Q;case"#":return _e;default:return(ae=G==null?void 0:G.get(D))!=null?ae:0}}function vd(D,ae){switch(D){case"":Q=ae;break;case"#":_e=ae;break;default:G!=null||(G=new Map),G.set(D,ae);break}}function sv(D,ae,ht,ln,Or){ln.length>0&&ln.charCodeAt(0)===35&&(ln=ln.slice(1));const Li=N0(ht,ln,"",Or);let bi=JP(Li);if(D&&!(bi&D)){const Ea=N0(ht,ln,D===268435456?"_i":"_n",Or);if(Ys(Ea,ht))return bi|=D,ht?Tb(Ea):ae&&Z0(Ea),vd(Li,bi),Ea}for(;;){const lo=bi&268435455;if(bi++,lo!==8&&lo!==13){const Ea=lo<26?"_"+String.fromCharCode(97+lo):"_"+(lo-26),rd=N0(ht,ln,Ea,Or);if(Ys(rd,ht))return ht?Tb(rd):ae&&Z0(rd),vd(Li,bi),rd}}}function X_(D,ae=Ys,ht,ln,Or,Li,bi){if(D.length>0&&D.charCodeAt(0)===35&&(D=D.slice(1)),Li.length>0&&Li.charCodeAt(0)===35&&(Li=Li.slice(1)),ht){const Ea=N0(Or,Li,D,bi);if(ae(Ea,Or))return Or?Tb(Ea):ln?Z0(Ea):V.add(Ea),Ea}D.charCodeAt(D.length-1)!==95&&(D+="_");let lo=1;for(;;){const Ea=N0(Or,Li,D+lo,bi);if(ae(Ea,Or))return Or?Tb(Ea):ln?Z0(Ea):V.add(Ea),Ea;lo++}}function fx(D){return X_(D,e1,!0,!1,!1,"","")}function Mp(D){const ae=Vc(D.name);return OE(ae,ni(D,hh))?ae:X_(ae,Ys,!1,!1,!1,"","")}function mx(D){const ae=A2(D),ht=La(ae)?Cie(ae.text):"module";return X_(ht,Ys,!1,!1,!1,"","")}function up(){return X_("default",Ys,!1,!1,!1,"","")}function _x(){return X_("class",Ys,!1,!1,!1,"","")}function py(D,ae,ht,ln){return Ue(D.name)?kT(D.name,ae):sv(0,!1,ae,ht,ln)}function wT(D,ae,ht,ln,Or){switch(D.kind){case 80:case 81:return X_(Vc(D),Ys,!!(ht&16),!!(ht&8),ae,ln,Or);case 267:case 266:return N.assert(!ln&&!Or&&!ae),Mp(D);case 272:case 278:return N.assert(!ln&&!Or&&!ae),mx(D);case 262:case 263:{N.assert(!ln&&!Or&&!ae);const Li=D.name;return Li&&!ul(Li)?wT(Li,!1,ht,ln,Or):up()}case 277:return N.assert(!ln&&!Or&&!ae),up();case 231:return N.assert(!ln&&!Or&&!ae),_x();case 174:case 177:case 178:return py(D,ae,ln,Or);case 167:return sv(0,!0,ae,ln,Or);default:return sv(0,!1,ae,ln,Or)}}function hD(D){const ae=D.emitNode.autoGenerate,ht=cR(ae.prefix,LT),ln=cR(ae.suffix);switch(ae.flags&7){case 1:return sv(0,!!(ae.flags&8),Qi(D),ht,ln);case 2:return N.assertNode(D,Ue),sv(268435456,!!(ae.flags&8),!1,ht,ln);case 3:return X_(Rr(D),ae.flags&32?e1:Ys,!!(ae.flags&16),!!(ae.flags&8),Qi(D),ht,ln)}return N.fail(`Unsupported GeneratedIdentifierKind: ${N.formatEnum(ae.flags&7,c6,!0)}.`)}function gD(D,ae){const ht=me(2,D,ae),ln=on,Or=Yt,Li=Nn;OT(ae),ht(D,ae),vD(ae,ln,Or,Li)}function OT(D){const ae=Ka(D),ht=w_(D);Ab(D,ae,ht.pos,ht.end),ae&4096&&(en=!0)}function vD(D,ae,ht,ln){const Or=Ka(D),Li=w_(D);Or&4096&&(en=!1),Lp(D,Or,Li.pos,Li.end,ae,ht,ln);const bi=Gae(D);bi&&Lp(D,Or,bi.pos,bi.end,ae,ht,ln)}function Ab(D,ae,ht,ln){Ui(),tn=!1;const Or=ht<0||(ae&1024)!==0||D.kind===12,Li=ln<0||(ae&2048)!==0||D.kind===12;(ht>0||ln>0)&&ht!==ln&&(Or||WE(ht,D.kind!==359),(!Or||ht>=0&&(ae&1024)!==0)&&(on=ht),(!Li||ln>=0&&(ae&2048)!==0)&&(Yt=ln,D.kind===261&&(Nn=ln))),Ve(K2(D),Wh),Co()}function Lp(D,ae,ht,ln,Or,Li,bi){Ui();const lo=ln<0||(ae&2048)!==0||D.kind===12;Ve(ew(D),yD),(ht>0||ln>0)&&ht!==ln&&(on=Or,Yt=Li,Nn=bi,!lo&&D.kind!==359&&d_(ln)),Co()}function Wh(D){(D.hasLeadingNewline||D.kind===2)&&ge.writeLine(),WT(D),D.hasTrailingNewLine||D.kind===2?ge.writeLine():ge.writeSpace(" ")}function yD(D){ge.isAtStartOfLine()||ge.writeSpace(" "),WT(D),D.hasTrailingNewLine&&ge.writeLine()}function WT(D){const ae=ds(D),ht=D.kind===3?LA(ae):void 0;O2(ae,ht,ge,0,ae.length,R)}function ds(D){return D.kind===3?`/*${D.text}*/`:`//${D.text}`}function Cr(D,ae,ht){Ui();const{pos:ln,end:Or}=ae,Li=Ka(D),bi=ln<0||(Li&1024)!==0,lo=en||Or<0||(Li&2048)!==0;bi||Vf(ae),Co(),Li&4096&&!en?(en=!0,ht(D),en=!1):ht(D),Ui(),lo||(WE(ae.end,!0),tn&&!ge.isAtStartOfLine()&&ge.writeLine()),Co()}function gf(D,ae){return D=Ol(D),D.parent&&D.parent===Ol(ae).parent}function Md(D,ae){if(ae.pos<D.end)return!1;D=Ol(D),ae=Ol(ae);const ht=D.parent;if(!ht||ht!==ae.parent)return!1;const ln=vae(D),Or=ln==null?void 0:ln.indexOf(D);return Or!==void 0&&Or>-1&&ln.indexOf(ae)===Or+1}function WE(D,ae){tn=!1,ae?D===0&&(W==null?void 0:W.isDeclarationFile)?Ig(D,t1):Ig(D,FT):D===0&&Ig(D,bD)}function bD(D,ae,ht,ln,Or){yf(D,ae)&&FT(D,ae,ht,ln,Or)}function t1(D,ae,ht,ln,Or){yf(D,ae)||FT(D,ae,ht,ln,Or)}function FE(D,ae){return e.onlyPrintJsDocStyle?fq(D,ae)||n3(D,ae):!0}function FT(D,ae,ht,ln,Or){!W||!FE(W.text,D)||(tn||(Aoe(Dt(),ge,Or,D),tn=!0),Vs(D),O2(W.text,Dt(),ge,D,ae,R),Vs(ae),ln?ge.writeLine():ht===3&&ge.writeSpace(" "))}function Tg(D){en||D===-1||WE(D,!0)}function d_(D){hx(D,vf)}function vf(D,ae,ht,ln){!W||!FE(W.text,D)||(ge.isAtStartOfLine()||ge.writeSpace(" "),Vs(D),O2(W.text,Dt(),ge,D,ae,R),Vs(ae),ln&&ge.writeLine())}function Vm(D,ae,ht){en||(Ui(),hx(D,ae?vf:ht?lv:Ag),Co())}function lv(D,ae,ht){!W||(Vs(D),O2(W.text,Dt(),ge,D,ae,R),Vs(ae),ht===2&&ge.writeLine())}function Ag(D,ae,ht,ln){!W||(Vs(D),O2(W.text,Dt(),ge,D,ae,R),Vs(ae),ln?ge.writeLine():ge.writeSpace(" "))}function Ig(D,ae){W&&(on===-1||D!==on)&&(hc(D)?ED(ae):gL(W.text,D,ae,D))}function hx(D,ae){W&&(Yt===-1||D!==Yt&&D!==Nn)&&vL(W.text,D,ae)}function hc(D){return yn!==void 0&&rs(yn).nodePos===D}function ED(D){if(!W)return;const ae=rs(yn).detachedCommentEndPos;yn.length-1?yn.pop():yn=void 0,gL(W.text,ae,D,ae)}function Vf(D){const ae=W&&xoe(W.text,Dt(),ge,Fh,D,R,en);ae&&(yn?yn.push(ae):yn=[ae])}function Fh(D,ae,ht,ln,Or,Li){!W||!FE(W.text,ln)||(Vs(ln),O2(D,ae,ht,ln,Or,Li),Vs(Or))}function yf(D,ae){return!!W&&Cj(W.text,D,ae)}function zE(D){return D.parsedSourceMap===void 0&&D.sourceMapText!==void 0&&(D.parsedSourceMap=dJ(D.sourceMapText)||!1),D.parsedSourceMap||void 0}function n1(D,ae){const ht=me(3,D,ae);gx(ae),ht(D,ae),zT(ae)}function gx(D){const ae=Ka(D),ht=qv(D);if(dj(D)){N.assertIsDefined(D.parent,"UnparsedNodes must have parent pointers");const ln=zE(D.parent);ln&&it&&it.appendSourceMap(ge.getLine(),ge.getColumn(),ln,D.parent.sourceMapPath,D.parent.getLineAndCharacterOfPosition(D.pos),D.parent.getLineAndCharacterOfPosition(D.end))}else{const ln=ht.source||Ft;D.kind!==359&&(ae&32)===0&&ht.pos>=0&&BE(ht.source||Ft,bf(ln,ht.pos)),ae&128&&(He=!0)}}function zT(D){const ae=Ka(D),ht=qv(D);dj(D)||(ae&128&&(He=!1),D.kind!==359&&(ae&64)===0&&ht.end>=0&&BE(ht.source||Ft,ht.end))}function bf(D,ae){return D.skipTrivia?D.skipTrivia(ae):Wa(D.text,ae)}function Vs(D){if(He||e_(D)||r1(Ft))return;const{line:ae,character:ht}=Rs(Ft,D);it.addMapping(ge.getLine(),ge.getColumn(),yt,ae,ht,void 0)}function BE(D,ae){if(D!==Ft){const ht=Ft,ln=yt;cv(D),Vs(ae),Ib(ht,ln)}else Vs(ae)}function GE(D,ae,ht,ln,Or){if(He||D&&S3(D))return Or(ae,ht,ln);const Li=D&&D.emitNode,bi=Li&&Li.flags||0,lo=Li&&Li.tokenSourceMapRanges&&Li.tokenSourceMapRanges[ae],Ea=lo&&lo.source||Ft;return ln=bf(Ea,lo?lo.pos:ln),(bi&256)===0&&ln>=0&&BE(Ea,ln),ln=Or(ae,ht,ln),lo&&(ln=lo.end),(bi&512)===0&&ln>=0&&BE(Ea,ln),ln}function cv(D){if(!He){if(Ft=D,D===Ze){yt=It;return}r1(D)||(yt=it.addSource(D.fileName),e.inlineSources&&it.setSourceContent(yt,D.text),Ze=D,It=yt)}}function Ib(D,ae){Ft=D,yt=ae}function r1(D){return Nl(D.fileName,".json")}}function zHe(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function BHe(e){return Nce[e&15360][0]}function GHe(e){return Nce[e&15360][1]}function VHe(e,t,r,i){t(e)}function jHe(e,t,r,i){t(e,r.select(i))}function UHe(e,t,r,i){t(e,r)}function HHe(e,t){return e.length===1?VHe:typeof t=="object"?jHe:UHe}var Nce,DW,wJ,vE,OJ,tO,qHe=S({"src/compiler/emitter.ts"(){ia(),ia(),fS(),Nce=zHe(),DW={hasGlobalName:Ko,getReferencedExportContainer:Ko,getReferencedImportDeclaration:Ko,getReferencedDeclarationWithCollidingName:Ko,isDeclarationWithCollidingName:Ko,isValueAliasDeclaration:Ko,isReferencedAliasDeclaration:Ko,isTopLevelValueImportEqualsWithEntityName:Ko,getNodeCheckFlags:Ko,isDeclarationVisible:Ko,isLateBound:e=>!1,collectLinkedAliases:Ko,isImplementationOfOverload:Ko,isRequiredInitializedParameter:Ko,isOptionalUninitializedParameterProperty:Ko,isExpandoFunctionDeclaration:Ko,getPropertiesOfContainerFunction:Ko,createTypeOfDeclaration:Ko,createReturnTypeOfSignatureDeclaration:Ko,createTypeOfExpression:Ko,createLiteralConstValue:Ko,isSymbolAccessible:Ko,isEntityNameVisible:Ko,getConstantValue:Ko,getReferencedValueDeclaration:Ko,getReferencedValueDeclarations:Ko,getTypeReferenceSerializationKind:Ko,isOptionalParameter:Ko,moduleExportsSomeValue:Ko,isArgumentsLocalBinding:Ko,getExternalModuleFileFromDeclaration:Ko,getTypeReferenceDirectivesForEntityName:Ko,getTypeReferenceDirectivesForSymbol:Ko,isLiteralConstDeclaration:Ko,getJsxFactoryEntity:Ko,getJsxFragmentFactoryEntity:Ko,getAllAccessorDeclarations:Ko,getSymbolOfExternalModuleSpecifier:Ko,isBindingCapturedByNode:Ko,getDeclarationStatementsForSourceFile:Ko,isImportRequiredByAugmentation:Ko,tryFindAmbientModule:Ko},wJ=Td(()=>k0({})),vE=Td(()=>k0({removeComments:!0})),OJ=Td(()=>k0({removeComments:!0,neverAsciiEscape:!0})),tO=Td(()=>k0({removeComments:!0,omitTrailingSemicolon:!0}))}});function NW(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,o=ku(r);return{useCaseSensitiveFileNames:r,fileExists:I,readFile:(G,re)=>e.readFile(G,re),directoryExists:e.directoryExists&&R,getDirectories:C,readDirectory:W,createDirectory:e.createDirectory&&M,writeFile:e.writeFile&&A,addOrDeleteFileOrDirectory:X,addOrDeleteFile:ee,clearCache:se,realpath:e.realpath&&U};function s(G){return ll(G,t,o)}function l(G){return i.get(Hc(G))}function u(G){const re=l(ii(G));return re&&(re.sortedAndCanonicalizedFiles||(re.sortedAndCanonicalizedFiles=re.files.map(o).sort(),re.sortedAndCanonicalizedDirectories=re.directories.map(o).sort()),re)}function p(G){return dc(va(G))}function v(G,re){var _e;if(!e.realpath||Hc(s(e.realpath(G)))===re){const ye={files:Wt(e.readDirectory(G,void 0,void 0,["*.*"]),p)||[],directories:e.getDirectories(G)||[]};return i.set(Hc(re),ye),ye}if((_e=e.directoryExists)!=null&&_e.call(e,G))return i.set(re,!1),!1}function f(G,re){re=Hc(re);const _e=l(re);if(_e)return _e;try{return v(G,re)}catch{N.assert(!i.has(Hc(re)));return}}function b(G,re){return Nv(G,re,ol,Ju)>=0}function A(G,re,_e){const ye=s(G),Q=u(ye);return Q&&V(Q,p(G),!0),e.writeFile(G,re,_e)}function I(G){const re=s(G),_e=u(re);return _e&&b(_e.sortedAndCanonicalizedFiles,o(p(G)))||e.fileExists(G)}function R(G){const re=s(G);return i.has(Hc(re))||e.directoryExists(G)}function M(G){const re=s(G),_e=u(re);if(_e){const ye=p(G),Q=o(ye),Y=_e.sortedAndCanonicalizedDirectories;Ay(Y,Q,Ju)&&_e.directories.push(ye)}e.createDirectory(G)}function C(G){const re=s(G),_e=f(G,re);return _e?_e.directories.slice():e.getDirectories(G)}function W(G,re,_e,ye,Q){const Y=s(G),oe=f(G,Y);let he;if(oe!==void 0)return KU(G,re,_e,ye,r,t,Q,Ie,U);return e.readDirectory(G,re,_e,ye,Q);function Ie(ie){const ge=s(ie);if(ge===Y)return oe||de(ie,ge);const Ce=f(ie,ge);return Ce!==void 0?Ce||de(ie,ge):C7}function de(ie,ge){if(he&&ge===Y)return he;const Ce={files:Wt(e.readDirectory(ie,void 0,void 0,["*.*"]),p)||et,directories:e.getDirectories(ie)||et};return ge===Y&&(he=Ce),Ce}}function U(G){return e.realpath?e.realpath(G):G}function X(G,re){if(l(re)!==void 0){se();return}const ye=u(re);if(!ye)return;if(!e.directoryExists){se();return}const Q=p(G),Y={fileExists:e.fileExists(G),directoryExists:e.directoryExists(G)};return Y.directoryExists||b(ye.sortedAndCanonicalizedDirectories,o(Q))?se():V(ye,Q,Y.fileExists),Y}function ee(G,re,_e){if(_e===1)return;const ye=u(re);ye&&V(ye,p(G),_e===0)}function V(G,re,_e){const ye=G.sortedAndCanonicalizedFiles,Q=o(re);if(_e)Ay(ye,Q,Ju)&&G.files.push(re);else{const Y=Nv(ye,Q,ol,Ju);if(Y>=0){ye.splice(Y,1);const oe=G.files.findIndex(he=>o(he)===Q);G.files.splice(oe,1)}}}function se(){i.clear()}}function CW(e,t,r,i,o){var s;const l=C1(((s=t==null?void 0:t.configFile)==null?void 0:s.extendedSourceFiles)||et,o);r.forEach((u,p)=>{l.has(p)||(u.projects.delete(e),u.close())}),l.forEach((u,p)=>{const v=r.get(p);v?v.projects.add(e):r.set(p,{projects:new Set([e]),watcher:i(u,p),close:()=>{const f=r.get(p);!f||f.projects.size!==0||(f.watcher.close(),r.delete(p))}})})}function WJ(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function PW(e,t,r){!e.delete(t)||e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&PW(e,o,r)})}function FJ(e,t,r){oC(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:Zm})}function nO(e,t,r){t?oC(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Mf,onExistingValue:o}):np(e,Mf);function i(s,l){return{watcher:r(s,l),flags:l}}function o(s,l,u){s.flags!==l&&(s.watcher.close(),e.set(u,i(u,l)))}}function rO({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:u,useCaseSensitiveFileNames:p,writeLog:v,toPath:f,getScriptKind:b}){const A=jW(r);if(!A)return v(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=A,r===e)return!1;if(PA(r)&&!(uae(t,o,l)||W()))return v(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(qse(t,o.configFile.configFileSpecs,To(ii(i),u),p,u))return v(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||Bs(o)||o.outDir)return!1;if(Iu(r)){if(o.declarationDir)return!1}else if(!Rc(r,J2))return!1;const I=Id(r),R=Do(s)?void 0:JHe(s)?s.getProgramOrUndefined():s,M=!R&&!Do(s)?s:void 0;if(C(I+".ts")||C(I+".tsx"))return v(`Project: ${i} Detected output file: ${t}`),!0;return!1;function C(U){return R?!!R.getSourceFileByPath(U):M?M.getState().fileInfos.has(U):!!un(s,X=>f(X)===U)}function W(){if(!b)return!1;switch(b(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Jy(o);case 6:return A0(o);case 0:return!1}}}function JHe(e){return!!e.getState}function Cce(e,t){return e?e.isEmittedFile(t):!1}function zJ(e,t,r,i){mre(t===2?r:is);const o={watchFile:(M,C,W,U)=>e.watchFile(M,C,W,U),watchDirectory:(M,C,W,U)=>e.watchDirectory(M,C,(W&1)!==0,U)},s=t!==0?{watchFile:I("watchFile"),watchDirectory:I("watchDirectory")}:void 0,l=t===2?{watchFile:b,watchDirectory:A}:s||o,u=t===2?f:DR;return{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")};function p(M){return(C,W,U,X,ee,V)=>{var se;return B5(C,M==="watchFile"?X==null?void 0:X.excludeFiles:X==null?void 0:X.excludeDirectories,v(),((se=e.getCurrentDirectory)==null?void 0:se.call(e))||"")?u(C,U,X,ee,V):l[M].call(void 0,C,W,U,X,ee,V)}}function v(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function f(M,C,W,U,X){return r(`ExcludeWatcher:: Added:: ${R(M,C,W,U,X,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${R(M,C,W,U,X,i)}`)}}function b(M,C,W,U,X,ee){r(`FileWatcher:: Added:: ${R(M,W,U,X,ee,i)}`);const V=s.watchFile(M,C,W,U,X,ee);return{close:()=>{r(`FileWatcher:: Close:: ${R(M,W,U,X,ee,i)}`),V.close()}}}function A(M,C,W,U,X,ee){const V=`DirectoryWatcher:: Added:: ${R(M,W,U,X,ee,i)}`;r(V);const se=Qs(),G=s.watchDirectory(M,C,W,U,X,ee),re=Qs()-se;return r(`Elapsed:: ${re}ms ${V}`),{close:()=>{const _e=`DirectoryWatcher:: Close:: ${R(M,W,U,X,ee,i)}`;r(_e);const ye=Qs();G.close();const Q=Qs()-ye;r(`Elapsed:: ${Q}ms ${_e}`)}}}function I(M){return(C,W,U,X,ee,V)=>o[M].call(void 0,C,(...se)=>{const G=`${M==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${se[0]} ${se[1]!==void 0?se[1]:""}:: ${R(C,U,X,ee,V,i)}`;r(G);const re=Qs();W.call(void 0,...se);const _e=Qs()-re;r(`Elapsed:: ${_e}ms ${G}`)},U,X,ee,V)}function R(M,C,W,U,X,ee){return`WatchInfo: ${M} ${C} ${JSON.stringify(W)} ${ee?ee(U,X):X===void 0?U:`${U} ${X}`}`}}function iO(e){const t=e==null?void 0:e.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Mf(e){e.watcher.close()}var BJ,GJ,KHe=S({"src/compiler/watchUtilities.ts"(){ia(),BJ=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(BJ||{}),GJ=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(GJ||{})}});function Pce(e,t,r="tsconfig.json"){return xm(e,i=>{const o=$r(i,r);return t(o)?o:void 0})}function MW(e,t){const r=ii(t),i=hp(e)?e:$r(r,e);return va(i)}function Mce(e,t,r){let i;return Ve(e,s=>{const l=uL(s,t);if(l.pop(),!i){i=l;return}const u=Math.min(i.length,l.length);for(let p=0;p<u;p++)if(r(i[p])!==r(l[p])){if(p===0)return!0;i.length=p;break}l.length<i.length&&(i.length=l.length)})?"":i?Dy(i):t}function Lce(e,t){return UJ(e,t)}function VJ(e,t,r){return(i,o,s)=>{let l;try{sl("beforeIORead"),l=e(i,t().charset),sl("afterIORead"),ef("I/O Read","beforeIORead","afterIORead")}catch(u){s&&s(u.message),l=""}return l!==void 0?Iw(i,l,o,r):void 0}}function jJ(e,t,r){return(i,o,s,l)=>{try{sl("beforeIOWrite"),IU(i,o,s,e,t,r),sl("afterIOWrite"),ef("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){l&&l(u.message)}}}function UJ(e,t,r=bu){const i=new Map,o=ku(r.useCaseSensitiveFileNames);function s(f){return i.has(f)?!0:(v.directoryExists||r.directoryExists)(f)?(i.set(f,!0),!0):!1}function l(){return ii(va(r.getExecutingFilePath()))}const u=Uv(e),p=r.realpath&&(f=>r.realpath(f)),v={getSourceFile:VJ(f=>v.readFile(f),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:f=>$r(l(),bL(f)),writeFile:jJ((f,b,A)=>r.writeFile(f,b,A),f=>(v.createDirectory||r.createDirectory)(f),f=>s(f)),getCurrentDirectory:Td(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>u,fileExists:f=>r.fileExists(f),readFile:f=>r.readFile(f),trace:f=>r.write(f+u),directoryExists:f=>r.directoryExists(f),getEnvironmentVariable:f=>r.getEnvironmentVariable?r.getEnvironmentVariable(f):"",getDirectories:f=>r.getDirectories(f),realpath:p,readDirectory:(f,b,A,I,R)=>r.readDirectory(f,b,A,I,R),createDirectory:f=>r.createDirectory(f),createHash:aa(r,r.createHash)};return v}function oO(e,t,r){const i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,u=e.writeFile,p=new Map,v=new Map,f=new Map,b=new Map,A=M=>{const C=t(M),W=p.get(C);return W!==void 0?W!==!1?W:void 0:I(C,M)},I=(M,C)=>{const W=i.call(e,C);return p.set(M,W!==void 0?W:!1),W};e.readFile=M=>{const C=t(M),W=p.get(C);return W!==void 0?W!==!1?W:void 0:!Nl(M,".json")&&!xce(M)?i.call(e,M):I(C,M)};const R=r?(M,C,W,U)=>{const X=t(M),ee=typeof C=="object"?C.impliedNodeFormat:void 0,V=b.get(ee),se=V==null?void 0:V.get(X);if(se)return se;const G=r(M,C,W,U);return G&&(Iu(M)||Nl(M,".json"))&&b.set(ee,(V||new Map).set(X,G)),G}:void 0;return e.fileExists=M=>{const C=t(M),W=v.get(C);if(W!==void 0)return W;const U=o.call(e,M);return v.set(C,!!U),U},u&&(e.writeFile=(M,C,...W)=>{const U=t(M);v.delete(U);const X=p.get(U);X!==void 0&&X!==C?(p.delete(U),b.forEach(ee=>ee.delete(U))):R&&b.forEach(ee=>{const V=ee.get(U);V&&V.text!==C&&ee.delete(U)}),u.call(e,M,C,...W)}),s&&(e.directoryExists=M=>{const C=t(M),W=f.get(C);if(W!==void 0)return W;const U=s.call(e,M);return f.set(C,!!U),U},l&&(e.createDirectory=M=>{const C=t(M);f.delete(C),l.call(e,M)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:u,getSourceFileWithCache:R,readFileWithCache:A}}function T2e(e,t,r){let i;return i=Hr(i,e.getConfigFileParsingDiagnostics()),i=Hr(i,e.getOptionsDiagnostics(r)),i=Hr(i,e.getSyntacticDiagnostics(t,r)),i=Hr(i,e.getGlobalDiagnostics(r)),i=Hr(i,e.getSemanticDiagnostics(t,r)),Nf(e.getCompilerOptions())&&(i=Hr(i,e.getDeclarationDiagnostics(t,r))),t2(i||et)}function A2e(e,t){let r="";for(const i of e)r+=HJ(i,t);return r}function HJ(e,t){const r=`${mS(e)} TS${e.code}: ${B_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:o}=Rs(e.file,e.start),s=e.file.fileName;return`${_N(s,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${o+1}): `+r}return r}function I2e(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return N.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function yE(e,t){return t+e+Wce}function x2e(e,t,r,i,o,s){const{line:l,character:u}=Rs(e,t),{line:p,character:v}=Rs(e,t+r),f=Rs(e,e.text.length).line,b=p-l>=4;let A=(p+1+"").length;b&&(A=Math.max(Fce.length,A));let I="";for(let R=l;R<=p;R++){I+=s.getNewLine(),b&&l+1<R&&R<p-1&&(I+=i+yE(Fce.padStart(A),aK)+sK+s.getNewLine(),R=p-1);const M=_L(e,R,0),C=R<f?_L(e,R+1,0):e.text.length;let W=e.text.slice(M,C);if(W=W.trimEnd(),W=W.replace(/\t/g," "),I+=i+yE((R+1+"").padStart(A),aK)+sK,I+=W+s.getNewLine(),I+=i+yE("".padStart(A),aK)+sK,I+=o,R===l){const U=R===p?v:void 0;I+=W.slice(0,u).replace(/\S/g," "),I+=W.slice(u,U).replace(/./g,"~")}else R===p?I+=W.slice(0,v).replace(/./g,"~"):I+=W.replace(/./g,"~");I+=Wce}return I}function qJ(e,t,r,i=yE){const{line:o,character:s}=Rs(e,t),l=r?_N(e.fileName,r.getCurrentDirectory(),p=>r.getCanonicalFileName(p)):e.fileName;let u="";return u+=i(l,"\x1B[96m"),u+=":",u+=i(`${o+1}`,"\x1B[93m"),u+=":",u+=i(`${s+1}`,"\x1B[93m"),u}function kce(e,t){let r="";for(const i of e){if(i.file){const{file:o,start:s}=i;r+=qJ(o,s,t),r+=" - "}if(r+=yE(mS(i),I2e(i.category)),r+=yE(` TS${i.code}: `,"\x1B[90m"),r+=B_(i.messageText,t.getNewLine()),i.file&&i.code!==m.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=x2e(i.file,i.start,i.length,"",I2e(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(const{file:o,start:s,length:l,messageText:u}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=N2e+qJ(o,s,t),r+=x2e(o,s,l,zce,"\x1B[96m",t)),r+=t.getNewLine(),r+=zce+B_(u,t.getNewLine())}r+=t.getNewLine()}return r}function B_(e,t,r=0){if(wo(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+=B_(o,t,r);return i}function aO(e,t){return(wo(e)?t:e.resolutionMode)||t}function wce(e,t,r){return XJ(e,cO(e,t),r)}function JJ(e){var t;return rc(e)?e.isTypeOnly:!!((t=e.importClause)!=null&&t.isTypeOnly)}function KJ(e,t,r){return XJ(e,t,r)}function XJ(e,t,r){var i;if((Fc(t.parent)||rc(t.parent))&&JJ(t.parent)){const l=ER(t.parent.attributes);if(l)return l}if(t.parent.parent&&dg(t.parent.parent)){const s=ER(t.parent.parent.attributes);if(s)return s}if(r&&Wu(r)===200)return t.parent.parent&&au(t.parent.parent)||Ad(t.parent,!1)?1:99;if(e.impliedNodeFormat===void 0)return;if(e.impliedNodeFormat!==99)return Gp(Bv(t.parent))?99:1;const o=(i=Bv(t.parent))==null?void 0:i.parent;return o&&au(o)?1:99}function ER(e,t){if(!e)return;if(Pe(e.elements)!==1){t==null||t(e,e.token===118?m.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:m.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require);return}const r=e.elements[0];if(!!hs(r.name)){if(r.name.text!=="resolution-mode"){t==null||t(r.name,e.token===118?m.resolution_mode_is_the_only_valid_key_for_type_import_attributes:m.resolution_mode_is_the_only_valid_key_for_type_import_assertions);return}if(!!hs(r.value)){if(r.value.text!=="import"&&r.value.text!=="require"){t==null||t(r.value,m.resolution_mode_should_be_either_require_or_import);return}return r.value.text==="import"?99:1}}}function Oce(e){return e.text}function YJ(e,t,r,i,o){return{nameAndMode:zW,resolve:(s,l)=>_R(s,e,r,i,o,t,l)}}function $J(e){return wo(e)?e:ph(e.fileName)}function LW(e,t,r,i,o){return{nameAndMode:C2e,resolve:(s,l)=>sle(s,e,r,i,t,o,l)}}function sO(e,t,r,i,o,s,l,u){if(e.length===0)return et;const p=[],v=new Map,f=u(t,r,i,s,l);for(const b of e){const A=f.nameAndMode.getName(b),I=f.nameAndMode.getMode(b,o,(r==null?void 0:r.commandLine.options)||i),R=XC(A,I);let M=v.get(R);M||v.set(R,M=f.resolve(A,I)),p.push(M)}return p}function QJ(e,t){return kW(void 0,e,(r,i)=>r&&t(r,i))}function kW(e,t,r,i){let o;return s(e,t,void 0);function s(l,u,p){if(i){const v=i(l,p);if(v)return v}return Ve(u,(v,f)=>{if(v&&(o==null?void 0:o.has(v.sourceFile.path)))return;const b=r(v,p,f);return b||!v?b:((o||(o=new Set)).add(v.sourceFile.path),s(v.commandLine.projectReferences,v.references,v))})}}function wW(e,t,r){const i=e.configFilePath?ii(e.configFilePath):t;return $r(i,`__lib_node_modules_lookup_${r}__.ts`)}function ZJ(e){const t=e.split(".");let r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function R2e(e){const t=ph(e.fileName),r=G5.get(t);return{libName:t,libFileName:r}}function w0(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function SR(e){return e.pos!==void 0}function uP(e,t){var r,i,o,s;const l=N.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:p}=t;let v,f,b,A;switch(u){case 3:const I=cO(l,p);if(b=(i=(r=e.getResolvedModule(l,I.text,e.getModeForUsageLocation(l,I)))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,I.pos===-1)return{file:l,packageId:b,text:I.text};v=Wa(l.text,I.pos),f=I.end;break;case 4:({pos:v,end:f}=l.referencedFiles[p]);break;case 5:({pos:v,end:f,resolutionMode:A}=l.typeReferenceDirectives[p]),b=(s=(o=e.getResolvedTypeReferenceDirective(l,ph(l.typeReferenceDirectives[p].fileName),A||l.impliedNodeFormat))==null?void 0:o.resolvedTypeReferenceDirective)==null?void 0:s.packageId;break;case 7:({pos:v,end:f}=l.libReferenceDirectives[p]);break;default:return N.assertNever(u)}return{file:l,pos:v,end:f,packageId:b}}function eK(e,t,r,i,o,s,l,u,p,v){if(!e||(u==null?void 0:u())||!Xm(e.getRootFileNames(),t))return!1;let f;if(!Xm(e.getProjectReferences(),v,M)||e.getSourceFiles().some(I))return!1;const b=e.getMissingFilePaths();if(b&&qc(b,o))return!1;const A=e.getCompilerOptions();if(!FU(A,r)||e.resolvedLibReferences&&qc(e.resolvedLibReferences,(W,U)=>l(U)))return!1;if(A.configFile&&r.configFile)return A.configFile.text===r.configFile.text;return!0;function I(W){return!R(W)||s(W.path)}function R(W){return W.version===i(W.resolvedPath,W.fileName)}function M(W,U,X){return Rj(W,U)&&C(e.getResolvedProjectReferences()[X],W)}function C(W,U){if(W){if(Mn(f,W))return!0;const ee=TR(U),V=p(ee);return!V||W.commandLine.options.configFile!==V.options.configFile||!Xm(W.commandLine.fileNames,V.fileNames)?!1:((f||(f=[])).push(W),!Ve(W.references,(se,G)=>!C(se,W.commandLine.projectReferences[G])))}const X=TR(U);return!p(X)}}function rT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function lO(e,t,r,i){const o=tK(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function tK(e,t,r,i){switch(_d(i)){case 3:case 99:return Rc(e,[".d.mts",".mts",".mjs"])?99:Rc(e,[".d.cts",".cts",".cjs"])?1:Rc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){const s=Gw(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;const u=Vw(e,s);return{impliedNodeFormat:(u==null?void 0:u.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:l,packageJsonScope:u}}}function XHe(e,t){return e?u2(e.getCompilerOptions(),t,j5):!1}function YHe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function OW(e,t,r,i,o){var s,l,u,p,v,f,b,A,I,R,M,C,W,U,X,ee;const V=Do(e)?YHe(e,t,r,i,o):e,{rootNames:se,options:G,configFileParsingDiagnostics:re,projectReferences:_e,typeScriptVersion:ye}=V;let{oldProgram:Q}=V;const Y=Td(()=>Wf("ignoreDeprecations",m.Invalid_value_for_ignoreDeprecations));let oe,he,Ie,de,ie,ge,Ce;const qe=new Map;let Se=Zp();const Le={},Ne={};let Oe=DI(),At,be,He,it,Ft,yt,Ze,It,on,Yt;const Nn=typeof G.maxNodeModuleJsDepth=="number"?G.maxNodeModuleJsDepth:0;let Xn=0;const yn=new Map,tn=new Map;(s=ur)==null||s.push(ur.Phase.Program,"createProgram",{configFilePath:G.configFilePath,rootDir:G.rootDir},!0),sl("beforeProgram");const en=V.host||Lce(G),gi=FW(en);let bo=G.noLib;const Ui=Td(()=>en.getDefaultLibFileName(G)),Co=en.getDefaultLibLocation?en.getDefaultLibLocation():ii(Ui()),tr=M2(),Ci=en.getCurrentDirectory(),Nr=lC(G),Kt=wk(G,Nr),nt=new Map;let Bt,Dn,si;const yi=en.hasInvalidatedResolutions||Ym;en.resolveModuleNameLiterals?(si=en.resolveModuleNameLiterals.bind(en),Dn=(l=en.getModuleResolutionCache)==null?void 0:l.call(en)):en.resolveModuleNames?(si=(ze,Qe,Ct,jt,vn,$n)=>en.resolveModuleNames(ze.map(Oce),Qe,$n==null?void 0:$n.map(Oce),Ct,jt,vn).map(bn=>bn?bn.extension!==void 0?{resolvedModule:bn}:{resolvedModule:{...bn,extension:uC(bn.resolvedFileName)}}:Bce),Dn=(u=en.getModuleResolutionCache)==null?void 0:u.call(en)):(Dn=mR(Ci,te,G),si=(ze,Qe,Ct,jt,vn)=>sO(ze,Qe,Ct,jt,vn,en,Dn,YJ));let oo;if(en.resolveTypeReferenceDirectiveReferences)oo=en.resolveTypeReferenceDirectiveReferences.bind(en);else if(en.resolveTypeReferenceDirectives)oo=(ze,Qe,Ct,jt,vn)=>en.resolveTypeReferenceDirectives(ze.map($J),Qe,Ct,jt,vn==null?void 0:vn.impliedNodeFormat).map($n=>({resolvedTypeReferenceDirective:$n}));else{const ze=Q5(Ci,te,void 0,Dn==null?void 0:Dn.getPackageJsonInfoCache(),Dn==null?void 0:Dn.optionsToRedirectsKey);oo=(Qe,Ct,jt,vn,$n)=>sO(Qe,Ct,jt,vn,$n,en,ze,LW)}const Po=en.hasInvalidatedLibResolutions||Ym;let _a;if(en.resolveLibrary)_a=en.resolveLibrary.bind(en);else{const ze=mR(Ci,te,G,Dn==null?void 0:Dn.getPackageJsonInfoCache());_a=(Qe,Ct,jt)=>Z5(Qe,Ct,jt,en,ze)}const Ba=new Map;let Tn=new Map,On=Zp(),Je=!1;const mt=new Map;let pt=new Map;const Pt=en.useCaseSensitiveFileNames()?new Map:void 0;let le,Fe,dt,j;const ot=!!((p=en.useSourceOfProjectReferenceRedirect)!=null&&p.call(en))&&!G.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Dt,fileExists:Ye,directoryExists:_t}=$He({compilerHost:en,getSymlinkCache:q_,useSourceOfProjectReferenceRedirect:ot,toPath:Qn,getResolvedProjectReferences:ao,getSourceOfProjectReferenceRedirect:Pd,forEachResolvedProjectReference:Ud}),Gt=en.readFile.bind(en);(v=ur)==null||v.push(ur.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!Q});const gn=XHe(Q,G);(f=ur)==null||f.pop();let hn;if((b=ur)==null||b.push(ur.Phase.Program,"tryReuseStructureFromOldProgram",{}),hn=Xa(),(A=ur)==null||A.pop(),hn!==2){if(oe=[],he=[],_e&&(le||(le=_e.map(qt)),se.length&&(le==null||le.forEach((ze,Qe)=>{if(!ze)return;const Ct=Bs(ze.commandLine.options);if(ot){if(Ct||Wu(ze.commandLine.options)===0)for(const jt of ze.commandLine.fileNames)Ot(jt,{kind:1,index:Qe})}else if(Ct)Ot(S0(Ct,".d.ts"),{kind:2,index:Qe});else if(Wu(ze.commandLine.options)===0){const jt=Td(()=>bR(ze.commandLine,!en.useCaseSensitiveFileNames()));for(const vn of ze.commandLine.fileNames)!Iu(vn)&&!Nl(vn,".json")&&Ot(lP(vn,ze.commandLine,!en.useCaseSensitiveFileNames(),jt),{kind:2,index:Qe})}}))),(I=ur)==null||I.push(ur.Phase.Program,"processRootFiles",{count:se.length}),Ve(se,(ze,Qe)=>xl(ze,!1,!1,{kind:0,index:Qe})),(R=ur)==null||R.pop(),be!=null||(be=se.length?Y5(G,en):et),He=DI(),be.length){(M=ur)==null||M.push(ur.Phase.Program,"processTypeReferences",{count:be.length});const ze=G.configFilePath?ii(G.configFilePath):Ci,Qe=$r(ze,AR),Ct=vi(be,Qe);for(let jt=0;jt<be.length;jt++)He.set(be[jt],void 0,Ct[jt]),Vu(be[jt],void 0,Ct[jt],{kind:8,typeReference:be[jt],packageId:(W=(C=Ct[jt])==null?void 0:C.resolvedTypeReferenceDirective)==null?void 0:W.packageId});(U=ur)==null||U.pop()}if(se.length&&!bo){const ze=Ui();!G.lib&&ze?xl(ze,!0,!1,{kind:6}):Ve(G.lib,(Qe,Ct)=>{xl(Np(Qe),!0,!1,{kind:6,index:Ct})})}Ie=Dv(oe,ai).concat(he),oe=void 0,he=void 0}if(Q&&en.onReleaseOldSourceFile){const ze=Q.getSourceFiles();for(const Qe of ze){const Ct=yl(Qe.resolvedPath);(gn||!Ct||Ct.impliedNodeFormat!==Qe.impliedNodeFormat||Qe.resolvedPath===Qe.path&&Ct.resolvedPath!==Qe.path)&&en.onReleaseOldSourceFile(Qe,Q.getCompilerOptions(),!!yl(Qe.path))}en.getParsedCommandLine||Q.forEachResolvedProjectReference(Qe=>{H_(Qe.sourceFile.path)||en.onReleaseOldSourceFile(Qe.sourceFile,Q.getCompilerOptions(),!1)})}Q&&en.onReleaseParsedCommandLine&&kW(Q.getProjectReferences(),Q.getResolvedProjectReferences(),(ze,Qe,Ct)=>{const jt=(Qe==null?void 0:Qe.commandLine.projectReferences[Ct])||Q.getProjectReferences()[Ct],vn=TR(jt);Fe!=null&&Fe.has(Qn(vn))||en.onReleaseParsedCommandLine(vn,ze,Q.getCompilerOptions())}),Q=void 0,Ft=void 0,Ze=void 0,on=void 0;const pn={getRootFileNames:()=>se,getSourceFile:wa,getSourceFileByPath:yl,getSourceFiles:()=>Ie,getMissingFilePaths:()=>pt,getModuleResolutionCache:()=>Dn,getFilesByNameMap:()=>mt,getCompilerOptions:()=>G,getSyntacticDiagnostics:_c,getOptionsDiagnostics:br,getGlobalDiagnostics:kl,getSemanticDiagnostics:Ll,getCachedSemanticDiagnostics:fl,getSuggestionDiagnostics:we,getDeclarationDiagnostics:Xs,getBindAndCheckDiagnostics:Wo,getProgramDiagnostics:an,getTypeChecker:co,getClassifiableNames:Ao,getCommonSourceDirectory:qr,emit:da,getCurrentDirectory:()=>Ci,getNodeCount:()=>co().getNodeCount(),getIdentifierCount:()=>co().getIdentifierCount(),getSymbolCount:()=>co().getSymbolCount(),getTypeCount:()=>co().getTypeCount(),getInstantiationCount:()=>co().getInstantiationCount(),getRelationCacheSizes:()=>co().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>At,getResolvedTypeReferenceDirectives:()=>Oe,getAutomaticTypeDirectiveNames:()=>be,getAutomaticTypeDirectiveResolutions:()=>He,isSourceFileFromExternalLibrary:Ts,isSourceFileDefaultLibrary:oc,getModeForUsageLocation:_f,getModeForResolutionAtIndex:ev,getSourceFileFromReference:Yc,getLibFileFromReference:sp,sourceFileToPackageName:Tn,redirectTargetsMap:On,usesUriStyleNodeCoreModules:Je,resolvedModules:yt,resolvedTypeReferenceDirectiveNames:It,resolvedLibReferences:it,getResolvedModule:q,getResolvedModuleFromModuleSpecifier:We,getResolvedTypeReferenceDirective:Lt,forEachResolvedModule:L,forEachResolvedTypeReferenceDirective:me,getCurrentPackagesMap:()=>Yt,typesPackageExists:je,packageBundlesTypes:ke,isEmittedFile:pb,getConfigFileParsingDiagnostics:Gc,getProjectReferences:Ga,getResolvedProjectReferences:ao,getProjectReferenceRedirect:Kl,getResolvedProjectReferenceToRedirect:ff,getResolvedProjectReferenceByPath:H_,forEachResolvedProjectReference:Ud,isSourceOfProjectReferenceRedirect:Of,emitBuildInfo:Gl,fileExists:Ye,readFile:Gt,directoryExists:_t,getSymlinkCache:q_,realpath:(X=en.realpath)==null?void 0:X.bind(en),useCaseSensitiveFileNames:()=>en.useCaseSensitiveFileNames(),getCanonicalFileName:te,getFileIncludeReasons:()=>Se,structureIsReused:hn,writeFile:ba};return Dt(),At==null||At.forEach(ze=>{switch(ze.kind){case 1:return tr.add(ri(ze.file&&yl(ze.file),ze.fileProcessingReason,ze.diagnostic,ze.args||et));case 0:const{file:Qe,pos:Ct,end:jt}=uP(pn,ze.reason);return tr.add(ru(Qe,N.checkDefined(Ct),N.checkDefined(jt)-Ct,ze.diagnostic,...ze.args||et));case 2:return ze.diagnostics.forEach(vn=>tr.add(vn));default:N.assertNever(ze)}}),F(),sl("afterProgram"),ef("Program","beforeProgram","afterProgram"),(ee=ur)==null||ee.pop(),pn;function q(ze,Qe,Ct){var jt;return(jt=yt==null?void 0:yt.get(ze.path))==null?void 0:jt.get(Qe,Ct)}function We(ze){const Qe=Jn(ze);return N.assertIsDefined(Qe,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),q(Qe,ze.text,_f(Qe,ze))}function Lt(ze,Qe,Ct){var jt;return(jt=It==null?void 0:It.get(ze.path))==null?void 0:jt.get(Qe,Ct)}function L(ze,Qe){J(yt,ze,Qe)}function me(ze,Qe){J(It,ze,Qe)}function J(ze,Qe,Ct){var jt;Ct?(jt=ze==null?void 0:ze.get(Ct.path))==null||jt.forEach((vn,$n,bn)=>Qe(vn,$n,bn,Ct.path)):ze==null||ze.forEach((vn,$n)=>vn.forEach((bn,er,mi)=>Qe(bn,er,mi,$n)))}function fe(){return Yt||(Yt=new Map,L(({resolvedModule:ze})=>{ze!=null&&ze.packageId&&Yt.set(ze.packageId.name,ze.extension===".d.ts"||!!Yt.get(ze.packageId.name))}),Yt)}function je(ze){return fe().has(nW(ze))}function ke(ze){return!!fe().get(ze)}function Tt(ze){var Qe;!((Qe=ze.resolutionDiagnostics)!=null&&Qe.length)||(At!=null?At:At=[]).push({kind:2,diagnostics:ze.resolutionDiagnostics})}function kt(ze,Qe,Ct,jt){if(en.resolveModuleNameLiterals||!en.resolveModuleNames)return Tt(Ct);if(!Dn||tu(Qe))return;const vn=To(ze.originalFileName,Ci),$n=ii(vn),bn=or(ze),er=Dn.getFromNonRelativeNameCache(Qe,jt,$n,bn);er&&Tt(er)}function nn(ze,Qe,Ct){var jt,vn;if(!ze.length)return et;const $n=To(Qe.originalFileName,Ci),bn=or(Qe);(jt=ur)==null||jt.push(ur.Phase.Program,"resolveModuleNamesWorker",{containingFileName:$n}),sl("beforeResolveModule");const er=si(ze,$n,bn,G,Qe,Ct);return sl("afterResolveModule"),ef("ResolveModule","beforeResolveModule","afterResolveModule"),(vn=ur)==null||vn.pop(),er}function En(ze,Qe,Ct){var jt,vn;if(!ze.length)return[];const $n=wo(Qe)?void 0:Qe,bn=wo(Qe)?Qe:To(Qe.originalFileName,Ci),er=$n&&or($n);(jt=ur)==null||jt.push(ur.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:bn}),sl("beforeResolveTypeReference");const mi=oo(ze,bn,er,G,$n,Ct);return sl("afterResolveTypeReference"),ef("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(vn=ur)==null||vn.pop(),mi}function or(ze){const Qe=ff(ze.originalFileName);if(Qe||!Iu(ze.originalFileName))return Qe;const Ct=pr(ze.path);if(Ct)return Ct;if(!en.realpath||!G.preserveSymlinks||!ze.originalFileName.includes(Nh))return;const jt=Qn(en.realpath(ze.originalFileName));return jt===ze.path?void 0:pr(jt)}function pr(ze){const Qe=Pd(ze);if(wo(Qe))return ff(Qe);if(!!Qe)return Ud(Ct=>{const jt=Bs(Ct.commandLine.options);if(!!jt)return Qn(jt)===ze?Ct:void 0})}function ai(ze,Qe){return al(li(ze),li(Qe))}function li(ze){if(Am(Co,ze.fileName,!1)){const Qe=dc(ze.fileName);if(Qe==="lib.d.ts"||Qe==="lib.es6.d.ts")return 0;const Ct=Hx(uN(Qe,"lib."),".d.ts"),jt=Lw.indexOf(Ct);if(jt!==-1)return jt+1}return Lw.length+2}function Qn(ze){return ll(ze,Ci,te)}function qr(){if(ie===void 0){const ze=Vn(Ie,Qe=>MS(Qe,pn));ie=cP(G,()=>Vi(ze,Qe=>Qe.isDeclarationFile?void 0:Qe.fileName),Ci,te,Qe=>zt(ze,Qe))}return ie}function Ao(){var ze;if(!Ce){co(),Ce=new Set;for(const Qe of Ie)(ze=Qe.classifiableNames)==null||ze.forEach(Ct=>Ce.add(Ct))}return Ce}function Fi(ze,Qe){if(hn===0&&!Qe.ambientModuleNames.length)return nn(ze,Qe,void 0);let Ct,jt,vn;const $n=Bce,bn=Q&&Q.getSourceFile(Qe.fileName);for(let ti=0;ti<ze.length;ti++){const gr=ze[ti];if(Qe===bn&&!yi(Qe.path)){const es=Q==null?void 0:Q.getResolvedModule(Qe,gr.text,_f(Qe,gr));if(es!=null&&es.resolvedModule){Kg(G,en)&&xo(en,es.resolvedModule.packageId?m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,gr.text,To(Qe.originalFileName,Ci),es.resolvedModule.resolvedFileName,es.resolvedModule.packageId&&Fy(es.resolvedModule.packageId)),(jt!=null?jt:jt=new Array(ze.length))[ti]=es,(vn!=null?vn:vn=[]).push(gr);continue}}let Zo=!1;Mn(Qe.ambientModuleNames,gr.text)?(Zo=!0,Kg(G,en)&&xo(en,m.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,gr.text,To(Qe.originalFileName,Ci))):Zo=fr(gr),Zo?(jt||(jt=new Array(ze.length)))[ti]=$n:(Ct!=null?Ct:Ct=[]).push(gr)}const er=Ct&&Ct.length?nn(Ct,Qe,vn):et;if(!jt)return N.assert(er.length===ze.length),er;let mi=0;for(let ti=0;ti<jt.length;ti++)jt[ti]||(jt[ti]=er[mi],mi++);return N.assert(mi===er.length),jt;function fr(ti){var gr;const Zo=(gr=Q==null?void 0:Q.getResolvedModule(Qe,ti.text,_f(Qe,ti)))==null?void 0:gr.resolvedModule,es=Zo&&Q.getSourceFile(Zo.resolvedFileName);if(Zo&&es)return!1;const nd=qe.get(ti.text);return nd?(Kg(G,en)&&xo(en,m.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,ti.text,nd),!0):!1}}function vi(ze,Qe){var Ct;if(hn===0)return En(ze,Qe,void 0);let jt,vn,$n;const bn=wo(Qe)?void 0:Qe,er=wo(Qe)?void 0:Q&&Q.getSourceFile(Qe.fileName),mi=wo(Qe)?!yi(Qn(Qe)):Qe===er&&!yi(Qe.path);for(let gr=0;gr<ze.length;gr++){const Zo=ze[gr];if(mi){const es=$J(Zo),nd=aO(Zo,bn==null?void 0:bn.impliedNodeFormat),gu=wo(Qe)?(Ct=Q==null?void 0:Q.getAutomaticTypeDirectiveResolutions())==null?void 0:Ct.get(es,nd):Q==null?void 0:Q.getResolvedTypeReferenceDirective(Qe,es,nd);if(gu!=null&&gu.resolvedTypeReferenceDirective){Kg(G,en)&&xo(en,gu.resolvedTypeReferenceDirective.packageId?m.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,es,wo(Qe)?Qe:To(Qe.originalFileName,Ci),gu.resolvedTypeReferenceDirective.resolvedFileName,gu.resolvedTypeReferenceDirective.packageId&&Fy(gu.resolvedTypeReferenceDirective.packageId)),(vn!=null?vn:vn=new Array(ze.length))[gr]=gu,($n!=null?$n:$n=[]).push(Zo);continue}}(jt!=null?jt:jt=[]).push(Zo)}if(!jt)return vn||et;const fr=En(jt,Qe,$n);if(!vn)return N.assert(fr.length===ze.length),fr;let ti=0;for(let gr=0;gr<vn.length;gr++)vn[gr]||(vn[gr]=fr[ti],ti++);return N.assert(ti===fr.length),vn}function ya(){return!kW(Q.getProjectReferences(),Q.getResolvedProjectReferences(),(ze,Qe,Ct)=>{const jt=(Qe?Qe.commandLine.projectReferences:_e)[Ct],vn=qt(jt);return ze?!vn||vn.sourceFile!==ze.sourceFile||!Xm(ze.commandLine.fileNames,vn.commandLine.fileNames):vn!==void 0},(ze,Qe)=>{const Ct=Qe?H_(Qe.sourceFile.path).commandLine.projectReferences:_e;return!Xm(ze,Ct,Rj)})}function Xa(){var ze;if(!Q)return 0;const Qe=Q.getCompilerOptions();if(Y6(Qe,G))return 0;const Ct=Q.getRootFileNames();if(!Xm(Ct,se)||!ya())return 0;_e&&(le=_e.map(qt));const jt=[],vn=[];if(hn=2,qc(Q.getMissingFilePaths(),fr=>en.fileExists(fr)))return 0;const $n=Q.getSourceFiles();let bn;(fr=>{fr[fr.Exists=0]="Exists",fr[fr.Modified=1]="Modified"})(bn||(bn={}));const er=new Map;for(const fr of $n){const ti=ra(fr.fileName,Dn,en,G);let gr=en.getSourceFileByPath?en.getSourceFileByPath(fr.fileName,fr.resolvedPath,ti,void 0,gn):en.getSourceFile(fr.fileName,ti,void 0,gn);if(!gr)return 0;gr.packageJsonLocations=(ze=ti.packageJsonLocations)!=null&&ze.length?ti.packageJsonLocations:void 0,gr.packageJsonScope=ti.packageJsonScope,N.assert(!gr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Zo;if(fr.redirectInfo){if(gr!==fr.redirectInfo.unredirected)return 0;Zo=!1,gr=fr}else if(Q.redirectTargetsMap.has(fr.path)){if(gr!==fr)return 0;Zo=!1}else Zo=gr!==fr;gr.path=fr.path,gr.originalFileName=fr.originalFileName,gr.resolvedPath=fr.resolvedPath,gr.fileName=fr.fileName;const es=Q.sourceFileToPackageName.get(fr.path);if(es!==void 0){const nd=er.get(es),gu=Zo?1:0;if(nd!==void 0&&gu===1||nd===1)return 0;er.set(es,gu)}if(Zo)fr.impliedNodeFormat!==gr.impliedNodeFormat?hn=1:Xm(fr.libReferenceDirectives,gr.libReferenceDirectives,Zl)?fr.hasNoDefaultLib!==gr.hasNoDefaultLib?hn=1:Xm(fr.referencedFiles,gr.referencedFiles,Zl)?(ap(gr),Xm(fr.imports,gr.imports,Ns)&&Xm(fr.moduleAugmentations,gr.moduleAugmentations,Ns)?(fr.flags&12582912)!==(gr.flags&12582912)?hn=1:Xm(fr.typeReferenceDirectives,gr.typeReferenceDirectives,Zl)||(hn=1):hn=1):hn=1:hn=1,vn.push(gr);else if(yi(fr.path))hn=1,vn.push(gr);else for(const nd of fr.ambientModuleNames)qe.set(nd,fr.fileName);jt.push(gr)}if(hn!==2)return hn;for(const fr of vn){const ti=D2e(fr),gr=Fi(ti,fr);(Ze!=null?Ze:Ze=new Map).set(fr.path,gr),Dj(ti,gr,tv=>Q.getResolvedModule(fr,tv.text,_f(fr,tv)),Tie)&&(hn=1);const es=fr.typeReferenceDirectives,nd=vi(es,fr);(on!=null?on:on=new Map).set(fr.path,nd),Dj(es,nd,tv=>Q.getResolvedTypeReferenceDirective(fr,$J(tv),aO(tv,fr.impliedNodeFormat)),Aie)&&(hn=1)}if(hn!==2)return hn;if(Eie(Qe,G)||Q.resolvedLibReferences&&qc(Q.resolvedLibReferences,(fr,ti)=>hg(ti).actual!==fr.actual))return 1;if(en.hasChangedAutomaticTypeDirectiveNames){if(en.hasChangedAutomaticTypeDirectiveNames())return 1}else if(be=Y5(G,en),!Xm(Q.getAutomaticTypeDirectiveNames(),be))return 1;pt=Q.getMissingFilePaths(),N.assert(jt.length===Q.getSourceFiles().length);for(const fr of jt)mt.set(fr.path,fr);return Q.getFilesByNameMap().forEach((fr,ti)=>{if(!fr){mt.set(ti,fr);return}if(fr.path===ti){Q.isSourceFileFromExternalLibrary(fr)&&tn.set(fr.path,!0);return}mt.set(ti,mt.get(fr.path))}),Ie=jt,Se=Q.getFileIncludeReasons(),At=Q.getFileProcessingDiagnostics(),Oe=Q.getResolvedTypeReferenceDirectives(),be=Q.getAutomaticTypeDirectiveNames(),He=Q.getAutomaticTypeDirectiveResolutions(),Tn=Q.sourceFileToPackageName,On=Q.redirectTargetsMap,Je=Q.usesUriStyleNodeCoreModules,yt=Q.resolvedModules,It=Q.resolvedTypeReferenceDirectiveNames,it=Q.resolvedLibReferences,Yt=Q.getCurrentPackagesMap(),2}function Qt(ze){return{getPrependNodes:ka,getCanonicalFileName:te,getCommonSourceDirectory:pn.getCommonSourceDirectory,getCompilerOptions:pn.getCompilerOptions,getCurrentDirectory:()=>Ci,getSourceFile:pn.getSourceFile,getSourceFileByPath:pn.getSourceFileByPath,getSourceFiles:pn.getSourceFiles,getLibFileFromReference:pn.getLibFileFromReference,isSourceFileFromExternalLibrary:Ts,getResolvedProjectReferenceToRedirect:ff,getProjectReferenceRedirect:Kl,isSourceOfProjectReferenceRedirect:Of,getSymlinkCache:q_,writeFile:ze||ba,isEmitBlocked:mu,readFile:Qe=>en.readFile(Qe),fileExists:Qe=>{const Ct=Qn(Qe);return yl(Ct)?!0:pt.has(Ct)?!1:en.fileExists(Qe)},useCaseSensitiveFileNames:()=>en.useCaseSensitiveFileNames(),getBuildInfo:Qe=>{var Ct;return(Ct=pn.getBuildInfo)==null?void 0:Ct.call(pn,Qe)},getSourceFileFromReference:(Qe,Ct)=>pn.getSourceFileFromReference(Qe,Ct),redirectTargetsMap:On,getFileIncludeReasons:pn.getFileIncludeReasons,createHash:aa(en,en.createHash)}}function ba(ze,Qe,Ct,jt,vn,$n){en.writeFile(ze,Qe,Ct,jt,vn,$n)}function Gl(ze){var Qe,Ct;N.assert(!Bs(G)),(Qe=ur)==null||Qe.push(ur.Phase.Emit,"emitBuildInfo",{},!0),sl("beforeEmit");const jt=xW(DW,Qt(ze),void 0,CJ,!1,!0);return sl("afterEmit"),ef("Emit","beforeEmit","afterEmit"),(Ct=ur)==null||Ct.pop(),jt}function ao(){return le}function Ga(){return _e}function ka(){return rK(_e,(ze,Qe)=>{var Ct;return(Ct=le[Qe])==null?void 0:Ct.commandLine},ze=>{const Qe=Qn(ze),Ct=yl(Qe);return Ct?Ct.text:mt.has(Qe)?void 0:en.readFile(Qe)},en)}function Ts(ze){return!!tn.get(ze.path)}function oc(ze){if(!ze.isDeclarationFile)return!1;if(ze.hasNoDefaultLib)return!0;if(!G.noLib)return!1;const Qe=en.useCaseSensitiveFileNames()?dS:i0;return G.lib?St(G.lib,Ct=>Qe(ze.fileName,it.get(Ct).actual)):Qe(ze.fileName,Ui())}function co(){return ge||(ge=Ple(pn))}function da(ze,Qe,Ct,jt,vn,$n){var bn,er;(bn=ur)==null||bn.push(ur.Phase.Emit,"emit",{path:ze==null?void 0:ze.path},!0);const mi=_u(()=>Ps(pn,ze,Qe,Ct,jt,vn,$n));return(er=ur)==null||er.pop(),mi}function mu(ze){return nt.has(Qn(ze))}function Ps(ze,Qe,Ct,jt,vn,$n,bn){if(!bn){const fr=nK(ze,Qe,Ct,jt);if(fr)return fr}const er=co().getEmitResolver(Bs(G)?void 0:Qe,jt);sl("beforeEmit");const mi=xW(er,Qt(Ct),Qe,NJ(G,$n,vn),vn,!1,bn);return sl("afterEmit"),ef("Emit","beforeEmit","afterEmit"),mi}function wa(ze){return yl(Qn(ze))}function yl(ze){return mt.get(ze)||void 0}function wf(ze,Qe,Ct){return t2(ze?Qe(ze,Ct):qi(pn.getSourceFiles(),jt=>(Ct&&Ct.throwIfCancellationRequested(),Qe(jt,Ct))))}function _c(ze,Qe){return wf(ze,su,Qe)}function Ll(ze,Qe){return wf(ze,Dp,Qe)}function fl(ze){var Qe;return ze?(Qe=Le.perFile)==null?void 0:Qe.get(ze.path):Le.allDiagnostics}function Wo(ze,Qe){return Gs(ze,Qe)}function an(ze){var Qe;if(dC(ze,G,pn))return et;const Ct=tr.getDiagnostics(ze.fileName);return(Qe=ze.commentDirectives)!=null&&Qe.length?Z(ze,ze.commentDirectives,Ct).diagnostics:Ct}function Xs(ze,Qe){const Ct=pn.getCompilerOptions();return!ze||Bs(Ct)?Er(ze,Qe):wf(ze,Di,Qe)}function su(ze){return pd(ze)?(ze.additionalSyntacticDiagnostics||(ze.additionalSyntacticDiagnostics=fn(ze)),Ro(ze.additionalSyntacticDiagnostics,ze.parseDiagnostics)):ze.parseDiagnostics}function _u(ze){try{return ze()}catch(Qe){throw Qe instanceof Yx&&(ge=void 0),Qe}}function Dp(ze,Qe){return Ro(WW(Gs(ze,Qe),G),an(ze))}function Gs(ze,Qe){return Jr(ze,Qe,Le,Pc)}function Pc(ze,Qe){return _u(()=>{if(dC(ze,G,pn))return et;const Ct=co();N.assert(!!ze.bindDiagnostics);const vn=(ze.scriptKind===1||ze.scriptKind===2)&&Fk(ze,G),$n=GL(ze,G.checkJs),er=!(!!ze.checkJsDirective&&ze.checkJsDirective.enabled===!1)&&(ze.scriptKind===3||ze.scriptKind===4||ze.scriptKind===5||$n||vn||ze.scriptKind===7);let mi=er?ze.bindDiagnostics:et,fr=er?Ct.getDiagnostics(ze,Qe):et;return $n&&(mi=Vn(mi,ti=>BW.has(ti.code)),fr=Vn(fr,ti=>BW.has(ti.code))),pe(ze,er&&!$n,mi,fr,vn?ze.jsDocDiagnostics:void 0)})}function pe(ze,Qe,...Ct){var jt;const vn=Oa(Ct);if(!Qe||!((jt=ze.commentDirectives)!=null&&jt.length))return vn;const{diagnostics:$n,directives:bn}=Z(ze,ze.commentDirectives,vn);for(const er of bn.getUnusedExpectations())$n.push(zie(ze,er.range,m.Unused_ts_expect_error_directive));return $n}function Z(ze,Qe,Ct){const jt=Rie(ze,Qe);return{diagnostics:Ct.filter($n=>gt($n,jt)===-1),directives:jt}}function we(ze,Qe){return _u(()=>co().getSuggestionDiagnostics(ze,Qe))}function gt(ze,Qe){const{file:Ct,start:jt}=ze;if(!Ct)return-1;const vn=wg(Ct);let $n=Zx(vn,jt).line-1;for(;$n>=0;){if(Qe.markUsed($n))return $n;const bn=Ct.text.slice(vn[$n],vn[$n+1]).trim();if(bn!==""&&!/^(\s*)\/\/(.*)$/.test(bn))return-1;$n--}return-1}function fn(ze){return _u(()=>{const Qe=[];return Ct(ze,ze),VC(ze,Ct,jt),Qe;function Ct(er,mi){switch(mi.kind){case 169:case 172:case 174:if(mi.questionToken===er)return Qe.push(bn(er,m.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(mi.type===er)return Qe.push(bn(er,m.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(er.kind){case 273:if(er.isTypeOnly)return Qe.push(bn(mi,m._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(er.isTypeOnly)return Qe.push(bn(er,m._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(er.isTypeOnly)return Qe.push(bn(er,m._0_declarations_can_only_be_used_in_TypeScript_files,rp(er)?"import...type":"export...type")),"skip";break;case 271:return Qe.push(bn(er,m.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(er.isExportEquals)return Qe.push(bn(er,m.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(er.token===119)return Qe.push(bn(er,m.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const ti=ma(120);return N.assertIsDefined(ti),Qe.push(bn(er,m._0_declarations_can_only_be_used_in_TypeScript_files,ti)),"skip";case 267:const gr=er.flags&32?ma(145):ma(144);return N.assertIsDefined(gr),Qe.push(bn(er,m._0_declarations_can_only_be_used_in_TypeScript_files,gr)),"skip";case 265:return Qe.push(bn(er,m.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return er.body?void 0:(Qe.push(bn(er,m.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const Zo=N.checkDefined(ma(94));return Qe.push(bn(er,m._0_declarations_can_only_be_used_in_TypeScript_files,Zo)),"skip";case 235:return Qe.push(bn(er,m.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return Qe.push(bn(er.type,m.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return Qe.push(bn(er.type,m.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:N.fail()}}function jt(er,mi){if(cq(mi)){const fr=un(mi.modifiers,Au);fr&&Qe.push(bn(fr,m.Decorators_are_not_valid_here))}else if(QS(mi)&&mi.modifiers){const fr=Ji(mi.modifiers,Au);if(fr>=0){if(No(mi)&&!G.experimentalDecorators)Qe.push(bn(mi.modifiers[fr],m.Decorators_are_not_valid_here));else if(Nc(mi)){const ti=Ji(mi.modifiers,uI);if(ti>=0){const gr=Ji(mi.modifiers,f5);if(fr>ti&&gr>=0&&fr<gr)Qe.push(bn(mi.modifiers[fr],m.Decorators_are_not_valid_here));else if(ti>=0&&fr<ti){const Zo=Ji(mi.modifiers,Au,ti);Zo>=0&&Qe.push(Fa(bn(mi.modifiers[Zo],m.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),bn(mi.modifiers[fr],m.Decorator_used_before_export_here)))}}}}}switch(mi.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(er===mi.typeParameters)return Qe.push($n(er,m.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(er===mi.modifiers)return vn(mi.modifiers,mi.kind===243),"skip";break;case 172:if(er===mi.modifiers){for(const fr of er)Ra(fr)&&fr.kind!==126&&fr.kind!==129&&Qe.push(bn(fr,m.The_0_modifier_can_only_be_used_in_TypeScript_files,ma(fr.kind)));return"skip"}break;case 169:if(er===mi.modifiers&&St(er,Ra))return Qe.push($n(er,m.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(er===mi.typeArguments)return Qe.push($n(er,m.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function vn(er,mi){for(const fr of er)switch(fr.kind){case 87:if(mi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:Qe.push(bn(fr,m.The_0_modifier_can_only_be_used_in_TypeScript_files,ma(fr.kind)));break;case 126:case 95:case 90:case 129:}}function $n(er,mi,...fr){const ti=er.pos;return ru(ze,ti,er.end-ti,mi,...fr)}function bn(er,mi,...fr){return rm(ze,er,mi,...fr)}})}function Er(ze,Qe){return Jr(ze,Qe,Ne,Ar)}function Ar(ze,Qe){return _u(()=>{const Ct=co().getEmitResolver(ze,Qe);return Ace(Qt(is),Ct,ze)||et})}function Jr(ze,Qe,Ct,jt){var vn;const $n=ze?(vn=Ct.perFile)==null?void 0:vn.get(ze.path):Ct.allDiagnostics;if($n)return $n;const bn=jt(ze,Qe);return ze?(Ct.perFile||(Ct.perFile=new Map)).set(ze.path,bn):Ct.allDiagnostics=bn,bn}function Di(ze,Qe){return ze.isDeclarationFile?[]:Er(ze,Qe)}function br(){return t2(Ro(tr.getGlobalDiagnostics(),Jo()))}function Jo(){if(!G.configFile)return et;let ze=tr.getDiagnostics(G.configFile.fileName);return Ud(Qe=>{ze=Ro(ze,tr.getDiagnostics(Qe.sourceFile.fileName))}),ze}function kl(){return se.length?t2(co().getGlobalDiagnostics().slice()):et}function Gc(){return re||et}function xl(ze,Qe,Ct,jt){Me(va(ze),Qe,Ct,void 0,jt)}function Zl(ze,Qe){return ze.fileName===Qe.fileName}function Ns(ze,Qe){return ze.kind===80?Qe.kind===80&&ze.escapedText===Qe.escapedText:Qe.kind===11&&ze.text===Qe.text}function ac(ze,Qe){const Ct=O.createStringLiteral(ze),jt=O.createImportDeclaration(void 0,void 0,Ct,void 0);return rI(jt,2),Qa(Ct,jt),Qa(jt,Qe),Ct.flags&=-17,jt.flags&=-17,Ct}function ap(ze){if(ze.imports)return;const Qe=pd(ze),Ct=mc(ze);let jt,vn,$n;if((dm(G)||Ct)&&!ze.isDeclarationFile){G.importHelpers&&(jt=[ac(qy,ze)]);const fr=s7(a7(G,ze),G);fr&&(jt||(jt=[])).push(ac(fr,ze))}for(const fr of ze.statements)bn(fr,!1);(ze.flags&4194304||Qe)&&er(ze),ze.imports=jt||et,ze.moduleAugmentations=vn||et,ze.ambientModuleNames=$n||et;return;function bn(fr,ti){if(UL(fr)){const gr=A2(fr);gr&&La(gr)&&gr.text&&(!ti||!tu(gr.text))&&(Hy(fr,!1),jt=Rn(jt,gr),!Je&&Xn===0&&!ze.isDeclarationFile&&(Je=ho(gr.text,"node:")))}else if(nc(fr)&&Ou(fr)&&(ti||Qr(fr,128)||ze.isDeclarationFile)){fr.name.parent=fr;const gr=am(fr.name);if(Ct||ti&&!tu(gr))(vn||(vn=[])).push(fr.name);else if(!ti){ze.isDeclarationFile&&($n||($n=[])).push(gr);const Zo=fr.body;if(Zo)for(const es of Zo.statements)bn(es,!0)}}}function er(fr){const ti=/import|require/g;for(;ti.exec(fr.text)!==null;){const gr=mi(fr,ti.lastIndex);Qe&&Ad(gr,!0)||Gp(gr)&&gr.arguments.length>=1&&hs(gr.arguments[0])?(Hy(gr,!1),jt=Rn(jt,gr.arguments[0])):By(gr)&&(Hy(gr,!1),jt=Rn(jt,gr.argument.literal))}}function mi(fr,ti){let gr=fr;const Zo=es=>{if(es.pos<=ti&&(ti<es.end||ti===es.end&&es.kind===1))return es};for(;;){const es=Qe&&zp(gr)&&Ve(gr.jsDoc,Zo)||Uo(gr,Zo);if(!es)return gr;gr=es}}}function sp(ze){var Qe;const{libFileName:Ct}=R2e(ze),jt=Ct&&((Qe=it==null?void 0:it.get(Ct))==null?void 0:Qe.actual);return jt!==void 0?wa(jt):void 0}function Yc(ze,Qe){return Cd(MW(Qe.fileName,ze.fileName),wa)}function Cd(ze,Qe,Ct,jt){if(PA(ze)){const vn=en.getCanonicalFileName(ze);if(!G.allowNonTsExtensions&&!Ve(Oa(Kt),bn=>Nl(vn,bn))){Ct&&($1(vn)?Ct(m.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,ze):Ct(m.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,ze,"'"+Oa(Nr).join("', '")+"'"));return}const $n=Qe(ze);if(Ct)if($n)w0(jt)&&vn===en.getCanonicalFileName(yl(jt.file).fileName)&&Ct(m.A_file_cannot_have_a_reference_to_itself);else{const bn=Kl(ze);bn?Ct(m.Output_file_0_has_not_been_built_from_source_file_1,bn,ze):Ct(m.File_0_not_found,ze)}return $n}else{const vn=G.allowNonTsExtensions&&Qe(ze);if(vn)return vn;if(Ct&&G.allowNonTsExtensions){Ct(m.File_0_not_found,ze);return}const $n=Ve(Nr[0],bn=>Qe(ze+bn));return Ct&&!$n&&Ct(m.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,ze,"'"+Oa(Nr).join("', '")+"'"),$n}}function Me(ze,Qe,Ct,jt,vn){Cd(ze,$n=>Qo($n,Qe,Ct,vn,jt),($n,...bn)=>Yr(void 0,vn,$n,bn),vn)}function Ot(ze,Qe){return Me(ze,!1,!1,void 0,Qe)}function Yn(ze,Qe,Ct){!w0(Ct)&&St(Se.get(Qe.path),w0)?Yr(Qe,Ct,m.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Qe.fileName,ze]):Yr(Qe,Ct,m.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[ze,Qe.fileName])}function Io(ze,Qe,Ct,jt,vn,$n,bn){var er;const mi=Dh.createRedirectedSourceFile({redirectTarget:ze,unredirected:Qe});return mi.fileName=Ct,mi.path=jt,mi.resolvedPath=vn,mi.originalFileName=$n,mi.packageJsonLocations=(er=bn.packageJsonLocations)!=null&&er.length?bn.packageJsonLocations:void 0,mi.packageJsonScope=bn.packageJsonScope,tn.set(jt,Xn>0),mi}function Qo(ze,Qe,Ct,jt,vn){var $n,bn;($n=ur)==null||$n.push(ur.Phase.Program,"findSourceFile",{fileName:ze,isDefaultLib:Qe||void 0,fileIncludeKind:u6[jt.kind]});const er=sc(ze,Qe,Ct,jt,vn);return(bn=ur)==null||bn.pop(),er}function ra(ze,Qe,Ct,jt){const vn=tK(To(ze,Ci),Qe==null?void 0:Qe.getPackageJsonInfoCache(),Ct,jt),$n=ps(jt),bn=kk(jt);return typeof vn=="object"?{...vn,languageVersion:$n,setExternalModuleIndicator:bn,jsDocParsingMode:Ct.jsDocParsingMode}:{languageVersion:$n,impliedNodeFormat:vn,setExternalModuleIndicator:bn,jsDocParsingMode:Ct.jsDocParsingMode}}function sc(ze,Qe,Ct,jt,vn){var $n;const bn=Qn(ze);if(ot){let gr=Pd(bn);if(!gr&&en.realpath&&G.preserveSymlinks&&Iu(ze)&&ze.includes(Nh)){const Zo=Qn(en.realpath(ze));Zo!==bn&&(gr=Pd(Zo))}if(gr){const Zo=wo(gr)?Qo(gr,Qe,Ct,jt,vn):void 0;return Zo&&ml(Zo,bn,ze,void 0),Zo}}const er=ze;if(mt.has(bn)){const gr=mt.get(bn);if(Ic(gr||void 0,jt),gr&&G.forceConsistentCasingInFileNames!==!1){const Zo=gr.fileName;Qn(Zo)!==Qn(ze)&&(ze=Kl(ze)||ze);const nd=KV(Zo,Ci),gu=KV(ze,Ci);nd!==gu&&Yn(ze,gr,jt)}return gr&&tn.get(gr.path)&&Xn===0?(tn.set(gr.path,!1),G.noResolve||(Mh(gr,Qe),Qg(gr)),G.noLib||Hd(gr),yn.set(gr.path,!1),lt(gr)):gr&&yn.get(gr.path)&&Xn<Nn&&(yn.set(gr.path,!1),lt(gr)),gr||void 0}let mi;if(w0(jt)&&!ot){const gr=lc(ze);if(gr){if(Bs(gr.commandLine.options))return;const Zo=$c(gr,ze);ze=Zo,mi=Qn(Zo)}}const fr=ra(ze,Dn,en,G),ti=en.getSourceFile(ze,fr,gr=>Yr(void 0,jt,m.Cannot_read_file_0_Colon_1,[ze,gr]),gn);if(vn){const gr=Fy(vn),Zo=Ba.get(gr);if(Zo){const es=Io(Zo,ti,ze,bn,Qn(ze),er,fr);return On.add(Zo.path,ze),ml(es,bn,ze,mi),Ic(es,jt),Tn.set(bn,Z6(vn)),he.push(es),es}else ti&&(Ba.set(gr,ti),Tn.set(bn,Z6(vn)))}if(ml(ti,bn,ze,mi),ti){if(tn.set(bn,Xn>0),ti.fileName=ze,ti.path=bn,ti.resolvedPath=Qn(ze),ti.originalFileName=er,ti.packageJsonLocations=($n=fr.packageJsonLocations)!=null&&$n.length?fr.packageJsonLocations:void 0,ti.packageJsonScope=fr.packageJsonScope,Ic(ti,jt),en.useCaseSensitiveFileNames()){const gr=ph(bn),Zo=Pt.get(gr);Zo?Yn(ze,Zo,jt):Pt.set(gr,ti)}bo=bo||ti.hasNoDefaultLib&&!Ct,G.noResolve||(Mh(ti,Qe),Qg(ti)),G.noLib||Hd(ti),lt(ti),Qe?oe.push(ti):he.push(ti)}return ti}function Ic(ze,Qe){ze&&Se.add(ze.path,Qe)}function ml(ze,Qe,Ct,jt){jt?(Sl(Ct,jt,ze),Sl(Ct,Qe,ze||!1)):Sl(Ct,Qe,ze)}function Sl(ze,Qe,Ct){mt.set(Qe,Ct),Ct!==void 0?pt.delete(Qe):pt.set(Qe,ze)}function Kl(ze){const Qe=lc(ze);return Qe&&$c(Qe,ze)}function lc(ze){if(!(!le||!le.length||Iu(ze)||Nl(ze,".json")))return ff(ze)}function $c(ze,Qe){const Ct=Bs(ze.commandLine.options);return Ct?S0(Ct,".d.ts"):lP(Qe,ze.commandLine,!en.useCaseSensitiveFileNames())}function ff(ze){dt===void 0&&(dt=new Map,Ud(Ct=>{Qn(G.configFilePath)!==Ct.sourceFile.path&&Ct.commandLine.fileNames.forEach(jt=>dt.set(Qn(jt),Ct.sourceFile.path))}));const Qe=dt.get(Qn(ze));return Qe&&H_(Qe)}function Ud(ze){return QJ(le,ze)}function Pd(ze){if(!!Iu(ze))return j===void 0&&(j=new Map,Ud(Qe=>{const Ct=Bs(Qe.commandLine.options);if(Ct){const jt=S0(Ct,".d.ts");j.set(Qn(jt),!0)}else{const jt=Td(()=>bR(Qe.commandLine,!en.useCaseSensitiveFileNames()));Ve(Qe.commandLine.fileNames,vn=>{if(!Iu(vn)&&!Nl(vn,".json")){const $n=lP(vn,Qe.commandLine,!en.useCaseSensitiveFileNames(),jt);j.set(Qn($n),vn)}})}})),j.get(ze)}function Of(ze){return ot&&!!ff(ze)}function H_(ze){if(!!Fe)return Fe.get(ze)||void 0}function Mh(ze,Qe){Ve(ze.referencedFiles,(Ct,jt)=>{Me(MW(Ct.fileName,ze.fileName),Qe,!1,void 0,{kind:4,file:ze.path,index:jt})})}function Qg(ze){const Qe=ze.typeReferenceDirectives;if(!Qe.length)return;const Ct=(on==null?void 0:on.get(ze.path))||vi(Qe,ze),jt=DI();(It!=null?It:It=new Map).set(ze.path,jt);for(let vn=0;vn<Qe.length;vn++){const $n=ze.typeReferenceDirectives[vn],bn=Ct[vn],er=ph($n.fileName);jt.set(er,aO($n,ze.impliedNodeFormat),bn);const mi=$n.resolutionMode||ze.impliedNodeFormat;Vu(er,mi,bn,{kind:5,file:ze.path,index:vn})}}function Vu(ze,Qe,Ct,jt){var vn,$n;(vn=ur)==null||vn.push(ur.Phase.Program,"processTypeReferenceDirective",{directive:ze,hasResolved:!!Ct.resolvedTypeReferenceDirective,refKind:jt.kind,refPath:w0(jt)?jt.file:void 0}),Zg(ze,Qe,Ct,jt),($n=ur)==null||$n.pop()}function Zg(ze,Qe,Ct,jt){var vn;Tt(Ct);const $n=(vn=Oe.get(ze,Qe))==null?void 0:vn.resolvedTypeReferenceDirective;if($n&&$n.primary)return;let bn=!0;const{resolvedTypeReferenceDirective:er}=Ct;if(er){if(er.isExternalLibraryImport&&Xn++,er.primary)Me(er.resolvedFileName,!1,!1,er.packageId,jt);else if($n){if(er.resolvedFileName!==$n.resolvedFileName){const mi=en.readFile(er.resolvedFileName),fr=wa($n.resolvedFileName);mi!==fr.text&&Yr(fr,jt,m.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[ze,er.resolvedFileName,$n.resolvedFileName])}bn=!1}else Me(er.resolvedFileName,!1,!1,er.packageId,jt);er.isExternalLibraryImport&&Xn--}else Yr(void 0,jt,m.Cannot_find_type_definition_file_for_0,[ze]);bn&&Oe.set(ze,Qe,Ct)}function Np(ze){const Qe=it==null?void 0:it.get(ze);if(Qe)return Qe.actual;const Ct=hg(ze);return(it!=null?it:it=new Map).set(ze,Ct),Ct.actual}function hg(ze){var Qe,Ct,jt,vn,$n;const bn=Ft==null?void 0:Ft.get(ze);if(bn)return bn;if(hn!==0&&Q&&!Po(ze)){const gr=(Qe=Q.resolvedLibReferences)==null?void 0:Qe.get(ze);if(gr){if(gr.resolution&&Kg(G,en)){const Zo=ZJ(ze),es=wW(G,Ci,ze);xo(en,gr.resolution.resolvedModule?gr.resolution.resolvedModule.packageId?m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,Zo,To(es,Ci),(Ct=gr.resolution.resolvedModule)==null?void 0:Ct.resolvedFileName,((jt=gr.resolution.resolvedModule)==null?void 0:jt.packageId)&&Fy(gr.resolution.resolvedModule.packageId))}return(Ft!=null?Ft:Ft=new Map).set(ze,gr),gr}}const er=ZJ(ze),mi=wW(G,Ci,ze);(vn=ur)==null||vn.push(ur.Phase.Program,"resolveLibrary",{resolveFrom:mi}),sl("beforeResolveLibrary");const fr=_a(er,mi,G,ze);sl("afterResolveLibrary"),ef("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),($n=ur)==null||$n.pop();const ti={resolution:fr,actual:fr.resolvedModule?fr.resolvedModule.resolvedFileName:$r(Co,ze)};return(Ft!=null?Ft:Ft=new Map).set(ze,ti),ti}function Hd(ze){Ve(ze.libReferenceDirectives,(Qe,Ct)=>{const{libName:jt,libFileName:vn}=R2e(Qe);if(vn)xl(Np(vn),!0,!0,{kind:7,file:ze.path,index:Ct});else{const $n=Hx(uN(jt,"lib."),".d.ts"),bn=cN($n,Lw,ol),er=bn?m.Cannot_find_lib_definition_for_0_Did_you_mean_1:m.Cannot_find_lib_definition_for_0,mi=bn?[jt,bn]:[jt];(At||(At=[])).push({kind:0,reason:{kind:7,file:ze.path,index:Ct},diagnostic:er,args:mi})}})}function te(ze){return en.getCanonicalFileName(ze)}function lt(ze){var Qe;if(ap(ze),ze.imports.length||ze.moduleAugmentations.length){const Ct=D2e(ze),jt=(Ze==null?void 0:Ze.get(ze.path))||Fi(Ct,ze);N.assert(jt.length===Ct.length);const vn=((Qe=or(ze))==null?void 0:Qe.commandLine.options)||G,$n=DI();(yt!=null?yt:yt=new Map).set(ze.path,$n);for(let bn=0;bn<Ct.length;bn++){const er=jt[bn].resolvedModule,mi=Ct[bn].text,fr=XJ(ze,Ct[bn],vn);if($n.set(mi,fr,jt[bn]),kt(ze,mi,jt[bn],fr),!er)continue;const ti=er.isExternalLibraryImport,gr=!cC(er.extension),Zo=ti&&gr&&(!er.originalPath||L0(er.resolvedFileName)),es=er.resolvedFileName;ti&&Xn++;const nd=Zo&&Xn>Nn,gu=es&&!iK(vn,er,ze)&&!vn.noResolve&&bn<ze.imports.length&&!nd&&!(gr&&!Jy(vn))&&(dr(ze.imports[bn])||!(ze.imports[bn].flags&16777216));nd?yn.set(ze.path,!0):gu&&Qo(es,!1,!1,{kind:3,file:ze.path,index:bn},er.packageId),ti&&Xn--}}}function zt(ze,Qe){let Ct=!0;const jt=en.getCanonicalFileName(To(Qe,Ci));for(const vn of ze)vn.isDeclarationFile||en.getCanonicalFileName(To(vn.fileName,Ci)).indexOf(jt)!==0&&(uo(vn,m.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[vn.fileName,Qe]),Ct=!1);return Ct}function qt(ze){Fe||(Fe=new Map);const Qe=TR(ze),Ct=Qn(Qe),jt=Fe.get(Ct);if(jt!==void 0)return jt||void 0;let vn,$n;if(en.getParsedCommandLine){if(vn=en.getParsedCommandLine(Qe),!vn){ml(void 0,Ct,Qe,void 0),Fe.set(Ct,!1);return}$n=N.checkDefined(vn.options.configFile),N.assert(!$n.path||$n.path===Ct),ml($n,Ct,Qe,void 0)}else{const er=To(ii(Qe),Ci);if($n=en.getSourceFile(Qe,100),ml($n,Ct,Qe,void 0),$n===void 0){Fe.set(Ct,!1);return}vn=Cw($n,gi,er,void 0,Qe)}$n.fileName=Qe,$n.path=Ct,$n.resolvedPath=Ct,$n.originalFileName=Qe;const bn={commandLine:vn,sourceFile:$n};return Fe.set(Ct,bn),vn.projectReferences&&(bn.references=vn.projectReferences.map(qt)),bn}function F(){G.strictPropertyInitialization&&!md(G,"strictNullChecks")&&gs(m.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),G.exactOptionalPropertyTypes&&!md(G,"strictNullChecks")&&gs(m.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(G.isolatedModules||G.verbatimModuleSyntax)&&(G.out&&gs(m.Option_0_cannot_be_specified_with_option_1,"out",G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),G.outFile&&gs(m.Option_0_cannot_be_specified_with_option_1,"outFile",G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules")),G.inlineSourceMap&&(G.sourceMap&&gs(m.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),G.mapRoot&&gs(m.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),G.composite&&(G.declaration===!1&&gs(m.Composite_projects_may_not_disable_declaration_emit,"declaration"),G.incremental===!1&&gs(m.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const ze=Bs(G);if(G.tsBuildInfoFile?SC(G)||gs(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):G.incremental&&!ze&&!G.configFilePath&&tr.add($l(m.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),Vt(),ja(),G.composite){const bn=new Set(se.map(Qn));for(const er of Ie)MS(er,pn)&&!bn.has(er.path)&&uo(er,m.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[er.fileName,G.configFilePath||""])}if(G.paths){for(const bn in G.paths)if(!!Ls(G.paths,bn))if(UU(bn)||hu(!0,bn,m.Pattern_0_can_have_at_most_one_Asterisk_character,bn),Do(G.paths[bn])){const er=G.paths[bn].length;er===0&&hu(!1,bn,m.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,bn);for(let mi=0;mi<er;mi++){const fr=G.paths[bn][mi],ti=typeof fr;ti==="string"?(UU(fr)||Vl(bn,mi,m.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,fr,bn),!G.baseUrl&&!Fp(fr)&&!mN(fr)&&Vl(bn,mi,m.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Vl(bn,mi,m.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,fr,bn,ti)}}else hu(!1,bn,m.Substitutions_for_pattern_0_should_be_an_array,bn)}!G.sourceMap&&!G.inlineSourceMap&&(G.inlineSources&&gs(m.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),G.sourceRoot&&gs(m.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),G.out&&G.outFile&&gs(m.Option_0_cannot_be_specified_with_option_1,"out","outFile"),G.mapRoot&&!(G.sourceMap||G.declarationMap)&&gs(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),G.declarationDir&&(Nf(G)||gs(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),ze&&gs(m.Option_0_cannot_be_specified_with_option_1,"declarationDir",G.out?"out":"outFile")),G.declarationMap&&!Nf(G)&&gs(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),G.lib&&G.noLib&&gs(m.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),G.noImplicitUseStrict&&md(G,"alwaysStrict")&&gs(m.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");const Qe=ps(G),Ct=un(Ie,bn=>mc(bn)&&!bn.isDeclarationFile);if(G.isolatedModules||G.verbatimModuleSyntax)G.module===0&&Qe<2&&G.isolatedModules&&gs(m.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),G.preserveConstEnums===!1&&gs(m.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,G.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Ct&&Qe<2&&G.module===0){const bn=AS(Ct,typeof Ct.externalModuleIndicator=="boolean"?Ct:Ct.externalModuleIndicator);tr.add(ru(Ct,bn.start,bn.length,m.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(ze&&!G.emitDeclarationOnly){if(G.module&&!(G.module===2||G.module===4))gs(m.Only_amd_and_system_modules_are_supported_alongside_0,G.out?"out":"outFile","module");else if(G.module===void 0&&Ct){const bn=AS(Ct,typeof Ct.externalModuleIndicator=="boolean"?Ct:Ct.externalModuleIndicator);tr.add(ru(Ct,bn.start,bn.length,m.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,G.out?"out":"outFile"))}}if(A0(G)&&(_d(G)===1?gs(m.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):r7(G)||gs(m.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),G.outDir||G.rootDir||G.sourceRoot||G.mapRoot){const bn=qr();G.outDir&&bn===""&&Ie.some(er=>_h(er.fileName)>1)&&gs(m.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}G.useDefineForClassFields&&Qe===0&&gs(m.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),G.checkJs&&!Jy(G)&&tr.add($l(m.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),G.emitDeclarationOnly&&(Nf(G)||gs(m.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),G.noEmit&&gs(m.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),G.emitDecoratorMetadata&&!G.experimentalDecorators&&gs(m.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),G.jsxFactory?(G.reactNamespace&&gs(m.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(G.jsx===4||G.jsx===5)&&gs(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",qC.get(""+G.jsx)),II(G.jsxFactory,Qe)||Wf("jsxFactory",m.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFactory)):G.reactNamespace&&!tf(G.reactNamespace,Qe)&&Wf("reactNamespace",m.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,G.reactNamespace),G.jsxFragmentFactory&&(G.jsxFactory||gs(m.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(G.jsx===4||G.jsx===5)&&gs(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",qC.get(""+G.jsx)),II(G.jsxFragmentFactory,Qe)||Wf("jsxFragmentFactory",m.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,G.jsxFragmentFactory)),G.reactNamespace&&(G.jsx===4||G.jsx===5)&&gs(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",qC.get(""+G.jsx)),G.jsxImportSource&&G.jsx===2&&gs(m.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",qC.get(""+G.jsx)),G.preserveValueImports&&Wu(G)<5&&gs(m.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");const jt=Wu(G);G.verbatimModuleSyntax&&((jt===2||jt===3||jt===4)&&gs(m.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),G.preserveValueImports&&zf("preserveValueImports","verbatimModuleSyntax"),G.importsNotUsedAsValues&&zf("importsNotUsedAsValues","verbatimModuleSyntax")),G.allowImportingTsExtensions&&!(G.noEmit||G.emitDeclarationOnly)&&Wf("allowImportingTsExtensions",m.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const vn=_d(G);if(G.resolvePackageJsonExports&&!ZA(vn)&&gs(m.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),G.resolvePackageJsonImports&&!ZA(vn)&&gs(m.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),G.customConditions&&!ZA(vn)&&gs(m.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),vn===100&&!n7(jt)&&jt!==200&&Wf("moduleResolution",m.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),pN[jt]&&100<=jt&&jt<=199&&!(3<=vn&&vn<=99)){const bn=pN[jt];Wf("moduleResolution",m.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,bn,bn)}else if($x[vn]&&3<=vn&&vn<=99&&!(100<=jt&&jt<=199)){const bn=$x[vn];Wf("module",m.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,bn,bn)}if(!G.noEmit&&!G.suppressOutputPathCheck){const bn=Qt(),er=new Set;PJ(bn,mi=>{G.emitDeclarationOnly||$n(mi.jsFilePath,er),$n(mi.declarationFilePath,er)})}function $n(bn,er){if(bn){const mi=Qn(bn);if(mt.has(mi)){let ti;G.configFilePath||(ti=jo(void 0,m.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),ti=jo(ti,m.Cannot_write_file_0_because_it_would_overwrite_input_file,bn),db(bn,e7(ti))}const fr=en.useCaseSensitiveFileNames()?mi:ph(mi);er.has(fr)?db(bn,$l(m.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,bn)):er.add(fr)}}}function De(){const ze=G.ignoreDeprecations;if(ze){if(ze==="5.0")return new Tm(ze);Y()}return Tm.zero}function st(ze,Qe,Ct,jt){const vn=new Tm(ze),$n=new Tm(Qe),bn=new Tm(ye||ue),er=De(),mi=$n.compareTo(bn)!==1,fr=!mi&&er.compareTo(vn)===-1;(mi||fr)&&jt((ti,gr,Zo)=>{mi?gr===void 0?Ct(ti,gr,Zo,m.Option_0_has_been_removed_Please_remove_it_from_your_configuration,ti):Ct(ti,gr,Zo,m.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,ti,gr):gr===void 0?Ct(ti,gr,Zo,m.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,ti,Qe,ze):Ct(ti,gr,Zo,m.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,ti,gr,Qe,ze)})}function Vt(){function ze(Qe,Ct,jt,vn,...$n){if(jt){const bn=jo(void 0,m.Use_0_instead,jt),er=jo(bn,vn,...$n);Hi(!Ct,Qe,void 0,er)}else Hi(!Ct,Qe,void 0,vn,...$n)}st("5.0","5.5",ze,Qe=>{G.target===0&&Qe("target","ES3"),G.noImplicitUseStrict&&Qe("noImplicitUseStrict"),G.keyofStringsOnly&&Qe("keyofStringsOnly"),G.suppressExcessPropertyErrors&&Qe("suppressExcessPropertyErrors"),G.suppressImplicitAnyIndexErrors&&Qe("suppressImplicitAnyIndexErrors"),G.noStrictGenericChecks&&Qe("noStrictGenericChecks"),G.charset&&Qe("charset"),G.out&&Qe("out",void 0,"outFile"),G.importsNotUsedAsValues&&Qe("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),G.preserveValueImports&&Qe("preserveValueImports",void 0,"verbatimModuleSyntax")})}function lr(ze,Qe,Ct){function jt(vn,$n,bn,er,...mi){Ff(Qe,Ct,er,...mi)}st("5.0","5.5",jt,vn=>{ze.prepend&&vn("prepend")})}function ri(ze,Qe,Ct,jt){var vn;let $n,bn,er=w0(Qe)?Qe:void 0;ze&&((vn=Se.get(ze.path))==null||vn.forEach(Zo)),Qe&&Zo(Qe),er&&($n==null?void 0:$n.length)===1&&($n=void 0);const mi=er&&uP(pn,er),fr=$n&&jo($n,m.The_file_is_in_the_program_because_Colon),ti=ze&&EK(ze),gr=jo(ti?fr?[fr,...ti]:ti:fr,Ct,...jt||et);return mi&&SR(mi)?a3(mi.file,mi.pos,mi.end-mi.pos,gr,bn):e7(gr,bn);function Zo(es){($n||($n=[])).push(AK(pn,es)),!er&&w0(es)?er=es:er!==es&&(bn=Rn(bn,Va(es))),es===Qe&&(Qe=void 0)}}function Yr(ze,Qe,Ct,jt){(At||(At=[])).push({kind:1,file:ze&&ze.path,fileProcessingReason:Qe,diagnostic:Ct,args:jt})}function uo(ze,Qe,Ct){tr.add(ri(ze,void 0,Qe,Ct))}function Va(ze){if(w0(ze)){const jt=uP(pn,ze);let vn;switch(ze.kind){case 3:vn=m.File_is_included_via_import_here;break;case 4:vn=m.File_is_included_via_reference_here;break;case 5:vn=m.File_is_included_via_type_library_reference_here;break;case 7:vn=m.File_is_included_via_library_reference_here;break;default:N.assertNever(ze)}return SR(jt)?ru(jt.file,jt.pos,jt.end-jt.pos,vn):void 0}if(!G.configFile)return;let Qe,Ct;switch(ze.kind){case 0:if(!G.configFile.configFileSpecs)return;const jt=To(se[ze.index],Ci),vn=SK(pn,jt);if(vn){Qe=f3(G.configFile,"files",vn),Ct=m.File_is_matched_by_files_list_specified_here;break}const $n=TK(pn,jt);if(!$n||!wo($n))return;Qe=f3(G.configFile,"include",$n),Ct=m.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const bn=N.checkDefined(le==null?void 0:le[ze.index]),er=kW(_e,le,(Zo,es,nd)=>Zo===bn?{sourceFile:(es==null?void 0:es.sourceFile)||G.configFile,index:nd}:void 0);if(!er)return;const{sourceFile:mi,index:fr}=er,ti=YL(mi,"references",Zo=>hd(Zo.initializer)?Zo.initializer:void 0);return ti&&ti.elements.length>fr?rm(mi,ti.elements[fr],ze.kind===2?m.File_is_output_from_referenced_project_specified_here:m.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!G.types)return;Qe=ub("types",ze.typeReference),Ct=m.File_is_entry_point_of_type_library_specified_here;break;case 6:if(ze.index!==void 0){Qe=ub("lib",G.lib[ze.index]),Ct=m.File_is_library_specified_here;break}const gr=qc(ww.type,(Zo,es)=>Zo===ps(G)?es:void 0);Qe=gr?qd("target",gr):void 0,Ct=m.File_is_default_library_for_target_specified_here;break;default:N.assertNever(ze)}return Qe&&rm(G.configFile,Qe,Ct)}function ja(){const ze=G.suppressOutputPathCheck?void 0:$v(G);kW(_e,le,(Qe,Ct,jt)=>{const vn=(Ct?Ct.commandLine.projectReferences:_e)[jt],$n=Ct&&Ct.sourceFile;if(lr(vn,$n,jt),!Qe){Ff($n,jt,m.File_0_not_found,vn.path);return}const bn=Qe.commandLine.options;if((!bn.composite||bn.noEmit)&&(Ct?Ct.commandLine.fileNames:se).length&&(bn.composite||Ff($n,jt,m.Referenced_project_0_must_have_setting_composite_Colon_true,vn.path),bn.noEmit&&Ff($n,jt,m.Referenced_project_0_may_not_disable_emit,vn.path)),vn.prepend){const er=Bs(bn);er?en.fileExists(er)||Ff($n,jt,m.Output_file_0_from_project_1_does_not_exist,er,vn.path):Ff($n,jt,m.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,vn.path)}!Ct&&ze&&ze===$v(bn)&&(Ff($n,jt,m.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,ze,vn.path),nt.set(Qn(ze),!0))})}function Vl(ze,Qe,Ct,...jt){let vn=!0;Cp($n=>{za($n.initializer)&&v2($n.initializer,ze,bn=>{const er=bn.initializer;hd(er)&&er.elements.length>Qe&&(tr.add(rm(G.configFile,er.elements[Qe],Ct,...jt)),vn=!1)})}),vn&&tr.add($l(Ct,...jt))}function hu(ze,Qe,Ct,...jt){let vn=!0;Cp($n=>{za($n.initializer)&&gg($n.initializer,ze,Qe,void 0,Ct,...jt)&&(vn=!1)}),vn&&tr.add($l(Ct,...jt))}function Mc(ze,Qe){return v2(Lh(),ze,Qe)}function Cp(ze){return Mc("paths",ze)}function qd(ze,Qe){return Mc(ze,Ct=>La(Ct.initializer)&&Ct.initializer.text===Qe?Ct.initializer:void 0)}function ub(ze,Qe){const Ct=Lh();return Ct&&Kie(Ct,ze,Qe)}function gs(ze,Qe,Ct,jt){Hi(!0,Qe,Ct,ze,Qe,Ct,jt)}function Wf(ze,Qe,...Ct){Hi(!1,ze,void 0,Qe,...Ct)}function Ff(ze,Qe,Ct,...jt){const vn=YL(ze||G.configFile,"references",$n=>hd($n.initializer)?$n.initializer:void 0);vn&&vn.elements.length>Qe?tr.add(rm(ze||G.configFile,vn.elements[Qe],Ct,...jt)):tr.add($l(Ct,...jt))}function Hi(ze,Qe,Ct,jt,...vn){const $n=Lh();(!$n||!gg($n,ze,Qe,Ct,jt,...vn))&&("messageText"in jt?tr.add(e7(jt)):tr.add($l(jt,...vn)))}function Lh(){return Bt===void 0&&(Bt=v2(ON(G.configFile),"compilerOptions",ze=>za(ze.initializer)?ze.initializer:void 0)||!1),Bt||void 0}function gg(ze,Qe,Ct,jt,vn,...$n){let bn=!1;return v2(ze,Ct,er=>{"messageText"in vn?tr.add(zg(G.configFile,Qe?er.name:er.initializer,vn)):tr.add(rm(G.configFile,Qe?er.name:er.initializer,vn,...$n)),bn=!0},jt),bn}function zf(ze,Qe){const Ct=Lh();Ct?gg(Ct,!0,ze,void 0,m.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Qe):gs(m.Option_0_is_redundant_and_cannot_be_specified_with_option_1,ze,Qe)}function db(ze,Qe){nt.set(Qn(ze),!0),tr.add(Qe)}function pb(ze){if(G.noEmit)return!1;const Qe=Qn(ze);if(yl(Qe))return!1;const Ct=Bs(G);if(Ct)return mf(Qe,Ct)||mf(Qe,Id(Ct)+".d.ts");if(G.declarationDir&&Am(G.declarationDir,Qe,Ci,!en.useCaseSensitiveFileNames()))return!0;if(G.outDir)return Am(G.outDir,Qe,Ci,!en.useCaseSensitiveFileNames());if(Rc(Qe,J2)||Iu(Qe)){const jt=Id(Qe);return!!yl(jt+".ts")||!!yl(jt+".tsx")}return!1}function mf(ze,Qe){return kg(ze,Qe,Ci,!en.useCaseSensitiveFileNames())===0}function q_(){return en.getSymlinkCache?en.getSymlinkCache():(de||(de=HU(Ci,te)),Ie&&!de.hasProcessedResolutions()&&de.setSymlinksFromResolutions(L,me,He),de)}function _f(ze,Qe){var Ct;const jt=((Ct=or(ze))==null?void 0:Ct.commandLine.options)||G;return XJ(ze,Qe,jt)}function ev(ze,Qe){return _f(ze,cO(ze,Qe))}}function $He(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:is,fileExists:p};e.compilerHost.fileExists=p;let l;return i&&(l=e.compilerHost.directoryExists=I=>i.call(e.compilerHost,I)?(b(I),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(R=>{const M=Bs(R.commandLine.options);if(M)t.add(ii(e.toPath(M)));else{const C=R.commandLine.options.declarationDir||R.commandLine.options.outDir;C&&t.add(e.toPath(C))}})),A(I,!1)):!1),o&&(e.compilerHost.getDirectories=I=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,I)?o.call(e.compilerHost,I):[]),s&&(e.compilerHost.realpath=I=>{var R;return((R=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:R.get(e.toPath(I)))||s.call(e.compilerHost,I)}),{onProgramCreateComplete:u,fileExists:p,directoryExists:l};function u(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function p(I){return r.call(e.compilerHost,I)?!0:!e.getResolvedProjectReferences()||!Iu(I)?!1:A(I,!0)}function v(I){const R=e.getSourceOfProjectReferenceRedirect(e.toPath(I));return R!==void 0?wo(R)?r.call(e.compilerHost,R):!0:void 0}function f(I){const R=e.toPath(I),M=`${R}${cl}`;return vh(t,C=>R===C||ho(C,M)||ho(R,`${C}/`))}function b(I){var R;if(!e.getResolvedProjectReferences()||_C(I)||!s||!I.includes(Nh))return;const M=e.getSymlinkCache(),C=Hc(e.toPath(I));if((R=M.getSymlinkedDirectories())!=null&&R.has(C))return;const W=va(s.call(e.compilerHost,I));let U;if(W===I||(U=Hc(e.toPath(W)))===C){M.setSymlinkedDirectory(C,!1);return}M.setSymlinkedDirectory(I,{real:Hc(W),realPath:U})}function A(I,R){var M;const C=R?V=>v(V):V=>f(V),W=C(I);if(W!==void 0)return W;const U=e.getSymlinkCache(),X=U.getSymlinkedDirectories();if(!X)return!1;const ee=e.toPath(I);return ee.includes(Nh)?R&&((M=U.getSymlinkedFiles())==null?void 0:M.has(ee))?!0:ar(X.entries(),([V,se])=>{if(!se||!ho(ee,V))return;const G=C(ee.replace(V,se.realPath));if(R&&G){const re=To(I,e.compilerHost.getCurrentDirectory());U.setSymlinkedFile(ee,`${se.real}${re.replace(new RegExp(V,"i"),"")}`)}return G})||!1:!1}}function nK(e,t,r,i){const o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||Bs(o)?GW:e.emitBuildInfo(r,i);if(!o.noEmitOnError)return;let s=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(s.length===0&&Nf(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t&&!Bs(o)){const u=e.emitBuildInfo(r,i);u.diagnostics&&(s=[...s,...u.diagnostics]),l=u.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function WW(e,t){return Vn(e,r=>!r.skippedOn||!t[r.skippedOn])}function FW(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return N.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,o,s,l)},readFile:r=>t.readFile(r),directoryExists:aa(t,t.directoryExists),getDirectories:aa(t,t.getDirectories),realpath:aa(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||r0,trace:e.trace?r=>e.trace(r):void 0}}function rK(e,t,r,i){if(!e)return et;let o;for(let s=0;s<e.length;s++){const l=e[s],u=t(l,s);if(l.prepend&&u&&u.options){if(!Bs(u.options))continue;const{jsFilePath:v,sourceMapFilePath:f,declarationFilePath:b,declarationMapPath:A,buildInfoPath:I}=aP(u.options,!0),R=IH(r,v,f,b,A,I,i,u.options);(o||(o=[])).push(R)}}return o||et}function TR(e){return CK(e.path)}function iK(e,{extension:t},{isDeclarationFile:r}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return i();case".jsx":return i()||o();case".js":case".mjs":case".cjs":return o();case".json":return s();default:return l()}function i(){return e.jsx?void 0:m.Module_0_was_resolved_to_1_but_jsx_is_not_set}function o(){return Jy(e)||!md(e,"noImplicitAny")?void 0:m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function s(){return A0(e)?void 0:m.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function l(){return r||e.allowArbitraryExtensions?void 0:m.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function D2e({imports:e,moduleAugmentations:t}){const r=e.map(i=>i);for(const i of t)i.kind===11&&r.push(i);return r}function cO({imports:e,moduleAugmentations:t},r){if(r<e.length)return e[r];let i=e.length;for(const o of t)if(o.kind===11){if(r===i)return o;i++}N.fail("should never ask for module name at index higher than possible module name")}var oK,aK,sK,Wce,Fce,N2e,zce,Bce,zW,C2e,AR,BW,GW,QHe=S({"src/compiler/program.ts"(){ia(),fS(),oK=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(oK||{}),aK="\x1B[7m",sK=" ",Wce="\x1B[0m",Fce="...",N2e=" ",zce=" ",Bce={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},zW={getName:Oce,getMode:(e,t,r)=>KJ(t,e,r)},C2e={getName:$J,getMode:(e,t)=>aO(e,t==null?void 0:t.impliedNodeFormat)},AR="__inferred type names__.ts",BW=new Set([m.Cannot_redeclare_block_scoped_variable_0.code,m.A_module_cannot_have_multiple_default_exports.code,m.Another_export_default_is_here.code,m.The_first_export_default_is_here.code,m.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,m.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,m.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,m.constructor_is_a_reserved_word.code,m.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,m.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,m.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,m.Invalid_use_of_0_in_strict_mode.code,m.A_label_is_not_allowed_here.code,m.with_statements_are_not_allowed_in_strict_mode.code,m.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,m.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,m.A_class_declaration_without_the_default_modifier_must_have_a_name.code,m.A_class_member_cannot_have_the_0_keyword.code,m.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,m.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,m.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,m.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,m.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,m.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,m.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,m.A_destructuring_declaration_must_have_an_initializer.code,m.A_get_accessor_cannot_have_parameters.code,m.A_rest_element_cannot_contain_a_binding_pattern.code,m.A_rest_element_cannot_have_a_property_name.code,m.A_rest_element_cannot_have_an_initializer.code,m.A_rest_element_must_be_last_in_a_destructuring_pattern.code,m.A_rest_parameter_cannot_have_an_initializer.code,m.A_rest_parameter_must_be_last_in_a_parameter_list.code,m.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,m.A_return_statement_cannot_be_used_inside_a_class_static_block.code,m.A_set_accessor_cannot_have_rest_parameter.code,m.A_set_accessor_must_have_exactly_one_parameter.code,m.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,m.An_export_declaration_cannot_have_modifiers.code,m.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,m.An_import_declaration_cannot_have_modifiers.code,m.An_object_member_cannot_be_declared_optional.code,m.Argument_of_dynamic_import_cannot_be_spread_element.code,m.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,m.Cannot_redeclare_identifier_0_in_catch_clause.code,m.Catch_clause_variable_cannot_have_an_initializer.code,m.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,m.Classes_can_only_extend_a_single_class.code,m.Classes_may_not_have_a_field_named_constructor.code,m.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,m.Duplicate_label_0.code,m.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,m.for_await_loops_cannot_be_used_inside_a_class_static_block.code,m.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,m.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,m.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,m.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,m.Jump_target_cannot_cross_function_boundary.code,m.Line_terminator_not_permitted_before_arrow.code,m.Modifiers_cannot_appear_here.code,m.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,m.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,m.Private_identifiers_are_not_allowed_outside_class_bodies.code,m.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,m.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,m.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,m.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,m.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,m.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,m.Trailing_comma_not_allowed.code,m.Variable_declaration_list_cannot_be_empty.code,m._0_and_1_operations_cannot_be_mixed_without_parentheses.code,m._0_expected.code,m._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,m._0_list_cannot_be_empty.code,m._0_modifier_already_seen.code,m._0_modifier_cannot_appear_on_a_constructor_declaration.code,m._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,m._0_modifier_cannot_appear_on_a_parameter.code,m._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,m._0_modifier_cannot_be_used_here.code,m._0_modifier_must_precede_1_modifier.code,m._0_declarations_can_only_be_declared_inside_a_block.code,m._0_declarations_must_be_initialized.code,m.extends_clause_already_seen.code,m.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,m.Class_constructor_may_not_be_a_generator.code,m.Class_constructor_may_not_be_an_accessor.code,m.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,m.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,m.Private_field_0_must_be_declared_in_an_enclosing_class.code,m.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),GW={diagnostics:et,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),ZHe=S({"src/compiler/builderStatePublic.ts"(){}});function Gce(e,t,r,i,o,s){const l=[],{emitSkipped:u,diagnostics:p}=e.emit(t,v,i,r,o,s);return{outputFiles:l,emitSkipped:u,diagnostics:p};function v(f,b,A){l.push({name:f,writeByteOrderMark:A,text:b})}}var Om,eqe=S({"src/compiler/builderState.ts"(){ia(),(e=>{function t(){function Q(Y,oe,he){const Ie={getKeys:de=>oe.get(de),getValues:de=>Y.get(de),keys:()=>Y.keys(),deleteKey:de=>{(he||(he=new Set)).add(de);const ie=Y.get(de);return ie?(ie.forEach(ge=>i(oe,ge,de)),Y.delete(de),!0):!1},set:(de,ie)=>{he==null||he.delete(de);const ge=Y.get(de);return Y.set(de,ie),ge==null||ge.forEach(Ce=>{ie.has(Ce)||i(oe,Ce,de)}),ie.forEach(Ce=>{ge!=null&&ge.has(Ce)||r(oe,Ce,de)}),Ie}};return Ie}return Q(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(Q,Y,oe){let he=Q.get(Y);he||(he=new Set,Q.set(Y,he)),he.add(oe)}function i(Q,Y,oe){const he=Q.get(Y);return he!=null&&he.delete(oe)?(he.size||Q.delete(Y),!0):!1}function o(Q){return Vi(Q.declarations,Y=>{var oe;return(oe=Jn(Y))==null?void 0:oe.resolvedPath})}function s(Q,Y){const oe=Q.getSymbolAtLocation(Y);return oe&&o(oe)}function l(Q,Y,oe,he){return ll(Q.getProjectReferenceRedirect(Y)||Y,oe,he)}function u(Q,Y,oe){let he;if(Y.imports&&Y.imports.length>0){const ge=Q.getTypeChecker();for(const Ce of Y.imports){const qe=s(ge,Ce);qe==null||qe.forEach(ie)}}const Ie=ii(Y.resolvedPath);if(Y.referencedFiles&&Y.referencedFiles.length>0)for(const ge of Y.referencedFiles){const Ce=l(Q,ge.fileName,Ie,oe);ie(Ce)}if(Q.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:ge})=>{if(!ge)return;const Ce=ge.resolvedFileName,qe=l(Q,Ce,Ie,oe);ie(qe)},Y),Y.moduleAugmentations.length){const ge=Q.getTypeChecker();for(const Ce of Y.moduleAugmentations){if(!La(Ce))continue;const qe=ge.getSymbolAtLocation(Ce);!qe||de(qe)}}for(const ge of Q.getTypeChecker().getAmbientModules())ge.declarations&&ge.declarations.length>1&&de(ge);return he;function de(ge){if(!!ge.declarations)for(const Ce of ge.declarations){const qe=Jn(Ce);qe&&qe!==Y&&ie(qe.resolvedPath)}}function ie(ge){(he||(he=new Set)).add(ge)}}function p(Q,Y){return Y&&!Y.referencedMap==!Q}e.canReuseOldState=p;function v(Q,Y,oe){var he,Ie,de;const ie=new Map,ge=Q.getCompilerOptions(),Ce=Bs(ge),qe=ge.module!==0&&!Ce?t():void 0,Se=qe?t():void 0,Le=p(qe,Y);Q.getTypeChecker();for(const Ne of Q.getSourceFiles()){const Oe=N.checkDefined(Ne.version,"Program intended to be used with Builder should have source files with versions set"),At=Le?(he=Y.oldSignatures)==null?void 0:he.get(Ne.resolvedPath):void 0,be=At===void 0?Le?(Ie=Y.fileInfos.get(Ne.resolvedPath))==null?void 0:Ie.signature:void 0:At||void 0;if(qe){const He=u(Q,Ne,Q.getCanonicalFileName);if(He&&qe.set(Ne.resolvedPath,He),Le){const it=(de=Y.oldExportedModulesMap)==null?void 0:de.get(Ne.resolvedPath),Ft=it===void 0?Y.exportedModulesMap.getValues(Ne.resolvedPath):it||void 0;Ft&&Se.set(Ne.resolvedPath,Ft)}}ie.set(Ne.resolvedPath,{version:Oe,signature:be,affectsGlobalScope:Ce?void 0:G(Ne)||void 0,impliedFormat:Ne.impliedNodeFormat})}return{fileInfos:ie,referencedMap:qe,exportedModulesMap:Se,useFileVersionAsSignature:!oe&&!Le}}e.create=v;function f(Q){Q.allFilesExcludingDefaultLibraryFile=void 0,Q.allFileNames=void 0}e.releaseCache=f;function b(Q,Y,oe,he,Ie){var de,ie;const ge=A(Q,Y,oe,he,Ie);return(de=Q.oldSignatures)==null||de.clear(),(ie=Q.oldExportedModulesMap)==null||ie.clear(),ge}e.getFilesAffectedBy=b;function A(Q,Y,oe,he,Ie){const de=Y.getSourceFileByPath(oe);return de?M(Q,Y,de,he,Ie)?(Q.referencedMap?ye:_e)(Q,Y,de,he,Ie):[de]:et}e.getFilesAffectedByWithOldState=A;function I(Q,Y,oe){Q.fileInfos.get(oe).signature=Y,(Q.hasCalledUpdateShapeSignature||(Q.hasCalledUpdateShapeSignature=new Set)).add(oe)}e.updateSignatureOfFile=I;function R(Q,Y,oe,he,Ie){Q.emit(Y,(de,ie,ge,Ce,qe,Se)=>{N.assert(Iu(de),`File extension for signature expected to be dts: Got:: ${de}`),Ie(cK(Q,Y,ie,he,Se),qe)},oe,!0,void 0,!0)}e.computeDtsSignature=R;function M(Q,Y,oe,he,Ie,de=Q.useFileVersionAsSignature){var ie;if((ie=Q.hasCalledUpdateShapeSignature)!=null&&ie.has(oe.resolvedPath))return!1;const ge=Q.fileInfos.get(oe.resolvedPath),Ce=ge.signature;let qe;if(!oe.isDeclarationFile&&!de&&R(Y,oe,he,Ie,(Se,Le)=>{qe=Se,qe!==Ce&&C(Q,oe,Le[0].exportedModulesFromDeclarationEmit)}),qe===void 0&&(qe=oe.version,Q.exportedModulesMap&&qe!==Ce)){(Q.oldExportedModulesMap||(Q.oldExportedModulesMap=new Map)).set(oe.resolvedPath,Q.exportedModulesMap.getValues(oe.resolvedPath)||!1);const Se=Q.referencedMap?Q.referencedMap.getValues(oe.resolvedPath):void 0;Se?Q.exportedModulesMap.set(oe.resolvedPath,Se):Q.exportedModulesMap.deleteKey(oe.resolvedPath)}return(Q.oldSignatures||(Q.oldSignatures=new Map)).set(oe.resolvedPath,Ce||!1),(Q.hasCalledUpdateShapeSignature||(Q.hasCalledUpdateShapeSignature=new Set)).add(oe.resolvedPath),ge.signature=qe,qe!==Ce}e.updateShapeSignature=M;function C(Q,Y,oe){if(!Q.exportedModulesMap)return;(Q.oldExportedModulesMap||(Q.oldExportedModulesMap=new Map)).set(Y.resolvedPath,Q.exportedModulesMap.getValues(Y.resolvedPath)||!1);const he=W(oe);he?Q.exportedModulesMap.set(Y.resolvedPath,he):Q.exportedModulesMap.deleteKey(Y.resolvedPath)}e.updateExportedModules=C;function W(Q){let Y;return Q==null||Q.forEach(oe=>o(oe).forEach(he=>(Y!=null?Y:Y=new Set).add(he))),Y}e.getExportedModules=W;function U(Q,Y,oe){const he=Y.getCompilerOptions();if(Bs(he)||!Q.referencedMap||G(oe))return X(Q,Y);const Ie=new Set,de=[oe.resolvedPath];for(;de.length;){const ie=de.pop();if(!Ie.has(ie)){Ie.add(ie);const ge=Q.referencedMap.getValues(ie);if(ge)for(const Ce of ge.keys())de.push(Ce)}}return Go(TA(Ie.keys(),ie=>{var Ce;var ge;return(Ce=(ge=Y.getSourceFileByPath(ie))==null?void 0:ge.fileName)!=null?Ce:ie}))}e.getAllDependencies=U;function X(Q,Y){if(!Q.allFileNames){const oe=Y.getSourceFiles();Q.allFileNames=oe===et?et:oe.map(he=>he.fileName)}return Q.allFileNames}function ee(Q,Y){const oe=Q.referencedMap.getKeys(Y);return oe?Go(oe.keys()):[]}e.getReferencedByPaths=ee;function V(Q){for(const Y of Q.statements)if(!i3(Y))return!1;return!0}function se(Q){return St(Q.moduleAugmentations,Y=>R_(Y.parent))}function G(Q){return se(Q)||!Bp(Q)&&!im(Q)&&!V(Q)}function re(Q,Y,oe){if(Q.allFilesExcludingDefaultLibraryFile)return Q.allFilesExcludingDefaultLibraryFile;let he;oe&&Ie(oe);for(const de of Y.getSourceFiles())de!==oe&&Ie(de);return Q.allFilesExcludingDefaultLibraryFile=he||et,Q.allFilesExcludingDefaultLibraryFile;function Ie(de){Y.isSourceFileDefaultLibrary(de)||(he||(he=[])).push(de)}}e.getAllFilesExcludingDefaultLibraryFile=re;function _e(Q,Y,oe){const he=Y.getCompilerOptions();return he&&Bs(he)?[oe]:re(Q,Y,oe)}function ye(Q,Y,oe,he,Ie){if(G(oe))return re(Q,Y,oe);const de=Y.getCompilerOptions();if(de&&(dm(de)||Bs(de)))return[oe];const ie=new Map;ie.set(oe.resolvedPath,oe);const ge=ee(Q,oe.resolvedPath);for(;ge.length>0;){const Ce=ge.pop();if(!ie.has(Ce)){const qe=Y.getSourceFileByPath(Ce);ie.set(Ce,qe),qe&&M(Q,Y,qe,he,Ie)&&ge.push(...ee(Q,qe.resolvedPath))}}return Go(TA(ie.values(),Ce=>Ce))}})(Om||(Om={}))}});function ib(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Nf(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function IR(e,t){const r=t&&(Cv(t)?t:ib(t)),i=Cv(e)?e:ib(e);if(r===i)return 0;if(!r||!i)return i;const o=r^i;let s=0;return o&7&&(s=i&7),o&24&&(s=s|i&24),s}function tqe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!vh(e,r=>!t.has(r))}function nqe(e,t){var r,i;const o=Om.create(e,t,!1);o.program=e;const s=e.getCompilerOptions();o.compilerOptions=s;const l=Bs(s);l?s.composite&&(t==null?void 0:t.outSignature)&&l===Bs(t==null?void 0:t.compilerOptions)&&(o.outSignature=t.outSignature&&M2e(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t==null?void 0:t.latestChangedDtsFile:void 0;const u=Om.canReuseOldState(o.referencedMap,t),p=u?t.compilerOptions:void 0,v=u&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!rae(s,p),f=s.composite&&(t==null?void 0:t.emitSignatures)&&!l&&!oae(s,t.compilerOptions);u?((r=t.changedFilesSet)==null||r.forEach(M=>o.changedFilesSet.add(M)),!l&&((i=t.affectedFilesPendingEmit)==null?void 0:i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;const b=o.referencedMap,A=u?t.referencedMap:void 0,I=v&&!s.skipLibCheck==!p.skipLibCheck,R=I&&!s.skipDefaultLibCheck==!p.skipDefaultLibCheck;if(o.fileInfos.forEach((M,C)=>{var ee,V,se;var W;let U,X;if(!u||!(U=t.fileInfos.get(C))||U.version!==M.version||U.impliedFormat!==M.impliedFormat||!tqe(X=b&&b.getValues(C),A&&A.getValues(C))||X&&vh(X,G=>!o.fileInfos.has(G)&&t.fileInfos.has(G)))P2e(o,C);else{const G=e.getSourceFileByPath(C),re=(W=t.emitDiagnosticsPerFile)==null?void 0:W.get(C);if(re&&((ee=o.emitDiagnosticsPerFile)!=null?ee:o.emitDiagnosticsPerFile=new Map).set(C,t.hasReusableDiagnostic?w2e(re,e):L2e(re,e)),v){if(G.isDeclarationFile&&!I||G.hasNoDefaultLib&&!R)return;const _e=t.semanticDiagnosticsPerFile.get(C);_e&&(o.semanticDiagnosticsPerFile.set(C,t.hasReusableDiagnostic?w2e(_e,e):L2e(_e,e)),((V=o.semanticDiagnosticsFromOldState)!=null?V:o.semanticDiagnosticsFromOldState=new Set).add(C))}}if(f){const G=t.emitSignatures.get(C);G&&((se=o.emitSignatures)!=null?se:o.emitSignatures=new Map).set(C,M2e(s,t.compilerOptions,G))}}),u&&qc(t.fileInfos,(M,C)=>o.fileInfos.has(C)?!1:l||M.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))Om.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(M=>P2e(o,M.resolvedPath));else if(p){const M=iae(s,p)?ib(s):IR(s,p);M!==0&&(l?o.programEmitPending=o.programEmitPending?o.programEmitPending|M:M:(e.getSourceFiles().forEach(C=>{o.changedFilesSet.has(C.resolvedPath)||Jce(o,C.resolvedPath,M)}),N.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return l&&!o.changedFilesSet.size&&(u&&(o.bundle=t.bundle),St(e.getProjectReferences(),M=>!!M.prepend)&&(o.programEmitPending=ib(s))),o}function P2e(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function M2e(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:wo(r)?[r]:r[0]}function L2e(e,t){return e.length?mo(e,r=>{if(wo(r.messageText))return r;const i=Vce(r.messageText,r.file,t,o=>{var s;return(s=o.repopulateInfo)==null?void 0:s.call(o)});return i===r.messageText?r:{...r,messageText:i}}):e}function Vce(e,t,r,i){const o=i(e);if(o)return{...Q6(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:k2e(e.next,t,r,i)};const s=k2e(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function k2e(e,t,r,i){return mo(e,o=>Vce(o,t,r,i))}function w2e(e,t){if(!e.length)return et;let r;return e.map(o=>{const s=O2e(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;const{relatedInformation:l}=o;return s.relatedInformation=l?l.length?l.map(u=>O2e(u,t,i)):[]:void 0,s});function i(o){return r!=null||(r=ii(To($v(t.getCompilerOptions()),t.getCurrentDirectory()))),ll(o,r,t.getCanonicalFileName)}}function O2e(e,t,r){const{file:i}=e,o=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:o,messageText:wo(e.messageText)?e.messageText:Vce(e.messageText,o,t,s=>s.info)}}function rqe(e){Om.releaseCache(e),e.program=void 0}function iqe(e){const t=Bs(e.compilerOptions);return N.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0,buildInfoEmitPending:e.buildInfoEmitPending,emitDiagnosticsPerFile:e.emitDiagnosticsPerFile&&new Map(e.emitDiagnosticsPerFile)}}function oqe(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,e.buildInfoEmitPending=t.buildInfoEmitPending,e.emitDiagnosticsPerFile=t.emitDiagnosticsPerFile,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function W2e(e,t){N.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function F2e(e,t,r){for(var i,o;;){const{affectedFiles:s}=e;if(s){const v=e.seenAffectedFiles;let f=e.affectedFilesIndex;for(;f<s.length;){const b=s[f];if(!v.has(b.resolvedPath))return e.affectedFilesIndex=f,Jce(e,b.resolvedPath,ib(e.compilerOptions)),cqe(e,b,t,r),b;f++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,(i=e.oldSignatures)==null||i.clear(),(o=e.oldExportedModulesMap)==null||o.clear(),e.affectedFiles=void 0}const l=e.changedFilesSet.keys().next();if(l.done)return;const u=N.checkDefined(e.program),p=u.getCompilerOptions();if(Bs(p))return N.assert(!e.semanticDiagnosticsPerFile),u;e.affectedFiles=Om.getFilesAffectedByWithOldState(e,u,l.value,t,r),e.currentChangedFilePath=l.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function aqe(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 sqe(e,t){var r;if(!!((r=e.affectedFilesPendingEmit)!=null&&r.size))return qc(e.affectedFilesPendingEmit,(i,o)=>{var s;const l=e.program.getSourceFileByPath(o);if(!l||!MS(l,e.program)){e.affectedFilesPendingEmit.delete(o);return}const u=(s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath);let p=IR(i,u);if(t&&(p=p&24),p)return{affectedFile:l,emitKind:p}})}function lqe(e){var t;if(!!((t=e.emitDiagnosticsPerFile)!=null&&t.size))return qc(e.emitDiagnosticsPerFile,(r,i)=>{var o;const s=e.program.getSourceFileByPath(i);if(!s||!MS(s,e.program)){e.emitDiagnosticsPerFile.delete(i);return}const l=((o=e.seenEmittedFiles)==null?void 0:o.get(s.resolvedPath))||0;if(!(l&24))return{affectedFile:s,diagnostics:r,seenKind:l}})}function z2e(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=N.checkDefined(e.program),r=t.getCompilerOptions();Ve(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!dC(i,r,t)&&jce(e,i.resolvedPath))}}function cqe(e,t,r,i){if(jce(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){z2e(e),Om.updateShapeSignature(e,N.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||uqe(e,t,r,i)}function lK(e,t,r,i){if(jce(e,t),!e.changedFilesSet.has(t)){const o=N.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(Om.updateShapeSignature(e,o,s,r,i,!0),Nf(e.compilerOptions)&&Jce(e,t,e.compilerOptions.declarationMap?24:8))}}function jce(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function B2e(e,t){const r=N.checkDefined(e.oldSignatures).get(t)||void 0;return N.checkDefined(e.fileInfos.get(t)).signature!==r}function Uce(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(Om.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>lK(e,s.resolvedPath,r,i)),z2e(e),!0):!1}function uqe(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!B2e(e,t.resolvedPath))return;if(dm(e.compilerOptions)){const l=new Map;l.set(t.resolvedPath,!0);const u=Om.getReferencedByPaths(e,t.resolvedPath);for(;u.length>0;){const p=u.pop();if(!l.has(p)){if(l.set(p,!0),Uce(e,p,r,i))return;if(lK(e,p,r,i),B2e(e,p)){const v=N.checkDefined(e.program).getSourceFileByPath(p);u.push(...Om.getReferencedByPaths(e,v.resolvedPath))}}}}const s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(l=>{if(Uce(e,l,r,i))return!0;const u=e.referencedMap.getKeys(l);return u&&vh(u,p=>G2e(e,p,s,r,i))})}function G2e(e,t,r,i,o){var s,l;if(!!Rv(r,t)){if(Uce(e,t,i,o))return!0;lK(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(u=>G2e(e,u,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(u=>!r.has(u)&&lK(e,u,i,o))}}function Hce(e,t,r){return Ro(dqe(e,t,r),N.checkDefined(e.program).getProgramDiagnostics(t))}function dqe(e,t,r){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const s=e.semanticDiagnosticsPerFile.get(i);if(s)return WW(s,e.compilerOptions)}const o=N.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),WW(o,e.compilerOptions)}function qce(e){return!!Bs(e.options||{})}function pqe(e,t){var r,i,o;const s=N.checkDefined(e.program).getCurrentDirectory(),l=ii(To($v(e.compilerOptions),s)),u=e.latestChangedDtsFile?se(e.latestChangedDtsFile):void 0,p=[],v=new Map,f=[];if(Bs(e.compilerOptions)){const ge=Go(e.fileInfos.entries(),([Oe,At])=>{const be=re(Oe);return ye(Oe,be),At.impliedFormat?{version:At.version,impliedFormat:At.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:At.version}),Ce={fileNames:p,fileInfos:ge,root:f,options:Q(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:u,pendingEmit:e.programEmitPending?e.programEmitPending===ib(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:qe,dts:Se,commonSourceDirectory:Le,sourceFiles:Ne}=t;return e.bundle=t={commonSourceDirectory:Le,sourceFiles:Ne,js:qe||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:Se||(Nf(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},eO(Ce,t)}let b,A,I;const R=Go(e.fileInfos.entries(),([ge,Ce])=>{var qe,Se;const Le=re(ge);ye(ge,Le),N.assert(p[Le-1]===G(ge));const Ne=(qe=e.oldSignatures)==null?void 0:qe.get(ge),Oe=Ne!==void 0?Ne||void 0:Ce.signature;if(e.compilerOptions.composite){const At=e.program.getSourceFileByPath(ge);if(!im(At)&&MS(At,e.program)){const be=(Se=e.emitSignatures)==null?void 0:Se.get(ge);be!==Oe&&(I||(I=[])).push(be===void 0?Le:[Le,!wo(be)&&be[0]===Oe?et:be])}}return Ce.version===Oe?Ce.affectsGlobalScope||Ce.impliedFormat?{version:Ce.version,signature:void 0,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}:Ce.version:Oe!==void 0?Ne===void 0?Ce:{version:Ce.version,signature:Oe,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}:{version:Ce.version,signature:!1,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}});let M;e.referencedMap&&(M=Go(e.referencedMap.keys()).sort(Ju).map(ge=>[re(ge),_e(e.referencedMap.getValues(ge))]));let C;e.exportedModulesMap&&(C=Vi(Go(e.exportedModulesMap.keys()).sort(Ju),ge=>{var Ce;const qe=(Ce=e.oldExportedModulesMap)==null?void 0:Ce.get(ge);if(qe===void 0)return[re(ge),_e(e.exportedModulesMap.getValues(ge))];if(qe)return[re(ge),_e(qe)]}));const W=oe(e.semanticDiagnosticsPerFile);let U;if((o=e.affectedFilesPendingEmit)!=null&&o.size){const ge=ib(e.compilerOptions),Ce=new Set;for(const qe of Go(e.affectedFilesPendingEmit.keys()).sort(Ju))if(Rv(Ce,qe)){const Se=e.program.getSourceFileByPath(qe);if(!Se||!MS(Se,e.program))continue;const Le=re(qe),Ne=e.affectedFilesPendingEmit.get(qe);(U||(U=[])).push(Ne===ge?Le:Ne===8?[Le]:[Le,Ne])}}let X;if(e.changedFilesSet.size)for(const ge of Go(e.changedFilesSet.keys()).sort(Ju))(X||(X=[])).push(re(ge));const ee=oe(e.emitDiagnosticsPerFile),V={fileNames:p,fileInfos:R,root:f,options:Q(e.compilerOptions),fileIdsList:b,referencedMap:M,exportedModulesMap:C,semanticDiagnosticsPerFile:W,emitDiagnosticsPerFile:ee,affectedFilesPendingEmit:U,changeFileSet:X,emitSignatures:I,latestChangedDtsFile:u};return eO(V,t);function se(ge){return G(To(ge,s))}function G(ge){return P1(Im(l,ge,e.program.getCanonicalFileName))}function re(ge){let Ce=v.get(ge);return Ce===void 0&&(p.push(G(ge)),v.set(ge,Ce=p.length)),Ce}function _e(ge){const Ce=Go(ge.keys(),re).sort(al),qe=Ce.join();let Se=A==null?void 0:A.get(qe);return Se===void 0&&((b||(b=[])).push(Ce),(A||(A=new Map)).set(qe,Se=b.length)),Se}function ye(ge,Ce){const qe=e.program.getSourceFile(ge);if(!e.program.getFileIncludeReasons().get(qe.path).some(Oe=>Oe.kind===0))return;if(!f.length)return f.push(Ce);const Se=f[f.length-1],Le=Do(Se);if(Le&&Se[1]===Ce-1)return Se[1]=Ce;if(Le||f.length===1||Se!==Ce-1)return f.push(Ce);const Ne=f[f.length-2];return!Cv(Ne)||Ne!==Se-1?f.push(Ce):(f[f.length-2]=[Ne,Ce],f.length=f.length-1)}function Q(ge){let Ce;const{optionsNameMap:qe}=dR();for(const Se of Yh(ge).sort(Ju)){const Le=qe.get(Se.toLowerCase());Le!=null&&Le.affectsBuildInfo&&((Ce||(Ce={}))[Se]=Y(Le,ge[Se]))}return Ce}function Y(ge,Ce){if(ge){if(N.assert(ge.type!=="listOrElement"),ge.type==="list"){const qe=Ce;if(ge.element.isFilePath&&qe.length)return qe.map(se)}else if(ge.isFilePath)return se(Ce)}return Ce}function oe(ge){let Ce;if(ge)for(const qe of Go(ge.keys()).sort(Ju)){const Se=ge.get(qe);(Ce||(Ce=[])).push(Se.length?[re(qe),he(Se)]:re(qe))}return Ce}function he(ge){return N.assert(!!ge.length),ge.map(Ce=>{const qe=Ie(Ce);qe.reportsUnnecessary=Ce.reportsUnnecessary,qe.reportDeprecated=Ce.reportsDeprecated,qe.source=Ce.source,qe.skippedOn=Ce.skippedOn;const{relatedInformation:Se}=Ce;return qe.relatedInformation=Se?Se.length?Se.map(Le=>Ie(Le)):[]:void 0,qe})}function Ie(ge){const{file:Ce}=ge;return{...ge,file:Ce?G(Ce.resolvedPath):void 0,messageText:wo(ge.messageText)?ge.messageText:de(ge.messageText)}}function de(ge){if(ge.repopulateInfo)return{info:ge.repopulateInfo(),next:ie(ge.next)};const Ce=ie(ge.next);return Ce===ge.next?ge:{...ge,next:Ce}}function ie(ge){return ge&&(Ve(ge,(Ce,qe)=>{const Se=de(Ce);if(Ce===Se)return;const Le=qe>0?ge.slice(0,qe-1):[];Le.push(Se);for(let Ne=qe+1;Ne<ge.length;Ne++)Le.push(de(ge[Ne]));return Le})||ge)}}function VW(e,t,r,i,o,s){let l,u,p;return e===void 0?(N.assert(t===void 0),l=r,p=i,N.assert(!!p),u=p.getProgram()):Do(e)?(p=i,u=OW({rootNames:e,options:t,host:r,oldProgram:p&&p.getProgramOrUndefined(),configFileParsingDiagnostics:o,projectReferences:s}),l=r):(u=e,l=t,p=r,o=i),{host:l,newProgram:u,oldProgram:p,configFileParsingDiagnostics:o||et}}function V2e(e,t){return(t==null?void 0:t.sourceMapUrlPos)!==void 0?e.substring(0,t.sourceMapUrlPos):e}function cK(e,t,r,i,o){var v;var s;r=V2e(r,o);let l;return(s=o==null?void 0:o.diagnostics)!=null&&s.length&&(r+=o.diagnostics.map(f=>`${p(f)}${oL[f.category]}${f.code}: ${u(f.messageText)}`).join(`
`)),((v=i.createHash)!=null?v:fN)(r);function u(f){return wo(f)?f:f===void 0?"":f.next?f.messageText+f.next.map(u).join(`
`):f.messageText}function p(f){return f.file.resolvedPath===t.resolvedPath?`(${f.start},${f.length})`:(l===void 0&&(l=ii(t.resolvedPath)),`${P1(Im(l,f.file.resolvedPath,e.getCanonicalFileName))}(${f.start},${f.length})`)}}function iT(e,t,r){var i;return((i=t.createHash)!=null?i:fN)(V2e(e,r))}function uK(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.getState();if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;const l=nqe(t,s);t.getBuildInfo=M=>pqe(l,M),t=void 0,i=void 0,s=void 0;const u=()=>l,p=pK(u,o);return p.getState=u,p.saveEmitState=()=>iqe(l),p.restoreEmitState=M=>oqe(l,M),p.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,p.getAllDependencies=M=>Om.getAllDependencies(l,N.checkDefined(l.program),M),p.getSemanticDiagnostics=R,p.emit=A,p.releaseProgram=()=>rqe(l),e===0?p.getSemanticDiagnosticsOfNextAffectedFile=I:e===1?(p.getSemanticDiagnosticsOfNextAffectedFile=I,p.emitNextAffectedFile=f,p.emitBuildInfo=v):Ko(),p;function v(M,C){if(l.buildInfoEmitPending){const W=N.checkDefined(l.program).emitBuildInfo(M||aa(r,r.writeFile),C);return l.buildInfoEmitPending=!1,W}return GW}function f(M,C,W,U){var Q,Y,oe,he;var X,ee,V;let se=F2e(l,C,r);const G=ib(l.compilerOptions);let re=W?G&24:G;if(!se)if(Bs(l.compilerOptions)){if(!l.programEmitPending||(re=l.programEmitPending,W&&(re=re&24),!re))return;se=l.program}else{const Ie=sqe(l,W);if(!Ie){const de=lqe(l);if(de)return((Q=l.seenEmittedFiles)!=null?Q:l.seenEmittedFiles=new Map).set(de.affectedFile.resolvedPath,de.seenKind|24),{result:{emitSkipped:!0,diagnostics:de.diagnostics},affected:de.affectedFile};if(!l.buildInfoEmitPending)return;const ie=l.program,ge=ie.emitBuildInfo(M||aa(r,r.writeFile),C);return l.buildInfoEmitPending=!1,{result:ge,affected:ie}}({affectedFile:se,emitKind:re}=Ie)}let _e;re&7&&(_e=0),re&24&&(_e=_e===void 0?1:void 0),se===l.program&&(l.programEmitPending=l.changedFilesSet.size?IR(G,re):l.programEmitPending?IR(l.programEmitPending,re):void 0);const ye=l.program.emit(se===l.program?void 0:se,b(M,U),C,_e,U);if(se!==l.program){const Ie=se;l.seenAffectedFiles.add(Ie.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;const de=((X=l.seenEmittedFiles)==null?void 0:X.get(Ie.resolvedPath))||0;((Y=l.seenEmittedFiles)!=null?Y:l.seenEmittedFiles=new Map).set(Ie.resolvedPath,re|de);const ie=((ee=l.affectedFilesPendingEmit)==null?void 0:ee.get(Ie.resolvedPath))||G,ge=IR(ie,re|de);ge?((oe=l.affectedFilesPendingEmit)!=null?oe:l.affectedFilesPendingEmit=new Map).set(Ie.resolvedPath,ge):(V=l.affectedFilesPendingEmit)==null||V.delete(Ie.resolvedPath),ye.diagnostics.length&&((he=l.emitDiagnosticsPerFile)!=null?he:l.emitDiagnosticsPerFile=new Map).set(Ie.resolvedPath,ye.diagnostics)}else l.changedFilesSet.clear();return{result:ye,affected:se}}function b(M,C){return Nf(l.compilerOptions)?(W,U,X,ee,V,se)=>{var Y,oe,he;var G,re,_e,ye;if(Iu(W))if(Bs(l.compilerOptions)){if(l.compilerOptions.composite){const Ie=Q(l.outSignature,void 0);if(!Ie)return;l.outSignature=Ie}}else{N.assert((V==null?void 0:V.length)===1);let Ie;if(!C){const de=V[0],ie=l.fileInfos.get(de.resolvedPath);if(ie.signature===de.version){const ge=cK(l.program,de,U,r,se);(G=se==null?void 0:se.diagnostics)!=null&&G.length||(Ie=ge),ge!==de.version&&(r.storeFilesChangingSignatureDuringEmit&&((Y=l.filesChangingSignature)!=null?Y:l.filesChangingSignature=new Set).add(de.resolvedPath),l.exportedModulesMap&&Om.updateExportedModules(l,de,de.exportedModulesFromDeclarationEmit),l.affectedFiles?(((re=l.oldSignatures)==null?void 0:re.get(de.resolvedPath))===void 0&&((oe=l.oldSignatures)!=null?oe:l.oldSignatures=new Map).set(de.resolvedPath,ie.signature||!1),ie.signature=ge):(ie.signature=ge,(_e=l.oldExportedModulesMap)==null||_e.clear()))}}if(l.compilerOptions.composite){const de=V[0].resolvedPath;if(Ie=Q((ye=l.emitSignatures)==null?void 0:ye.get(de),Ie),!Ie)return;((he=l.emitSignatures)!=null?he:l.emitSignatures=new Map).set(de,Ie)}}M?M(W,U,X,ee,V,se):r.writeFile?r.writeFile(W,U,X,ee,V,se):l.program.writeFile(W,U,X,ee,V,se);function Q(Ie,de){const ie=!Ie||wo(Ie)?Ie:Ie[0];if(de!=null||(de=iT(U,r,se)),de===ie){if(Ie===ie)return;se?se.differsOnlyInMap=!0:se={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=W;return de}}:M||aa(r,r.writeFile)}function A(M,C,W,U,X){e===1&&W2e(l,M);const ee=nK(p,M,C,W);if(ee)return ee;if(!M)if(e===1){let V=[],se=!1,G,re=[],_e;for(;_e=f(C,W,U,X);)se=se||_e.result.emitSkipped,G=Hr(G,_e.result.diagnostics),re=Hr(re,_e.result.emittedFiles),V=Hr(V,_e.result.sourceMaps);return{emitSkipped:se,diagnostics:G||et,emittedFiles:re,sourceMaps:V}}else aqe(l,U);return N.checkDefined(l.program).emit(M,b(C,X),W,U,X)}function I(M,C){for(;;){const W=F2e(l,M,r);let U;if(W)if(W!==l.program){const X=W;if((!C||!C(X))&&(U=Hce(l,X,M)),l.seenAffectedFiles.add(X.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!U)continue}else U=l.program.getSemanticDiagnostics(void 0,M),l.changedFilesSet.clear(),l.programEmitPending=ib(l.compilerOptions);else return;return{result:U,affected:W}}}function R(M,C){W2e(l,M);const W=N.checkDefined(l.program).getCompilerOptions();if(Bs(W))return N.assert(!l.semanticDiagnosticsPerFile),N.checkDefined(l.program).getSemanticDiagnostics(M,C);if(M)return Hce(l,M,C);for(;I(C););let U;for(const X of N.checkDefined(l.program).getSourceFiles())U=Hr(U,Hce(l,X,C));return U||et}}function Jce(e,t,r){var l;var i,o;const s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;((l=e.affectedFilesPendingEmit)!=null?l:e.affectedFilesPendingEmit=new Map).set(t,s|r),(o=e.emitDiagnosticsPerFile)==null||o.delete(t)}function Kce(e){return wo(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:wo(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function Xce(e,t){return Cv(e)?t:e[1]||8}function Yce(e,t){return e||ib(t||{})}function $ce(e,t,r){var i,o,s,l;const u=e.program,p=ii(To(t,r.getCurrentDirectory())),v=ku(r.useCaseSensitiveFileNames());let f;const b=(i=u.fileNames)==null?void 0:i.map(R);let A;const I=u.latestChangedDtsFile?M(u.latestChangedDtsFile):void 0;if(qce(u)){const ee=new Map;u.fileInfos.forEach((V,se)=>{const G=C(se+1);ee.set(G,wo(V)?{version:V,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:V)}),f={fileInfos:ee,compilerOptions:u.options?Rq(u.options,M):{},latestChangedDtsFile:I,outSignature:u.outSignature,programEmitPending:u.pendingEmit===void 0?void 0:Yce(u.pendingEmit,u.options),bundle:e.bundle}}else{A=(o=u.fileIdsList)==null?void 0:o.map(G=>new Set(G.map(C)));const ee=new Map,V=((s=u.options)==null?void 0:s.composite)&&!Bs(u.options)?new Map:void 0;u.fileInfos.forEach((G,re)=>{const _e=C(re+1),ye=Kce(G);ee.set(_e,ye),V&&ye.signature&&V.set(_e,ye.signature)}),(l=u.emitSignatures)==null||l.forEach(G=>{if(Cv(G))V.delete(C(G));else{const re=C(G[0]);V.set(re,!wo(G[1])&&!G[1].length?[V.get(re)]:G[1])}});const se=u.affectedFilesPendingEmit?ib(u.options||{}):void 0;f={fileInfos:ee,compilerOptions:u.options?Rq(u.options,M):{},referencedMap:U(u.referencedMap),exportedModulesMap:U(u.exportedModulesMap),semanticDiagnosticsPerFile:X(u.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:X(u.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:u.affectedFilesPendingEmit&&C1(u.affectedFilesPendingEmit,G=>C(Cv(G)?G:G[0]),G=>Xce(G,se)),changedFilesSet:new Set(Wt(u.changeFileSet,C)),latestChangedDtsFile:I,emitSignatures:V!=null&&V.size?V:void 0}}return{getState:()=>f,saveEmitState:is,restoreEmitState:is,getProgram:Ko,getProgramOrUndefined:r0,releaseProgram:is,getCompilerOptions:()=>f.compilerOptions,getSourceFile:Ko,getSourceFiles:Ko,getOptionsDiagnostics:Ko,getGlobalDiagnostics:Ko,getConfigFileParsingDiagnostics:Ko,getSyntacticDiagnostics:Ko,getDeclarationDiagnostics:Ko,getSemanticDiagnostics:Ko,emit:Ko,getAllDependencies:Ko,getCurrentDirectory:Ko,emitNextAffectedFile:Ko,getSemanticDiagnosticsOfNextAffectedFile:Ko,emitBuildInfo:Ko,close:is,hasChangedEmitSignature:Ym};function R(ee){return ll(ee,p,v)}function M(ee){return To(ee,p)}function C(ee){return b[ee-1]}function W(ee){return A[ee-1]}function U(ee){if(!ee)return;const V=Om.createManyToManyPathMap();return ee.forEach(([se,G])=>V.set(C(se),W(G))),V}function X(ee){return ee&&C1(ee,V=>C(Cv(V)?V:V[0]),V=>Cv(V)?et:V[1])}}function dK(e,t,r){const i=ii(To(t,r.getCurrentDirectory())),o=ku(r.useCaseSensitiveFileNames()),s=new Map;let l=0;const u=[];return e.fileInfos.forEach((p,v)=>{const f=ll(e.fileNames[v],i,o),b=wo(p)?p:p.version;if(s.set(f,b),l<e.root.length){const A=e.root[l],I=v+1;Do(A)?A[0]<=I&&I<=A[1]&&(u.push(f),A[1]===I&&l++):A===I&&(u.push(f),l++)}}),{fileInfos:s,roots:u}}function pK(e,t){return{getState:Ko,saveEmitState:is,restoreEmitState:is,getProgram:r,getProgramOrUndefined:()=>e().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>r().getSourceFile(i),getSourceFiles:()=>r().getSourceFiles(),getOptionsDiagnostics:i=>r().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>r().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,o)=>r().getSyntacticDiagnostics(i,o),getDeclarationDiagnostics:(i,o)=>r().getDeclarationDiagnostics(i,o),getSemanticDiagnostics:(i,o)=>r().getSemanticDiagnostics(i,o),emit:(i,o,s,l,u)=>r().emit(i,o,s,l,u),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:Ko,getCurrentDirectory:()=>r().getCurrentDirectory(),close:is};function r(){return N.checkDefined(e().program)}}var fK,mK,fqe=S({"src/compiler/builder.ts"(){ia(),fK=(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))(fK||{}),mK=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(mK||{})}});function j2e(e,t,r,i,o,s){return uK(0,VW(e,t,r,i,o,s))}function _K(e,t,r,i,o,s){return uK(1,VW(e,t,r,i,o,s))}function U2e(e,t,r,i,o,s){const{newProgram:l,configFileParsingDiagnostics:u}=VW(e,t,r,i,o,s);return pK(()=>({program:l,compilerOptions:l.getCompilerOptions()}),u)}var mqe=S({"src/compiler/builderPublic.ts"(){ia()}});function jW(e){return Dl(e,"/node_modules/.staging")?Hx(e,"/.staging"):St(cL,t=>e.includes(t))?void 0:e}function Qce(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==cl&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;r=2,i=!0}return i&&!e[r].match(/^users$/i)?r:e[r].match(/^workspaces$/i)?r+1:r+2}function UW(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;const r=Qce(e,t);return t>r+1}function Zce(e){return q2e(ii(e))}function H2e(e,t){if(t.length<t.length)return!1;for(let r=0;r<e.length;r++)if(t[r]!==e[r])return!1;return!0}function q2e(e){return UW(Uc(e))}function eue(e){return q2e(e)}function hK(e,t,r,i,o,s){const l=Uc(t);e=hp(e)?va(e):To(e,s());const u=Uc(e),p=Qce(l,l.length);if(l.length<=p+1)return;const v=l.indexOf("node_modules");if(!(v!==-1&&v+1<=p+1))return H2e(o,l)?l.length>o.length+1?tue(u,l,Math.max(o.length+1,p+1)):{dir:r,dirPath:i,nonRecursive:!0}:J2e(u,l,l.length-1,p,v,o)}function J2e(e,t,r,i,o,s){if(o!==-1)return tue(e,t,o+1);let l=!0,u=r;for(let p=0;p<r;p++)if(t[p]!==s[p]){l=!1,u=Math.max(p+1,i+1);break}return tue(e,t,u,l)}function tue(e,t,r,i){return{dir:Dy(e,r),dirPath:Dy(t,r),nonRecursive:i}}function nue(e,t,r,i,o,s){const l=Uc(t);if(H2e(i,l))return r;e=hp(e)?va(e):To(e,o());const u=J2e(Uc(e),l,l.length,Qce(l,l.length),l.indexOf("node_modules"),i);return u&&s(u.dirPath)?u.dirPath:void 0}function rue(e,t){const r=To(e,t());return qV(r)?r:o0(r)}function K2e(e){return e.split(cl).length-(kv(e)?1:0)}function HW(e){var t;return((t=e.getCompilerHost)==null?void 0:t.call(e))||e}function iue(e,t,r,i,o){return{nameAndMode:zW,resolve:(s,l)=>_qe(i,o,s,e,r,t,l)}}function _qe(e,t,r,i,o,s,l){const u=HW(e),p=_R(r,i,o,u,t,s,l);if(!e.getGlobalCache)return p;const v=e.getGlobalCache();if(v!==void 0&&!tu(r)&&!(p.resolvedModule&&m7(p.resolvedModule.extension))){const{resolvedModule:f,failedLookupLocations:b,affectingLocations:A,resolutionDiagnostics:I}=yle(N.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,u,v,t);if(f)return p.resolvedModule=f,p.failedLookupLocations=fR(p.failedLookupLocations,b),p.affectingLocations=fR(p.affectingLocations,A),p.resolutionDiagnostics=fR(p.resolutionDiagnostics,I),p}return p}function gK(e,t,r){let i,o,s;const l=Zp(),u=new Set,p=new Set,v=new Map,f=new Map;let b=!1,A,I,R,M,C,W=!1;const U=Td(()=>e.getCurrentDirectory()),X=e.getCachedDirectoryStructureHost(),ee=new Map,V=mR(U(),e.getCanonicalFileName,e.getCompilationSettings()),se=new Map,G=Q5(U(),e.getCanonicalFileName,e.getCompilationSettings(),V.getPackageJsonInfoCache(),V.optionsToRedirectsKey),re=new Map,_e=mR(U(),e.getCanonicalFileName,jq(e.getCompilationSettings()),V.getPackageJsonInfoCache()),ye=new Map,Q=new Map,Y=rue(t,U),oe=e.toPath(Y),he=Uc(oe),Ie=new Map;return{rootDirForResolution:t,resolvedModuleNames:ee,resolvedTypeReferenceDirectives:se,resolvedLibraries:re,resolvedFileToResolution:v,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:p,directoryWatchesOfFailedLookups:ye,fileWatchesOfAffectingLocations:Q,watchFailedLookupLocationsOfExternalModuleResolutions:Nn,getModuleResolutionCache:()=>V,startRecordingFilesWithChangedResolutions:qe,finishRecordingFilesWithChangedResolutions:Se,startCachingPerDirectoryResolution:Oe,finishCachingPerDirectoryResolution:be,resolveModuleNameLiterals:Ze,resolveTypeReferenceDirectiveReferences:yt,resolveLibrary:It,resolveSingleModuleNameWithoutWatching:on,removeResolutionsFromProjectReferenceRedirects:nt,removeResolutionsOfFile:Bt,hasChangedAutomaticTypeDirectiveNames:()=>b,invalidateResolutionOfFile:si,invalidateResolutionsOfFailedLookupLocations:_a,setFilesWithInvalidatedNonRelativeUnresolvedImports:yi,createHasInvalidatedResolutions:Ne,isFileWithInvalidatedNonRelativeUnresolvedImports:Le,updateTypeRootsWatch:pt,closeTypeRootsWatch:Je,clear:ge,onChangesAffectModuleResolution:Ce};function de(le){return le.resolvedModule}function ie(le){return le.resolvedTypeReferenceDirective}function ge(){np(ye,Mf),np(Q,Mf),l.clear(),Je(),ee.clear(),se.clear(),v.clear(),u.clear(),p.clear(),R=void 0,M=void 0,C=void 0,I=void 0,A=void 0,W=!1,V.clear(),G.clear(),V.update(e.getCompilationSettings()),G.update(e.getCompilationSettings()),_e.clear(),f.clear(),re.clear(),b=!1}function Ce(){W=!0,V.clearAllExceptPackageJsonInfoCache(),G.clearAllExceptPackageJsonInfoCache(),V.update(e.getCompilationSettings()),G.update(e.getCompilationSettings())}function qe(){i=[]}function Se(){const le=i;return i=void 0,le}function Le(le){if(!s)return!1;const Fe=s.get(le);return!!Fe&&!!Fe.length}function Ne(le,Fe){_a();const dt=o;return o=void 0,{hasInvalidatedResolutions:j=>le(j)||W||!!(dt!=null&&dt.has(j))||Le(j),hasInvalidatedLibResolutions:j=>{var ot;return Fe(j)||!!((ot=re==null?void 0:re.get(j))!=null&&ot.isInvalidated)}}}function Oe(){V.isReadonly=void 0,G.isReadonly=void 0,_e.isReadonly=void 0,V.getPackageJsonInfoCache().isReadonly=void 0,V.clearAllExceptPackageJsonInfoCache(),G.clearAllExceptPackageJsonInfoCache(),_e.clearAllExceptPackageJsonInfoCache(),l.forEach(bo),l.clear()}function At(le){re.forEach((Fe,dt)=>{var j;(j=le==null?void 0:le.resolvedLibReferences)!=null&&j.has(dt)||(tr(Fe,e.toPath(wW(e.getCompilationSettings(),U(),dt)),de),re.delete(dt))})}function be(le,Fe){s=void 0,W=!1,l.forEach(bo),l.clear(),le!==Fe&&(At(le),le==null||le.getSourceFiles().forEach(dt=>{var Ye,_t;var j;const ot=Bp(dt)&&(Ye=(j=dt.packageJsonLocations)==null?void 0:j.length)!=null?Ye:0,Dt=(_t=f.get(dt.path))!=null?_t:et;for(let Gt=Dt.length;Gt<ot;Gt++)en(dt.packageJsonLocations[Gt],!1);if(Dt.length>ot)for(let Gt=ot;Gt<Dt.length;Gt++)Q.get(Dt[Gt]).files--;ot?f.set(dt.path,dt.packageJsonLocations):f.delete(dt.path)}),f.forEach((dt,j)=>{le!=null&&le.getSourceFileByPath(j)||(dt.forEach(ot=>Q.get(ot).files--),f.delete(j))})),ye.forEach(He),Q.forEach(it),b=!1,V.isReadonly=!0,G.isReadonly=!0,_e.isReadonly=!0,V.getPackageJsonInfoCache().isReadonly=!0}function He(le,Fe){le.refCount===0&&(ye.delete(Fe),le.watcher.close())}function it(le,Fe){var dt;le.files===0&&le.resolutions===0&&!((dt=le.symlinks)!=null&&dt.size)&&(Q.delete(Fe),le.watcher.close())}function Ft({entries:le,containingFile:Fe,containingSourceFile:dt,redirectedReference:j,options:ot,perFileCache:Dt,reusedNames:Ye,loader:_t,getResolutionWithResolvedFileName:Gt,deferWatchingNonRelativeResolution:gn,shouldRetryResolution:hn,logChanges:pn}){const q=e.toPath(Fe),We=Dt.get(q)||Dt.set(q,DI()).get(q),Lt=[],L=pn&&Le(q),me=e.getCurrentProgram(),J=me&&me.getResolvedProjectReferenceToRedirect(Fe),fe=J?!j||j.sourceFile.path!==J.sourceFile.path:!!j,je=DI();for(const Tt of le){const kt=_t.nameAndMode.getName(Tt),nn=_t.nameAndMode.getMode(Tt,dt,(j==null?void 0:j.commandLine.options)||ot);let En=We.get(kt,nn);if(!je.has(kt,nn)&&(W||fe||!En||En.isInvalidated||L&&!tu(kt)&&hn(En))){const or=En;En=_t.resolve(kt,nn),e.onDiscoveredSymlink&&hqe(En)&&e.onDiscoveredSymlink(),We.set(kt,nn,En),En!==or&&(Nn(kt,En,q,Gt,gn),or&&tr(or,q,Gt)),pn&&i&&!ke(or,En)&&(i.push(q),pn=!1)}else{const or=HW(e);if(Kg(ot,or)&&!je.has(kt,nn)){const pr=Gt(En);xo(or,Dt===ee?pr!=null&&pr.resolvedFileName?pr.packageId?m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:pr!=null&&pr.resolvedFileName?pr.packageId?m.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:m.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,kt,Fe,pr==null?void 0:pr.resolvedFileName,(pr==null?void 0:pr.packageId)&&Fy(pr.packageId))}}N.assert(En!==void 0&&!En.isInvalidated),je.set(kt,nn,!0),Lt.push(En)}return Ye==null||Ye.forEach(Tt=>je.set(_t.nameAndMode.getName(Tt),_t.nameAndMode.getMode(Tt,dt,(j==null?void 0:j.commandLine.options)||ot),!0)),We.size()!==je.size()&&We.forEach((Tt,kt,nn)=>{je.has(kt,nn)||(tr(Tt,q,Gt),We.delete(kt,nn))}),Lt;function ke(Tt,kt){if(Tt===kt)return!0;if(!Tt||!kt)return!1;const nn=Gt(Tt),En=Gt(kt);return nn===En?!0:!nn||!En?!1:nn.resolvedFileName===En.resolvedFileName}}function yt(le,Fe,dt,j,ot,Dt){return Ft({entries:le,containingFile:Fe,containingSourceFile:ot,redirectedReference:dt,options:j,reusedNames:Dt,perFileCache:se,loader:LW(Fe,dt,j,HW(e),G),getResolutionWithResolvedFileName:ie,shouldRetryResolution:Ye=>Ye.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Ze(le,Fe,dt,j,ot,Dt){return Ft({entries:le,containingFile:Fe,containingSourceFile:ot,redirectedReference:dt,options:j,reusedNames:Dt,perFileCache:ee,loader:iue(Fe,dt,j,e,V),getResolutionWithResolvedFileName:de,shouldRetryResolution:Ye=>!Ye.resolvedModule||!cC(Ye.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function It(le,Fe,dt,j){const ot=HW(e);let Dt=re==null?void 0:re.get(j);if(!Dt||Dt.isInvalidated){const Ye=Dt;Dt=Z5(le,Fe,dt,ot,_e);const _t=e.toPath(Fe);Nn(le,Dt,_t,de,!1),re.set(j,Dt),Ye&&tr(Ye,_t,de)}else if(Kg(dt,ot)){const Ye=de(Dt);xo(ot,Ye!=null&&Ye.resolvedFileName?Ye.packageId?m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:m.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,le,Fe,Ye==null?void 0:Ye.resolvedFileName,(Ye==null?void 0:Ye.packageId)&&Fy(Ye.packageId))}return Dt}function on(le,Fe){var dt,j;const ot=e.toPath(Fe),Dt=ee.get(ot),Ye=Dt==null?void 0:Dt.get(le,void 0);if(Ye&&!Ye.isInvalidated)return Ye;const _t=(dt=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:dt.call(e,V),Gt=HW(e),gn=_R(le,Fe,e.getCompilationSettings(),Gt,V);return(j=e.afterResolveSingleModuleNameWithoutWatching)==null||j.call(e,V,le,Fe,gn,_t),gn}function Yt(le){return Dl(le,"/node_modules/@types")}function Nn(le,Fe,dt,j,ot){var Ye;var Dt;if(Fe.refCount)Fe.refCount++,N.assertIsDefined(Fe.files);else{Fe.refCount=1,N.assert(!((Dt=Fe.files)!=null&&Dt.size)),!ot||tu(le)?yn(Fe):l.add(le,Fe);const _t=j(Fe);if(_t&&_t.resolvedFileName){const Gt=e.toPath(_t.resolvedFileName);let gn=v.get(Gt);gn||v.set(Gt,gn=new Set),gn.add(Fe)}}((Ye=Fe.files)!=null?Ye:Fe.files=new Set).add(dt)}function Xn(le,Fe){const dt=e.toPath(le),j=hK(le,dt,Y,oe,he,U);if(j){const{dir:ot,dirPath:Dt,nonRecursive:Ye}=j;Dt===oe?(N.assert(Ye),Fe=!0):Ui(ot,Dt,Ye)}return Fe}function yn(le){N.assert(!!le.refCount);const{failedLookupLocations:Fe,affectingLocations:dt,alternateResult:j}=le;if(!(Fe!=null&&Fe.length)&&!(dt!=null&&dt.length)&&!j)return;((Fe==null?void 0:Fe.length)||j)&&u.add(le);let ot=!1;if(Fe)for(const Dt of Fe)ot=Xn(Dt,ot);j&&(ot=Xn(j,ot)),ot&&Ui(Y,oe,!0),tn(le,!(Fe!=null&&Fe.length)&&!j)}function tn(le,Fe){N.assert(!!le.refCount);const{affectingLocations:dt}=le;if(!!(dt!=null&&dt.length)){Fe&&p.add(le);for(const j of dt)en(j,!0)}}function en(le,Fe){var Gt;const dt=Q.get(le);if(dt){Fe?dt.resolutions++:dt.files++;return}let j=le,ot=!1,Dt;e.realpath&&(j=e.realpath(le),le!==j&&(ot=!0,Dt=Q.get(j)));const Ye=Fe?1:0,_t=Fe?0:1;if(!ot||!Dt){const gn={watcher:eue(e.toPath(j))?e.watchAffectingFileLocation(j,(hn,pn)=>{X==null||X.addOrDeleteFile(hn,e.toPath(j),pn),gi(j,V.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):RR,resolutions:ot?0:Ye,files:ot?0:_t,symlinks:void 0};Q.set(j,gn),ot&&(Dt=gn)}if(ot){N.assert(!!Dt);const gn={watcher:{close:()=>{var hn;const pn=Q.get(j);((hn=pn==null?void 0:pn.symlinks)==null?void 0:hn.delete(le))&&!pn.symlinks.size&&!pn.resolutions&&!pn.files&&(Q.delete(j),pn.watcher.close())}},resolutions:Ye,files:_t,symlinks:void 0};Q.set(le,gn),((Gt=Dt.symlinks)!=null?Gt:Dt.symlinks=new Set).add(le)}}function gi(le,Fe){var dt;const j=Q.get(le);j!=null&&j.resolutions&&(I!=null?I:I=new Set).add(le),j!=null&&j.files&&(A!=null?A:A=new Set).add(le),(dt=j==null?void 0:j.symlinks)==null||dt.forEach(ot=>gi(ot,Fe)),Fe==null||Fe.delete(e.toPath(le))}function bo(le,Fe){const dt=e.getCurrentProgram();!dt||!dt.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Fe)?le.forEach(yn):le.forEach(j=>tn(j,!0))}function Ui(le,Fe,dt){const j=ye.get(Fe);j?(N.assert(!!dt==!!j.nonRecursive),j.refCount++):ye.set(Fe,{watcher:Nr(le,Fe,dt),refCount:1,nonRecursive:dt})}function Co(le,Fe,dt){const j=e.toPath(le),ot=hK(le,j,Y,oe,he,U);if(ot){const{dirPath:Dt}=ot;Dt===oe?Fe=!0:Ci(Dt,dt)}return Fe}function tr(le,Fe,dt,j){if(N.checkDefined(le.files).delete(Fe),le.refCount--,le.refCount)return;const ot=dt(le);if(ot&&ot.resolvedFileName){const Gt=e.toPath(ot.resolvedFileName),gn=v.get(Gt);(gn==null?void 0:gn.delete(le))&&!gn.size&&v.delete(Gt)}const{failedLookupLocations:Dt,affectingLocations:Ye,alternateResult:_t}=le;if(u.delete(le)){let Gt=!1;if(Dt)for(const gn of Dt)Gt=Co(gn,Gt,j);_t&&(Gt=Co(_t,Gt,j)),Gt&&Ci(oe,j)}else Ye!=null&&Ye.length&&p.delete(le);if(Ye)for(const Gt of Ye){const gn=Q.get(Gt);gn.resolutions--,j&&it(gn,Gt)}}function Ci(le,Fe){const dt=ye.get(le);dt.refCount--,Fe&&He(dt,le)}function Nr(le,Fe,dt){return e.watchDirectoryOfFailedLookupLocation(le,j=>{const ot=e.toPath(j);X&&X.addOrDeleteFileOrDirectory(j,ot),oo(ot,Fe===ot)},dt?0:1)}function Kt(le,Fe,dt,j){const ot=le.get(Fe);ot&&(ot.forEach(Dt=>tr(Dt,Fe,dt,j)),le.delete(Fe))}function nt(le){if(!Nl(le,".json"))return;const Fe=e.getCurrentProgram();if(!Fe)return;const dt=Fe.getResolvedProjectReferenceByPath(le);!dt||dt.commandLine.fileNames.forEach(j=>Bt(e.toPath(j)))}function Bt(le,Fe){Kt(ee,le,de,Fe),Kt(se,le,ie,Fe)}function Dn(le,Fe){if(!le)return!1;let dt=!1;return le.forEach(j=>{if(!(j.isInvalidated||!Fe(j))){j.isInvalidated=dt=!0;for(const ot of N.checkDefined(j.files))(o!=null?o:o=new Set).add(ot),b=b||Dl(ot,AR)}}),dt}function si(le){Bt(le);const Fe=b;Dn(v.get(le),Pv)&&b&&!Fe&&e.onChangedAutomaticTypeDirectiveNames()}function yi(le){N.assert(s===le||s===void 0),s=le}function oo(le,Fe){if(Fe)(C||(C=new Set)).add(le);else{const dt=jW(le);if(!dt||(le=dt,e.fileIsOpen(le)))return!1;const j=ii(le);if(Yt(le)||A6(le)||Yt(j)||A6(j))(R||(R=new Set)).add(le),(M||(M=new Set)).add(le);else{if(Cce(e.getCurrentProgram(),le)||Nl(le,".map"))return!1;(R||(R=new Set)).add(le);const ot=Bw(le,!0);ot&&(M||(M=new Set)).add(ot)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Po(){const le=V.getPackageJsonInfoCache().getInternalMap();le&&(R||M||C)&&le.forEach((Fe,dt)=>Tn(dt)?le.delete(dt):void 0)}function _a(){var le;if(W)return A=void 0,Po(),(R||M||C||I)&&Dn(re,Ba),R=void 0,M=void 0,C=void 0,I=void 0,!0;let Fe=!1;return A&&((le=e.getCurrentProgram())==null||le.getSourceFiles().forEach(dt=>{St(dt.packageJsonLocations,j=>A.has(j))&&((o!=null?o:o=new Set).add(dt.path),Fe=!0)}),A=void 0),!R&&!M&&!C&&!I||(Fe=Dn(u,Ba)||Fe,Po(),R=void 0,M=void 0,C=void 0,Fe=Dn(p,On)||Fe,I=void 0),Fe}function Ba(le){var Fe;return On(le)?!0:!R&&!M&&!C?!1:((Fe=le.failedLookupLocations)==null?void 0:Fe.some(dt=>Tn(e.toPath(dt))))||!!le.alternateResult&&Tn(e.toPath(le.alternateResult))}function Tn(le){return(R==null?void 0:R.has(le))||ar((M==null?void 0:M.keys())||[],Fe=>ho(le,Fe)?!0:void 0)||ar((C==null?void 0:C.keys())||[],Fe=>le.length>Fe.length&&ho(le,Fe)&&(qV(Fe)||le[Fe.length]===cl)?!0:void 0)}function On(le){var Fe;return!!I&&((Fe=le.affectingLocations)==null?void 0:Fe.some(dt=>I.has(dt)))}function Je(){np(Ie,Zm)}function mt(le){return Pt(le)?e.watchTypeRootsDirectory(le,Fe=>{const dt=e.toPath(Fe);X&&X.addOrDeleteFileOrDirectory(Fe,dt),b=!0,e.onChangedAutomaticTypeDirectiveNames();const j=nue(le,e.toPath(le),oe,he,U,ot=>ye.has(ot));j&&oo(dt,j===dt)},1):RR}function pt(){const le=e.getCompilationSettings();if(le.types){Je();return}const Fe=KC(le,{getCurrentDirectory:U});Fe?oC(Ie,new Set(Fe),{createNewValue:mt,onDeleteValue:Zm}):Je()}function Pt(le){return e.getCompilationSettings().typeRoots?!0:Zce(e.toPath(le))}}function hqe(e){var t,r;return!!(((t=e.resolvedModule)==null?void 0:t.originalPath)||((r=e.resolvedTypeReferenceDirective)==null?void 0:r.originalPath))}var gqe=S({"src/compiler/resolutionCache.ts"(){ia()}});function uO(e,t){const r=e===bu&&due?due:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:ku(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(HJ(o,r));const i=new Array(1);return o=>{i[0]=o,e.write(kce(i,r)+r.getNewLine()),i[0]=void 0}}function X2e(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&Mn($W,t.code)?(e.clearScreen(),!0):!1}function vqe(e,t){return Mn($W,e.code)?t+t:t}function dO(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function oue(e,t){return t?(r,i,o)=>{X2e(e,r,o);let s=`[${yE(dO(e),"\x1B[90m")}] `;s+=`${B_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";X2e(e,r,o)||(s+=i),s+=`${dO(e)} - `,s+=`${B_(r.messageText,e.newLine)}${vqe(r,i)}`,e.write(s)}}function Y2e(e,t,r,i,o,s){const l=o;l.onUnRecoverableConfigFileDiagnostic=p=>Z2e(o,s,p);const u=Rw(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,u}function qW(e){return Ca(e,t=>t.category===1)}function JW(e){return Vn(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=un(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){const{line:o}=Rs(i.file,i.start);return{fileName:r,line:o+1}}})}function vK(e){return e===1?m.Found_1_error_Watching_for_file_changes:m.Found_0_errors_Watching_for_file_changes}function $2e(e,t){const r=yE(":"+e.line,"\x1B[90m");return mN(e.fileName)&&mN(t)?Im(t,e.fileName,!1)+r:e.fileName+r}function aue(e,t,r,i){if(e===0)return"";const o=t.filter(f=>f!==void 0),s=o.map(f=>`${f.fileName}:${f.line}`).filter((f,b,A)=>A.indexOf(f)===b),l=o[0]&&$2e(o[0],i.getCurrentDirectory());let u;e===1?u=t[0]!==void 0?[m.Found_1_error_in_0,l]:[m.Found_1_error]:u=s.length===0?[m.Found_0_errors,e]:s.length===1?[m.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,l]:[m.Found_0_errors_in_1_files,e,s.length];const p=$l(...u),v=s.length>1?yqe(o,i):"";return`${r}${B_(p.messageText,r)}${r}${r}${v}`}function yqe(e,t){const r=e.filter((b,A,I)=>A===I.findIndex(R=>(R==null?void 0:R.fileName)===(b==null?void 0:b.fileName)));if(r.length===0)return"";const i=b=>Math.log(b)*Math.LOG10E+1,o=r.map(b=>[b,Ca(e,A=>A.fileName===b.fileName)]),s=o.reduce((b,A)=>Math.max(b,A[1]||0),0),l=m.Errors_Files.message,u=l.split(" ")[0].length,p=Math.max(u,i(s)),v=Math.max(i(s)-u,0);let f="";return f+=" ".repeat(v)+l+`
`,o.forEach(b=>{const[A,I]=b,R=Math.log(I)*Math.LOG10E+1|0,M=R<p?" ".repeat(p-R):"",C=$2e(A,t.getCurrentDirectory());f+=`${M}${I} ${C}
`}),f}function sue(e){return!!e.getState}function yK(e,t){const r=e.getCompilerOptions();r.explainFiles?bK(sue(e)?e.getProgram():e,t):(r.listFiles||r.listFilesOnly)&&Ve(e.getSourceFiles(),i=>{t(i.fileName)})}function bK(e,t){var r,i;const o=e.getFileIncludeReasons(),s=l=>_N(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(const l of e.getSourceFiles())t(`${xR(l,s)}`),(r=o.get(l.path))==null||r.forEach(u=>t(` ${AK(e,u,s).messageText}`)),(i=EK(l,s))==null||i.forEach(u=>t(` ${u.messageText}`))}function EK(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i!=null?i:i=[]).push(jo(void 0,m.File_is_output_of_project_reference_source_0,xR(e.originalFileName,t))),e.redirectInfo&&(i!=null?i:i=[]).push(jo(void 0,m.File_redirects_to_file_0,xR(e.redirectInfo.redirectTarget,t))),Bp(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i!=null?i:i=[]).push(jo(void 0,m.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,xR(rs(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i!=null?i:i=[]).push(jo(void 0,e.packageJsonScope.contents.packageJsonContent.type?m.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:m.File_is_CommonJS_module_because_0_does_not_have_field_type,xR(rs(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i!=null?i:i=[]).push(jo(void 0,m.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function SK(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=ii(To(i.fileName,e.getCurrentDirectory()));return un(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(To(l,s))===o)}function TK(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=Nl(t,".json"),l=ii(To(o.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames();return un((i=o==null?void 0:o.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,p=>{if(s&&!Dl(p,".json"))return!1;const v=aae(p,l,"files");return!!v&&Uy(`(${v})$`,u).test(t)})}function AK(e,t,r){var i,o;const s=e.getCompilerOptions();if(w0(t)){const l=uP(e,t),u=SR(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`;let p;switch(N.assert(SR(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:SR(l)?p=l.packageId?m.Imported_via_0_from_file_1_with_packageId_2:m.Imported_via_0_from_file_1:l.text===qy?p=l.packageId?m.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:m.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:p=l.packageId?m.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:m.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:N.assert(!l.packageId),p=m.Referenced_via_0_from_file_1;break;case 5:p=l.packageId?m.Type_library_referenced_via_0_from_file_1_with_packageId_2:m.Type_library_referenced_via_0_from_file_1;break;case 7:N.assert(!l.packageId),p=m.Library_referenced_via_0_from_file_1;break;default:N.assertNever(t)}return jo(void 0,p,u,xR(l.file,r),l.packageId&&Fy(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return jo(void 0,m.Root_file_specified_for_compilation);const l=To(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(SK(e,l))return jo(void 0,m.Part_of_files_list_in_tsconfig_json);const p=TK(e,l);return wo(p)?jo(void 0,m.Matched_by_include_pattern_0_in_1,p,xR(s.configFile,r)):jo(void 0,p?m.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:m.Root_file_specified_for_compilation);case 1:case 2:const v=t.kind===2,f=N.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return jo(void 0,Bs(s)?v?m.Output_from_referenced_project_0_included_because_1_specified:m.Source_from_referenced_project_0_included_because_1_specified:v?m.Output_from_referenced_project_0_included_because_module_is_specified_as_none:m.Source_from_referenced_project_0_included_because_module_is_specified_as_none,xR(f.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:{const b=s.types?t.packageId?[m.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,Fy(t.packageId)]:[m.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[m.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,Fy(t.packageId)]:[m.Entry_point_for_implicit_type_library_0,t.typeReference];return jo(void 0,...b)}case 6:{if(t.index!==void 0)return jo(void 0,m.Library_0_specified_in_compilerOptions,s.lib[t.index]);const b=qc(ww.type,(I,R)=>I===ps(s)?R:void 0),A=b?[m.Default_library_for_target_0,b]:[m.Default_library];return jo(void 0,...A)}default:N.assertNever(t)}}function xR(e,t){const r=wo(e)?e:e.fileName;return t?t(r):r}function KW(e,t,r,i,o,s,l,u){const p=!!e.getCompilerOptions().listFilesOnly,v=e.getConfigFileParsingDiagnostics().slice(),f=v.length;Hr(v,e.getSyntacticDiagnostics(void 0,s)),v.length===f&&(Hr(v,e.getOptionsDiagnostics(s)),p||(Hr(v,e.getGlobalDiagnostics(s)),v.length===f&&Hr(v,e.getSemanticDiagnostics(void 0,s))));const b=p?{emitSkipped:!0,diagnostics:et}:e.emit(void 0,o,s,l,u),{emittedFiles:A,diagnostics:I}=b;Hr(v,I);const R=t2(v);if(R.forEach(t),r){const M=e.getCurrentDirectory();Ve(A,C=>{const W=To(C,M);r(`TSFILE: ${W}`)}),yK(e,r)}return i&&i(qW(R),JW(R)),{emitResult:b,diagnostics:R}}function lue(e,t,r,i,o,s,l,u){const{emitResult:p,diagnostics:v}=KW(e,t,r,i,o,s,l,u);return p.emitSkipped&&v.length>0?1:v.length>0?2:0}function IK(e=bu,t){return{onWatchStatusChange:t||oue(e),watchFile:aa(e,e.watchFile)||DR,watchDirectory:aa(e,e.watchDirectory)||DR,setTimeout:aa(e,e.setTimeout)||is,clearTimeout:aa(e,e.clearTimeout)||is}}function xK(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):is,o=zJ(e,r,i);return o.writeLog=i,o}function RK(e,t,r=e){const i=e.useCaseSensitiveFileNames(),o={getSourceFile:VJ((s,l)=>l?e.readFile(s,l):o.readFile(s),t,void 0),getDefaultLibLocation:aa(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:jJ((s,l,u)=>e.writeFile(s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Td(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:ku(i),getNewLine:()=>Uv(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:aa(e,e.trace),directoryExists:aa(r,r.directoryExists),getDirectories:aa(r,r.getDirectories),realpath:aa(e,e.realpath),getEnvironmentVariable:aa(e,e.getEnvironmentVariable)||(()=>""),createHash:aa(e,e.createHash),readDirectory:aa(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return o}function XW(e,t){if(t.match(fJ)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){const s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!Ku(s)){i=o;continue}break}const l=t.substring(i,r);if(l.match(pW)){t=t.substring(0,i);break}else if(!l.match(fW))break;r=i}}return(e.createHash||fN)(t)}function YW(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=XW(e,i.text)),i}}function DK(e,t){const r=Td(()=>ii(va(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Td(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>$r(r(),bL(i)),fileExists:i=>e.fileExists(i),readFile:(i,o)=>e.readFile(i,o),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,o,s,l,u)=>e.readDirectory(i,o,s,l,u),realpath:aa(e,e.realpath),getEnvironmentVariable:aa(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:aa(e,e.createHash),createProgram:t||_K,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:aa(e,e.now)}}function Q2e(e=bu,t,r,i){const o=l=>e.write(l+e.newLine),s=DK(e,t);return RG(s,IK(e,i)),s.afterProgramCreate=l=>{const u=l.getCompilerOptions(),p=Uv(u);KW(l,r,o,v=>s.onWatchStatusChange($l(vK(v),v),p,u,v))},s}function Z2e(e,t,r){t(r),e.exit(1)}function cue({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const p=l||uO(o),v=Q2e(o,s,p,u);return v.onUnRecoverableConfigFileDiagnostic=f=>Z2e(o,p,f),v.configFileName=e,v.optionsToExtend=t,v.watchOptionsToExtend=r,v.extraFileExtensions=i,v}function uue({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const p=Q2e(o,s,l||uO(o),u);return p.rootFiles=e,p.options=t,p.watchOptions=r,p.projectReferences=i,p}function eRe(e){const t=e.system||bu,r=e.host||(e.host=NK(e.options,t)),i=pue(e),o=lue(i,e.reportDiagnostic||uO(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(aue(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var due,$W,RR,DR,zc,bqe=S({"src/compiler/watch.ts"(){ia(),due=bu?{getCurrentDirectory:()=>bu.getCurrentDirectory(),getNewLine:()=>bu.newLine,getCanonicalFileName:ku(bu.useCaseSensitiveFileNames)}:void 0,$W=[m.Starting_compilation_in_watch_mode.code,m.File_change_detected_Starting_incremental_compilation.code],RR={close:is},DR=()=>RR,zc={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function QW(e,t){const r=$v(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=RW(r,o)}if(!(!i||i.version!==Ae||!i.program))return $ce(i,r,t)}function NK(e,t=bu){const r=UJ(e,void 0,t);return r.createHash=aa(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,YW(r),oO(r,i=>ll(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function pue({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||NK(t),s=s||_K;const l=QW(t,o);return s(e,t,o,l,r,i)}function tRe(e,t,r,i,o,s,l,u){return Do(e)?uue({rootFiles:e,options:t,watchOptions:u,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):cue({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:u,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function nRe(e){let t,r,i,o,s,l,u,p,v=e.extendedConfigCache,f=!1;const b=new Map;let A,I=!1;const R=e.useCaseSensitiveFileNames(),M=e.getCurrentDirectory(),{configFileName:C,optionsToExtend:W={},watchOptionsToExtend:U,extraFileExtensions:X,createProgram:ee}=e;let{rootFiles:V,options:se,watchOptions:G,projectReferences:re}=e,_e,ye,Q=!1,Y=!1;const oe=C===void 0?void 0:NW(e,M,R),he=oe||e,Ie=FW(e,he);let de=Nn();C&&e.configFileParsingResult&&(Ba(e.configFileParsingResult),de=Nn()),tr(m.Starting_compilation_in_watch_mode),C&&!e.configFileParsingResult&&(de=Uv(W),N.assert(!V),_a(),de=Nn()),N.assert(se),N.assert(V);const{watchFile:ie,watchDirectory:ge,writeLog:Ce}=xK(e,se),qe=ku(R);Ce(`Current directory: ${M} CaseSensitiveFileNames: ${R}`);let Se;C&&(Se=ie(C,Dn,2e3,G,zc.ConfigFile));const Le=RK(e,()=>se,he);YW(Le);const Ne=Le.getSourceFile;Le.getSourceFile=(Ye,..._t)=>gi(Ye,Xn(Ye),..._t),Le.getSourceFileByPath=gi,Le.getNewLine=()=>de,Le.fileExists=en,Le.onReleaseOldSourceFile=Co,Le.onReleaseParsedCommandLine=Je,Le.toPath=Xn,Le.getCompilationSettings=()=>se,Le.useSourceOfProjectReferenceRedirect=aa(e,e.useSourceOfProjectReferenceRedirect),Le.watchDirectoryOfFailedLookupLocation=(Ye,_t,Gt)=>ge(Ye,_t,Gt,G,zc.FailedLookupLocations),Le.watchAffectingFileLocation=(Ye,_t)=>ie(Ye,_t,2e3,G,zc.AffectingFileLocation),Le.watchTypeRootsDirectory=(Ye,_t,Gt)=>ge(Ye,_t,Gt,G,zc.TypeRoots),Le.getCachedDirectoryStructureHost=()=>oe,Le.scheduleInvalidateResolutionsOfFailedLookupLocations=Kt,Le.onInvalidatedResolution=Bt,Le.onChangedAutomaticTypeDirectiveNames=Bt,Le.fileIsOpen=Ym,Le.getCurrentProgram=Ze,Le.writeLog=Ce,Le.getParsedCommandLine=Tn;const Oe=gK(Le,C?ii(To(C,M)):M,!1);Le.resolveModuleNameLiterals=aa(e,e.resolveModuleNameLiterals),Le.resolveModuleNames=aa(e,e.resolveModuleNames),!Le.resolveModuleNameLiterals&&!Le.resolveModuleNames&&(Le.resolveModuleNameLiterals=Oe.resolveModuleNameLiterals.bind(Oe)),Le.resolveTypeReferenceDirectiveReferences=aa(e,e.resolveTypeReferenceDirectiveReferences),Le.resolveTypeReferenceDirectives=aa(e,e.resolveTypeReferenceDirectives),!Le.resolveTypeReferenceDirectiveReferences&&!Le.resolveTypeReferenceDirectives&&(Le.resolveTypeReferenceDirectiveReferences=Oe.resolveTypeReferenceDirectiveReferences.bind(Oe)),Le.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):Oe.resolveLibrary.bind(Oe),Le.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?aa(e,e.getModuleResolutionCache):()=>Oe.getModuleResolutionCache();const be=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?aa(e,e.hasInvalidatedResolutions)||Pv:Ym,He=e.resolveLibrary?aa(e,e.hasInvalidatedLibResolutions)||Pv:Ym;return t=QW(se,Le),It(),dt(),C&&ot(Xn(C),se,G,zc.ExtendedConfigFile),C?{getCurrentProgram:yt,getProgram:yi,close:it,getResolutionCache:Ft}:{getCurrentProgram:yt,getProgram:yi,updateRootFileNames:Yt,close:it,getResolutionCache:Ft};function it(){Nr(),Oe.clear(),np(b,Ye=>{Ye&&Ye.fileWatcher&&(Ye.fileWatcher.close(),Ye.fileWatcher=void 0)}),Se&&(Se.close(),Se=void 0),v==null||v.clear(),v=void 0,p&&(np(p,Mf),p=void 0),o&&(np(o,Mf),o=void 0),i&&(np(i,Zm),i=void 0),u&&(np(u,Ye=>{var _t;(_t=Ye.watcher)==null||_t.close(),Ye.watcher=void 0,Ye.watchedDirectories&&np(Ye.watchedDirectories,Mf),Ye.watchedDirectories=void 0}),u=void 0)}function Ft(){return Oe}function yt(){return t}function Ze(){return t&&t.getProgramOrUndefined()}function It(){Ce("Synchronizing program"),N.assert(se),N.assert(V),Nr();const Ye=yt();I&&(de=Nn(),Ye&&Y6(Ye.getCompilerOptions(),se)&&Oe.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:_t,hasInvalidatedLibResolutions:Gt}=Oe.createHasInvalidatedResolutions(be,He),{originalReadFile:gn,originalFileExists:hn,originalDirectoryExists:pn,originalCreateDirectory:q,originalWriteFile:We,readFileWithCache:Lt}=oO(Le,Xn);return eK(Ze(),V,se,L=>Ui(L,Lt),L=>Le.fileExists(L),_t,Gt,Ci,Tn,re)?Y&&(f&&tr(m.File_change_detected_Starting_incremental_compilation),t=ee(void 0,void 0,Le,t,ye,re),Y=!1):(f&&tr(m.File_change_detected_Starting_incremental_compilation),on(_t,Gt)),f=!1,e.afterProgramCreate&&Ye!==t&&e.afterProgramCreate(t),Le.readFile=gn,Le.fileExists=hn,Le.directoryExists=pn,Le.createDirectory=q,Le.writeFile=We,t}function on(Ye,_t){Ce("CreatingProgramWith::"),Ce(` roots: ${JSON.stringify(V)}`),Ce(` options: ${JSON.stringify(se)}`),re&&Ce(` projectReferences: ${JSON.stringify(re)}`);const Gt=I||!Ze();I=!1,Y=!1,Oe.startCachingPerDirectoryResolution(),Le.hasInvalidatedResolutions=Ye,Le.hasInvalidatedLibResolutions=_t,Le.hasChangedAutomaticTypeDirectiveNames=Ci;const gn=Ze();if(t=ee(V,se,Le,t,ye,re),Oe.finishCachingPerDirectoryResolution(t.getProgram(),gn),FJ(t.getProgram(),i||(i=new Map),le),Gt&&Oe.updateTypeRootsWatch(),A){for(const hn of A)i.has(hn)||b.delete(hn);A=void 0}}function Yt(Ye){N.assert(!C,"Cannot update root file names with config file watch mode"),V=Ye,Bt()}function Nn(){return Uv(se||W)}function Xn(Ye){return ll(Ye,M,qe)}function yn(Ye){return typeof Ye=="boolean"}function tn(Ye){return typeof Ye.version=="boolean"}function en(Ye){const _t=Xn(Ye);return yn(b.get(_t))?!1:he.fileExists(Ye)}function gi(Ye,_t,Gt,gn,hn){const pn=b.get(_t);if(yn(pn))return;const q=typeof Gt=="object"?Gt.impliedNodeFormat:void 0;if(pn===void 0||hn||tn(pn)||pn.sourceFile.impliedNodeFormat!==q){const We=Ne(Ye,Gt,gn);if(pn)We?(pn.sourceFile=We,pn.version=We.version,pn.fileWatcher||(pn.fileWatcher=mt(_t,Ye,pt,250,G,zc.SourceFile))):(pn.fileWatcher&&pn.fileWatcher.close(),b.set(_t,!1));else if(We){const Lt=mt(_t,Ye,pt,250,G,zc.SourceFile);b.set(_t,{sourceFile:We,version:We.version,fileWatcher:Lt})}else b.set(_t,!1);return We}return pn.sourceFile}function bo(Ye){const _t=b.get(Ye);_t!==void 0&&(yn(_t)?b.set(Ye,{version:!1}):_t.version=!1)}function Ui(Ye,_t){const Gt=b.get(Ye);if(!Gt)return;if(Gt.version)return Gt.version;const gn=_t(Ye);return gn!==void 0?XW(Le,gn):void 0}function Co(Ye,_t,Gt){const gn=b.get(Ye.resolvedPath);gn!==void 0&&(yn(gn)?(A||(A=[])).push(Ye.path):gn.sourceFile===Ye&&(gn.fileWatcher&&gn.fileWatcher.close(),b.delete(Ye.resolvedPath),Gt||Oe.removeResolutionsOfFile(Ye.path)))}function tr(Ye){e.onWatchStatusChange&&e.onWatchStatusChange($l(Ye),de,se||W)}function Ci(){return Oe.hasChangedAutomaticTypeDirectiveNames()}function Nr(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function Kt(){if(!e.setTimeout||!e.clearTimeout)return Oe.invalidateResolutionsOfFailedLookupLocations();const Ye=Nr();Ce(`Scheduling invalidateFailedLookup${Ye?", Cancelled earlier one":""}`),l=e.setTimeout(nt,250,"timerToInvalidateFailedLookupResolutions")}function nt(){l=void 0,Oe.invalidateResolutionsOfFailedLookupLocations()&&Bt()}function Bt(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),Ce("Scheduling update"),s=e.setTimeout(si,250,"timerToUpdateProgram"))}function Dn(){N.assert(!!C),r=2,Bt()}function si(){s=void 0,f=!0,yi()}function yi(){var Ye,_t,Gt,gn;switch(r){case 1:(Ye=sd)==null||Ye.logStartUpdateProgram("PartialConfigReload"),oo();break;case 2:(_t=sd)==null||_t.logStartUpdateProgram("FullConfigReload"),Po();break;default:(Gt=sd)==null||Gt.logStartUpdateProgram("SynchronizeProgram"),It();break}return(gn=sd)==null||gn.logStopUpdateProgram("Done"),yt()}function oo(){Ce("Reloading new file names and options"),N.assert(se),N.assert(C),r=0,V=HC(se.configFile.configFileSpecs,To(ii(C),M),se,Ie,X),z5(V,To(C,M),se.configFile.configFileSpecs,ye,Q)&&(Y=!0),It()}function Po(){N.assert(C),Ce(`Reloading config file: ${C}`),r=0,oe&&oe.clearCache(),_a(),I=!0,It(),dt(),ot(Xn(C),se,G,zc.ExtendedConfigFile)}function _a(){N.assert(C),Ba(Rw(C,W,Ie,v||(v=new Map),U,X))}function Ba(Ye){V=Ye.fileNames,se=Ye.options,G=Ye.watchOptions,re=Ye.projectReferences,_e=Ye.wildcardDirectories,ye=rT(Ye).slice(),Q=UC(Ye.raw),Y=!0}function Tn(Ye){const _t=Xn(Ye);let Gt=u==null?void 0:u.get(_t);if(Gt){if(!Gt.updateLevel)return Gt.parsedCommandLine;if(Gt.parsedCommandLine&&Gt.updateLevel===1&&!e.getParsedCommandLine){Ce("Reloading new file names and options"),N.assert(se);const hn=HC(Gt.parsedCommandLine.options.configFile.configFileSpecs,To(ii(Ye),M),se,Ie);return Gt.parsedCommandLine={...Gt.parsedCommandLine,fileNames:hn},Gt.updateLevel=void 0,Gt.parsedCommandLine}}Ce(`Loading config file: ${Ye}`);const gn=e.getParsedCommandLine?e.getParsedCommandLine(Ye):On(Ye);return Gt?(Gt.parsedCommandLine=gn,Gt.updateLevel=void 0):(u||(u=new Map)).set(_t,Gt={parsedCommandLine:gn}),Dt(Ye,_t,Gt),gn}function On(Ye){const _t=Ie.onUnRecoverableConfigFileDiagnostic;Ie.onUnRecoverableConfigFileDiagnostic=is;const Gt=Rw(Ye,void 0,Ie,v||(v=new Map),U);return Ie.onUnRecoverableConfigFileDiagnostic=_t,Gt}function Je(Ye){var _t;const Gt=Xn(Ye),gn=u==null?void 0:u.get(Gt);!gn||(u.delete(Gt),gn.watchedDirectories&&np(gn.watchedDirectories,Mf),(_t=gn.watcher)==null||_t.close(),WJ(Gt,p))}function mt(Ye,_t,Gt,gn,hn,pn){return ie(_t,(q,We)=>Gt(q,We,Ye),gn,hn,pn)}function pt(Ye,_t,Gt){Pt(Ye,Gt,_t),_t===2&&b.has(Gt)&&Oe.invalidateResolutionOfFile(Gt),bo(Gt),Bt()}function Pt(Ye,_t,Gt){oe&&oe.addOrDeleteFile(Ye,_t,Gt)}function le(Ye,_t){return u!=null&&u.has(Ye)?RR:mt(Ye,_t,Fe,500,G,zc.MissingFile)}function Fe(Ye,_t,Gt){Pt(Ye,Gt,_t),_t===0&&i.has(Gt)&&(i.get(Gt).close(),i.delete(Gt),bo(Gt),Bt())}function dt(){nO(o||(o=new Map),_e,j)}function j(Ye,_t){return ge(Ye,Gt=>{N.assert(C),N.assert(se);const gn=Xn(Gt);oe&&oe.addOrDeleteFileOrDirectory(Gt,gn),bo(gn),!rO({watchedDirPath:Xn(Ye),fileOrDirectory:Gt,fileOrDirectoryPath:gn,configFileName:C,extraFileExtensions:X,options:se,program:yt()||V,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Ce,toPath:Xn})&&r!==2&&(r=1,Bt())},_t,G,zc.WildcardDirectory)}function ot(Ye,_t,Gt,gn){CW(Ye,_t,p||(p=new Map),(hn,pn)=>ie(hn,(q,We)=>{var Lt;Pt(hn,pn,We),v&&PW(v,pn,Xn);const L=(Lt=p.get(pn))==null?void 0:Lt.projects;!(L!=null&&L.size)||L.forEach(me=>{if(C&&Xn(C)===me)r=2;else{const J=u==null?void 0:u.get(me);J&&(J.updateLevel=2),Oe.removeResolutionsFromProjectReferenceRedirects(me)}Bt()})},2e3,Gt,gn),Xn)}function Dt(Ye,_t,Gt){var gn,hn,pn,q;Gt.watcher||(Gt.watcher=ie(Ye,(We,Lt)=>{Pt(Ye,_t,Lt);const L=u==null?void 0:u.get(_t);L&&(L.updateLevel=2),Oe.removeResolutionsFromProjectReferenceRedirects(_t),Bt()},2e3,((gn=Gt.parsedCommandLine)==null?void 0:gn.watchOptions)||G,zc.ConfigFileOfReferencedProject)),nO(Gt.watchedDirectories||(Gt.watchedDirectories=new Map),(hn=Gt.parsedCommandLine)==null?void 0:hn.wildcardDirectories,(We,Lt)=>{var L;return ge(We,me=>{const J=Xn(me);oe&&oe.addOrDeleteFileOrDirectory(me,J),bo(J);const fe=u==null?void 0:u.get(_t);!(fe!=null&&fe.parsedCommandLine)||rO({watchedDirPath:Xn(We),fileOrDirectory:me,fileOrDirectoryPath:J,configFileName:Ye,options:fe.parsedCommandLine.options,program:fe.parsedCommandLine.fileNames,currentDirectory:M,useCaseSensitiveFileNames:R,writeLog:Ce,toPath:Xn})||fe.updateLevel!==2&&(fe.updateLevel=1,Bt())},Lt,((L=Gt.parsedCommandLine)==null?void 0:L.watchOptions)||G,zc.WildcardDirectoryOfReferencedProject)}),ot(_t,(pn=Gt.parsedCommandLine)==null?void 0:pn.options,((q=Gt.parsedCommandLine)==null?void 0:q.watchOptions)||G,zc.ExtendedConfigOfReferencedProject)}}var Eqe=S({"src/compiler/watchPublic.ts"(){ia()}});function CK(e){return Nl(e,".json")?e:$r(e,"tsconfig.json")}var PK,Sqe=S({"src/compiler/tsbuild.ts"(){ia(),PK=(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))(PK||{})}});function Tqe(e,t,r){const i=e.get(t);let o;return i||(o=r(),e.set(t,o)),i||o}function fue(e,t){return Tqe(e,t,()=>new Map)}function pO(e){return e.now?e.now():new Date}function LI(e){return!!e&&!!e.buildOrder}function ZW(e){return LI(e)?e.buildOrder:e}function mue(e,t){return r=>{let i=t?`[${yE(dO(e),"\x1B[90m")}] `:`${dO(e)} - `;i+=`${B_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function rRe(e,t,r,i){const o=DK(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):r0,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):is,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):is,o.reportDiagnostic=r||uO(e),o.reportSolutionBuilderStatus=i||mue(e),o.now=aa(e,e.now),o}function iRe(e=bu,t,r,i,o){const s=rRe(e,t,r,i);return s.reportErrorSummary=o,s}function oRe(e=bu,t,r,i,o){const s=rRe(e,t,r,i),l=IK(e,o);return RG(s,l),s}function Aqe(e){const t={};return kw.forEach(r=>{Ls(e,r.name)&&(t[r.name]=e[r.name])}),t}function aRe(e,t,r){return CRe(!1,e,t,r)}function sRe(e,t,r,i){return CRe(!0,e,t,r,i)}function Iqe(e,t,r,i,o){const s=t,l=t,u=Aqe(i),p=RK(s,()=>M.projectCompilerOptions);YW(p),p.getParsedCommandLine=C=>kI(M,C,G_(M,C)),p.resolveModuleNameLiterals=aa(s,s.resolveModuleNameLiterals),p.resolveTypeReferenceDirectiveReferences=aa(s,s.resolveTypeReferenceDirectiveReferences),p.resolveLibrary=aa(s,s.resolveLibrary),p.resolveModuleNames=aa(s,s.resolveModuleNames),p.resolveTypeReferenceDirectives=aa(s,s.resolveTypeReferenceDirectives),p.getModuleResolutionCache=aa(s,s.getModuleResolutionCache);let v,f;!p.resolveModuleNameLiterals&&!p.resolveModuleNames&&(v=mR(p.getCurrentDirectory(),p.getCanonicalFileName),p.resolveModuleNameLiterals=(C,W,U,X,ee)=>sO(C,W,U,X,ee,s,v,YJ),p.getModuleResolutionCache=()=>v),!p.resolveTypeReferenceDirectiveReferences&&!p.resolveTypeReferenceDirectives&&(f=Q5(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,v==null?void 0:v.getPackageJsonInfoCache(),v==null?void 0:v.optionsToRedirectsKey),p.resolveTypeReferenceDirectiveReferences=(C,W,U,X,ee)=>sO(C,W,U,X,ee,s,f,LW));let b;p.resolveLibrary||(b=mR(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,v==null?void 0:v.getPackageJsonInfoCache()),p.resolveLibrary=(C,W,U)=>Z5(C,W,U,s,b)),p.getBuildInfo=(C,W)=>ERe(M,C,G_(M,W),void 0);const{watchFile:A,watchDirectory:I,writeLog:R}=xK(l,i),M={host:s,hostWithWatch:l,parseConfigFileHost:FW(s),write:aa(s,s.trace),options:i,baseCompilerOptions:u,rootNames:r,baseWatchOptions:o,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:p,moduleResolutionCache:v,typeReferenceDirectiveResolutionCache:f,libraryResolutionCache:b,buildOrder:void 0,readFileWithCache:C=>s.readFile(C),projectCompilerOptions:u,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:A,watchDirectory:I,writeLog:R};return M}function Lf(e,t){return ll(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function G_(e,t){const{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;const o=Lf(e,t);return r.set(t,o),o}function lRe(e){return!!e.options}function xqe(e,t){const r=e.configFileCache.get(t);return r&&lRe(r)?r:void 0}function kI(e,t,r){const{configFileCache:i}=e,o=i.get(r);if(o)return lRe(o)?o:void 0;sl("SolutionBuilder::beforeConfigFileParsing");let s;const{parseConfigFileHost:l,baseCompilerOptions:u,baseWatchOptions:p,extendedConfigCache:v,host:f}=e;let b;return f.getParsedCommandLine?(b=f.getParsedCommandLine(t),b||(s=$l(m.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=A=>s=A,b=Rw(t,u,l,v,p),l.onUnRecoverableConfigFileDiagnostic=is),i.set(r,b||s),sl("SolutionBuilder::afterConfigFileParsing"),ef("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),b}function dP(e,t){return CK(Ny(e.compilerHost.getCurrentDirectory(),t))}function cRe(e,t){const r=new Map,i=new Map,o=[];let s,l;for(const p of t)u(p);return l?{buildOrder:s||et,circularDiagnostics:l}:s||et;function u(p,v){const f=G_(e,p);if(i.has(f))return;if(r.has(f)){v||(l||(l=[])).push($l(m.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r
`)));return}r.set(f,!0),o.push(p);const b=kI(e,p,f);if(b&&b.projectReferences)for(const A of b.projectReferences){const I=dP(e,A.path);u(I,v||A.circular)}o.pop(),i.set(f,!0),(s||(s=[])).push(p)}}function eF(e){return e.buildOrder||Rqe(e)}function Rqe(e){const t=cRe(e,e.rootNames.map(o=>dP(e,o)));e.resolvedConfigFilePaths.clear();const r=new Set(ZW(t).map(o=>G_(e,o))),i={onDeleteValue:is};return lg(e.configFileCache,r,i),lg(e.projectStatus,r,i),lg(e.builderPrograms,r,i),lg(e.diagnostics,r,i),lg(e.projectPendingBuild,r,i),lg(e.projectErrorsReported,r,i),lg(e.buildInfoCache,r,i),lg(e.outputTimeStamps,r,i),lg(e.lastCachedPackageJsonLookups,r,i),e.watch&&(lg(e.allWatchedConfigFiles,r,{onDeleteValue:Zm}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),lg(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Mf)}),lg(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(Zm)}),lg(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(Zm)})),e.buildOrder=t}function uRe(e,t,r){const i=t&&dP(e,t),o=eF(e);if(LI(o))return o;if(i){const l=G_(e,i);if(Ji(o,p=>G_(e,p)===l)===-1)return}const s=i?cRe(e,[i]):o;return N.assert(!LI(s)),N.assert(!r||i!==void 0),N.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function dRe(e){e.cache&&_ue(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:v,getSourceFileWithCache:f,readFileWithCache:b}=oO(r,A=>Lf(e,A),(...A)=>o.call(t,...A));e.readFileWithCache=b,t.getSourceFile=f,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:p,originalWriteFile:v,originalReadFileWithCache:i,originalGetSourceFile:o}}function _ue(e){if(!e.cache)return;const{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:u}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s==null||s.clear(),l==null||l.clear(),u==null||u.clear(),e.cache=void 0}function pRe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function fRe({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||i<r)&&e.set(t,r)}function mRe(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&Rue(e,m.Starting_compilation_in_watch_mode),dRe(e),ZW(eF(e)).forEach(i=>e.projectPendingBuild.set(G_(e,i),0)),t&&t.throwIfCancellationRequested()}function _Re(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function Dqe(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:()=>{TRe(e,i,r),s=!1},done:()=>(s&&TRe(e,i,r),sl("SolutionBuilder::Timestamps only updates"),_Re(e,r))}}function hRe(e,t,r,i,o,s,l){let u=e===0?0:4,p,v,f;return e===0?{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>A(ol),getProgram:()=>A(G=>G.getProgramOrUndefined()),getSourceFile:G=>A(re=>re.getSourceFile(G)),getSourceFiles:()=>I(G=>G.getSourceFiles()),getOptionsDiagnostics:G=>I(re=>re.getOptionsDiagnostics(G)),getGlobalDiagnostics:G=>I(re=>re.getGlobalDiagnostics(G)),getConfigFileParsingDiagnostics:()=>I(G=>G.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(G,re)=>I(_e=>_e.getSyntacticDiagnostics(G,re)),getAllDependencies:G=>I(re=>re.getAllDependencies(G)),getSemanticDiagnostics:(G,re)=>I(_e=>_e.getSemanticDiagnostics(G,re)),getSemanticDiagnosticsOfNextAffectedFile:(G,re)=>A(_e=>_e.getSemanticDiagnosticsOfNextAffectedFile&&_e.getSemanticDiagnosticsOfNextAffectedFile(G,re)),emit:(G,re,_e,ye,Q)=>{if(G||ye)return A(Y=>{var oe,he;return Y.emit(G,re,_e,ye,Q||((he=(oe=t.host).getCustomTransformers)==null?void 0:he.call(oe,r)))});if(se(2,_e),u===5)return X(re,_e);if(u===3)return U(re,_e,Q)},done:b}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(G,re)=>u!==4?f:V(G,re),done:b};function b(G,re,_e){return se(8,G,re,_e),sl(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),_Re(t,i)}function A(G){return se(0),p&&G(p)}function I(G){return A(G)||et}function R(){var G,re,_e;if(N.assert(p===void 0),t.options.dry){Dd(t,m.A_non_dry_build_would_build_project_0,r),v=1,u=7;return}if(t.options.verbose&&Dd(t,m.Building_project_0,r),s.fileNames.length===0){pP(t,i,rT(s)),v=0,u=7;return}const{host:ye,compilerHost:Q}=t;if(t.projectCompilerOptions=s.options,(G=t.moduleResolutionCache)==null||G.update(s.options),(re=t.typeReferenceDirectiveResolutionCache)==null||re.update(s.options),p=ye.createProgram(s.fileNames,s.options,Q,Cqe(t,i,s),rT(s),s.projectReferences),t.watch){const Y=(_e=t.moduleResolutionCache)==null?void 0:_e.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,Y&&new Set(Go(Y.values(),oe=>t.host.realpath&&($5(oe)||oe.directoryExists)?t.host.realpath($r(oe.packageDirectory,"package.json")):$r(oe.packageDirectory,"package.json")))),t.builderPrograms.set(i,p)}u++}function M(G,re,_e){G.length?{buildResult:v,step:u}=vue(t,i,p,s,G,re,_e):u++}function C(G){N.assertIsDefined(p),M([...p.getConfigFileParsingDiagnostics(),...p.getOptionsDiagnostics(G),...p.getGlobalDiagnostics(G),...p.getSyntacticDiagnostics(void 0,G)],8,"Syntactic")}function W(G){M(N.checkDefined(p).getSemanticDiagnostics(void 0,G),16,"Semantic")}function U(G,re,_e){var ye,Q,Y;N.assertIsDefined(p),N.assert(u===3);const oe=p.saveEmitState();let he;const Ie=He=>(he||(he=[])).push(He),de=[],{emitResult:ie}=KW(p,Ie,void 0,void 0,(He,it,Ft,yt,Ze,It)=>de.push({name:He,text:it,writeByteOrderMark:Ft,data:It}),re,!1,_e||((Q=(ye=t.host).getCustomTransformers)==null?void 0:Q.call(ye,r)));if(he)return p.restoreEmitState(oe),{buildResult:v,step:u}=vue(t,i,p,s,he,32,"Declaration file"),{emitSkipped:!0,diagnostics:ie.diagnostics};const{host:ge,compilerHost:Ce}=t,qe=(Y=p.hasChangedEmitSignature)!=null&&Y.call(p)?0:2,Se=M2(),Le=new Map,Ne=p.getCompilerOptions(),Oe=SC(Ne);let At,be;return de.forEach(({name:He,text:it,writeByteOrderMark:Ft,data:yt})=>{const Ze=Lf(t,He);Le.set(Lf(t,He),He),yt!=null&&yt.buildInfo&&bue(t,yt.buildInfo,i,Ne,qe);const It=yt!=null&&yt.differsOnlyInMap?CA(t.host,He):void 0;KN(G?{writeFile:G}:Ce,Se,He,it,Ft),yt!=null&&yt.differsOnlyInMap?t.host.setModifiedTime(He,It):!Oe&&t.watch&&(At||(At=yue(t,i))).set(Ze,be||(be=pO(t.host)))}),ee(Se,Le,de.length?de[0].name:kJ(s,!ge.useCaseSensitiveFileNames()),qe),ie}function X(G,re){N.assertIsDefined(p),N.assert(u===5);const _e=p.emitBuildInfo((ye,Q,Y,oe,he,Ie)=>{Ie!=null&&Ie.buildInfo&&bue(t,Ie.buildInfo,i,p.getCompilerOptions(),2),G?G(ye,Q,Y,oe,he,Ie):t.compilerHost.writeFile(ye,Q,Y,oe,he,Ie)},re);return _e.diagnostics.length&&(nF(t,_e.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),..._e.diagnostics]),v=64&v),_e.emittedFiles&&t.write&&_e.emittedFiles.forEach(ye=>yRe(t,s,ye)),gue(t,p,s),u=7,_e}function ee(G,re,_e,ye){const Q=G.getDiagnostics();return Q.length?({buildResult:v,step:u}=vue(t,i,p,s,Q,64,"Emit"),Q):(t.write&&re.forEach(Y=>yRe(t,s,Y)),SRe(t,s,i,m.Updating_unchanged_output_timestamps_of_project_0,re),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:_e}),gue(t,p,s),u=7,v=ye,Q)}function V(G,re){var _e,ye,Q,Y;if(N.assert(e===1),t.options.dry){Dd(t,m.A_non_dry_build_would_update_output_of_project_0,r),v=1,u=7;return}t.options.verbose&&Dd(t,m.Updating_output_of_project_0,r);const{compilerHost:oe}=t;t.projectCompilerOptions=s.options,(ye=(_e=t.host).beforeEmitBundle)==null||ye.call(_e,s);const he=Dce(s,oe,qe=>{const Se=dP(t,qe.path);return kI(t,Se,G_(t,Se))},re||((Y=(Q=t.host).getCustomTransformers)==null?void 0:Y.call(Q,r)));if(wo(he))return Dd(t,m.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,fu(t,he)),u=6,f=hRe(0,t,r,i,o,s,l);N.assert(!!he.length);const Ie=M2(),de=new Map;let ie=2;const ge=t.buildInfoCache.get(i).buildInfo||void 0;return he.forEach(({name:qe,text:Se,writeByteOrderMark:Le,data:Ne})=>{var Oe,At;de.set(Lf(t,qe),qe),Ne!=null&&Ne.buildInfo&&(((Oe=Ne.buildInfo.program)==null?void 0:Oe.outSignature)!==((At=ge==null?void 0:ge.program)==null?void 0:At.outSignature)&&(ie&=-3),bue(t,Ne.buildInfo,i,s.options,ie)),KN(G?{writeFile:G}:oe,Ie,qe,Se,Le)}),{emitSkipped:!1,diagnostics:ee(Ie,de,he[0].name,ie)}}function se(G,re,_e,ye){for(;u<=G&&u<8;){const Q=u;switch(u){case 0:R();break;case 1:C(re);break;case 2:W(re);break;case 3:U(_e,re,ye);break;case 5:X(_e,re);break;case 4:V(_e,ye);break;case 6:N.checkDefined(f).done(re,_e,ye),u=8;break;case 7:kqe(t,r,i,o,s,l,N.checkDefined(v)),u++;break}N.assert(u>Q)}}}function Nqe({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!rT(r).length||!SC(r.options)}function gRe(e,t,r){if(!e.projectPendingBuild.size||LI(t))return;const{options:i,projectPendingBuild:o}=e;for(let s=0;s<t.length;s++){const l=t[s],u=G_(e,l),p=e.projectPendingBuild.get(u);if(p===void 0)continue;r&&(r=!1,LRe(e,t));const v=kI(e,l,u);if(!v){PRe(e,u),o.delete(u);continue}p===2?(RRe(e,l,u,v),DRe(e,u,v),NRe(e,l,u,v),Iue(e,l,u,v),xue(e,l,u,v)):p===1&&(v.fileNames=HC(v.options.configFile.configFileSpecs,ii(l),v.options,e.parseConfigFileHost),z5(v.fileNames,l,v.options.configFile.configFileSpecs,v.errors,UC(v.raw)),Iue(e,l,u,v),xue(e,l,u,v));const f=Tue(e,v,u);if(!i.force){if(f.type===1){kK(e,l,f),pP(e,u,rT(v)),o.delete(u),i.dry&&Dd(e,m.Project_0_is_up_to_date,l);continue}if(f.type===2||f.type===15)return pP(e,u,rT(v)),{kind:2,status:f,project:l,projectPath:u,projectIndex:s,config:v}}if(f.type===12){kK(e,l,f),pP(e,u,rT(v)),o.delete(u),i.verbose&&Dd(e,f.upstreamProjectBlocked?m.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:m.Skipping_build_of_project_0_because_its_dependency_1_has_errors,l,f.upstreamProjectName);continue}if(f.type===16){kK(e,l,f),pP(e,u,rT(v)),o.delete(u);continue}return{kind:Nqe(e,f,v)?0:1,status:f,project:l,projectPath:u,projectIndex:s,config:v}}}function vRe(e,t,r){return kK(e,t.project,t.status),t.kind!==2?hRe(t.kind,e,t.project,t.projectPath,t.projectIndex,t.config,r):Dqe(e,t.project,t.projectPath,t.config,r)}function hue(e,t,r){const i=gRe(e,t,r);return i&&vRe(e,i,t)}function yRe({write:e},t,r){e&&t.options.listEmittedFiles&&e(`TSFILE: ${r}`)}function Cqe({options:e,builderPrograms:t,compilerHost:r},i,o){if(e.force)return;const s=t.get(i);return s||QW(o.options,r)}function gue(e,t,r){t?(e.write&&yK(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(r),e.projectCompilerOptions=e.baseCompilerOptions}function vue(e,t,r,i,o,s,l){const u=r&&!Bs(r.getCompilerOptions());return pP(e,t,o),e.projectStatus.set(t,{type:0,reason:`${l} errors`}),u?{buildResult:s,step:5}:(gue(e,r,i),{buildResult:s,step:7})}function MK(e){return!!e.watcher}function bRe(e,t){const r=Lf(e,t),i=e.filesWatched.get(r);if(e.watch&&!!i){if(!MK(i))return i;if(i.modifiedTime)return i.modifiedTime}const o=CA(e.host,t);return e.watch&&(i?i.modifiedTime=o:e.filesWatched.set(r,o)),o}function LK(e,t,r,i,o,s,l){const u=Lf(e,t),p=e.filesWatched.get(u);if(p&&MK(p))p.callbacks.push(r);else{const v=e.watchFile(t,(f,b,A)=>{const I=N.checkDefined(e.filesWatched.get(u));N.assert(MK(I)),I.modifiedTime=A,I.callbacks.forEach(R=>R(f,b,A))},i,o,s,l);e.filesWatched.set(u,{callbacks:[r],watcher:v,modifiedTime:p})}return{close:()=>{const v=N.checkDefined(e.filesWatched.get(u));N.assert(MK(v)),v.callbacks.length===1?(e.filesWatched.delete(u),Mf(v)):DA(v.callbacks,r)}}}function yue(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function bue(e,t,r,i,o){const s=$v(i),l=Eue(e,s,r),u=pO(e.host);l?(l.buildInfo=t,l.modifiedTime=u,o&2||(l.latestChangedDtsTime=u)):e.buildInfoCache.set(r,{path:Lf(e,s),buildInfo:t,modifiedTime:u,latestChangedDtsTime:o&2?void 0:u})}function Eue(e,t,r){const i=Lf(e,t),o=e.buildInfoCache.get(r);return(o==null?void 0:o.path)===i?o:void 0}function ERe(e,t,r,i){const o=Lf(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;const l=e.readFileWithCache(t),u=l?RW(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:u||!1,modifiedTime:i||Wp}),u}function Sue(e,t,r,i){const o=bRe(e,t);if(r<o)return{type:6,outOfDateOutputFileName:i,newerInputFileName:t}}function Pqe(e,t,r){var i,o,s;if(!t.fileNames.length&&!UC(t.raw))return{type:16};let l;const u=!!e.options.force;if(t.projectReferences){e.projectStatus.set(r,{type:13});for(const Q of t.projectReferences){const Y=TR(Q),oe=G_(e,Y),he=kI(e,Y,oe),Ie=Tue(e,he,oe);if(!(Ie.type===13||Ie.type===16)){if(Ie.type===0||Ie.type===12)return{type:12,upstreamProjectName:Q.path,upstreamProjectBlocked:Ie.type===12};if(Ie.type!==1)return{type:11,upstreamProjectName:Q.path};u||(l||(l=[])).push({ref:Q,refStatus:Ie,resolvedRefPath:oe,resolvedConfig:he})}}}if(u)return{type:17};const{host:p}=e,v=$v(t.options);let f,b=wRe,A,I,R;if(v){const Q=Eue(e,v,r);if(A=(Q==null?void 0:Q.modifiedTime)||CA(p,v),A===Wp)return Q||e.buildInfoCache.set(r,{path:Lf(e,v),buildInfo:!1,modifiedTime:A}),{type:4,missingOutputFileName:v};const Y=ERe(e,v,r,A);if(!Y)return{type:5,fileName:v};if((Y.bundle||Y.program)&&Y.version!==Ae)return{type:14,version:Y.version};if(Y.program){if(((i=Y.program.changeFileSet)==null?void 0:i.length)||(t.options.noEmit?St(Y.program.semanticDiagnosticsPerFile,Do):((o=Y.program.affectedFilesPendingEmit)==null?void 0:o.length)||((s=Y.program.emitDiagnosticsPerFile)==null?void 0:s.length)))return{type:8,buildInfoFile:v};if(!t.options.noEmit&&IR(t.options,Y.program.options||{}))return{type:9,buildInfoFile:v};I=Y.program}b=A,f=v}let M,C=kRe,W=!1;const U=new Set;for(const Q of t.fileNames){const Y=bRe(e,Q);if(Y===Wp)return{type:0,reason:`${Q} does not exist`};if(A&&A<Y){let oe,he;if(I){R||(R=dK(I,v,p)),oe=R.fileInfos.get(Lf(e,Q));const Ie=oe?e.readFileWithCache(Q):void 0;he=Ie!==void 0?XW(p,Ie):void 0,oe&&oe===he&&(W=!0)}if(!oe||oe!==he)return{type:6,outOfDateOutputFileName:v,newerInputFileName:Q}}Y>C&&(M=Q,C=Y),I&&U.add(Lf(e,Q))}if(I){R||(R=dK(I,v,p));for(const Q of R.roots)if(!U.has(Q))return{type:10,buildInfoFile:v,inputFile:Q}}if(!v){const Q=IW(t,!p.useCaseSensitiveFileNames()),Y=yue(e,r);for(const oe of Q){const he=Lf(e,oe);let Ie=Y==null?void 0:Y.get(he);if(Ie||(Ie=CA(e.host,oe),Y==null||Y.set(he,Ie)),Ie===Wp)return{type:4,missingOutputFileName:oe};if(Ie<C)return{type:6,outOfDateOutputFileName:oe,newerInputFileName:M};Ie<b&&(b=Ie,f=oe)}}const X=e.buildInfoCache.get(r);let ee=!1,V=!1,se;if(l)for(const{ref:Q,refStatus:Y,resolvedConfig:oe,resolvedRefPath:he}of l){if(V=V||!!Q.prepend,Y.newestInputFileTime&&Y.newestInputFileTime<=b)continue;if(X&&Mqe(e,X,he))return{type:7,outOfDateOutputFileName:v,newerProjectName:Q.path};const Ie=Lqe(e,oe.options,he);if(Ie&&Ie<=b){ee=!0,se=Q.path;continue}return N.assert(f!==void 0,"Should have an oldest output filename here"),{type:7,outOfDateOutputFileName:f,newerProjectName:Q.path}}const G=Sue(e,t.options.configFilePath,b,f);if(G)return G;const re=Ve(t.options.configFile.extendedSourceFiles||et,Q=>Sue(e,Q,b,f));if(re)return re;const _e=e.lastCachedPackageJsonLookups.get(r),ye=_e&&vh(_e,Q=>Sue(e,Q,b,f));return ye||(V&&ee?{type:3,outOfDateOutputFileName:f,newerProjectName:se}:{type:ee?2:W?15:1,newestInputFileTime:C,newestInputFileName:M,oldestOutputFileName:f})}function Mqe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function Tue(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};const i=e.projectStatus.get(r);if(i!==void 0)return i;sl("SolutionBuilder::beforeUpToDateCheck");const o=Pqe(e,t,r);return sl("SolutionBuilder::afterUpToDateCheck"),ef("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function SRe(e,t,r,i,o){if(t.options.noEmit)return;let s;const l=$v(t.options);if(l){o!=null&&o.has(Lf(e,l))||(e.options.verbose&&Dd(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=pO(e.host)),Eue(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}const{host:u}=e,p=IW(t,!u.useCaseSensitiveFileNames()),v=yue(e,r),f=v?new Set:void 0;if(!o||p.length!==o.size){let b=!!e.options.verbose;for(const A of p){const I=Lf(e,A);o!=null&&o.has(I)||(b&&(b=!1,Dd(e,i,t.options.configFilePath)),u.setModifiedTime(A,s||(s=pO(e.host))),v&&(v.set(I,s),f.add(I)))}}v==null||v.forEach((b,A)=>{!(o!=null&&o.has(A))&&!f.has(A)&&v.delete(A)})}function Lqe(e,t,r){if(!t.composite)return;const i=N.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const o=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(To(i.buildInfo.program.latestChangedDtsFile,ii(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function TRe(e,t,r){if(e.options.dry)return Dd(e,m.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);SRe(e,t,r,m.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:kJ(t,!e.host.useCaseSensitiveFileNames())})}function kqe(e,t,r,i,o,s,l){if(!(l&124)&&!!o.options.composite)for(let u=i+1;u<s.length;u++){const p=s[u],v=G_(e,p);if(e.projectPendingBuild.has(v))continue;const f=kI(e,p,v);if(!(!f||!f.projectReferences))for(const b of f.projectReferences){const A=dP(e,b.path);if(G_(e,A)!==r)continue;const I=e.projectStatus.get(v);if(I)switch(I.type){case 1:if(l&2){b.prepend?e.projectStatus.set(v,{type:3,outOfDateOutputFileName:I.oldestOutputFileName,newerProjectName:t}):I.type=2;break}case 15:case 2:case 3:l&2||e.projectStatus.set(v,{type:7,outOfDateOutputFileName:I.type===3?I.outOfDateOutputFileName:I.oldestOutputFileName,newerProjectName:t});break;case 12:G_(e,dP(e,I.upstreamProjectName))===r&&pRe(e,v);break}fRe(e,v,0);break}}}function ARe(e,t,r,i,o,s){sl("SolutionBuilder::beforeBuild");const l=wqe(e,t,r,i,o,s);return sl("SolutionBuilder::afterBuild"),ef("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),l}function wqe(e,t,r,i,o,s){const l=uRe(e,t,s);if(!l)return 3;mRe(e,r);let u=!0,p=0;for(;;){const v=hue(e,l,u);if(!v)break;u=!1,v.done(r,i,o==null?void 0:o(v.project)),e.diagnostics.has(v.projectPath)||p++}return _ue(e),MRe(e,l),zqe(e,l),LI(l)?4:l.some(v=>e.diagnostics.has(G_(e,v)))?p?2:1:0}function IRe(e,t,r){sl("SolutionBuilder::beforeClean");const i=Oqe(e,t,r);return sl("SolutionBuilder::afterClean"),ef("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function Oqe(e,t,r){const i=uRe(e,t,r);if(!i)return 3;if(LI(i))return nF(e,i.circularDiagnostics),4;const{options:o,host:s}=e,l=o.dry?[]:void 0;for(const u of i){const p=G_(e,u),v=kI(e,u,p);if(v===void 0){PRe(e,p);continue}const f=IW(v,!s.useCaseSensitiveFileNames());if(!f.length)continue;const b=new Set(v.fileNames.map(A=>Lf(e,A)));for(const A of f)b.has(Lf(e,A))||s.fileExists(A)&&(l?l.push(A):(s.deleteFile(A),Aue(e,p,0)))}return l&&Dd(e,m.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(u=>`\r
* ${u}`).join("")),0}function Aue(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,pRe(e,t),fRe(e,t,r),dRe(e)}function tF(e,t,r){e.reportFileChangeDetected=!0,Aue(e,t,r),xRe(e,250,!0)}function xRe(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(Wqe,t,"timerToBuildInvalidatedProject",e,r))}function Wqe(e,t,r){sl("SolutionBuilder::beforeBuild");const i=Fqe(t,r);sl("SolutionBuilder::afterBuild"),ef("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&MRe(t,i)}function Fqe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),Rue(e,m.File_change_detected_Starting_incremental_compilation));let r=0;const i=eF(e),o=hue(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const s=gRe(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){xRe(e,100,!1);return}vRe(e,s,i).done(),s.kind!==2&&r++}return _ue(e),i}function RRe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,LK(e,t,()=>tF(e,r,2),2e3,i==null?void 0:i.watchOptions,zc.ConfigFile,t))}function DRe(e,t,r){CW(t,r==null?void 0:r.options,e.allWatchedExtendedConfigFiles,(i,o)=>LK(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>tF(e,l,2))},2e3,r==null?void 0:r.watchOptions,zc.ExtendedConfigFile),i=>Lf(e,i))}function NRe(e,t,r,i){!e.watch||nO(fue(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var u;rO({watchedDirPath:Lf(e,o),fileOrDirectory:l,fileOrDirectoryPath:Lf(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((u=xqe(e,r))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:p=>e.writeLog(p),toPath:p=>Lf(e,p)})||tF(e,r,1)},s,i==null?void 0:i.watchOptions,zc.WildcardDirectory,t))}function Iue(e,t,r,i){!e.watch||oC(fue(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>LK(e,o,()=>tF(e,r,0),250,i==null?void 0:i.watchOptions,zc.SourceFile,t),onDeleteValue:Zm})}function xue(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||oC(fue(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>LK(e,o,()=>tF(e,r,0),2e3,i==null?void 0:i.watchOptions,zc.PackageJson,t),onDeleteValue:Zm})}function zqe(e,t){if(!!e.watchAllProjectsPending){sl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of ZW(t)){const i=G_(e,r),o=kI(e,r,i);RRe(e,r,i,o),DRe(e,i,o),o&&(NRe(e,r,i,o),Iue(e,r,i,o),xue(e,r,i,o))}sl("SolutionBuilder::afterWatcherCreation"),ef("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function Bqe(e){np(e.allWatchedConfigFiles,Zm),np(e.allWatchedExtendedConfigFiles,Mf),np(e.allWatchedWildcardDirectories,t=>np(t,Mf)),np(e.allWatchedInputFiles,t=>np(t,Zm)),np(e.allWatchedPackageJsonFiles,t=>np(t,Zm))}function CRe(e,t,r,i,o){const s=Iqe(e,t,r,i,o);return{build:(l,u,p,v)=>ARe(s,l,u,p,v),clean:l=>IRe(s,l),buildReferences:(l,u,p,v)=>ARe(s,l,u,p,v,!0),cleanReferences:l=>IRe(s,l,!0),getNextInvalidatedProject:l=>(mRe(s,l),hue(s,eF(s),!1)),getBuildOrder:()=>eF(s),getUpToDateStatusOfProject:l=>{const u=dP(s,l),p=G_(s,u);return Tue(s,kI(s,u,p),p)},invalidateProject:(l,u)=>Aue(s,l,u||0),close:()=>Bqe(s)}}function fu(e,t){return _N(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Dd(e,t,...r){e.host.reportSolutionBuilderStatus($l(t,...r))}function Rue(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,$l(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function nF({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function pP(e,t,r){nF(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function PRe(e,t){pP(e,t,[e.configFileCache.get(t)])}function MRe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let o=0,s=[];LI(t)?(LRe(e,t.buildOrder),nF(e,t.circularDiagnostics),r&&(o+=qW(t.circularDiagnostics)),r&&(s=[...s,...JW(t.circularDiagnostics)])):(t.forEach(l=>{const u=G_(e,l);e.projectErrorsReported.has(u)||nF(e,i.get(u)||et)}),r&&i.forEach(l=>o+=qW(l)),r&&i.forEach(l=>[...s,...JW(l)])),e.watch?Rue(e,vK(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function LRe(e,t){e.options.verbose&&Dd(e,m.Projects_in_this_build_Colon_0,t.map(r=>`\r
* `+fu(e,r)).join(""))}function Gqe(e,t,r){switch(r.type){case 6:return Dd(e,m.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,fu(e,t),fu(e,r.outOfDateOutputFileName),fu(e,r.newerInputFileName));case 7:return Dd(e,m.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,fu(e,t),fu(e,r.outOfDateOutputFileName),fu(e,r.newerProjectName));case 4:return Dd(e,m.Project_0_is_out_of_date_because_output_file_1_does_not_exist,fu(e,t),fu(e,r.missingOutputFileName));case 5:return Dd(e,m.Project_0_is_out_of_date_because_there_was_error_reading_file_1,fu(e,t),fu(e,r.fileName));case 8:return Dd(e,m.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,fu(e,t),fu(e,r.buildInfoFile));case 9:return Dd(e,m.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,fu(e,t),fu(e,r.buildInfoFile));case 10:return Dd(e,m.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,fu(e,t),fu(e,r.buildInfoFile),fu(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Dd(e,m.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,fu(e,t),fu(e,r.newestInputFileName||""),fu(e,r.oldestOutputFileName||""));break;case 3:return Dd(e,m.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,fu(e,t),fu(e,r.newerProjectName));case 2:return Dd(e,m.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,fu(e,t));case 15:return Dd(e,m.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,fu(e,t));case 11:return Dd(e,m.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,fu(e,t),fu(e,r.upstreamProjectName));case 12:return Dd(e,r.upstreamProjectBlocked?m.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:m.Project_0_can_t_be_built_because_its_dependency_1_has_errors,fu(e,t),fu(e,r.upstreamProjectName));case 0:return Dd(e,m.Failed_to_parse_file_0_Colon_1,fu(e,t),r.reason);case 14:return Dd(e,m.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,fu(e,t),r.version,Ae);case 17:return Dd(e,m.Project_0_is_being_forcibly_rebuilt,fu(e,t))}}function kK(e,t,r){e.options.verbose&&Gqe(e,t,r)}var kRe,wRe,wK,Vqe=S({"src/compiler/tsbuildPublic.ts"(){ia(),fS(),kRe=new Date(-864e13),wRe=new Date(864e13),wK=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(wK||{})}}),ia=S({"src/compiler/_namespaces/ts.ts"(){at(),Zze(),eBe(),uBe(),fBe(),mBe(),IBe(),nSe(),kBe(),zBe(),BBe(),HBe(),$Be(),XGe(),YGe(),$Ge(),QGe(),oVe(),aVe(),sVe(),lVe(),wVe(),OVe(),qVe(),uje(),Oje(),Vje(),jje(),rUe(),cUe(),gUe(),AUe(),WUe(),FUe(),JUe(),KUe(),XUe(),nHe(),rHe(),iHe(),oHe(),aHe(),sHe(),lHe(),cHe(),uHe(),fHe(),mHe(),_He(),hHe(),gHe(),yHe(),bHe(),EHe(),SHe(),THe(),AHe(),CHe(),OHe(),qHe(),KHe(),QHe(),ZHe(),eqe(),fqe(),mqe(),gqe(),bqe(),Eqe(),Sqe(),Vqe(),Cle(),fS()}});function ORe(e){return bu.args.includes(e)}function WRe(e){const t=bu.args.indexOf(e);return t>=0&&t<bu.args.length-1?bu.args[t+1]:void 0}function FRe(){const e=new Date;return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`}function fP(e){return Due+e.replace(/\n/g,Due)}function O0(e){return fP(JSON.stringify(e,void 0,2))}var fO,mO,_O,rF,iF,oF,OK,mP,WK,Due,jqe=S({"src/jsTyping/shared.ts"(){hO(),fO="action::set",mO="action::invalidate",_O="action::packageInstalled",rF="event::typesRegistry",iF="event::beginInstallTypes",oF="event::endInstallTypes",OK="event::initializationFailed",mP="action::watchTypingLocations",(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(WK||(WK={})),Due=`
`}}),Uqe=S({"src/jsTyping/types.ts"(){}}),aF=S({"src/jsTyping/_namespaces/ts.server.ts"(){jqe(),Uqe()}});function zRe(e,t){return new Tm(J8(t,`ts${ue}`)||J8(t,"latest")).compareTo(e.version)<=0}function BRe(e){return Lue.has(e)?"node":e}function Hqe(e,t){const r=Dw(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function qqe(e,t){var r;const i=Dw(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function Jqe(e,t,r,i,o,s,l,u,p,v){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const f=new Map;r=Vi(r,ee=>{const V=va(ee);if($1(V))return V});const b=[];l.include&&W(l.include,"Explicitly included types");const A=l.exclude||[];if(!v.types){const ee=new Set(r.map(ii));ee.add(i),ee.forEach(V=>{U(V,"bower.json","bower_components",b),U(V,"package.json","node_modules",b)})}if(l.disableFilenameBasedTypeAcquisition||X(r),u){const ee=N1(u.map(BRe),dS,Ju);W(ee,"Inferred typings from unresolved imports")}for(const ee of A)f.delete(ee)&&t&&t(`Typing for ${ee} is in exclude list, will be ignored.`);s.forEach((ee,V)=>{const se=p.get(V);f.get(V)===!1&&se!==void 0&&zRe(ee,se)&&f.set(V,ee.typingLocation)});const I=[],R=[];f.forEach((ee,V)=>{ee?R.push(ee):I.push(V)});const M={cachedTypingPaths:R,newTypingNames:I,filesToWatch:b};return t&&t(`Finished typings discovery:${O0(M)}`),M;function C(ee){f.has(ee)||f.set(ee,!1)}function W(ee,V){t&&t(`${V}: ${JSON.stringify(ee)}`),Ve(ee,C)}function U(ee,V,se,G){const re=$r(ee,V);let _e,ye;e.fileExists(re)&&(G.push(re),_e=Dw(re,he=>e.readFile(he)).config,ye=qi([_e.dependencies,_e.devDependencies,_e.optionalDependencies,_e.peerDependencies],Yh),W(ye,`Typing names in '${re}' dependencies`));const Q=$r(ee,se);if(G.push(Q),!e.directoryExists(Q))return;const Y=[],oe=ye?ye.map(he=>$r(Q,he,V)):e.readDirectory(Q,[".json"],void 0,void 0,3).filter(he=>{if(dc(he)!==V)return!1;const Ie=Uc(va(he)),de=Ie[Ie.length-3][0]==="@";return de&&ph(Ie[Ie.length-4])===se||!de&&ph(Ie[Ie.length-3])===se});t&&t(`Searching for typing names in ${Q}; all files: ${JSON.stringify(oe)}`);for(const he of oe){const Ie=va(he),ie=Dw(Ie,Ce=>e.readFile(Ce)).config;if(!ie.name)continue;const ge=ie.types||ie.typings;if(ge){const Ce=To(ge,ii(Ie));e.fileExists(Ce)?(t&&t(` Package '${ie.name}' provides its own types.`),f.set(ie.name,Ce)):t&&t(` Package '${ie.name}' provides its own types but they are missing.`)}else Y.push(ie.name)}W(Y," Found package names")}function X(ee){const V=Vi(ee,G=>{if(!$1(G))return;const re=Id(ph(dc(G))),_e=CG(re);return o.get(_e)});V.length&&W(V,"Inferred typings from file names"),St(ee,G=>Nl(G,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),C("react"))}}function Kqe(e){return Nue(e,!0)}function Nue(e,t){if(!e)return 1;if(e.length>wue)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=Nue(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const o=Nue(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function Xqe(e,t){return typeof e=="object"?GRe(t,e.result,e.name,e.isScopeName):GRe(t,e,t,!1)}function GRe(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 ${wue} characters`;case 3:return`'${e}':: ${o} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${o} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${o} name '${r}' contains non URI safe characters`;case 0:return N.fail();default:N.assertNever(t)}}var Cue,Pue,Mue,Lue,kue,wue,Yqe=S({"src/jsTyping/jsTyping.ts"(){hO(),aF(),Cue=["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"],Pue=Cue.map(e=>`node:${e}`),Mue=[...Cue,...Pue],Lue=new Set(Mue),kue=(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))(kue||{}),wue=214}}),V_={};H(V_,{NameValidationResult:()=>kue,discoverTypings:()=>Jqe,isTypingUpToDate:()=>zRe,loadSafeList:()=>Hqe,loadTypesMap:()=>qqe,nodeCoreModuleList:()=>Mue,nodeCoreModules:()=>Lue,nonRelativeModuleNameForTypingCache:()=>BRe,prefixedNodeCoreModuleList:()=>Pue,renderPackageNameValidationFailure:()=>Xqe,validatePackageName:()=>Kqe});var $qe=S({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){Yqe()}}),hO=S({"src/jsTyping/_namespaces/ts.ts"(){ia(),$qe(),aF()}});function sF(e){return{indentSize:4,tabSize:4,newLineCharacter:e||`
`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var lF,FK,zK,BK,kf,GK,VK,jK,UK,HK,qK,JK,Oue,gO,KK,XK,YK,$K,QK,ZK,eX,tX,nX,Qqe=S({"src/services/types.ts"(){(e=>{class t{constructor(o){this.text=o}getText(o,s){return o===0&&s===this.text.length?this.text:this.text.substring(o,s)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(lF||(lF={})),FK=(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))(FK||{}),zK=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(zK||{}),BK=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(BK||{}),kf={},GK=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(GK||{}),VK=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(VK||{}),jK=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(jK||{}),UK=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(UK||{}),HK=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(HK||{}),qK=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(qK||{}),JK=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(JK||{}),Oue=sF(`
`),gO=(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))(gO||{}),KK=(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))(KK||{}),XK=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(XK||{}),YK=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(YK||{}),$K=(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))($K||{}),QK=(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))(QK||{}),ZK=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(ZK||{}),eX=(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))(eX||{}),tX=(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))(tX||{}),nX=(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))(nX||{})}});function vO(e){switch(e.kind){case 260:return dr(e)&&aj(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return Ou(e)||Xg(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function oT(e){e=_X(e);const t=e.parent;return e.kind===312?1:zl(t)||$u(t)||Rh(t)||rp(t)||Ih(t)||au(t)&&e===t.name?7:cF(e)?Zqe(e):Gg(e)?vO(t):ep(e)&&jn(e,$m(WC,zA,R0))?7:rJe(e)?2:eJe(e)?4:El(t)?(N.assert(fm(t.parent)),2):$y(t)?3:1}function Zqe(e){const t=e.kind===166?e:xd(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function cF(e){for(;e.parent.kind===166;)e=e.parent;return E2(e.parent)&&e.parent.moduleReference===e}function eJe(e){return tJe(e)||nJe(e)}function tJe(e){let t=e,r=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;r=t.right===e}return t.parent.kind===183&&!r}function nJe(e){let t=e,r=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===233&&t.parent.parent.kind===298){const i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function rJe(e){switch(eC(e)&&(e=e.parent),e.kind){case 110:return!rg(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return ng(e.parent)}return!1}function rX(e,t=!1,r=!1){return yO(e,ca,oX,t,r)}function _P(e,t=!1,r=!1){return yO(e,iE,oX,t,r)}function iX(e,t=!1,r=!1){return yO(e,I_,oX,t,r)}function Wue(e,t=!1,r=!1){return yO(e,oE,iJe,t,r)}function Fue(e,t=!1,r=!1){return yO(e,Au,oX,t,r)}function zue(e,t=!1,r=!1){return yO(e,dd,oJe,t,r)}function oX(e){return e.expression}function iJe(e){return e.tag}function oJe(e){return e.tagName}function yO(e,t,r,i,o){let s=i?Bue(e):uF(e);return o&&(s=ic(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function uF(e){return NR(e)?e.parent:e}function Bue(e){return NR(e)||cX(e)?e.parent:e}function dF(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function bO(e,t){return Br(e.expression)?e.expression.name.text===t:!1}function EO(e){var t;return Ue(e)&&((t=ni(e.parent,AN))==null?void 0:t.label)===e}function aX(e){var t;return Ue(e)&&((t=ni(e.parent,aE))==null?void 0:t.label)===e}function sX(e){return aX(e)||EO(e)}function lX(e){var t;return((t=ni(e.parent,c2))==null?void 0:t.tagName)===e}function Gue(e){var t;return((t=ni(e.parent,xd))==null?void 0:t.right)===e}function NR(e){var t;return((t=ni(e.parent,Br))==null?void 0:t.name)===e}function cX(e){var t;return((t=ni(e.parent,el))==null?void 0:t.argumentExpression)===e}function uX(e){var t;return((t=ni(e.parent,nc))==null?void 0:t.name)===e}function dX(e){var t;return Ue(e)&&((t=ni(e.parent,ta))==null?void 0:t.name)===e}function pF(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Oo(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function Vue(e){return h0(e.parent.parent)&&FN(e.parent.parent)===e}function aT(e){for(om(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function bE(e){switch(e.kind){case 312:return mc(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(C_(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:r}=e;return ta(r)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Qr(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const i=ql(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const l=bE(o);return l===""?"const":l;case 3:return Us(o)?"method":"property";case 4:return"property";case 5:return Us(o)?"method":"property";case 6:return"local class";default:return""}case 80:return Ih(e.parent)?"alias":"";case 277:const s=bE(e.expression);return s===""?"const":s;default:return""}function t(r){return _2(r)?"const":l3(r)?"let":"var"}}function CR(e){switch(e.kind){case 110:return!0;case 80:return xU(e)&&e.parent.kind===169;default:return!1}}function mm(e,t){const r=wg(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function cf(e,t){return pX(e.pos,e.end,t)}function jue(e,t){return TO(e,t.pos)&&TO(e,t.end)}function SO(e,t){return e.pos<=t&&t<=e.end}function TO(e,t){return e.pos<t&&t<e.end}function pX(e,t,r){return e<=r.pos&&t>=r.end}function AO(e,t,r){return e.pos<=t&&e.end>=r}function hP(e,t,r){return mF(e.pos,e.end,t,r)}function fF(e,t,r,i){return mF(e.getStart(t),e.end,r,i)}function mF(e,t,r,i){const o=Math.max(e,r),s=Math.min(t,i);return o<s}function fX(e,t,r){return N.assert(e.pos<=t),t<e.end||!o_(e,r)}function o_(e,t){if(e===void 0||Hl(e))return!1;switch(e.kind){case 263:case 264:case 266:case 210:case 206:case 187:case 241:case 268:case 269:case 275:case 279:return mX(e,20,t);case 299:return o_(e.block,t);case 214:if(!e.arguments)return!0;case 213:case 217:case 196:return mX(e,22,t);case 184:case 185:return o_(e.type,t);case 176:case 177:case 178:case 262:case 218:case 174:case 173:case 180:case 179:case 219:return e.body?o_(e.body,t):e.type?o_(e.type,t):IO(e,22,t);case 267:return!!e.body&&o_(e.body,t);case 245:return e.elseStatement?o_(e.elseStatement,t):o_(e.thenStatement,t);case 244:return o_(e.expression,t)||IO(e,27,t);case 209:case 207:case 212:case 167:case 189:return mX(e,24,t);case 181:return e.type?o_(e.type,t):IO(e,24,t);case 296:case 297:return!1;case 248:case 249:case 250:case 247:return o_(e.statement,t);case 246:return IO(e,117,t)?mX(e,22,t):o_(e.statement,t);case 186:return o_(e.exprName,t);case 221:case 220:case 222:case 229:case 230:return o_(e.expression,t);case 215:return o_(e.template,t);case 228:const i=il(e.templateSpans);return o_(i,t);case 239:return nm(e.literal);case 278:case 272:return nm(e.moduleSpecifier);case 224:return o_(e.operand,t);case 226:return o_(e.right,t);case 227:return o_(e.whenFalse,t);default:return!0}}function mX(e,t,r){const i=e.getChildren(r);if(i.length){const o=rs(i);if(o.kind===t)return!0;if(o.kind===27&&i.length!==1)return i[i.length-2].kind===t}return!1}function Uue(e){const t=_F(e);if(!t)return;const r=t.getChildren();return{listItemIndex:p2(r,e),list:t}}function IO(e,t,r){return!!Is(e,t,r)}function Is(e,t,r){return un(e.getChildren(r),i=>i.kind===t)}function _F(e){const t=un(e.parent.getChildren(),r=>oR(r)&&cf(r,e));return N.assert(!t||Mn(t.getChildren(),e)),t}function VRe(e){return e.kind===90}function aJe(e){return e.kind===86}function sJe(e){return e.kind===100}function lJe(e){if(cd(e))return e.name;if(Nc(e)){const t=e.modifiers&&un(e.modifiers,VRe);if(t)return t}if(iu(e)){const t=un(e.getChildren(),aJe);if(t)return t}}function cJe(e){if(cd(e))return e.name;if(Dc(e)){const t=un(e.modifiers,VRe);if(t)return t}if(Us(e)){const t=un(e.getChildren(),sJe);if(t)return t}}function uJe(e){let t;return jn(e,r=>(Xi(r)&&(t=r),!xd(r.parent)&&!Xi(r.parent)&&!yS(r.parent))),t}function hF(e,t){if(e.flags&16777216)return;const r=wF(e,t);if(r)return r;const i=uJe(e);return i&&t.getTypeAtLocation(i)}function dJe(e,t){if(!t)switch(e.kind){case 263:case 231:return lJe(e);case 262:case 218:return cJe(e);case 176:return e}if(cd(e))return e.name}function jRe(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(qg(e.importClause.namedBindings)){const r=uh(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(eb(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function URe(e,t){if(e.exportClause){if(Pf(e.exportClause))return uh(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(xh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function pJe(e){if(e.types.length===1)return e.types[0].expression}function HRe(e,t){const{parent:r}=e;if(Ra(e)&&(t||e.kind!==90)?km(r)&&Mn(r.modifiers,e):e.kind===86?Nc(r)||iu(e):e.kind===100?Dc(r)||Us(e):e.kind===120?gd(r):e.kind===94?x0(r):e.kind===156?Lm(r):e.kind===145||e.kind===144?nc(r):e.kind===102?au(r):e.kind===139?rf(r):e.kind===153&&Tp(r)){const i=dJe(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&Xc(r)&&r.declarations.length===1){const i=r.declarations[0];if(Ue(i.name))return i.name}if(e.kind===156){if(Ih(r)&&r.isTypeOnly){const i=jRe(r.parent,t);if(i)return i}if(rc(r)&&r.isTypeOnly){const i=URe(r,t);if(i)return i}}if(e.kind===130){if(rp(r)&&r.propertyName||$u(r)&&r.propertyName||eb(r)||xh(r))return r.name;if(rc(r)&&r.exportClause&&xh(r.exportClause))return r.exportClause.name}if(e.kind===102&&Fc(r)){const i=jRe(r,t);if(i)return i}if(e.kind===95){if(rc(r)){const i=URe(r,t);if(i)return i}if(zl(r))return ic(r.expression)}if(e.kind===149&&Rh(r))return r.expression;if(e.kind===161&&(Fc(r)||rc(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&of(r)&&r.token===e.kind){const i=pJe(r);if(i)return i}if(e.kind===96){if(El(r)&&r.constraint&&Cf(r.constraint))return r.constraint.typeName;if(hI(r)&&Cf(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&BS(r))return r.typeParameter.name;if(e.kind===103&&El(r)&&Q2(r.parent))return r.name;if(e.kind===143&&VS(r)&&r.operator===143&&Cf(r.type))return r.type.typeName;if(e.kind===148&&VS(r)&&r.operator===148&&cw(r.type)&&Cf(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&iE(r)||e.kind===116&&gI(r)||e.kind===114&&Z2(r)||e.kind===135&&Qy(r)||e.kind===127&&g5(r)||e.kind===91&&rse(r))&&r.expression)return ic(r.expression);if((e.kind===103||e.kind===104)&&vr(r)&&r.operatorToken===e)return ic(r.right);if(e.kind===130&&dw(r)&&Cf(r.type))return r.type.typeName;if(e.kind===103&&y5(r)||e.kind===165&&pw(r))return ic(r.expression)}return e}function _X(e){return HRe(e,!1)}function gF(e){return HRe(e,!0)}function jd(e,t){return PR(e,t,r=>N_(r)||Gd(r.kind)||Qi(r))}function PR(e,t,r){return qRe(e,t,!1,r,!1)}function go(e,t){return qRe(e,t,!0,void 0,!1)}function qRe(e,t,r,i,o){let s=e,l;e:for(;;){const p=s.getChildren(e),v=IA(p,t,(f,b)=>b,(f,b)=>{const A=p[f].getEnd();if(A<t)return-1;const I=r?p[f].getFullStart():p[f].getStart(e,!0);return I>t?1:u(p[f],I,A)?p[f-1]&&u(p[f-1])?1:0:i&&I===t&&p[f-1]&&p[f-1].getEnd()===t&&u(p[f-1])?1:-1});if(l)return l;if(v>=0&&p[v]){s=p[v];continue e}return s}function u(p,v,f){if(f!=null||(f=p.getEnd()),f<t||(v!=null||(v=r?p.getFullStart():p.getStart(e,!0)),v>t))return!1;if(t<f||t===f&&(p.kind===1||o))return!0;if(i&&f===t){const b=Cc(t,e,p);if(b&&i(b))return l=b,!0}return!1}}function Hue(e,t){let r=go(e,t);for(;yF(r);){const i=EE(r,r.parent,e);if(!i)return;r=i}return r}function vF(e,t){const r=go(e,t);return kA(r)&&t>r.getStart(e)&&t<r.getEnd()?r:Cc(t,e)}function EE(e,t,r){return i(t);function i(o){return kA(o)&&o.pos===e.end?o:$t(o.getChildren(r),s=>(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&Que(s,r)?i(s):void 0)}}function Cc(e,t,r,i){const o=s(r||t);return N.assert(!(o&&yF(o))),o;function s(l){if(JRe(l)&&l.kind!==1)return l;const u=l.getChildren(t),p=IA(u,e,(f,b)=>b,(f,b)=>e<u[f].end?!u[f-1]||e>=u[f-1].end?0:1:-1);if(p>=0&&u[p]){const f=u[p];if(e<f.end)if(f.getStart(t,!i)>=e||!Que(f,t)||yF(f)){const I=Jue(u,p,t,l.kind);return I?!i&&J6(I)&&I.getChildren(t).length?s(I):que(I,t):void 0}else return s(f)}N.assert(r!==void 0||l.kind===312||l.kind===1||J6(l));const v=Jue(u,u.length,t,l.kind);return v&&que(v,t)}}function JRe(e){return kA(e)&&!yF(e)}function que(e,t){if(JRe(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=Jue(r,r.length,t,e.kind);return i&&que(i,t)}function Jue(e,t,r,i){for(let o=t-1;o>=0;o--){const s=e[o];if(yF(s))o===0&&(i===12||i===285)&&N.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Que(e[o],r))return e[o]}}function wI(e,t,r=Cc(t,e)){if(r&&mj(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 Kue(e,t){const r=go(e,t);return r?!!(r.kind===12||r.kind===30&&r.parent.kind===12||r.kind===30&&r.parent.kind===294||r&&r.kind===20&&r.parent.kind===294||r.kind===30&&r.parent.kind===287):!1}function yF(e){return sI(e)&&e.containsOnlyTriviaWhiteSpaces}function hX(e,t){const r=go(e,t);return Ly(r.kind)&&t>r.getStart(e)}function Xue(e,t){const r=go(e,t);return!!(sI(r)||r.kind===19&&wC(r.parent)&&pg(r.parent.parent)||r.kind===30&&dd(r.parent)&&pg(r.parent.parent))}function bF(e,t){function r(i){for(;i;)if(i.kind>=285&&i.kind<=294||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(go(e,t))}function EF(e,t,r){const i=ma(e.kind),o=ma(t),s=e.getFullStart(),l=r.text.lastIndexOf(o,s);if(l===-1)return;if(r.text.lastIndexOf(i,s-1)<l){const v=Cc(l+1,r);if(v&&v.kind===t)return v}const u=e.kind;let p=0;for(;;){const v=Cc(e.getFullStart(),r);if(!v)return;if(e=v,e.kind===t){if(p===0)return e;p--}else e.kind===u&&p++}}function Yue(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function xO(e,t,r){const i=vX(e,t);return i!==void 0&&(ng(i.called)||gX(i.called,i.nTypeArguments,r).length!==0||xO(i.called,t,r))}function gX(e,t,r){let i=r.getTypeAtLocation(e);return Xu(e.parent)&&(i=Yue(i,SN(e.parent),!0)),(iE(e.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(s=>!!s.typeParameters&&s.typeParameters.length>=t)}function vX(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,o=0;for(;r;){switch(r.kind){case 30:if(r=Cc(r.getFullStart(),t),r&&r.kind===29&&(r=Cc(r.getFullStart(),t)),!r||!Ue(r))return;if(!i)return Gg(r)?void 0:{called:r,nTypeArguments:o};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(r=EF(r,19,t),!r)return;break;case 22:if(r=EF(r,21,t),!r)return;break;case 24:if(r=EF(r,23,t),!r)return;break;case 28:o++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Xi(r))break;return}r=Cc(r.getFullStart(),t)}}function Qv(e,t,r){return Bc.getRangeOfEnclosingComment(e,t,void 0,r)}function $ue(e,t){const r=go(e,t);return!!jn(r,r_)}function Que(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function gP(e,t=0){const r=[],i=Yu(e)?nj(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||Pl(e))&&r.push("static"),i&64&&r.push("abstract"),i&32&&r.push("export"),i&65536&&r.push("deprecated"),e.flags&33554432&&r.push("declare"),e.kind===277&&r.push("export"),r.length>0?r.join(","):""}function Zue(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(ta(e)||e.kind===263||e.kind===264)return e.typeParameters}function SF(e){return e===2||e===3}function yX(e){return!!(e===11||e===14||Ly(e))}function KRe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function ede(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&(KRe(r,t[0],t[1])||KRe(r,t[1],t[0]))}function RO(e,t,r){return Ly(e.kind)&&e.getStart(r)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function bX(e){switch(e){case 125:case 123:case 124:return!0}return!1}function EX(e){const t=xG(e);return Dq(t,e&&e.configFile),t}function Zv(e){return!!((e.kind===209||e.kind===210)&&(e.parent.kind===226&&e.parent.left===e&&e.parent.operatorToken.kind===64||e.parent.kind===250&&e.parent.initializer===e||Zv(e.parent.kind===303?e.parent.parent:e.parent)))}function tde(e,t){return XRe(e,t,!0)}function nde(e,t){return XRe(e,t,!1)}function XRe(e,t,r){const i=Qv(e,t,void 0);return!!i&&r===rDe.test(e.text.substring(i.pos,i.end))}function SX(e){if(!!e)switch(e.kind){case 11:case 15:return TX(e);default:return Nd(e)}}function Nd(e,t,r){return yc(e.getStart(t),(r||e).getEnd())}function TX(e){if(!e.isUnterminated)return yc(e.getStart()+1,e.getEnd()-1)}function AX(e,t){return xf(e.getStart(t),e.end)}function ob(e){return yc(e.pos,e.end)}function TF(e){return xf(e.start,e.start+e.length)}function AF(e,t,r){return DO(Eu(e,t),r)}function DO(e,t){return{span:e,newText:t}}function vP(e){return Mn(XF,e)}function IX(e){return e.kind===156}function IF(e){return IX(e)||Ue(e)&&e.text==="type"}function NO(e){return!!(e.flags&1536)&&e.name.charCodeAt(0)===34}function OI(){const e=[];return t=>{const r=fs(t);return!e[r]&&(e[r]=!0)}}function MR(e){return e.getText(0,e.getLength())}function CO(e,t){let r="";for(let i=0;i<t;i++)r+=e;return r}function xX(e){return e.isTypeParameter()&&e.getConstraint()||e}function PO(e){return e.kind===167?nf(e.expression)?e.expression.text:void 0:Qi(e)?Rr(e):am(e)}function rde(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function ide(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function RX(e){return!!e.module||ps(e)>=2||!!e.noEmit}function sT(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:aa(t,t.readFile),useCaseSensitiveFileNames:aa(t,t.useCaseSensitiveFileNames),getSymlinkCache:aa(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:aa(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:aa(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:aa(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function DX(e,t){return{...sT(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function xF(e){return e===2||e>=3&&e<=99||e===100}function ode(e,t,r,i){return e||t&&t.length?ey(e,t,r,i):void 0}function ey(e,t,r,i,o){return O.createImportDeclaration(void 0,e||t?O.createImportClause(!!o,e,t&&t.length?O.createNamedImports(t):void 0):void 0,typeof r=="string"?WI(r,i):r,void 0)}function WI(e,t){return O.createStringLiteral(e,t===0)}function NX(e,t){return I3(e,t)?1:0}function uf(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=e.imports&&un(e.imports,i=>La(i)&&!Zs(i.parent));return r?NX(r,e):1}}function CX(e){switch(e){case 0:return"'";case 1:return'"';default:return N.assertNever(e)}}function RF(e){const t=DF(e);return t===void 0?void 0:Ki(t)}function DF(e){return e.escapedName!=="default"?e.escapedName:$t(e.declarations,t=>{const r=Oo(t);return r&&r.kind===80?r.escapedText:void 0})}function NF(e){return hs(e)&&(Rh(e.parent)||Fc(e.parent)||Ad(e.parent,!1)&&e.parent.arguments[0]===e||Gp(e.parent)&&e.parent.arguments[0]===e)}function MO(e){return os(e)&&pm(e.parent)&&Ue(e.name)&&!e.propertyName}function CF(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function LO(e,t,r){if(!!e)for(;e.parent;){if(io(e.parent)||!fJe(r,e.parent,t))return e;e=e.parent}}function fJe(e,t,r){return tj(e,t.getStart(r))&&t.getEnd()<=tc(e)}function LR(e,t){return km(e)?un(e.modifiers,r=>r.kind===t):void 0}function yP(e,t,r,i,o){const l=(Do(r)?r[0]:r).kind===243?Qj:TS,u=Vn(t.statements,l);let p=Do(r)?Wm.detectImportDeclarationSorting(r,o):3;const v=Wm.getOrganizeImportsComparer(o,p===2),f=Do(r)?Dv(r,(b,A)=>Wm.compareImportsOrRequireStatements(b,A,v)):[r];if(!u.length)e.insertNodesAtTopOfFile(t,f,i);else if(u&&(p=Wm.detectImportDeclarationSorting(u,o))){const b=Wm.getOrganizeImportsComparer(o,p===2);for(const A of f){const I=Wm.getImportDeclarationInsertionIndex(u,A,b);if(I===0){const R=u[0]===t.statements[0]?{leadingTriviaOption:yr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],A,!1,R)}else{const R=u[I-1];e.insertNodeAfter(t,R,A)}}}else{const b=il(u);b?e.insertNodesAfter(t,b,f):e.insertNodesAtTopOfFile(t,f,i)}}function PX(e,t){return N.assert(e.isTypeOnly),sa(e.getChildAt(0,t),IX)}function kR(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function MX(e,t,r){return(r?dS:i0)(e.fileName,t.fileName)&&kR(e.textSpan,t.textSpan)}function LX(e){return(t,r)=>MX(t,r,e)}function kX(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 ade(e,t,r){for(let i=t;i<r;i++)if(!Og(e.charCodeAt(i)))return!1;return!0}function bP(e,t,r){const i=t.tryGetSourcePosition(e);return i&&(!r||r(va(i.fileName))?i:void 0)}function PF(e,t,r){const{fileName:i,textSpan:o}=e,s=bP({fileName:i,pos:o.start},t,r);if(!s)return;const l=bP({fileName:i,pos:o.start+o.length},t,r),u=l?l.pos-s.pos:o.length;return{fileName:s.fileName,textSpan:{start:s.pos,length:u},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:wX(e,t,r),originalContextSpan:e.contextSpan}}function wX(e,t,r){const i=e.contextSpan&&bP({fileName:e.fileName,pos:e.contextSpan.start},t,r),o=e.contextSpan&&bP({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 OX(e){const t=e.declarations?eu(e.declarations):void 0;return!!jn(t,r=>No(r)?!0:os(r)||pm(r)||rE(r)?!1:"quit")}function mJe(){const e=jk*10;let t,r,i,o;f();const s=b=>u(b,17);return{displayParts:()=>{const b=t.length&&t[t.length-1].text;return o>e&&b&&b!=="..."&&(Og(b.charCodeAt(b.length-1))||t.push(op(" ",16)),t.push(op("...",15))),t},writeKeyword:b=>u(b,5),writeOperator:b=>u(b,12),writePunctuation:b=>u(b,15),writeTrailingSemicolon:b=>u(b,15),writeSpace:b=>u(b,16),writeStringLiteral:b=>u(b,8),writeParameter:b=>u(b,13),writeProperty:b=>u(b,14),writeLiteral:b=>u(b,8),writeSymbol:p,writeLine:v,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Ko,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:f};function l(){if(!(o>e)&&r){const b=w3(i);b&&(o+=b.length,t.push(op(b,16))),r=!1}}function u(b,A){o>e||(l(),o+=b.length,t.push(op(b,A)))}function p(b,A){o>e||(l(),o+=b.length,t.push(sde(b,A)))}function v(){o>e||(o+=1,t.push(wR()),r=!0)}function f(){t=[],r=!0,i=0,o=0}}function sde(e,t){return op(e,r(t));function r(i){const o=i.flags;return o&3?OX(i)?13:9:o&4||o&32768||o&65536?14:o&8?19:o&16?20:o&32?1:o&64?4:o&384?2:o&1536?11:o&8192?10:o&262144?18:o&524288||o&2097152?0:17}}function op(e,t){return{text:e,kind:gO[t]}}function Bl(){return op(" ",16)}function xp(e){return op(ma(e),5)}function ed(e){return op(ma(e),15)}function EP(e){return op(ma(e),12)}function lde(e){return op(e,13)}function cde(e){return op(e,14)}function WX(e){const t=M1(e);return t===void 0?df(e):xp(t)}function df(e){return op(e,17)}function ude(e){return op(e,0)}function dde(e){return op(e,18)}function MF(e){return op(e,24)}function pde(e,t){return{text:e,kind:gO[23],target:{fileName:Jn(t).fileName,textSpan:Nd(t)}}}function FX(e){return op(e,22)}function fde(e,t){var r;const i=use(e)?"link":dse(e)?"linkcode":"linkplain",o=[FX(`{@${i} `)];if(!e.name)e.text&&o.push(MF(e.text));else{const s=t==null?void 0:t.getSymbolAtLocation(e.name),l=s&&t?GX(s,t):void 0,u=hJe(e.text),p=bc(e.name)+e.text.slice(0,u),v=_Je(e.text.slice(u)),f=(l==null?void 0:l.valueDeclaration)||((r=l==null?void 0:l.declarations)==null?void 0:r[0]);if(f)o.push(pde(p,f)),v&&o.push(MF(v));else{const b=u===0||e.text.charCodeAt(u)===124&&p.charCodeAt(p.length-1)!==32?" ":"";o.push(MF(p+b+v))}}return o.push(FX("}")),o}function _Je(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 hJe(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 ty(e,t){var r;return(t==null?void 0:t.newLineCharacter)||((r=e.getNewLine)==null?void 0:r.call(e))||iDe}function wR(){return op(`
`,6)}function ab(e){try{return e(iY),iY.displayParts()}finally{iY.clear()}}function kO(e,t,r,i=0){return ab(o=>{e.writeType(t,r,i|1024|16384,o)})}function SP(e,t,r,i,o=0){return ab(s=>{e.writeSymbol(t,r,i,o|8,s)})}function zX(e,t,r,i=0){return i|=25632,ab(o=>{e.writeSignature(t,r,i,void 0,o)})}function YRe(e,t){const r=t.getSourceFile();return ab(i=>{tO().writeNode(4,e,r,i)})}function mde(e){return!!e.parent&&wA(e.parent)&&e.parent.propertyName===e}function BX(e,t){return d7(e,t.getScriptKind&&t.getScriptKind(e))}function GX(e,t){let r=e;for(;gJe(r)||gh(r)&&r.links.target;)gh(r)&&r.links.target?r=r.links.target:r=Tu(r,t);return r}function gJe(e){return(e.flags&2097152)!==0}function _de(e,t){return Ia(Tu(e,t))}function hde(e,t){for(;Og(e.charCodeAt(t));)t+=1;return t}function LF(e,t){for(;t>-1&&A_(e.charCodeAt(t));)t-=1;return t+1}function pl(e,t=!0){const r=e&&$Re(e);return r&&!t&&Rp(r),r}function wO(e,t,r){let i=r(e);return i?kr(i,e):i=$Re(e,r),i&&!t&&Rp(i),i}function $Re(e,t){const r=t?s=>wO(s,!0,t):pl,o=xn(e,r,void 0,t?s=>s&&VX(s,!0,t):s=>s&&SE(s),r);if(o===e){const s=La(e)?kr(O.createStringLiteralFromNode(e),e):Ep(e)?kr(O.createNumericLiteral(e.text,e.numericLiteralFlags),e):O.cloneNode(e);return ut(s,e)}return o.parent=void 0,o}function SE(e,t=!0){if(e){const r=O.createNodeArray(e.map(i=>pl(i,t)),e.hasTrailingComma);return ut(r,e),r}return e}function VX(e,t,r){return O.createNodeArray(e.map(i=>wO(i,t,r)),e.hasTrailingComma)}function Rp(e){jX(e),gde(e)}function jX(e){vde(e,1024,yJe)}function gde(e){vde(e,2048,zU)}function lT(e,t){const r=e.getSourceFile(),i=r.text;vJe(e,i)?OR(e,t,r):WO(e,t,r),TP(e,t,r)}function vJe(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 vde(e,t,r){k_(e,t);const i=r(e);i&&vde(i,t,r)}function yJe(e){return e.forEachChild(t=>t)}function cT(e,t){let r=e;for(let i=1;!t3(t,r);i++)r=`${e}_${i}`;return r}function OO(e,t,r,i){let o=0,s=-1;for(const{fileName:l,textChanges:u}of e){N.assert(l===t);for(const p of u){const{span:v,newText:f}=p,b=bJe(f,ag(r));if(b!==-1&&(s=v.start+o+b,!i))return s;o+=f.length-v.length}}return N.assert(i),N.assert(s>=0),s}function OR(e,t,r,i,o){gL(r.text,e.pos,yde(t,r,i,o,IC))}function TP(e,t,r,i,o){vL(r.text,e.end,yde(t,r,i,o,k7))}function WO(e,t,r,i,o){vL(r.text,e.pos,yde(t,r,i,o,IC))}function yde(e,t,r,i,o){return(s,l,u,p)=>{u===3?(s+=2,l-=2):s+=2,o(e,r||u,t.text.slice(s,l),i!==void 0?i:p)}}function bJe(e,t){if(ho(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 kF(e){return vr(e)&&e.operatorToken.kind===28||za(e)||(dw(e)||VH(e))&&za(e.expression)}function wF(e,t,r){const i=Bv(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{const{left:o,operatorToken:s,right:l}=i;return OF(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 296:return HX(i,t);default:return t.getContextualType(e,r)}}function AP(e,t,r){const i=uf(e,t),o=JSON.stringify(r);return i===0?`'${sm(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function OF(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function bde(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function UX(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function HX(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function IP(e,t,r,i){const o=r.getTypeChecker();let s=!0;const l=()=>s=!1,u=o.typeToTypeNode(e,t,1,{trackSymbol:(p,v,f)=>(s=s&&o.isSymbolAccessible(p,v,f,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:DX(r,i)});return s?u:void 0}function Ede(e){return e===179||e===180||e===181||e===171||e===173}function QRe(e){return e===262||e===176||e===174||e===177||e===178}function ZRe(e){return e===267}function WF(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}function EJe(e,t){const r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(Ede(e.kind)){if(r&&r.kind===28)return!1}else if(ZRe(e.kind)){const u=rs(e.getChildren(t));if(u&&O_(u))return!1}else if(QRe(e.kind)){const u=rs(e.getChildren(t));if(u&&G1(u))return!1}else if(!WF(e.kind))return!1;if(e.kind===246)return!0;const i=jn(e,u=>!u.parent),o=EE(e,i,t);if(!o||o.kind===20)return!0;const s=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==l}function FF(e,t,r){const i=jn(t,o=>o.end!==e?"quit":oY(o.kind));return!!i&&EJe(i,r)}function FO(e){let t=0,r=0;const i=5;return Uo(e,function o(s){if(WF(s.kind)){const l=s.getLastToken(e);(l==null?void 0:l.kind)===27?t++:r++}else if(Ede(s.kind)){const l=s.getLastToken(e);if((l==null?void 0:l.kind)===27)t++;else if(l&&l.kind!==28){const u=Rs(e,l.getStart(e)).line,p=Rs(e,bh(e,l.end).start).line;u!==p&&r++}}return t+r>=i?!0:Uo(s,o)}),t===0&&r<=1?!0:t/r>1/i}function zF(e,t){return VF(e,e.getDirectories,t)||[]}function qX(e,t,r,i,o){return VF(e,e.readDirectory,t,r,i,o)||et}function zO(e,t){return VF(e,e.fileExists,t)}function BF(e,t){return GF(()=>Qm(t,e))||!1}function GF(e){try{return e()}catch{return}}function VF(e,t,...r){return GF(()=>t&&t.apply(e,r))}function JX(e,t,r){const i=[];return xm(e,o=>{if(o===r)return!0;const s=$r(o,"package.json");zO(t,s)&&i.push(s)}),i}function Sde(e,t){let r;return xm(e,i=>{if(i==="node_modules"||(r=Pce(i,o=>zO(t,o),"package.json"),r))return!0}),r}function Tde(e,t){if(!t.fileExists)return[];const r=[];return xm(ii(e),i=>{const o=$r(i,"package.json");if(t.fileExists(o)){const s=KX(o,t);s&&r.push(s)}}),r}function KX(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=K3(i),s={};if(o)for(const p of r){const v=o[p];if(!v)continue;const f=new Map;for(const b in v)f.set(b,v[b]);s[p]=f}const l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:u,has(p,v){return!!u(p,v)}};function u(p,v=15){for(const[f,b]of l)if(b&&v&f){const A=b.get(p);if(A!==void 0)return A}}}function xP(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||Tde(e.fileName,r)).filter(R=>R.parseable);let o,s,l;return{allowsImportingAmbientModule:p,allowsImportingSourceFile:v,allowsImportingSpecifier:f};function u(R){const M=I(R);for(const C of i)if(C.has(M)||C.has(nW(M)))return!0;return!1}function p(R,M){if(!i.length||!R.valueDeclaration)return!0;if(!s)s=new Map;else{const ee=s.get(R);if(ee!==void 0)return ee}const C=sm(R.getName());if(b(C))return s.set(R,!0),!0;const W=R.valueDeclaration.getSourceFile(),U=A(W.fileName,M);if(typeof U>"u")return s.set(R,!0),!0;const X=u(U)||u(C);return s.set(R,X),X}function v(R,M){if(!i.length)return!0;if(!l)l=new Map;else{const U=l.get(R);if(U!==void 0)return U}const C=A(R.fileName,M);if(!C)return l.set(R,!0),!0;const W=u(C);return l.set(R,W),W}function f(R){return!i.length||b(R)||Fp(R)||hp(R)?!0:u(R)}function b(R){return!!(pd(e)&&V_.nodeCoreModules.has(R)&&(o===void 0&&(o=jF(e)),o))}function A(R,M){if(!R.includes("node_modules"))return;const C=_E.getNodeModulesPackageName(r.getCompilationSettings(),e,R,M,t);if(!!C&&!Fp(C)&&!hp(C))return I(C)}function I(R){const M=Uc(YC(R)).slice(1);return ho(M[0],"@")?`${M[0]}/${M[1]}`:M[0]}}function jF(e){return St(e.imports,({text:t})=>V_.nodeCoreModules.has(t))}function BO(e){return Mn(Uc(e),"node_modules")}function XX(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Ade(e,t){const r=Nd(e),i=IA(t,r,ol,Y8);if(i>=0){const o=t[i];return N.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),sa(o,XX)}}function Ide(e,t){var r;let i=IA(t,e.start,l=>l.start,al);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const o=[],s=tc(e);for(;;){const l=ni(t[i],XX);if(!l||l.start>s)break;Dre(e,l)&&o.push(l),i++}return o}function FI({startPosition:e,endPosition:t}){return yc(e,t===void 0?e:t)}function YX(e,t){const r=go(e,t.start);return jn(r,o=>o.getStart(e)<t.start||o.getEnd()>tc(t)?"quit":bt(o)&&kR(t,Nd(o,e)))}function $X(e,t,r=ol){return e?Do(e)?r(Wt(e,t)):t(e,0):void 0}function QX(e){return Do(e)?$a(e):e}function xde(e,t){if(eDe(e)){const r=tDe(e);if(r)return r;const i=Bu.moduleSymbolToValidIdentifier(Rde(e),t,!1),o=Bu.moduleSymbolToValidIdentifier(Rde(e),t,!0);return i===o?i:[i,o]}return e.name}function UF(e,t,r){return eDe(e)?tDe(e)||Bu.moduleSymbolToValidIdentifier(Rde(e),t,!!r):e.name}function eDe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function tDe(e){return $t(e.declarations,t=>{var r,i,o;return zl(t)?(r=ni(ic(t.expression),Ue))==null?void 0:r.text:$u(t)&&t.symbol.flags===2097152?(i=ni(t.propertyName,Ue))==null?void 0:i.text:(o=ni(Oo(t),Ue))==null?void 0:o.text})}function Rde(e){var t;return N.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${N.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{const i=N.formatSyntaxKind(r.kind),o=dr(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${N.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function Dde(e,t,r){const i=t.length;if(i+r>e.length)return!1;for(let o=0;o<i;o++)if(t.charCodeAt(o)!==e.charCodeAt(o+r))return!1;return!0}function ZX(e){return e.charCodeAt(0)===95}function nDe(e){return!Nde(e)}function Nde(e){const t=e.getSourceFile();return!t.externalModuleIndicator&&!t.commonJsModuleIndicator?!1:dr(e)||!jn(e,r=>nc(r)&&R_(r))}function HF(e){return!!(nj(e)&65536)}function qF(e,t){const r=$t(e.imports,i=>{if(V_.nodeCoreModules.has(i.text))return ho(i.text,"node:")});return r!=null?r:t.usesUriStyleNodeCoreModules}function GO(e){return e===`
`?1:0}function uT(e){return Do(e)?cg(zo(e[0]),e.slice(1)):zo(e)}function JF({options:e},t){const r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!FO(t);return{...e,semicolons:i?"remove":"ignore"}}function eY(e){return e===2||e===3}function WR(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function KF(e,t){const r=new Set,i=new Set,o=new Set;for(const u of t)if(!OC(u)){const p=Ss(u.expression);if(w1(p))switch(p.kind){case 15:case 11:r.add(p.text);break;case 9:i.add(parseInt(p.text));break;case 10:const v=fae(Dl(p.text,"n")?p.text.slice(0,-1):p.text);v&&o.add(Q1(v));break}else{const v=e.getSymbolAtLocation(u.expression);if(v&&v.valueDeclaration&&dE(v.valueDeclaration)){const f=e.getConstantValue(v.valueDeclaration);f!==void 0&&s(f)}}}return{addValue:s,hasValue:l};function s(u){switch(typeof u){case"string":r.add(u);break;case"number":i.add(u)}}function l(u){switch(typeof u){case"string":return r.has(u);case"number":return i.has(u);case"object":return o.has(Q1(u))}}}function tY(e,t,r,i){var o;const s=typeof e=="string"?e:e.fileName;if(!$1(s))return!1;const l=t.getCompilerOptions(),u=Wu(l),p=typeof e=="string"?lO(ll(e,r.getCurrentDirectory(),Gv(r)),(o=t.getPackageJsonInfoCache)==null?void 0:o.call(t),r,l):e.impliedNodeFormat;if(p===99)return!1;if(p===1||l.verbatimModuleSyntax&&u===1)return!0;if(l.verbatimModuleSyntax&&n7(u))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var td,nY,rDe,XF,rY,iY,iDe,YF,oY,SJe=S({"src/services/utilities.ts"(){oi(),td=wv(99,!0),nY=(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))(nY||{}),rDe=/^\/\/\/\s*</,XF=[133,131,163,136,97,140,143,146,106,150,151,148,154,155,114,112,116,157,158,159],rY=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(rY||{}),iY=mJe(),iDe=`
`,YF="anonymous function",oY=$m(Ede,QRe,ZRe,WF)}});function aY(e){let t=1;const r=Zp(),i=new Map,o=new Map;let s;const l={isUsableByFile:I=>I===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(I,R,M,C,W,U,X,ee)=>{I!==s&&(l.clear(),s=I);let V;if(W){const de=y7(W.fileName);if(de){const{topLevelNodeModulesIndex:ie,topLevelPackageNameIndex:ge,packageRootIndex:Ce}=de;if(V=Hw(YC(W.fileName.substring(ge+1,Ce))),ho(I,W.path.substring(0,ie))){const qe=o.get(V),Se=W.fileName.substring(0,ge+1);if(qe){const Le=qe.indexOf(Nh);ie>Le&&o.set(V,Se)}else o.set(V,Se)}}}const G=U===1&&W2(R)||R,re=U===0||NO(G)?Ki(M):xde(G,void 0),_e=typeof re=="string"?re:re[0],ye=typeof re=="string"?void 0:re[1],Q=sm(C.name),Y=t++,oe=Tu(R,ee),he=R.flags&33554432?void 0:R,Ie=C.flags&33554432?void 0:C;(!he||!Ie)&&i.set(Y,[R,C]),r.add(p(_e,R,tu(Q)?void 0:Q,ee),{id:Y,symbolTableKey:M,symbolName:_e,capitalizedSymbolName:ye,moduleName:Q,moduleFile:W,moduleFileName:W==null?void 0:W.fileName,packageName:V,exportKind:U,targetFlags:oe.flags,isFromPackageJson:X,symbol:he,moduleSymbol:Ie})},get:(I,R)=>{if(I!==s)return;const M=r.get(R);return M==null?void 0:M.map(u)},search:(I,R,M,C)=>{if(I===s)return qc(r,(W,U)=>{const{symbolName:X,ambientModuleName:ee}=v(U),V=R&&W[0].capitalizedSymbolName||X;if(M(V,W[0].targetFlags)){const G=W.map(u).filter((re,_e)=>A(re,W[_e].packageName));if(G.length){const re=C(G,V,!!ee,U);if(re!==void 0)return re}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(I,R,M)=>f(I)&&f(R)?!1:s&&s!==R.path||M&&jF(I)!==jF(R)||!Xm(I.moduleAugmentations,R.moduleAugmentations)||!b(I,R)?(l.clear(),!0):(s=R.path,!1)};return N.isDebugging&&Object.defineProperty(l,"__cache",{value:r}),l;function u(I){if(I.symbol&&I.moduleSymbol)return I;const{id:R,exportKind:M,targetFlags:C,isFromPackageJson:W,moduleFileName:U}=I,[X,ee]=i.get(R)||et;if(X&&ee)return{symbol:X,moduleSymbol:ee,moduleFileName:U,exportKind:M,targetFlags:C,isFromPackageJson:W};const V=(W?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),se=I.moduleSymbol||ee||N.checkDefined(I.moduleFile?V.getMergedSymbol(I.moduleFile.symbol):V.tryFindAmbientModule(I.moduleName)),G=I.symbol||X||N.checkDefined(M===2?V.resolveExternalModuleSymbol(se):V.tryGetMemberInModuleExportsAndProperties(Ki(I.symbolTableKey),se),`Could not find symbol '${I.symbolName}' by key '${I.symbolTableKey}' in module ${se.name}`);return i.set(R,[G,se]),{symbol:G,moduleSymbol:se,moduleFileName:U,exportKind:M,targetFlags:C,isFromPackageJson:W}}function p(I,R,M,C){const W=M||"";return`${I.length} ${Ia(Tu(R,C))} ${I} ${W}`}function v(I){const R=I.indexOf(" "),M=I.indexOf(" ",R+1),C=parseInt(I.substring(0,R),10),W=I.substring(M+1),U=W.substring(0,C),X=W.substring(C+1);return{symbolName:U,ambientModuleName:X===""?void 0:X}}function f(I){return!I.commonJsModuleIndicator&&!I.externalModuleIndicator&&!I.moduleAugmentations&&!I.ambientModuleNames}function b(I,R){if(!Xm(I.ambientModuleNames,R.ambientModuleNames))return!1;let M=-1,C=-1;for(const W of R.ambientModuleNames){const U=X=>kj(X)&&X.name.text===W;if(M=Ji(I.statements,U,M+1),C=Ji(R.statements,U,C+1),I.statements[M]!==R.statements[C])return!1}return!0}function A(I,R){if(!R||!I.moduleFileName)return!0;const M=e.getGlobalTypingsCacheLocation();if(M&&ho(I.moduleFileName,M))return!0;const C=o.get(R);return!C||ho(I.moduleFileName,C)}}function sY(e,t,r,i,o,s,l){var u;if(t===r)return!1;const p=l==null?void 0:l.get(t.path,r.path,i,{});if((p==null?void 0:p.isBlockedByPackageJsonDependencies)!==void 0)return!p.isBlockedByPackageJsonDependencies;const v=Gv(s),f=(u=s.getGlobalTypingsCacheLocation)==null?void 0:u.call(s),b=!!_E.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,A=>{const I=e.getSourceFile(A);return(I===r||!I)&&TJe(t.fileName,A,v,f)});if(o){const A=b&&o.allowsImportingSourceFile(r,s);return l==null||l.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!A),A}return b}function TJe(e,t,r,i){const o=xm(t,l=>dc(l)==="node_modules"?l:void 0),s=o&&ii(r(o));return s===void 0||ho(r(e),s)||!!i&&ho(r(i),s)}function lY(e,t,r,i,o){var s,l;const u=w2(t),p=r.autoImportFileExcludePatterns&&Vi(r.autoImportFileExcludePatterns,f=>{const b=c7(f,"","exclude");return b?Uy(b,u):void 0});oDe(e.getTypeChecker(),e.getSourceFiles(),p,t,(f,b)=>o(f,b,e,!1));const v=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(v){const f=Qs(),b=e.getTypeChecker();oDe(v.getTypeChecker(),v.getSourceFiles(),p,t,(A,I)=>{(I&&!e.getSourceFile(I.fileName)||!I&&!b.resolveName(A.name,void 0,1536,!1))&&o(A,I,v,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Qs()-f}`)}}function oDe(e,t,r,i,o){var s,l;const u=(s=i.getSymlinkCache)==null?void 0:s.call(i).getSymlinkedDirectoriesByRealpath(),p=r&&(({fileName:v,path:f})=>{var b;if(r.some(A=>A.test(v)))return!0;if((u==null?void 0:u.size)&&L0(v)){let A=ii(v);return(b=xm(ii(f),I=>{const R=u.get(Hc(I));if(R)return R.some(M=>r.some(C=>C.test(v.replace(A,M))));A=ii(A)}))!=null?b:!1}return!1});for(const v of e.getAmbientModules())!v.name.includes("*")&&!(r&&((l=v.declarations)==null?void 0:l.every(f=>p(f.getSourceFile()))))&&o(v,void 0);for(const v of t)Bp(v)&&!(p!=null&&p(v))&&o(e.getMergedSymbol(v.symbol),v)}function VO(e,t,r,i,o){var s,l,u,p,v;const f=Qs();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);const b=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||aY({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var R;return(R=t.getPackageJsonAutoImportProvider)==null?void 0:R.call(t)},getGlobalTypingsCacheLocation:()=>{var R;return(R=t.getGlobalTypingsCacheLocation)==null?void 0:R.call(t)}});if(b.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),b;(p=t.log)==null||p.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const A=r.getCompilerOptions();let I=0;try{lY(r,t,i,!0,(R,M,C,W)=>{++I%100===0&&(o==null||o.throwIfCancellationRequested());const U=new Map,X=C.getTypeChecker(),ee=$F(R,X,A);ee&&aDe(ee.symbol,X)&&b.add(e.path,ee.symbol,ee.exportKind===1?"default":"export=",R,M,ee.exportKind,W,X),X.forEachExportAndPropertyOfModule(R,(V,se)=>{V!==(ee==null?void 0:ee.symbol)&&aDe(V,X)&&Pm(U,se)&&b.add(e.path,V,se,R,M,0,W,X)})})}catch(R){throw b.clear(),R}return(v=t.log)==null||v.call(t,`getExportInfoMap: done in ${Qs()-f} ms`),b}function $F(e,t,r){const i=AJe(e,t);if(!i)return;const{symbol:o,exportKind:s}=i,l=QF(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function aDe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!Sk(e)&&!poe(e)}function AJe(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 QF(e,t,r){const i=W2(e);if(i)return{resolvedSymbol:i,name:i.name};const o=IJe(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){const s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return QF(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:UF(e,r.target)}}function IJe(e){return e.declarations&&$t(e.declarations,t=>{var r;if(zl(t))return(r=ni(ic(t.expression),Ue))==null?void 0:r.text;if($u(t))return N.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var cY,uY,xJe=S({"src/services/exportInfoMap.ts"(){oi(),cY=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(cY||{}),uY=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(uY||{})}});function sDe(){const e=wv(99,!1);function t(i,o,s){return NJe(r(i,o,s),i)}function r(i,o,s){let l=0,u=0;const p=[],{prefix:v,pushTemplate:f}=MJe(o);i=v+i;const b=v.length;f&&p.push(16),e.setText(i);let A=0;const I=[];let R=0;do{l=e.scan(),C2(l)||(M(),u=l);const C=e.getTokenEnd();if(DJe(e.getTokenStart(),C,b,wJe(l),I),C>=i.length){const W=RJe(e,l,il(p));W!==void 0&&(A=W)}}while(l!==1);function M(){switch(l){case 44:case 69:!dDe[u]&&e.reScanSlashToken()===14&&(l=14);break;case 30:u===80&&R++;break;case 32:R>0&&R--;break;case 133:case 154:case 150:case 136:case 155:R>0&&!s&&(l=80);break;case 16:p.push(l);break;case 19:p.length>0&&p.push(l);break;case 20:if(p.length>0){const C=il(p);C===16?(l=e.reScanTemplateToken(!1),l===18?p.pop():N.assertEqual(l,17,"Should have been a template middle.")):(N.assertEqual(C,19,"Should have been an open brace"),p.pop())}break;default:if(!Gd(l))break;(u===25||Gd(u)&&Gd(l)&&!PJe(u,l))&&(l=80)}}return{endOfLineState:A,spans:I}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function RJe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;const i=e.getTokenText(),o=i.length-1;let s=0;for(;i.charCodeAt(o-s)===92;)s++;return(s&1)===0?void 0:i.charCodeAt(0)===34?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(Ly(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return N.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function DJe(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 NJe(e,t){const r=[],i=e.spans;let o=0;for(let l=0;l<i.length;l+=3){const u=i[l],p=i[l+1],v=i[l+2];if(o>=0){const f=u-o;f>0&&r.push({length:f,classification:4})}r.push({length:p,classification:CJe(v)}),o=u+p}const s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function CJe(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 PJe(e,t){if(!bX(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function MJe(e){switch(e){case 3:return{prefix:`"\\
`};case 2:return{prefix:`'\\
`};case 1:return{prefix:`/*
`};case 4:return{prefix:"`\n"};case 5:return{prefix:`}
`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return N.assertNever(e)}}function LJe(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function kJe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function wJe(e){if(Gd(e))return 3;if(LJe(e)||kJe(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return Ly(e)?6:2}}function Cde(e,t,r,i,o){return uDe(dY(e,t,r,i,o))}function lDe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function dY(e,t,r,i,o){const s=[];return r.forEachChild(function u(p){if(!(!p||!P6(o,p.pos,p.getFullWidth()))){if(lDe(t,p.kind),Ue(p)&&!Hl(p)&&i.has(p.escapedText)){const v=e.getSymbolAtLocation(p),f=v&&cDe(v,oT(p),e);f&&l(p.getStart(r),p.getEnd(),f)}p.forEachChild(u)}}),{spans:s,endOfLineState:0};function l(u,p,v){const f=p-u;N.assert(f>0,`Classification had non-positive length of ${f}`),s.push(u),s.push(f),s.push(v)}}function cDe(e,t,r){const i=e.getFlags();if((i&2885600)!==0)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&OJe(e)?14:void 0:i&2097152?cDe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function OJe(e){return St(e.declarations,t=>nc(t)&&Xg(t)===1)}function WJe(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 uDe(e){N.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i<t.length;i+=3)r.push({textSpan:Eu(t[i],t[i+1]),classificationType:WJe(t[i+2])});return r}function Pde(e,t,r){return uDe(pY(e,t,r))}function pY(e,t,r){const i=r.start,o=r.length,s=wv(99,!1,t.languageVariant,t.text),l=wv(99,!1,t.languageVariant,t.text),u=[];return ee(t),{spans:u,endOfLineState:0};function p(V,se,G){u.push(V),u.push(se),u.push(G)}function v(V){for(s.resetTokenState(V.pos);;){const se=s.getTokenEnd();if(!Tre(t.text,se))return se;const G=s.scan(),re=s.getTokenEnd(),_e=re-se;if(!C2(G))return se;switch(G){case 4:case 5:continue;case 2:case 3:f(V,G,se,_e),s.resetTokenState(re);continue;case 7:const ye=t.text,Q=ye.charCodeAt(se);if(Q===60||Q===62){p(se,_e,1);continue}N.assert(Q===124||Q===61),M(ye,se,re);break;case 6:break;default:N.assertNever(G)}}}function f(V,se,G,re){if(se===3){const _e=Fse(t.text,G,re);if(_e&&_e.jsDoc){Qa(_e.jsDoc,V),A(_e.jsDoc);return}}else if(se===2&&I(G,re))return;b(G,re)}function b(V,se){p(V,se,1)}function A(V){var se,G,re,_e,ye,Q,Y,oe;let he=V.pos;if(V.tags)for(const de of V.tags){de.pos!==he&&b(he,de.pos-he),p(de.pos,1,10),p(de.tagName.pos,de.tagName.end-de.tagName.pos,18),he=de.tagName.end;let ie=de.tagName.end;switch(de.kind){case 348:const ge=de;Ie(ge),ie=ge.isNameFirst&&((se=ge.typeExpression)==null?void 0:se.end)||ge.name.end;break;case 355:const Ce=de;ie=Ce.isNameFirst&&((G=Ce.typeExpression)==null?void 0:G.end)||Ce.name.end;break;case 352:R(de),he=de.end,ie=de.typeParameters.end;break;case 353:const qe=de;ie=((re=qe.typeExpression)==null?void 0:re.kind)===316&&((_e=qe.fullName)==null?void 0:_e.end)||((ye=qe.typeExpression)==null?void 0:ye.end)||ie;break;case 345:ie=de.typeExpression.end;break;case 351:ee(de.typeExpression),he=de.end,ie=de.typeExpression.end;break;case 350:case 347:ie=de.typeExpression.end;break;case 349:ee(de.typeExpression),he=de.end,ie=((Q=de.typeExpression)==null?void 0:Q.end)||ie;break;case 354:ie=((Y=de.name)==null?void 0:Y.end)||ie;break;case 335:case 336:ie=de.class.end;break;case 356:ee(de.typeExpression),he=de.end,ie=((oe=de.typeExpression)==null?void 0:oe.end)||ie;break}typeof de.comment=="object"?b(de.comment.pos,de.comment.end-de.comment.pos):typeof de.comment=="string"&&b(ie,de.end-ie)}he!==V.end&&b(he,V.end-he);return;function Ie(de){de.isNameFirst&&(b(he,de.name.pos-he),p(de.name.pos,de.name.end-de.name.pos,17),he=de.name.end),de.typeExpression&&(b(he,de.typeExpression.pos-he),ee(de.typeExpression),he=de.typeExpression.end),de.isNameFirst||(b(he,de.name.pos-he),p(de.name.pos,de.name.end-de.name.pos,17),he=de.name.end)}}function I(V,se){const G=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,re=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,_e=t.text.substr(V,se),ye=G.exec(_e);if(!ye||!ye[3]||!(ye[3]in aL))return!1;let Q=V;b(Q,ye[1].length),Q+=ye[1].length,p(Q,ye[2].length,10),Q+=ye[2].length,p(Q,ye[3].length,21),Q+=ye[3].length;const Y=ye[4];let oe=Q;for(;;){const Ie=re.exec(Y);if(!Ie)break;const de=Q+Ie.index+Ie[1].length;de>oe&&(b(oe,de-oe),oe=de),p(oe,Ie[2].length,22),oe+=Ie[2].length,Ie[3].length&&(b(oe,Ie[3].length),oe+=Ie[3].length),p(oe,Ie[4].length,5),oe+=Ie[4].length,Ie[5].length&&(b(oe,Ie[5].length),oe+=Ie[5].length),p(oe,Ie[6].length,24),oe+=Ie[6].length}Q+=ye[4].length,Q>oe&&b(oe,Q-oe),ye[5]&&(p(Q,ye[5].length,10),Q+=ye[5].length);const he=V+se;return Q<he&&b(Q,he-Q),!0}function R(V){for(const se of V.getChildren())ee(se)}function M(V,se,G){let re;for(re=se;re<G&&!Ku(V.charCodeAt(re));re++);for(p(se,re-se,1),l.resetTokenState(re);l.getTokenEnd()<G;)C()}function C(){const V=l.getTokenEnd(),se=l.scan(),G=l.getTokenEnd(),re=X(se);re&&p(V,G-V,re)}function W(V){if(r_(V)||Hl(V))return!0;const se=U(V);if(!kA(V)&&V.kind!==12&&se===void 0)return!1;const G=V.kind===12?V.pos:v(V),re=V.end-G;if(N.assert(re>=0),re>0){const _e=se||X(V.kind,V);_e&&p(G,re,_e)}return!0}function U(V){switch(V.parent&&V.parent.kind){case 286:if(V.parent.tagName===V)return 19;break;case 287:if(V.parent.tagName===V)return 20;break;case 285:if(V.parent.tagName===V)return 21;break;case 291:if(V.parent.name===V)return 22;break}}function X(V,se){if(Gd(V))return 3;if((V===30||V===32)&&se&&Zue(se.parent))return 10;if(uU(V)){if(se){const G=se.parent;if(V===64&&(G.kind===260||G.kind===172||G.kind===169||G.kind===291)||G.kind===226||G.kind===224||G.kind===225||G.kind===227)return 5}return 10}else{if(V===9)return 4;if(V===10)return 25;if(V===11)return se&&se.parent.kind===291?24:6;if(V===14)return 6;if(Ly(V))return 6;if(V===12)return 23;if(V===80){if(se){switch(se.parent.kind){case 263:return se.parent.name===se?11:void 0;case 168:return se.parent.name===se?15:void 0;case 264:return se.parent.name===se?13:void 0;case 266:return se.parent.name===se?12:void 0;case 267:return se.parent.name===se?14:void 0;case 169:return se.parent.name===se?X1(se)?3:17:void 0}if(Wg(se.parent))return 3}return 2}}}function ee(V){if(!!V&&SL(i,o,V.pos,V.getFullWidth())){lDe(e,V.kind);for(const se of V.getChildren(t))W(se)||ee(se)}}}var dDe,pDe=S({"src/services/classifier.ts"(){oi(),dDe=Une([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),ZF,FJe=S({"src/services/documentHighlights.ts"(){oi(),(e=>{function t(Q,Y,oe,he,Ie){const de=jd(oe,he);if(de.parent&&(W_(de.parent)&&de.parent.tagName===de||sE(de.parent))){const{openingElement:ie,closingElement:ge}=de.parent.parent,Ce=[ie,ge].map(({tagName:qe})=>r(qe,oe));return[{fileName:oe.fileName,highlightSpans:Ce}]}return i(he,de,Q,Y,Ie)||o(de,oe)}e.getDocumentHighlights=t;function r(Q,Y){return{fileName:Y.fileName,textSpan:Nd(Q,Y),kind:"none"}}function i(Q,Y,oe,he,Ie){const de=new Set(Ie.map(qe=>qe.fileName)),ie=Hs.getReferenceEntriesForNode(Q,Y,oe,Ie,he,void 0,de);if(!ie)return;const ge=QM(ie.map(Hs.toHighlightSpan),qe=>qe.fileName,qe=>qe.span),Ce=ku(oe.useCaseSensitiveFileNames());return Go(TA(ge.entries(),([qe,Se])=>{if(!de.has(qe)){if(!oe.redirectTargetsMap.has(ll(qe,oe.getCurrentDirectory(),Ce)))return;const Le=oe.getSourceFile(qe);qe=un(Ie,Oe=>!!Oe.redirectInfo&&Oe.redirectInfo.redirectTarget===Le).fileName,N.assert(de.has(qe))}return{fileName:qe,highlightSpans:Se}}))}function o(Q,Y){const oe=s(Q,Y);return oe&&[{fileName:Y.fileName,highlightSpans:oe}]}function s(Q,Y){switch(Q.kind){case 101:case 93:return US(Q.parent)?re(Q.parent,Y):void 0;case 107:return he(Q.parent,Mm,ee);case 111:return he(Q.parent,UH,X);case 113:case 85:case 98:const de=Q.kind===85?Q.parent.parent:Q.parent;return he(de,qS,U);case 109:return he(Q.parent,LC,W);case 84:case 90:return OC(Q.parent)||tR(Q.parent)?he(Q.parent.parent.parent,LC,W):void 0;case 83:case 88:return he(Q.parent,AN,C);case 99:case 117:case 92:return he(Q.parent,ie=>wy(ie,!0),M);case 137:return oe(Wl,[137]);case 139:case 153:return oe(ky,[139,153]);case 135:return he(Q.parent,Qy,V);case 134:return Ie(V(Q));case 127:return Ie(se(Q));case 103:case 147:return;default:return Wv(Q.kind)&&(Yu(Q.parent)||Fl(Q.parent))?Ie(A(Q.kind,Q.parent)):void 0}function oe(de,ie){return he(Q.parent,de,ge=>{var Ce;return Vi((Ce=ni(ge,x_))==null?void 0:Ce.symbol.declarations,qe=>de(qe)?un(qe.getChildren(Y),Se=>Mn(ie,Se.kind)):void 0)})}function he(de,ie,ge){return ie(de)?Ie(ge(de,Y)):void 0}function Ie(de){return de&&de.map(ie=>r(ie,Y))}}function l(Q){return UH(Q)?[Q]:qS(Q)?Ro(Q.catchClause?l(Q.catchClause):Q.tryBlock&&l(Q.tryBlock),Q.finallyBlock&&l(Q.finallyBlock)):ta(Q)?void 0:v(Q,l)}function u(Q){let Y=Q;for(;Y.parent;){const oe=Y.parent;if(G1(oe)||oe.kind===312)return oe;if(qS(oe)&&oe.tryBlock===Y&&oe.catchClause)return Y;Y=oe}}function p(Q){return AN(Q)?[Q]:ta(Q)?void 0:v(Q,p)}function v(Q,Y){const oe=[];return Q.forEachChild(he=>{const Ie=Y(he);Ie!==void 0&&oe.push(...RA(Ie))}),oe}function f(Q,Y){const oe=b(Y);return!!oe&&oe===Q}function b(Q){return jn(Q,Y=>{switch(Y.kind){case 255:if(Q.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!Q.label||ye(Y,Q.label.escapedText);default:return ta(Y)&&"quit"}})}function A(Q,Y){return Vi(I(Y,XA(Q)),oe=>LR(oe,Q))}function I(Q,Y){const oe=Q.parent;switch(oe.kind){case 268:case 312:case 241:case 296:case 297:return Y&64&&Nc(Q)?[...Q.members,Q]:oe.statements;case 176:case 174:case 262:return[...oe.parameters,...di(oe.parent)?oe.parent.members:[]];case 263:case 231:case 264:case 187:const he=oe.members;if(Y&15){const Ie=un(oe.members,Wl);if(Ie)return[...he,...Ie.parameters]}else if(Y&64)return[...he,oe];return he;case 210:return;default:N.assertNever(oe,"Invalid container kind.")}}function R(Q,Y,...oe){return Y&&Mn(oe,Y.kind)?(Q.push(Y),!0):!1}function M(Q){const Y=[];if(R(Y,Q.getFirstToken(),99,117,92)&&Q.kind===246){const oe=Q.getChildren();for(let he=oe.length-1;he>=0&&!R(Y,oe[he],117);he--);}return Ve(p(Q.statement),oe=>{f(Q,oe)&&R(Y,oe.getFirstToken(),83,88)}),Y}function C(Q){const Y=b(Q);if(Y)switch(Y.kind){case 248:case 249:case 250:case 246:case 247:return M(Y);case 255:return W(Y)}}function W(Q){const Y=[];return R(Y,Q.getFirstToken(),109),Ve(Q.caseBlock.clauses,oe=>{R(Y,oe.getFirstToken(),84,90),Ve(p(oe),he=>{f(Q,he)&&R(Y,he.getFirstToken(),83)})}),Y}function U(Q,Y){const oe=[];if(R(oe,Q.getFirstToken(),113),Q.catchClause&&R(oe,Q.catchClause.getFirstToken(),85),Q.finallyBlock){const he=Is(Q,98,Y);R(oe,he,98)}return oe}function X(Q,Y){const oe=u(Q);if(!oe)return;const he=[];return Ve(l(oe),Ie=>{he.push(Is(Ie,111,Y))}),G1(oe)&&B1(oe,Ie=>{he.push(Is(Ie,107,Y))}),he}function ee(Q,Y){const oe=Vp(Q);if(!oe)return;const he=[];return B1(sa(oe.body,Yo),Ie=>{he.push(Is(Ie,107,Y))}),Ve(l(oe.body),Ie=>{he.push(Is(Ie,111,Y))}),he}function V(Q){const Y=Vp(Q);if(!Y)return;const oe=[];return Y.modifiers&&Y.modifiers.forEach(he=>{R(oe,he,134)}),Uo(Y,he=>{G(he,Ie=>{Qy(Ie)&&R(oe,Ie.getFirstToken(),135)})}),oe}function se(Q){const Y=Vp(Q);if(!Y)return;const oe=[];return Uo(Y,he=>{G(he,Ie=>{g5(Ie)&&R(oe,Ie.getFirstToken(),127)})}),oe}function G(Q,Y){Y(Q),!ta(Q)&&!di(Q)&&!gd(Q)&&!nc(Q)&&!Lm(Q)&&!Xi(Q)&&Uo(Q,oe=>G(oe,Y))}function re(Q,Y){const oe=_e(Q,Y),he=[];for(let Ie=0;Ie<oe.length;Ie++){if(oe[Ie].kind===93&&Ie<oe.length-1){const de=oe[Ie],ie=oe[Ie+1];let ge=!0;for(let Ce=ie.getStart(Y)-1;Ce>=de.end;Ce--)if(!A_(Y.text.charCodeAt(Ce))){ge=!1;break}if(ge){he.push({fileName:Y.fileName,textSpan:yc(de.getStart(),ie.end),kind:"reference"}),Ie++;continue}}he.push(r(oe[Ie],Y))}return he}function _e(Q,Y){const oe=[];for(;US(Q.parent)&&Q.parent.elseStatement===Q;)Q=Q.parent;for(;;){const he=Q.getChildren(Y);R(oe,he[0],101);for(let Ie=he.length-1;Ie>=0&&!R(oe,he[Ie],93);Ie--);if(!Q.elseStatement||!US(Q.elseStatement))break;Q=Q.elseStatement}return oe}function ye(Q,Y){return!!jn(Q.parent,oe=>aE(oe)?oe.label.escapedText===Y:"quit")}})(ZF||(ZF={}))}});function jO(e){return!!e.sourceFile}function Mde(e,t,r){return fY(e,t,r)}function fY(e,t="",r,i){const o=new Map,s=ku(!!e);function l(){const C=Go(o.keys()).filter(W=>W&&W.charAt(0)==="_").map(W=>{const U=o.get(W),X=[];return U.forEach((ee,V)=>{jO(ee)?X.push({name:V,scriptKind:ee.sourceFile.scriptKind,refCount:ee.languageServiceRefCount}):ee.forEach((se,G)=>X.push({name:V,scriptKind:G,refCount:se.languageServiceRefCount}))}),X.sort((ee,V)=>V.refCount-ee.refCount),{bucket:W,sourceFiles:X}});return JSON.stringify(C,void 0,2)}function u(C){return typeof C.getCompilationSettings=="function"?C.getCompilationSettings():C}function p(C,W,U,X,ee,V){const se=ll(C,t,s),G=mY(u(W));return v(C,se,W,G,U,X,ee,V)}function v(C,W,U,X,ee,V,se,G){return I(C,W,U,X,ee,V,!0,se,G)}function f(C,W,U,X,ee,V){const se=ll(C,t,s),G=mY(u(W));return b(C,se,W,G,U,X,ee,V)}function b(C,W,U,X,ee,V,se,G){return I(C,W,u(U),X,ee,V,!1,se,G)}function A(C,W){const U=jO(C)?C:C.get(N.checkDefined(W,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return N.assert(W===void 0||!U||U.sourceFile.scriptKind===W,`Script kind should match provided ScriptKind:${W} and sourceFile.scriptKind: ${U==null?void 0:U.sourceFile.scriptKind}, !entry: ${!U}`),U}function I(C,W,U,X,ee,V,se,G,re){var _e,ye,Q,Y;G=d7(C,G);const oe=u(U),he=U===oe?void 0:U,Ie=G===6?100:ps(oe),de=typeof re=="object"?re:{languageVersion:Ie,impliedNodeFormat:he&&lO(W,(Y=(Q=(ye=(_e=he.getCompilerHost)==null?void 0:_e.call(he))==null?void 0:ye.getModuleResolutionCache)==null?void 0:Q.call(ye))==null?void 0:Y.getPackageJsonInfoCache(),he,oe),setExternalModuleIndicator:kk(oe),jsDocParsingMode:r};de.languageVersion=Ie,N.assertEqual(r,de.jsDocParsingMode);const ie=o.size,ge=Lde(X,de.impliedNodeFormat),Ce=AA(o,ge,()=>new Map);if(ur){o.size>ie&&ur.instant(ur.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:oe.configFilePath,key:ge});const Ne=!Iu(W)&&qc(o,(Oe,At)=>At!==ge&&Oe.has(W)&&At);Ne&&ur.instant(ur.Phase.Session,"documentRegistryBucketOverlap",{path:W,key1:Ne,key2:ge})}const qe=Ce.get(W);let Se=qe&&A(qe,G);if(!Se&&i){const Ne=i.getDocument(ge,W);Ne&&(N.assert(se),Se={sourceFile:Ne,languageServiceRefCount:0},Le())}if(Se)Se.sourceFile.version!==V&&(Se.sourceFile=n$(Se.sourceFile,ee,V,ee.getChangeRange(Se.sourceFile.scriptSnapshot)),i&&i.setDocument(ge,W,Se.sourceFile)),se&&Se.languageServiceRefCount++;else{const Ne=A9(C,ee,de,V,!1,G);i&&i.setDocument(ge,W,Ne),Se={sourceFile:Ne,languageServiceRefCount:1},Le()}return N.assert(Se.languageServiceRefCount!==0),Se.sourceFile;function Le(){if(!qe)Ce.set(W,Se);else if(jO(qe)){const Ne=new Map;Ne.set(qe.sourceFile.scriptKind,qe),Ne.set(G,Se),Ce.set(W,Ne)}else qe.set(G,Se)}}function R(C,W,U,X){const ee=ll(C,t,s),V=mY(W);return M(ee,V,U,X)}function M(C,W,U,X){const ee=N.checkDefined(o.get(Lde(W,X))),V=ee.get(C),se=A(V,U);se.languageServiceRefCount--,N.assert(se.languageServiceRefCount>=0),se.languageServiceRefCount===0&&(jO(V)?ee.delete(C):(V.delete(U),V.size===1&&ee.set(C,ar(V.values(),ol))))}return{acquireDocument:p,acquireDocumentWithKey:v,updateDocument:f,updateDocumentWithKey:b,releaseDocument:R,releaseDocumentWithKey:M,getKeyForCompilationSettings:mY,getDocumentRegistryBucketKeyWithMode:Lde,reportStats:l,getBuckets:()=>o}}function mY(e){return Gq(e,j5)}function Lde(e,t){return t?`${e}|${t}`:e}var zJe=S({"src/services/documentRegistry.ts"(){oi()}});function kde(e,t,r,i,o,s,l){const u=w2(i),p=ku(u),v=_Y(t,r,p,l),f=_Y(r,t,p,l);return yr.ChangeTracker.with({host:i,formatContext:o,preferences:s},b=>{GJe(e,b,v,t,r,i.getCurrentDirectory(),u),VJe(e,b,v,f,i,p)})}function _Y(e,t,r,i){const o=r(e);return l=>{const u=i&&i.tryGetSourcePosition({fileName:l,pos:0}),p=s(u?u.fileName:l);return u?p===void 0?void 0:BJe(u.fileName,p,l,r):p};function s(l){if(r(l)===o)return t;const u=qU(l,o,r);return u===void 0?void 0:t+"/"+u}}function BJe(e,t,r,i){const o=pL(e,t,i);return wde(ii(r),o)}function GJe(e,t,r,i,o,s,l){const{configFile:u}=e.getCompilerOptions();if(!u)return;const p=ii(u.fileName),v=ON(u);if(!v)return;Ode(v,(I,R)=>{switch(R){case"files":case"include":case"exclude":{if(f(I)||R!=="include"||!hd(I.initializer))return;const C=Vi(I.initializer.elements,U=>La(U)?U.text:void 0);if(C.length===0)return;const W=u7(p,[],C,l,s);Uy(N.checkDefined(W.includeFilePattern),l).test(i)&&!Uy(N.checkDefined(W.includeFilePattern),l).test(o)&&t.insertNodeAfter(u,rs(I.initializer.elements),O.createStringLiteral(A(o)));return}case"compilerOptions":Ode(I.initializer,(M,C)=>{const W=Sq(C);N.assert((W==null?void 0:W.type)!=="listOrElement"),W&&(W.isFilePath||W.type==="list"&&W.element.isFilePath)?f(M):C==="paths"&&Ode(M.initializer,U=>{if(!!hd(U.initializer))for(const X of U.initializer.elements)b(X)})});return}});function f(I){const R=hd(I.initializer)?I.initializer.elements:[I.initializer];let M=!1;for(const C of R)M=b(C)||M;return M}function b(I){if(!La(I))return!1;const R=wde(p,I.text),M=r(R);return M!==void 0?(t.replaceRangeWithText(u,mDe(I,u),A(M)),!0):!1}function A(I){return Im(p,I,!l)}}function VJe(e,t,r,i,o,s){const l=e.getSourceFiles();for(const u of l){const p=r(u.fileName),v=p!=null?p:u.fileName,f=ii(v),b=i(u.fileName),A=b||u.fileName,I=ii(A),R=p!==void 0||b!==void 0;HJe(u,t,M=>{if(!Fp(M))return;const C=wde(I,M),W=r(C);return W===void 0?void 0:P1(Im(f,W,s))},M=>{const C=e.getTypeChecker().getSymbolAtLocation(M);if((C==null?void 0:C.declarations)&&C.declarations.some(U=>Ou(U)))return;const W=b!==void 0?fDe(M,_R(M.text,A,e.getCompilerOptions(),o),r,l):UJe(C,M,u,e,o,r);return W!==void 0&&(W.updated||R&&Fp(M.text))?_E.updateModuleSpecifier(e.getCompilerOptions(),u,v,W.newFileName,sT(e,o),M.text):void 0})}}function jJe(e,t){return va($r(e,t))}function wde(e,t){return P1(jJe(e,t))}function UJe(e,t,r,i,o,s){if(e){const l=un(e.declarations,io).fileName,u=s(l);return u===void 0?{newFileName:l,updated:!1}:{newFileName:u,updated:!0}}else{const l=i.getModeForUsageLocation(r,t),u=o.resolveModuleNameLiterals||!o.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,l);return fDe(t,u,s,i.getSourceFiles())}}function fDe(e,t,r,i){if(!t)return;if(t.resolvedModule){const p=u(t.resolvedModule.resolvedFileName);if(p)return p}const o=Ve(t.failedLookupLocations,s)||Fp(e.text)&&Ve(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(p){const v=r(p);return v&&un(i,f=>f.fileName===v)?l(p):void 0}function l(p){return Dl(p,"/package.json")?void 0:u(p)}function u(p){const v=r(p);return v&&{newFileName:v,updated:!0}}}function HJe(e,t,r,i){for(const o of e.referencedFiles||et){const s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(const o of e.imports){const s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,mDe(o,e),s)}}function mDe(e,t){return xf(e.getStart(t)+1,e.end-1)}function Ode(e,t){if(!!za(e))for(const r of e.properties)Tc(r)&&La(r.name)&&t(r,r.name.text)}var qJe=S({"src/services/getEditsForFileRename.ts"(){oi()}});function RP(e,t){return{kind:e,isCaseSensitive:t}}function Wde(e){const t=new Map,r=e.trim().split(".").map(i=>YJe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>RP(2,!0),getFullMatch:()=>RP(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>JJe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>Fde(i,rs(r),t),patternContainsDots:r.length>1}}function JJe(e,t,r,i){if(!Fde(t,rs(r),i)||r.length-1>e.length)return;let s;for(let l=r.length-2,u=e.length-1;l>=0;l-=1,u-=1)s=gDe(s,Fde(e[u],r[l],i));return s}function _De(e,t){let r=t.get(e);return r||t.set(e,r=Ude(e)),r}function hDe(e,t,r){const i=$Je(e,t.textLowerCase);if(i===0)return RP(t.text.length===e.length?0:1,ho(e,t.text));if(t.isLowerCase){if(i===-1)return;const o=_De(e,r);for(const s of o)if(zde(e,s,t.text,!0))return RP(2,zde(e,s,t.text,!1));if(t.text.length<e.length&&FR(e.charCodeAt(i)))return RP(2,!1)}else{if(e.indexOf(t.text)>0)return RP(2,!0);if(t.characterSpans.length>0){const o=_De(e,r),s=vDe(e,o,t,!1)?!0:vDe(e,o,t,!0)?!1:void 0;if(s!==void 0)return RP(3,s)}}}function Fde(e,t,r){if(hY(t.totalTextChunk.text,s=>s!==32&&s!==42)){const s=hDe(e,t.totalTextChunk,r);if(s)return s}const i=t.subWordTextChunks;let o;for(const s of i)o=gDe(o,hDe(e,s,r));return o}function gDe(e,t){return NG([e,t],KJe)}function KJe(e,t){return e===void 0?1:t===void 0?-1:al(e.kind,t.kind)||Iy(!e.isCaseSensitive,!t.isCaseSensitive)}function zde(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&SDe(0,o.length,s=>XJe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function XJe(e,t,r){return r?Bde(e)===Bde(t):e===t}function vDe(e,t,r,i){const o=r.characterSpans;let s=0,l=0;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let u=t[s],p=!1;for(;l<o.length;l++){const v=o[l];if(p&&(!FR(r.text.charCodeAt(o[l-1].start))||!FR(r.text.charCodeAt(o[l].start)))||!zde(e,u,r.text,i,v))break;p=!0,u=Eu(u.start+v.length,u.length-v.length)}s++}}function YJe(e){return{totalTextChunk:Vde(e),subWordTextChunks:ZJe(e)}}function FR(e){if(e>=65&&e<=90)return!0;if(e<127||!x6(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function yDe(e){if(e>=97&&e<=122)return!0;if(e<127||!x6(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function $Je(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if(hY(t,(o,s)=>Bde(e.charCodeAt(s+i))===o))return i;return-1}function Bde(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Gde(e){return e>=48&&e<=57}function QJe(e){return FR(e)||yDe(e)||Gde(e)||e===95||e===36}function ZJe(e){const t=[];let r=0,i=0;for(let o=0;o<e.length;o++){const s=e.charCodeAt(o);QJe(s)?(i===0&&(r=o),i++):i>0&&(t.push(Vde(e.substr(r,i))),i=0)}return i>0&&t.push(Vde(e.substr(r,i))),t}function Vde(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:jde(e)}}function jde(e){return bDe(e,!1)}function Ude(e){return bDe(e,!0)}function bDe(e,t){const r=[];let i=0;for(let o=1;o<e.length;o++){const s=Gde(e.charCodeAt(o-1)),l=Gde(e.charCodeAt(o)),u=tKe(e,t,o),p=t&&eKe(e,o,i);(Hde(e.charCodeAt(o-1))||Hde(e.charCodeAt(o))||s!==l||u||p)&&(EDe(e,i,o)||r.push(Eu(i,o-i)),i=o)}return EDe(e,i,e.length)||r.push(Eu(i,e.length-i)),r}function Hde(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 EDe(e,t,r){return hY(e,i=>Hde(i)&&i!==95,t,r)}function eKe(e,t,r){return t!==r&&t+1<e.length&&FR(e.charCodeAt(t))&&yDe(e.charCodeAt(t+1))&&hY(e,FR,r,t)}function tKe(e,t,r){const i=FR(e.charCodeAt(r-1));return FR(e.charCodeAt(r))&&(!t||!i)}function SDe(e,t,r){for(let i=e;i<t;i++)if(!r(i))return!1;return!0}function hY(e,t,r=0,i=e.length){return SDe(r,i,o=>t(e.charCodeAt(o),o))}var e9,nKe=S({"src/services/patternMatcher.ts"(){oi(),e9=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(e9||{})}});function TDe(e,t=!0,r=!1){const i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[];let s,l,u,p=0,v=!1;function f(){return l=u,u=td.scan(),u===19?p++:u===20&&p--,u}function b(){const V=td.getTokenValue(),se=td.getTokenStart();return{fileName:V,pos:se,end:se+V.length}}function A(){s||(s=[]),s.push({ref:b(),depth:p})}function I(){o.push(b()),R()}function R(){p===0&&(v=!0)}function M(){let V=td.getToken();return V===138?(V=f(),V===144&&(V=f(),V===11&&A()),!0):!1}function C(){if(l===25)return!1;let V=td.getToken();if(V===102){if(V=f(),V===21){if(V=f(),V===11||V===15)return I(),!0}else{if(V===11)return I(),!0;if(V===156&&td.lookAhead(()=>{const G=td.scan();return G!==161&&(G===42||G===19||G===80||Gd(G))})&&(V=f()),V===80||Gd(V))if(V=f(),V===161){if(V=f(),V===11)return I(),!0}else if(V===64){if(U(!0))return!0}else if(V===28)V=f();else return!0;if(V===19){for(V=f();V!==20&&V!==1;)V=f();V===20&&(V=f(),V===161&&(V=f(),V===11&&I()))}else V===42&&(V=f(),V===130&&(V=f(),(V===80||Gd(V))&&(V=f(),V===161&&(V=f(),V===11&&I()))))}return!0}return!1}function W(){let V=td.getToken();if(V===95){if(R(),V=f(),V===156&&td.lookAhead(()=>{const G=td.scan();return G===42||G===19})&&(V=f()),V===19){for(V=f();V!==20&&V!==1;)V=f();V===20&&(V=f(),V===161&&(V=f(),V===11&&I()))}else if(V===42)V=f(),V===161&&(V=f(),V===11&&I());else if(V===102&&(V=f(),V===156&&td.lookAhead(()=>{const G=td.scan();return G===80||Gd(G)})&&(V=f()),(V===80||Gd(V))&&(V=f(),V===64&&U(!0))))return!0;return!0}return!1}function U(V,se=!1){let G=V?f():td.getToken();return G===149?(G=f(),G===21&&(G=f(),(G===11||se&&G===15)&&I()),!0):!1}function X(){let V=td.getToken();if(V===80&&td.getTokenValue()==="define"){if(V=f(),V!==21)return!0;if(V=f(),V===11||V===15)if(V=f(),V===28)V=f();else return!0;if(V!==23)return!0;for(V=f();V!==24&&V!==1;)(V===11||V===15)&&I(),V=f();return!0}return!1}function ee(){for(td.setText(e),f();td.getToken()!==1;){if(td.getToken()===16){const V=[td.getToken()];e:for(;Pe(V);){const se=td.scan();switch(se){case 1:break e;case 102:C();break;case 16:V.push(se);break;case 19:Pe(V)&&V.push(se);break;case 20:Pe(V)&&(il(V)===16?td.reScanTemplateToken(!1)===18&&V.pop():V.pop());break}}f()}M()||C()||W()||r&&(U(!1,!0)||X())||f()}td.setText(void 0)}if(t&&ee(),hq(i,e),gq(i,is),v){if(s)for(const V of s)o.push(V.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let V;if(s)for(const se of s)se.depth===0?(V||(V=[]),V.push(se.ref.fileName)):o.push(se.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:V}}}var rKe=S({"src/services/preProcess.ts"(){oi()}});function qde(e){const t=ku(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:p,toLineColumnOffset:A,clearCache:I};function s(R){return ll(R,r,t)}function l(R,M){const C=s(R),W=o.get(C);if(W)return W;let U;if(e.getDocumentPositionMapper)U=e.getDocumentPositionMapper(R,M);else if(e.readFile){const X=b(R);U=X&&gY({getSourceFileLike:b,getCanonicalFileName:t,log:ee=>e.log(ee)},R,uJ(X.text,wg(X)),ee=>!e.fileExists||e.fileExists(ee)?e.readFile(ee):void 0)}return o.set(C,U||mW),U||mW}function u(R){if(!Iu(R.fileName)||!v(R.fileName))return;const C=l(R.fileName).getSourcePosition(R);return!C||C===R?void 0:u(C)||C}function p(R){if(Iu(R.fileName))return;const M=v(R.fileName);if(!M)return;const C=e.getProgram();if(C.isSourceOfProjectReferenceRedirect(M.fileName))return;const W=C.getCompilerOptions(),U=Bs(W),X=U?Id(U)+".d.ts":W3(R.fileName,C.getCompilerOptions(),r,C.getCommonSourceDirectory(),t);if(X===void 0)return;const ee=l(X,R.fileName).getGeneratedPosition(R);return ee===R?void 0:ee}function v(R){const M=e.getProgram();if(!M)return;const C=s(R),W=M.getSourceFileByPath(C);return W&&W.resolvedPath===C?W:void 0}function f(R){const M=s(R),C=i.get(M);if(C!==void 0)return C||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(R)){i.set(M,!1);return}const W=e.readFile(R),U=W?iKe(W):!1;return i.set(M,U),U||void 0}function b(R){return e.getSourceFileLike?e.getSourceFileLike(R):v(R)||f(R)}function A(R,M){return b(R).getLineAndCharacterOfPosition(M)}function I(){i.clear(),o.clear()}}function gY(e,t,r,i){let o=Fle(r);if(o){const u=IDe.exec(o);if(u){if(u[1]){const p=u[1];return ADe(e,Foe(bu,p),t)}o=void 0}}const s=[];o&&s.push(o),s.push(t+".map");const l=o&&To(o,ii(t));for(const u of s){const p=To(u,ii(t)),v=i(p,l);if(wo(v))return ADe(e,v,p);if(v!==void 0)return v||void 0}}function ADe(e,t,r){const i=dJ(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(wo)))return Gle(e,i,r)}function iKe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return Zx(wg(this),r)}}}var IDe,oKe=S({"src/services/sourcemaps.ts"(){oi(),IDe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function vY(e,t,r){var i;t.getSemanticDiagnostics(e,r);const o=[],s=t.getTypeChecker();!(e.impliedNodeFormat===1||Rc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(ide(t)||RX(t.getCompilerOptions()))&&aKe(e)&&o.push(Fr(uKe(e.commonJsModuleIndicator),m.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const u=pd(e);if(SY.clear(),p(e),FS(t.getCompilerOptions()))for(const v of e.imports){const f=BN(v),b=sKe(f);if(!b)continue;const A=(i=t.getResolvedModuleFromModuleSpecifier(v))==null?void 0:i.resolvedModule,I=A&&t.getSourceFile(A.resolvedFileName);I&&I.externalModuleIndicator&&I.externalModuleIndicator!==!0&&zl(I.externalModuleIndicator)&&I.externalModuleIndicator.isExportEquals&&o.push(Fr(b,m.Import_may_be_converted_to_a_default_import))}return Hr(o,e.bindSuggestionDiagnostics),Hr(o,t.getSuggestionDiagnostics(e,r)),o.sort((v,f)=>v.start-f.start);function p(v){if(u)pKe(v,s)&&o.push(Fr(Wi(v.parent)?v.parent.name:v,m.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Fl(v)&&v.parent===e&&v.declarationList.flags&2&&v.declarationList.declarations.length===1){const b=v.declarationList.declarations[0].initializer;b&&Ad(b,!0)&&o.push(Fr(b,m.require_call_may_be_converted_to_an_import))}const f=Bu.getJSDocTypedefNodes(v);for(const b of f)o.push(Fr(b,m.JSDoc_typedef_may_be_converted_to_TypeScript_type));Bu.parameterShouldGetTypeFromJSDoc(v)&&o.push(Fr(v.name||v,m.JSDoc_types_may_be_moved_to_TypeScript_types))}EY(v)&&lKe(v,s,o),v.forEachChild(p)}}function aKe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&Ad(xDe(r.initializer),!0));case 244:{const{expression:r}=t;if(!vr(r))return Ad(r,!0);const i=ql(r);return i===1||i===2}default:return!1}})}function xDe(e){return Br(e)?xDe(e.expression):e}function sKe(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&La(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function lKe(e,t,r){cKe(e,t)&&!SY.has(CDe(e))&&r.push(Fr(!e.name&&Wi(e.parent)&&Ue(e.parent.name)?e.parent.name:e,m.This_may_be_converted_to_an_async_function))}function cKe(e,t){return!UN(e)&&e.body&&Yo(e.body)&&dKe(e.body,t)&&yY(e,t)}function yY(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function uKe(e){return vr(e)?e.left:e}function dKe(e,t){return!!B1(e,r=>t9(r,t))}function t9(e,t){return Mm(e)&&!!e.expression&&bY(e.expression,t)}function bY(e,t){if(!RDe(e)||!DDe(e)||!e.arguments.every(i=>NDe(i,t)))return!1;let r=e.expression.expression;for(;RDe(r)||Br(r);)if(ca(r)){if(!DDe(r)||!r.arguments.every(i=>NDe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function RDe(e){return ca(e)&&(bO(e,"then")||bO(e,"catch")||bO(e,"finally"))}function DDe(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||St(e.arguments,i=>i.kind===106||Ue(i)&&i.text==="undefined")}function NDe(e,t){switch(e.kind){case 262:case 218:if(Jc(e)&1)return!1;case 219:SY.set(CDe(e),!0);case 106:return!0;case 80:case 211:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||St(Tu(i,t).declarations,o=>ta(o)||Wy(o)&&!!o.initializer&&ta(o.initializer)):!1}default:return!1}}function CDe(e){return`${e.pos.toString()}:${e.end.toString()}`}function pKe(e,t){var r,i,o,s;if(Us(e)){if(Wi(e.parent)&&((r=e.symbol.members)==null?void 0:r.size))return!0;const l=t.getSymbolOfExpando(e,!1);return!!(l&&(((i=l.exports)==null?void 0:i.size)||((o=l.members)==null?void 0:o.size)))}return Dc(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function EY(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var SY,fKe=S({"src/services/suggestionDiagnostics.ts"(){oi(),SY=new Map}});function Jde(e,t){var A;const r=[],i=t.compilerOptions?TY(t.compilerOptions,r):{},o=T9();for(const I in o)Ls(o,I)&&i[I]===void 0&&(i[I]=o[I]);for(const I of Oq)i.verbatimModuleSyntax&&MDe.has(I.name)||(i[I.name]=I.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const s=Uv(i),l={getSourceFile:I=>I===va(u)?p:void 0,writeFile:(I,R)=>{Nl(I,".map")?(N.assertEqual(f,void 0,"Unexpected multiple source map outputs, file:",I),f=R):(N.assertEqual(v,void 0,"Unexpected multiple outputs, file:",I),v=R)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:I=>I,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:I=>I===u,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),p=Iw(u,e,{languageVersion:ps(i),impliedNodeFormat:lO(ll(u,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:kk(i),jsDocParsingMode:(A=t.jsDocParsingMode)!=null?A:0});t.moduleName&&(p.moduleName=t.moduleName),t.renamedDependencies&&(p.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let v,f;const b=OW([u],i,l);return t.reportDiagnostics&&(Hr(r,b.getSyntacticDiagnostics(p)),Hr(r,b.getOptionsDiagnostics())),b.emit(void 0,void 0,void 0,void 0,t.transformers),v===void 0?N.fail("Output generation failed"):{outputText:v,diagnostics:r,sourceMapText:f}}function PDe(e,t,r,i,o){const s=Jde(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Hr(i,s.diagnostics),s.outputText}function TY(e,t){Kde=Kde||Vn(fg,r=>typeof r.type=="object"&&!qc(r.type,i=>typeof i!="number")),e=EX(e);for(const r of Kde){if(!Ls(e,r.name))continue;const i=e[r.name];wo(i)?e[r.name]=O5(r,i,t):qc(r.type,o=>o===i)||t.push(zse(r))}return e}var MDe,Kde,mKe=S({"src/services/transpile.ts"(){oi(),MDe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function LDe(e,t,r,i,o,s,l){const u=Wde(i);if(!u)return et;const p=[],v=e.length===1?e[0]:void 0;for(const f of e)r.throwIfCancellationRequested(),!(s&&f.isDeclarationFile)&&(kDe(f,!!l,v)||f.getNamedDeclarations().forEach((b,A)=>{_Ke(u,A,b,t,f.fileName,!!l,v,p)}));return p.sort(yKe),(o===void 0?p:p.slice(0,o)).map(bKe)}function kDe(e,t,r){return e!==r&&t&&(BO(e.path)||e.hasNoDefaultLib)}function _Ke(e,t,r,i,o,s,l,u){const p=e.getMatchForLastSegmentOfPattern(t);if(!!p){for(const v of r)if(!!hKe(v,i,s,l))if(e.patternContainsDots){const f=e.getFullMatch(vKe(v),t);f&&u.push({name:t,fileName:o,matchKind:f.kind,isCaseSensitive:f.isCaseSensitive,declaration:v})}else u.push({name:t,fileName:o,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:v})}}function hKe(e,t,r,i){var o;switch(e.kind){case 273:case 276:case 271:const s=t.getSymbolAtLocation(e.name),l=t.getAliasedSymbol(s);return s.escapedName!==l.escapedName&&!((o=l.declarations)!=null&&o.every(u=>kDe(u.getSourceFile(),r,i)));default:return!0}}function gKe(e,t){const r=Oo(e);return!!r&&(wDe(r,t)||r.kind===167&&Xde(r.expression,t))}function Xde(e,t){return wDe(e,t)||Br(e)&&(t.push(e.name.text),!0)&&Xde(e.expression,t)}function wDe(e,t){return N_(e)&&(t.push(am(e)),!0)}function vKe(e){const t=[],r=Oo(e);if(r&&r.kind===167&&!Xde(r.expression,t))return et;t.shift();let i=aT(e);for(;i;){if(!gKe(i,t))return et;i=aT(i)}return t.reverse()}function yKe(e,t){return al(e.matchKind,t.matchKind)||eL(e.name,t.name)}function bKe(e){const t=e.declaration,r=aT(t),i=r&&Oo(r);return{name:e.name,kind:bE(t),kindModifiers:gP(t),matchKind:e9[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Nd(t),containerName:i?i.text:"",containerKind:i?bE(r):""}}var EKe=S({"src/services/navigateTo.ts"(){oi()}}),Yde={};H(Yde,{getNavigateToItems:()=>LDe});var ODe=S({"src/services/_namespaces/ts.NavigateTo.ts"(){EKe()}});function WDe(e,t){RY=t,UO=e;try{return Wt(xKe(GDe(e)),RKe)}finally{zDe()}}function FDe(e,t){RY=t,UO=e;try{return YDe(GDe(e))}finally{zDe()}}function zDe(){UO=void 0,RY=void 0,HO=[],ny=void 0,DY=[]}function n9(e){return DP(e.getText(UO))}function AY(e){return e.node.kind}function BDe(e,t){e.children?e.children.push(t):e.children=[t]}function GDe(e){N.assert(!HO.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};ny=t;for(const r of e.statements)zI(r);return W0(),N.assert(!ny&&!HO.length),t}function TE(e,t){BDe(ny,$de(e,t))}function $de(e,t){return{node:e,name:t||(Yu(e)||bt(e)?Oo(e):void 0),additionalNodes:void 0,parent:ny,children:void 0,indent:ny.indent+1}}function VDe(e){zR||(zR=new Map),zR.set(e,!0)}function jDe(e){for(let t=0;t<e;t++)W0()}function UDe(e,t){const r=[];for(;!N_(t);){const i=sk(t),o=Bg(t);t=t.expression,!(o==="prototype"||Qi(i))&&r.push(i)}r.push(t);for(let i=r.length-1;i>0;i--){const o=r[i];AE(e,o)}return[r.length-1,r[0]]}function AE(e,t){const r=$de(e,t);BDe(ny,r),HO.push(ny),ope.push(zR),zR=void 0,ny=r}function W0(){ny.children&&(IY(ny.children,ny),epe(ny.children)),ny=HO.pop(),zR=ope.pop()}function F0(e,t,r){AE(e,r),zI(t),W0()}function HDe(e){e.initializer&&NKe(e.initializer)?(AE(e),Uo(e.initializer,zI),W0()):F0(e,e.initializer)}function Qde(e){const t=Oo(e);if(t===void 0)return!1;if(ss(t)){const r=t.expression;return Jl(r)||Ep(r)||nf(r)}return!!t}function zI(e){if(RY.throwIfCancellationRequested(),!(!e||kA(e)))switch(e.kind){case 176:const t=e;F0(t,t.body);for(const l of t.parameters)gp(l,t)&&TE(l);break;case 174:case 177:case 178:case 173:Qde(e)&&F0(e,e.body);break;case 172:Qde(e)&&HDe(e);break;case 171:Qde(e)&&TE(e);break;case 273:const r=e;r.name&&TE(r.name);const{namedBindings:i}=r;if(i)if(i.kind===274)TE(i);else for(const l of i.elements)TE(l);break;case 304:F0(e,e.name);break;case 305:const{expression:o}=e;Ue(o)?TE(e,o):TE(e);break;case 208:case 303:case 260:{const l=e;na(l.name)?zI(l.name):HDe(l);break}case 262:const s=e.name;s&&Ue(s)&&VDe(s.text),F0(e,e.body);break;case 219:case 218:F0(e,e.body);break;case 266:AE(e);for(const l of e.members)DKe(l)||TE(l);W0();break;case 263:case 231:case 264:AE(e);for(const l of e.members)zI(l);W0();break;case 267:F0(e,QDe(e).body);break;case 277:{const l=e.expression,u=za(l)||ca(l)?l:Ks(l)||Us(l)?l.body:void 0;u?(AE(e),zI(u),W0()):TE(e);break}case 281:case 271:case 181:case 179:case 180:case 265:TE(e);break;case 213:case 226:{const l=ql(e);switch(l){case 1:case 2:F0(e,e.right);return;case 6:case 3:{const u=e,p=u.left,v=l===3?p.expression:p;let f=0,b;Ue(v.expression)?(VDe(v.expression.text),b=v.expression):[f,b]=UDe(u,v.expression),l===6?za(u.right)&&u.right.properties.length>0&&(AE(u,b),Uo(u.right,zI),W0()):Us(u.right)||Ks(u.right)?F0(e,u.right,b):(AE(u,b),F0(e,u.right,p.name),W0()),jDe(f);return}case 7:case 9:{const u=e,p=l===7?u.arguments[0]:u.arguments[0].expression,v=u.arguments[1],[f,b]=UDe(e,p);AE(e,b),AE(e,ut(O.createIdentifier(v.text),v)),zI(e.arguments[2]),W0(),W0(),jDe(f);return}case 5:{const u=e,p=u.left,v=p.expression;if(Ue(v)&&Bg(p)!=="prototype"&&zR&&zR.has(v.text)){Us(u.right)||Ks(u.right)?F0(e,u.right,v):j1(p)&&(AE(u,v),F0(u.left,u.right,sk(p)),W0());return}break}case 4:case 0:case 8:break;default:N.assertNever(l)}}default:zp(e)&&Ve(e.jsDoc,l=>{Ve(l.tags,u=>{om(u)&&TE(u)})}),Uo(e,zI)}}function IY(e,t){const r=new Map;Si(e,(i,o)=>{const s=i.name||Oo(i.node),l=s&&n9(s);if(!l)return!0;const u=r.get(l);if(!u)return r.set(l,i),!0;if(u instanceof Array){for(const p of u)if(qDe(p,i,o,t))return!1;return u.push(i),!0}else{const p=u;return qDe(p,i,o,t)?!1:(r.set(l,[p,i]),!0)}})}function SKe(e,t,r,i){function o(u){return Us(u)||Dc(u)||Wi(u)}const s=vr(t.node)||ca(t.node)?ql(t.node):0,l=vr(e.node)||ca(e.node)?ql(e.node):0;if(NP[s]&&NP[l]||o(e.node)&&NP[s]||o(t.node)&&NP[l]||Nc(e.node)&&Zde(e.node)&&NP[s]||Nc(t.node)&&NP[l]||Nc(e.node)&&Zde(e.node)&&o(t.node)||Nc(t.node)&&o(e.node)&&Zde(e.node)){let u=e.additionalNodes&&il(e.additionalNodes)||e.node;if(!Nc(e.node)&&!Nc(t.node)||o(e.node)||o(t.node)){const v=o(e.node)?e.node:o(t.node)?t.node:void 0;if(v!==void 0){const f=ut(O.createConstructorDeclaration(void 0,[],void 0),v),b=$de(f);b.indent=e.indent+1,b.children=e.node===v?e.children:t.children,e.children=e.node===v?Ro([b],t.children||[t]):Ro(e.children||[{...e}],[b])}else(e.children||t.children)&&(e.children=Ro(e.children||[{...e}],t.children||[t]),e.children&&(IY(e.children,e),epe(e.children)));u=e.node=ut(O.createClassDeclaration(void 0,e.name||O.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=Ro(e.children,t.children),e.children&&IY(e.children,e);const p=t.node;return i.children[r-1].node.end===u.end?ut(u,{pos:u.pos,end:p.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(ut(O.createClassDeclaration(void 0,e.name||O.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function qDe(e,t,r,i){return SKe(e,t,r,i)?!0:TKe(e.node,t.node,i)?(AKe(e,t),!0):!1}function TKe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(JDe(e,r)&&JDe(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return la(e)===la(t);case 267:return KDe(e,t)&&rpe(e)===rpe(t);default:return!0}}function Zde(e){return!!(e.flags&16)}function JDe(e,t){const r=O_(e.parent)?e.parent.parent:e.parent;return r===t.node||Mn(t.additionalNodes,r)}function KDe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||KDe(e.body,t.body))}function AKe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=Ro(e.children,t.children),e.children&&(IY(e.children,e),epe(e.children))}function epe(e){e.sort(IKe)}function IKe(e,t){return eL(XDe(e.node),XDe(t.node))||al(AY(e),AY(t))}function XDe(e){if(e.kind===267)return $De(e);const t=Oo(e);if(t&&pc(t)){const r=PS(t);return r&&Ki(r)}switch(e.kind){case 218:case 219:case 231:return eNe(e);default:return}}function tpe(e,t){if(e.kind===267)return DP($De(e));if(t){const r=Ue(t)?t.text:el(t)?`[${n9(t.argumentExpression)}]`:n9(t);if(r.length>0)return DP(r)}switch(e.kind){case 312:const r=e;return mc(r)?`"${ag(dc(Id(va(r.fileName))))}"`:"<global>";case 277:return zl(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Vy(e)&2048?"default":eNe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return"<unknown>"}}function xKe(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(AY(o)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return s(o);default:return!1}function s(l){if(!l.node.body)return!1;switch(AY(l.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function YDe(e){return{text:tpe(e.node,e.name),kind:bE(e.node),kindModifiers:ZDe(e.node),spans:npe(e),nameSpan:e.name&&ipe(e.name),childItems:Wt(e.children,YDe)}}function RKe(e){return{text:tpe(e.node,e.name),kind:bE(e.node),kindModifiers:ZDe(e.node),spans:npe(e),childItems:Wt(e.children,t)||DY,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:tpe(r.node,r.name),kind:bE(r.node),kindModifiers:gP(r.node),spans:npe(r),childItems:DY,indent:0,bolded:!1,grayed:!1}}}function npe(e){const t=[ipe(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(ipe(r));return t}function $De(e){return Ou(e)?bc(e.name):rpe(e)}function rpe(e){const t=[am(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(am(e.name));return t.join(".")}function QDe(e){return e.body&&nc(e.body)?QDe(e.body):e}function DKe(e){return!e.name||e.name.kind===167}function ipe(e){return e.kind===312?ob(e):Nd(e,UO)}function ZDe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),gP(e)}function eNe(e){const{parent:t}=e;if(e.name&&BL(e.name)>0)return DP(ks(e.name));if(Wi(t))return DP(ks(t.name));if(vr(t)&&t.operatorToken.kind===64)return n9(t.left).replace(nNe,"");if(Tc(t))return n9(t.name);if(Vy(e)&2048)return"default";if(di(e))return"<class>";if(ca(t)){let r=tNe(t.expression);if(r!==void 0){if(r=DP(r),r.length>xY)return`${r} callback`;const i=DP(Vi(t.arguments,o=>hs(o)||FA(o)?o.getText(UO):void 0).join(", "));return`${r}(${i}) callback`}}return"<function>"}function tNe(e){if(Ue(e))return e.text;if(Br(e)){const t=tNe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function NKe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function DP(e){return e=e.length>xY?e.substring(0,xY)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var nNe,xY,RY,UO,HO,ny,ope,zR,DY,NP,CKe=S({"src/services/navigationBar.ts"(){oi(),nNe=/\s+/g,xY=150,HO=[],ope=[],DY=[],NP={[5]:!0,[3]:!0,[7]:!0,[9]:!0,[0]:!1,[1]:!1,[2]:!1,[8]:!1,[6]:!0,[4]:!1}}}),ape={};H(ape,{getNavigationBarItems:()=>WDe,getNavigationTree:()=>FDe});var rNe=S({"src/services/_namespaces/ts.NavigationBar.ts"(){CKe()}});function mg(e,t){NY.set(e,t)}function PKe(e,t){return Go(Zf(NY.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>z0(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function MKe(e,t,r,i){const o=NY.get(t);return o&&o.getEditsForAction(e,r,i)}var NY,iNe=S({"src/services/refactorProvider.ts"(){oi(),Ch(),NY=new Map}});function oNe(e,t=!0){const{file:r,program:i}=e,o=FI(e),s=go(r,o.start),l=!!(s.parent&&Vy(s.parent)&32)&&t?s.parent:LO(s,r,o);if(!l||!io(l.parent)&&!(O_(l.parent)&&Ou(l.parent.parent)))return{error:zo(m.Could_not_find_export_statement)};const u=i.getTypeChecker(),p=FKe(l.parent,u),v=Vy(l)||(zl(l)&&!l.isExportEquals?2080:0),f=!!(v&2048);if(!(v&32)||!f&&p.exports.has("default"))return{error:zo(m.This_file_already_has_a_default_export)};const b=A=>Ue(A)&&u.getSymbolAtLocation(A)?void 0:{error:zo(m.Can_only_convert_named_export)};switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const A=l;return A.name?b(A.name)||{exportNode:A,exportName:A.name,wasDefault:f,exportingModuleSymbol:p}:void 0}case 243:{const A=l;if(!(A.declarationList.flags&2)||A.declarationList.declarations.length!==1)return;const I=$a(A.declarationList.declarations);return I.initializer?(N.assert(!f,"Can't have a default flag here"),b(I.name)||{exportNode:A,exportName:I.name,wasDefault:f,exportingModuleSymbol:p}):void 0}case 277:{const A=l;return A.isExportEquals?void 0:b(A.expression)||{exportNode:A,exportName:A.expression,wasDefault:f,exportingModuleSymbol:p}}default:return}}function LKe(e,t,r,i,o){kKe(e,r,i,t.getTypeChecker()),wKe(t,r,i,o)}function kKe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(zl(r)&&!r.isExportEquals){const l=r.expression,u=aNe(l.text,l.text);o.replaceNode(e,r,O.createExportDeclaration(void 0,!1,O.createNamedExports([u])))}else o.delete(e,N.checkDefined(LR(r,90),"Should find a default keyword in modifier list"));else{const l=N.checkDefined(LR(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:o.insertNodeAfter(e,l,O.createToken(90));break;case 243:const u=$a(r.declarationList.declarations);if(!Hs.Core.isSymbolReferencedInFile(i,s,e)&&!u.type){o.replaceNode(e,r,O.createExportDefault(N.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:o.deleteModifier(e,l),o.insertNodeAfter(e,r,O.createExportDefault(O.createIdentifier(i.text)));break;default:N.fail(`Unexpected exportNode kind ${r.kind}`)}}}function wKe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){const l=e.getTypeChecker(),u=N.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Hs.Core.eachExportReference(e.getSourceFiles(),l,s,u,i,r.text,t,p=>{if(r===p)return;const v=p.getSourceFile();t?OKe(v,p,o,r.text):WKe(v,p,o)})}function OKe(e,t,r,i){const{parent:o}=t;switch(o.kind){case 211:r.replaceNode(e,t,O.createIdentifier(i));break;case 276:case 281:{const l=o;r.replaceNode(e,l,spe(i,l.name.text));break}case 273:{const l=o;N.assert(l.name===t,"Import clause name should match provided ref");const u=spe(i,t.text),{namedBindings:p}=l;if(!p)r.replaceNode(e,t,O.createNamedImports([u]));else if(p.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:p.getStart(e)});const v=La(l.parent.moduleSpecifier)?NX(l.parent.moduleSpecifier,e):1,f=ey(void 0,[spe(i,t.text)],l.parent.moduleSpecifier,v);r.insertNodeAfter(e,l.parent,f)}else r.delete(e,t),r.insertNodeAtEndOfList(e,p.elements,u);break}case 205:const s=o;r.replaceNode(e,o,O.createImportTypeNode(s.argument,s.attributes,O.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:N.failBadSyntaxKind(o)}}function WKe(e,t,r){const i=t.parent;switch(i.kind){case 211:r.replaceNode(e,t,O.createIdentifier("default"));break;case 276:{const o=O.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,o):(r.delete(e,i),r.insertNodeBefore(e,i.parent,o));break}case 281:{r.replaceNode(e,i,aNe("default",i.name.text));break}default:N.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function spe(e,t){return O.createImportSpecifier(!1,e===t?void 0:O.createIdentifier(e),O.createIdentifier(t))}function aNe(e,t){return O.createExportSpecifier(!1,e===t?void 0:O.createIdentifier(e),O.createIdentifier(t))}function FKe(e,t){if(io(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&F1(r.valueDeclaration)?t.getMergedSymbol(r):r}var CY,r9,i9,zKe=S({"src/services/refactors/convertExport.ts"(){oi(),Ch(),CY="Convert export",r9={name:"Convert default export to named export",description:zo(m.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},i9={name:"Convert named export to default export",description:zo(m.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},mg(CY,{kinds:[r9.kind,i9.kind],getAvailableActions:function(t){const r=oNe(t,t.triggerReason==="invoked");if(!r)return et;if(!Yg(r)){const i=r.wasDefault?r9:i9;return[{name:CY,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:CY,description:zo(m.Convert_default_export_to_named_export),actions:[{...r9,notApplicableReason:r.error},{...i9,notApplicableReason:r.error}]}]:et},getEditsForAction:function(t,r){N.assert(r===r9.name||r===i9.name,"Unexpected action name");const i=oNe(t);return N.assert(i&&!Yg(i),"Expected applicable refactor info"),{edits:yr.ChangeTracker.with(t,s=>LKe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function sNe(e,t=!0){const{file:r}=e,i=FI(e),o=go(r,i.start),s=t?jn(o,Fc):LO(o,r,i);if(!s||!Fc(s))return{error:"Selection is not an import declaration."};const l=i.start+i.length,u=EE(s,s.parent,r);if(u&&l>u.getStart())return;const{importClause:p}=s;return p?p.namedBindings?p.namedBindings.kind===274?{convertTo:0,import:p.namedBindings}:lNe(e.program,p)?{convertTo:1,import:p.namedBindings}:{convertTo:2,import:p.namedBindings}:{error:zo(m.Could_not_find_namespace_import_or_named_imports)}:{error:zo(m.Could_not_find_import_clause)}}function lNe(e,t){return FS(e.getCompilerOptions())&&jKe(t.parent.moduleSpecifier,e.getTypeChecker())}function BKe(e,t,r,i){const o=t.getTypeChecker();i.convertTo===0?GKe(e,o,r,i.import,FS(t.getCompilerOptions())):uNe(e,t,r,i.import,i.convertTo===1)}function GKe(e,t,r,i,o){let s=!1;const l=[],u=new Map;Hs.Core.eachSymbolReferenceInFile(i.name,t,e,b=>{if(!oie(b.parent))s=!0;else{const A=cNe(b.parent).text;t.resolveName(A,b,-1,!0)&&u.set(A,!0),N.assert(VKe(b.parent)===b,"Parent expression should match id"),l.push(b.parent)}});const p=new Map;for(const b of l){const A=cNe(b).text;let I=p.get(A);I===void 0&&p.set(A,I=u.has(A)?cT(A,e):A),r.replaceNode(e,b,O.createIdentifier(I))}const v=[];p.forEach((b,A)=>{v.push(O.createImportSpecifier(!1,b===A?void 0:O.createIdentifier(A),O.createIdentifier(b)))});const f=i.parent.parent;s&&!o?r.insertNodeAfter(e,f,lpe(f,void 0,v)):r.replaceNode(e,f,lpe(f,s?O.createIdentifier(i.name.text):void 0,v))}function cNe(e){return Br(e)?e.name:e.right}function VKe(e){return Br(e)?e.expression:e.left}function uNe(e,t,r,i,o=lNe(t,i.parent)){const s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:u}=l,p=new Set;i.elements.forEach(R=>{const M=s.getSymbolAtLocation(R.name);M&&p.add(M)});const v=u&&La(u)?Bu.moduleSpecifierToValidIdentifier(u.text,99):"module";function f(R){return!!Hs.Core.eachSymbolReferenceInFile(R.name,s,e,M=>{const C=s.resolveName(v,M,-1,!0);return C?p.has(C)?$u(M.parent):!0:!1})}const A=i.elements.some(f)?cT(v,e):v,I=new Set;for(const R of i.elements){const M=(R.propertyName||R.name).text;Hs.Core.eachSymbolReferenceInFile(R.name,s,e,C=>{const W=O.createPropertyAccessExpression(O.createIdentifier(A),M);ip(C.parent)?r.replaceNode(e,C.parent,O.createPropertyAssignment(C.text,W)):$u(C.parent)?I.add(R):r.replaceNode(e,C,W)})}if(r.replaceNode(e,i,o?O.createIdentifier(A):O.createNamespaceImport(O.createIdentifier(A))),I.size){const R=Go(I.values(),M=>O.createImportSpecifier(M.isTypeOnly,M.propertyName&&O.createIdentifier(M.propertyName.text),O.createIdentifier(M.name.text)));r.insertNodeAfter(e,i.parent.parent,lpe(l,void 0,R))}}function jKe(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function lpe(e,t,r){return O.createImportDeclaration(void 0,O.createImportClause(!1,t,r&&r.length?O.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var PY,o9,UKe=S({"src/services/refactors/convertImport.ts"(){oi(),Ch(),PY="Convert import",o9={[0]:{name:"Convert namespace import to named imports",description:zo(m.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},[2]:{name:"Convert named imports to namespace import",description:zo(m.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},[1]:{name:"Convert named imports to default import",description:zo(m.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},mg(PY,{kinds:xA(o9).map(e=>e.kind),getAvailableActions:function(t){const r=sNe(t,t.triggerReason==="invoked");if(!r)return et;if(!Yg(r)){const i=o9[r.convertTo];return[{name:PY,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?xA(o9).map(i=>({name:PY,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):et},getEditsForAction:function(t,r){N.assert(St(xA(o9),s=>s.name===r),"Unexpected action name");const i=sNe(t);return N.assert(i&&!Yg(i),"Expected applicable refactor info"),{edits:yr.ChangeTracker.with(t,s=>BKe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function dNe(e,t=!0){const{file:r,startPosition:i}=e,o=pd(r),s=TF(FI(e)),l=s.pos===s.end&&t,u=HKe(r,i,s,l);if(!u||!Xi(u))return{error:zo(m.Selection_is_not_a_valid_type_node)};const p=e.program.getTypeChecker(),v=YKe(u,o);if(v===void 0)return{error:zo(m.No_type_could_be_extracted_from_this_type_node)};const f=$Ke(u,v);if(!Xi(f))return{error:zo(m.Selection_is_not_a_valid_type_node)};const b=[];(Yy(f.parent)||_I(f.parent))&&s.end>u.end&&Hr(b,f.parent.types.filter(M=>fF(M,r,s.pos,s.end)));const A=b.length>1?b:f,I=qKe(p,A,v,r);if(!I)return{error:zo(m.No_type_could_be_extracted_from_this_type_node)};const R=MY(p,A);return{isJS:o,selection:A,enclosingNode:v,typeParameters:I,typeElements:R}}function HKe(e,t,r,i){const o=[()=>go(e,t),()=>PR(e,t,()=>!0)];for(const s of o){const l=s(),u=fF(l,e,r.pos,r.end),p=jn(l,v=>v.parent&&Xi(v)&&!IE(r,v.parent,e)&&(i||u));if(p)return p}}function MY(e,t){if(!!t){if(Do(t)){const r=[];for(const i of t){const o=MY(e,i);if(!o)return;Hr(r,o)}return r}if(_I(t)){const r=[],i=new Map;for(const o of t.types){const s=MY(e,o);if(!s||!s.every(l=>l.name&&Pm(i,PO(l.name))))return;Hr(r,s)}return r}else{if(GS(t))return MY(e,t.type);if(Ap(t))return t.members}}}function IE(e,t,r){return AO(e,Wa(r.text,t.pos),t.end)}function qKe(e,t,r,i){const o=[],s=RA(t),l={pos:s[0].pos,end:s[s.length-1].end};for(const p of s)if(u(p))return;return o;function u(p){if(Cf(p)){if(Ue(p.typeName)){const v=p.typeName,f=e.resolveName(v.text,v,262144,!0);for(const b of(f==null?void 0:f.declarations)||et)if(El(b)&&b.getSourceFile()===i){if(b.name.escapedText===v.escapedText&&IE(b,l,i))return!0;if(IE(r,b,i)&&!IE(l,b,i)){Tf(o,b);break}}}}else if(BS(p)){const v=jn(p,f=>hI(f)&&IE(f.extendsType,p,i));if(!v||!IE(l,v,i))return!0}else if(lw(p)||uw(p)){const v=jn(p.parent,ta);if(v&&v.type&&IE(v.type,p,i)&&!IE(l,v,i))return!0}else if(fI(p)){if(Ue(p.exprName)){const v=e.resolveName(p.exprName.text,p.exprName,111551,!1);if((v==null?void 0:v.valueDeclaration)&&IE(r,v.valueDeclaration,i)&&!IE(l,v.valueDeclaration,i))return!0}else if(X1(p.exprName.left)&&!IE(l,p.parent,i))return!0}return i&&mI(p)&&Rs(i,p.pos).line===Rs(i,p.end).line&&hr(p,1),Uo(p,u)}}function JKe(e,t,r,i){const{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:u,newTypeNode:p}=cpe(i),v=O.createTypeAliasDeclaration(void 0,r,s.map(f=>O.updateTypeParameterDeclaration(f,f.modifiers,f.name,f.constraint,void 0)),p);e.insertNodeBefore(t,o,PH(v),!0),e.replaceNodeRange(t,l,u,O.createTypeReferenceNode(r,s.map(f=>O.createTypeReferenceNode(f.name,void 0))),{leadingTriviaOption:yr.LeadingTriviaOption.Exclude,trailingTriviaOption:yr.TrailingTriviaOption.ExcludeWhitespace})}function KKe(e,t,r,i){var o;const{enclosingNode:s,typeParameters:l,typeElements:u}=i,p=O.createInterfaceDeclaration(void 0,r,l,void 0,u);ut(p,(o=u[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,PH(p),!0);const{firstTypeNode:v,lastTypeNode:f}=cpe(i);e.replaceNodeRange(t,v,f,O.createTypeReferenceNode(r,l.map(b=>O.createTypeReferenceNode(b.name,void 0))),{leadingTriviaOption:yr.LeadingTriviaOption.Exclude,trailingTriviaOption:yr.TrailingTriviaOption.ExcludeWhitespace})}function XKe(e,t,r,i,o){var s;RA(o.selection).forEach(R=>{hr(R,7168)});const{enclosingNode:l,typeParameters:u}=o,{firstTypeNode:p,lastTypeNode:v,newTypeNode:f}=cpe(o),b=O.createJSDocTypedefTag(O.createIdentifier("typedef"),O.createJSDocTypeExpression(f),O.createIdentifier(i)),A=[];Ve(u,R=>{const M=i2(R),C=O.createTypeParameterDeclaration(void 0,R.name),W=O.createJSDocTemplateTag(O.createIdentifier("template"),M&&sa(M,pE),[C]);A.push(W)});const I=O.createJSDocComment(void 0,O.createNodeArray(Ro(A,[b])));if(r_(l)){const R=l.getStart(r),M=ty(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),I,{suffix:M+M+r.text.slice(LF(r.text,R-1),R)})}else e.insertNodeBefore(r,l,I,!0);e.replaceNodeRange(r,p,v,O.createTypeReferenceNode(i,u.map(R=>O.createTypeReferenceNode(R.name,void 0))))}function cpe(e){return Do(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:Yy(e.selection[0].parent)?O.createUnionTypeNode(e.selection):O.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function YKe(e,t){return jn(e,$i)||(t?jn(e,r_):void 0)}function $Ke(e,t){var r;return(r=jn(e,i=>i===t?"quit":!!(Yy(i.parent)||_I(i.parent))))!=null?r:e}var LY,a9,s9,l9,QKe=S({"src/services/refactors/extractType.ts"(){oi(),Ch(),LY="Extract type",a9={name:"Extract to type alias",description:zo(m.Extract_to_type_alias),kind:"refactor.extract.type"},s9={name:"Extract to interface",description:zo(m.Extract_to_interface),kind:"refactor.extract.interface"},l9={name:"Extract to typedef",description:zo(m.Extract_to_typedef),kind:"refactor.extract.typedef"},mg(LY,{kinds:[a9.kind,s9.kind,l9.kind],getAvailableActions:function(t){const r=dNe(t,t.triggerReason==="invoked");return r?Yg(r)?t.preferences.provideRefactorNotApplicableReason?[{name:LY,description:zo(m.Extract_type),actions:[{...l9,notApplicableReason:r.error},{...a9,notApplicableReason:r.error},{...s9,notApplicableReason:r.error}]}]:et:[{name:LY,description:zo(m.Extract_type),actions:r.isJS?[l9]:Rn([a9],r.typeElements&&s9)}]:et},getEditsForAction:function(t,r){const{file:i}=t,o=dNe(t);N.assert(o&&!Yg(o),"Expected to find a range to extract");const s=cT("NewType",i),l=yr.ChangeTracker.with(t,v=>{switch(r){case a9.name:return N.assert(!o.isJS,"Invalid actionName/JS combo"),JKe(v,i,s,o);case l9.name:return N.assert(o.isJS,"Invalid actionName/JS combo"),XKe(v,t,i,s,o);case s9.name:return N.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),KKe(v,i,s,o);default:N.fail("Unexpected action name")}}),u=i.fileName,p=OO(l,u,s,!1);return{edits:l,renameFilename:u,renameLocation:p}}})}});function Yg(e){return e.error!==void 0}function z0(e,t){return t?e.substr(0,t.length)===t:!0}var ZKe=S({"src/services/refactors/helpers.ts"(){}});function pNe(e,t,r,i){var o,s;const l=i.getTypeChecker(),u=jd(e,t),p=u.parent;if(!!Ue(u)){if(Mk(p)&&wN(p)&&Ue(p.name)){if(((o=l.getMergedSymbol(p.symbol).declarations)==null?void 0:o.length)!==1)return{error:zo(m.Variables_with_multiple_declarations_cannot_be_inlined)};if(fNe(p))return;const v=mNe(p,l,e);return v&&{references:v,declaration:p,replacement:p.initializer}}if(r){let v=l.resolveName(u.text,u,111551,!1);if(v=v&&l.getMergedSymbol(v),((s=v==null?void 0:v.declarations)==null?void 0:s.length)!==1)return{error:zo(m.Variables_with_multiple_declarations_cannot_be_inlined)};const f=v.declarations[0];if(!Mk(f)||!wN(f)||!Ue(f.name)||fNe(f))return;const b=mNe(f,l,e);return b&&{references:b,declaration:f,replacement:f.initializer}}return{error:zo(m.Could_not_find_variable_to_inline)}}}function fNe(e){const t=sa(e.parent.parent,Fl);return St(t.modifiers,uI)}function mNe(e,t,r){const i=[],o=Hs.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(Hs.isWriteAccessForReference(s)&&!ip(s.parent)||$u(s.parent)||zl(s.parent)||fI(s.parent)||EL(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function eXe(e,t){t=pl(t);const{parent:r}=e;return bt(r)&&(JN(t)<JN(r)||kF(r))||ta(t)&&(O1(r)||Br(r))||Br(r)&&(Ep(t)||za(t))?O.createParenthesizedExpression(t):Ue(e)&&ip(r)?O.createPropertyAssignment(e,t):t}var qO,kY,wY,tXe=S({"src/services/refactors/inlineVariable.ts"(){oi(),Ch(),qO="Inline variable",kY=zo(m.Inline_variable),wY={name:qO,description:kY,kind:"refactor.inline.variable"},mg(qO,{kinds:[wY.kind],getAvailableActions(e){const{file:t,program:r,preferences:i,startPosition:o,triggerReason:s}=e,l=pNe(t,o,s==="invoked",r);return l?BI.isRefactorErrorInfo(l)?i.provideRefactorNotApplicableReason?[{name:qO,description:kY,actions:[{...wY,notApplicableReason:l.error}]}]:et:[{name:qO,description:kY,actions:[wY]}]:et},getEditsForAction(e,t){N.assert(t===qO,"Unexpected refactor invoked");const{file:r,program:i,startPosition:o}=e,s=pNe(r,o,!0,i);if(!s||BI.isRefactorErrorInfo(s))return;const{references:l,declaration:u,replacement:p}=s;return{edits:yr.ChangeTracker.with(e,f=>{for(const b of l)f.replaceNode(r,b,eXe(b,p));f.delete(r,u)})}}})}});function nXe(e,t,r,i,o,s){const l=t.getTypeChecker(),u=d9(e,r.all,l),p=bpe(e,t,o,r);i.createNewFile(e,p,rXe(e,u,i,r,t,o,p,s)),upe(t,i,e.fileName,p,Gv(o))}function rXe(e,t,r,i,o,s,l,u){const p=o.getTypeChecker(),v=n6(e.statements,Nm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return c9(e,i.ranges,r),[...v,...i.all];const f=!tY(l,o,s,!!e.commonJsModuleIndicator),b=uf(e,u),A=mpe(e,t.oldFileImportsFromTargetFile,l,o,s,f,b);A&&yP(r,e,A,!0,u),dpe(e,i.all,r,t.unusedImportsFromOldFile,p),c9(e,i.ranges,r),ppe(r,o,s,e,t.movedSymbols,l,b);const I=iXe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,p,o,s,f,b),R=_pe(e,i.all,t.oldFileImportsFromTargetFile,f);return I.length&&R.length?[...v,...I,4,...R]:[...v,...I,...R]}function iXe(e,t,r,i,o,s,l,u,p){const v=[];for(const I of e.statements)XO(I,R=>{Rn(v,YO(R,KO(R),M=>t.has(o.getSymbolAtLocation(M))))});let f;const b=[],A=OI();return r.forEach(I=>{if(!!I.declarations)for(const R of I.declarations){if(!p9(R))continue;const M=vpe(R);if(!M)continue;const C=FY(R);A(C)&&ype(e,C,M,i,u),Qr(R,2048)?f=M:b.push(M.text)}}),Rn(v,u9(e,f,b,dc(e.fileName),s,l,u,p)),v}var JO,OY,WY,oXe=S({"src/services/refactors/moveToNewFile.ts"(){oi(),Ch(),JO="Move to a new file",OY=zo(m.Move_to_a_new_file),WY={name:JO,description:OY,kind:"refactor.move.newFile"},mg(JO,{kinds:[WY.kind],getAvailableActions:function(t){const r=$O(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:JO,description:OY,actions:[WY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:JO,description:OY,actions:[{...WY,notApplicableReason:zo(m.Selection_is_not_a_valid_statement_or_statements)}]}]:et},getEditsForAction:function(t,r){N.assert(r===JO,"Wrong refactor invoked");const i=N.checkDefined($O(t));return{edits:yr.ChangeTracker.with(t,s=>nXe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function _Ne(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function aXe(e,t,r,i,o,s,l,u){const p=i.getTypeChecker();if(!l.fileExists(r))s.createNewFile(t,r,hNe(t,r,d9(t,o.all,p),s,o,i,l,u)),upe(i,s,t.fileName,r,Gv(l));else{const v=N.checkDefined(i.getSourceFile(r)),f=Bu.createImportAdder(v,e.program,e.preferences,e.host);hNe(t,v,d9(t,o.all,p,IXe(v,o.all,p)),s,o,i,l,u,f)}}function hNe(e,t,r,i,o,s,l,u,p){const v=s.getTypeChecker(),f=n6(e.statements,Nm);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return c9(e,o.ranges,i),[...f,...o.all];const b=typeof t=="string"?t:t.fileName,A=!tY(b,s,l,!!e.commonJsModuleIndicator),I=uf(e,u),R=mpe(e,r.oldFileImportsFromTargetFile,b,s,l,A,I);R&&yP(i,e,R,!0,u),dpe(e,o.all,i,r.unusedImportsFromOldFile,v),c9(e,o.ranges,i),ppe(i,s,l,e,r.movedSymbols,b,I);const M=sXe(e,b,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,v,s,l,A,I,p),C=_pe(e,o.all,r.oldFileImportsFromTargetFile,A);return typeof t!="string"&&(t.statements.length>0?AXe(i,s,C,t,o):i.insertNodesAtEndOfFile(t,C,!1),M.length>0&&yP(i,t,M,!0,u)),p&&p.writeFixes(i,I),M.length&&C.length?[...f,...M,4,...C]:[...f,...M,...C]}function sXe(e,t,r,i,o,s,l,u,p,v,f){const b=[];if(f)r.forEach((C,W)=>{try{f.addImportFromExportedSymbol(Tu(W,s),C)}catch{for(const U of e.statements)XO(U,X=>{Rn(b,YO(X,O.createStringLiteral(KO(X).text),ee=>r.has(s.getSymbolAtLocation(ee))))})}});else{const C=l.getSourceFile(t);for(const W of e.statements)XO(W,U=>{var X;const ee=KO(U),V=l.getCompilerOptions(),se=l.getResolvedModuleFromModuleSpecifier(ee),G=(X=se==null?void 0:se.resolvedModule)==null?void 0:X.resolvedFileName;if(G&&C){const re=iW(V,C,C.fileName,G,sT(l,u));Rn(b,YO(U,WI(re,v),_e=>r.has(s.getSymbolAtLocation(_e))))}else Rn(b,YO(U,O.createStringLiteral(KO(U).text),re=>r.has(s.getSymbolAtLocation(re))))})}const A=l.getSourceFile(t);let I;const R=[],M=OI();return i.forEach(C=>{if(!!C.declarations)for(const W of C.declarations){if(!p9(W))continue;const U=vpe(W);if(!U)continue;const X=FY(W);M(X)&&ype(e,X,U,o,p),f&&s.isUnknownSymbol(C)?f.addImportFromExportedSymbol(Tu(C,s)):Qr(W,2048)?I=U:R.push(U.text)}}),A?Rn(b,u9(A,I,R,e.fileName,l,u,p,v)):Rn(b,u9(e,I,R,e.fileName,l,u,p,v))}function upe(e,t,r,i,o){const s=e.getCompilerOptions().configFile;if(!s)return;const l=va($r(r,"..",i)),u=pL(s.fileName,l,o),p=s.statements[0]&&ni(s.statements[0].expression,za),v=p&&un(p.properties,f=>Tc(f)&&La(f.name)&&f.name.text==="files");v&&hd(v.initializer)&&t.insertNodeInListAfter(s,rs(v.initializer.elements),O.createStringLiteral(u),v.initializer.elements)}function c9(e,t,r){for(const{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function dpe(e,t,r,i,o){for(const s of e.statements)Mn(t,s)||XO(s,l=>hpe(e,l,r,u=>i.has(o.getSymbolAtLocation(u))))}function ppe(e,t,r,i,o,s,l){const u=t.getTypeChecker();for(const p of t.getSourceFiles())if(p!==i)for(const v of p.statements)XO(v,f=>{if(u.getSymbolAtLocation(KO(f))!==i.symbol)return;const b=C=>{const W=os(C.parent)?CF(u,C.parent):Tu(u.getSymbolAtLocation(C),u);return!!W&&o.has(W)};hpe(p,f,e,b);const A=Ny(ii(i.path),s),I=iW(t.getCompilerOptions(),p,p.fileName,A,sT(t,r)),R=YO(f,WI(I,l),b);R&&e.insertNodeAfter(p,v,R);const M=lXe(f);M&&cXe(e,p,u,o,I,M,f,l)})}function lXe(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return ni(e.name,Ue);default:return N.assertNever(e,`Unexpected node kind ${e.kind}`)}}function cXe(e,t,r,i,o,s,l,u){const p=Bu.moduleSpecifierToValidIdentifier(o,99);let v=!1;const f=[];if(Hs.Core.eachSymbolReferenceInFile(s,r,t,b=>{!Br(b.parent)||(v=v||!!r.resolveName(p,b,-1,!0),i.has(r.getSymbolAtLocation(b.parent.name))&&f.push(b))}),f.length){const b=v?cT(p,t):p;for(const A of f)e.replaceNode(t,A,O.createIdentifier(b));e.insertNodeAfter(t,l,uXe(l,p,o,u))}}function uXe(e,t,r,i){const o=O.createIdentifier(t),s=WI(r,i);switch(e.kind){case 272:return O.createImportDeclaration(void 0,O.createImportClause(!1,void 0,O.createNamespaceImport(o)),s,void 0);case 271:return O.createImportEqualsDeclaration(void 0,!1,o,O.createExternalModuleReference(s));case 260:return O.createVariableDeclaration(o,void 0,void 0,fpe(s));default:return N.assertNever(e,`Unexpected node kind ${e.kind}`)}}function fpe(e){return O.createCallExpression(O.createIdentifier("require"),void 0,[e])}function KO(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function XO(e,t){if(Fc(e))La(e.moduleSpecifier)&&t(e);else if(au(e))Rh(e.moduleReference)&&hs(e.moduleReference.expression)&&t(e);else if(Fl(e))for(const r of e.declarationList.declarations)r.initializer&&Ad(r.initializer,!0)&&t(r)}function mpe(e,t,r,i,o,s,l){let u;const p=[];return t.forEach(v=>{v.escapedName==="default"?u=O.createIdentifier(RF(v)):p.push(v.name)}),u9(e,u,p,r,i,o,s,l)}function u9(e,t,r,i,o,s,l,u){const p=Ny(ii(e.path),i),v=iW(o.getCompilerOptions(),e,e.fileName,p,sT(o,s));if(l){const f=r.map(b=>O.createImportSpecifier(!1,void 0,O.createIdentifier(b)));return ode(t,f,v,u)}else{N.assert(!t,"No default import should exist");const f=r.map(b=>O.createBindingElement(void 0,void 0,b));return f.length?gNe(O.createObjectBindingPattern(f),void 0,fpe(WI(v,u))):void 0}}function gNe(e,t,r,i=2){return O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(e,void 0,t,r)],i))}function _pe(e,t,r,i){return qi(t,o=>{if(yNe(o)&&!vNe(e,o,i)&&Tpe(o,s=>{var l;return r.has(N.checkDefined((l=ni(s,x_))==null?void 0:l.symbol))})){const s=fXe(pl(o),i);if(s)return s}return pl(o)})}function vNe(e,t,r,i){var o;return r?!ou(t)&&Qr(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)==null?void 0:o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&gpe(t).some(s=>e.symbol.exports.has(bl(s)))}function hpe(e,t,r,i){switch(t.kind){case 272:dXe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:pXe(e,t,r,i);break;default:N.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function dXe(e,t,r,i){if(!t.importClause)return;const{name:o,namedBindings:s}=t.importClause,l=!o||i(o),u=!s||(s.kind===274?i(s.name):s.elements.length!==0&&s.elements.every(p=>i(p.name)));if(l&&u)r.delete(e,t);else if(o&&l&&r.delete(e,o),s){if(u)r.replaceNode(e,t.importClause,O.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===275)for(const p of s.elements)i(p.name)&&r.delete(e,p)}}function pXe(e,t,r,i){const{name:o}=t;switch(o.kind){case 80:i(o)&&(t.initializer&&Ad(t.initializer,!0)?r.delete(e,Xc(t.parent)&&Pe(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,o));break;case 207:break;case 206:if(o.elements.every(s=>Ue(s.name)&&i(s.name)))r.delete(e,Xc(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const s of o.elements)Ue(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function yNe(e){return N.assert(io(e.parent),"Node parent should be a SourceFile"),ANe(e)||Fl(e)}function fXe(e,t){return t?[mXe(e)]:_Xe(e)}function mXe(e){const t=km(e)?Ro([O.createModifier(95)],L1(e)):void 0;switch(e.kind){case 262:return O.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const r=QS(e)?Py(e):void 0;return O.updateClassDeclaration(e,Ro(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return O.updateVariableStatement(e,t,e.declarationList);case 267:return O.updateModuleDeclaration(e,t,e.name,e.body);case 266:return O.updateEnumDeclaration(e,t,e.name,e.members);case 265:return O.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return O.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return O.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return N.fail();default:return N.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function _Xe(e){return[e,...gpe(e).map(bNe)]}function bNe(e){return O.createExpressionStatement(O.createBinaryExpression(O.createPropertyAccessExpression(O.createIdentifier("exports"),O.createIdentifier(e)),64,O.createIdentifier(e)))}function gpe(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Vi(e.declarationList.declarations,t=>Ue(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return et;case 244:return N.fail("Can't export an ExpressionStatement");default:return N.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function YO(e,t,r){switch(e.kind){case 272:{const i=e.importClause;if(!i)return;const o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&hXe(i.namedBindings,r);return o||s?O.createImportDeclaration(void 0,O.createImportClause(i.isTypeOnly,o,s),pl(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{const i=gXe(e.name,r);return i?gNe(i,e.type,fpe(t),e.parent.flags):void 0}default:return N.assertNever(e,`Unexpected import kind ${e.kind}`)}}function hXe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{const r=e.elements.filter(i=>t(i.name));return r.length?O.createNamedImports(r):void 0}}function gXe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const r=e.elements.filter(i=>i.propertyName||!Ue(i.name)||t(i.name));return r.length?O.createObjectBindingPattern(r):void 0}}}function vpe(e){return ou(e)?ni(e.expression.left.name,Ue):ni(e.name,Ue)}function FY(e){switch(e.kind){case 260:return e.parent.parent;case 208:return FY(sa(e.parent.parent,t=>Wi(t)||os(t)));default:return e}}function ype(e,t,r,i,o){if(!vNe(e,t,o,r))if(o)ou(t)||i.insertExportModifier(e,t);else{const s=gpe(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(bNe))}}function bpe(e,t,r,i){const o=t.getTypeChecker();if(i){const s=d9(e,i.all,o),l=ii(e.fileName),u=uC(e.fileName);return $r(l,EXe(SXe(s.oldFileImportsFromTargetFile,s.movedSymbols),u,l,r))+u}return""}function vXe(e){const{file:t}=e,r=TF(FI(e)),{statements:i}=t;let o=Ji(i,v=>v.end>r.pos);if(o===-1)return;const s=i[o],l=INe(t,s);l&&(o=l.start);let u=Ji(i,v=>v.end>=r.end,o);u!==-1&&r.end<=i[u].getStart()&&u--;const p=INe(t,i[u]);return p&&(u=p.end),{toMove:i.slice(o,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function $O(e){const t=vXe(e);if(t===void 0)return;const r=[],i=[],{toMove:o,afterLast:s}=t;return yG(o,yXe,(l,u)=>{for(let p=l;p<u;p++)r.push(o[p]);i.push({first:o[l],afterLast:s})}),r.length===0?void 0:{all:r,ranges:i}}function Epe(e){return un(e,t=>!!(t.transformFlags&2))}function yXe(e){return!bXe(e)&&!Nm(e)}function bXe(e){switch(e.kind){case 272:return!0;case 271:return!Qr(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Ad(t.initializer,!0));default:return!1}}function d9(e,t,r,i=new Set){const o=new Set,s=new Map,l=new Set,u=f(Epe(t));u&&s.set(u,!1);for(const b of t)Tpe(b,A=>{o.add(N.checkDefined(ou(A)?r.getSymbolAtLocation(A.expression.left):A.symbol,"Need a symbol here"))});const p=new Set;for(const b of t)Spe(b,r,(A,I)=>{if(!!A.declarations){if(i.has(Tu(A,r))){p.add(A);return}for(const R of A.declarations)if(ENe(R)){const M=s.get(A);s.set(A,(M===void 0||M)&&I)}else p9(R)&&TXe(R)===e&&!o.has(A)&&l.add(A)}});for(const b of s.keys())p.add(b);const v=new Set;for(const b of e.statements)Mn(t,b)||(u&&!!(b.transformFlags&2)&&p.delete(u),Spe(b,r,A=>{o.has(A)&&v.add(A),p.delete(A)}));return{movedSymbols:o,targetFileImportsFromOldFile:l,oldFileImportsFromTargetFile:v,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:p};function f(b){if(b===void 0)return;const A=r.getJsxNamespace(b),I=r.resolveName(A,b,1920,!0);return!!I&&St(I.declarations,ENe)?I:void 0}}function EXe(e,t,r,i){let o=e;for(let s=1;;s++){const l=$r(r,o+t);if(!i.fileExists(l))return o;o=`${e}.${s}`}}function SXe(e,t){return vh(e,RF)||vh(t,RF)||"newFile"}function Spe(e,t,r){e.forEachChild(function i(o){if(Ue(o)&&!Gg(o)){const s=t.getSymbolAtLocation(o);s&&r(s,T0(o))}else o.forEachChild(i)})}function Tpe(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return $t(e.declarationList.declarations,r=>TNe(r.name,t));case 244:{const{expression:r}=e;return vr(r)&&ql(r)===1?t(e):void 0}}}function ENe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return SNe(e);case 208:return Wi(e.parent.parent)&&SNe(e.parent.parent);default:return!1}}function SNe(e){return io(e.parent.parent.parent)&&!!e.initializer&&Ad(e.initializer,!0)}function p9(e){return ANe(e)&&io(e.parent)||Wi(e)&&io(e.parent.parent.parent)}function TXe(e){return Wi(e)?e.parent.parent.parent:e.parent}function TNe(e,t){switch(e.kind){case 80:return t(sa(e.parent,r=>Wi(r)||os(r)));case 207:case 206:return $t(e.elements,r=>Kc(r)?void 0:TNe(r.name,t));default:return N.assertNever(e,`Unexpected name kind ${e.kind}`)}}function ANe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function AXe(e,t,r,i,o){var s;const l=new Set,u=(s=i.symbol)==null?void 0:s.exports;if(u){const v=t.getTypeChecker(),f=new Map;for(const b of o.all)yNe(b)&&Qr(b,32)&&Tpe(b,A=>{var I;const R=x_(A)?(I=u.get(A.symbol.escapedName))==null?void 0:I.declarations:void 0,M=$t(R,C=>rc(C)?C:$u(C)?ni(C.parent.parent,rc):void 0);M&&M.moduleSpecifier&&f.set(M,(f.get(M)||new Set).add(A))});for(const[b,A]of Go(f))if(b.exportClause&&Pf(b.exportClause)&&Pe(b.exportClause.elements)){const I=b.exportClause.elements,R=Vn(I,M=>un(Tu(M.symbol,v).declarations,C=>p9(C)&&A.has(C))===void 0);if(Pe(R)===0){e.deleteNode(i,b),l.add(b);continue}Pe(R)<Pe(I)&&e.replaceNode(i,b,O.updateExportDeclaration(b,b.modifiers,b.isTypeOnly,O.updateNamedExports(b.exportClause,O.createNodeArray(R,I.hasTrailingComma)),b.moduleSpecifier,b.attributes))}}const p=Mi(i.statements,v=>rc(v)&&!!v.moduleSpecifier&&!l.has(v));p?e.insertNodesBefore(i,p,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function INe(e,t){if(Js(t)){const r=t.symbol.declarations;if(r===void 0||Pe(r)<=1||!Mn(r,t))return;const i=r[0],o=r[Pe(r)-1],s=Vi(r,p=>Jn(p)===e&&$i(p)?p:void 0),l=Ji(e.statements,p=>p.end>=o.end),u=Ji(e.statements,p=>p.end>=i.end);return{toMove:s,start:u,end:l}}}function IXe(e,t,r){const i=new Set;for(const o of e.imports){const s=BN(o);if(Fc(s)&&s.importClause&&s.importClause.namedBindings&&qg(s.importClause.namedBindings))for(const l of s.importClause.namedBindings.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(Tu(u,r))}if(A3(s.parent)&&pm(s.parent.name))for(const l of s.parent.name.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(Tu(u,r))}}for(const o of t)Spe(o,r,s=>{const l=Tu(s,r);l.valueDeclaration&&Jn(l.valueDeclaration)===e&&i.add(l)});return i}var f9,zY,BY,xXe=S({"src/services/refactors/moveToFile.ts"(){Nle(),oi(),iNe(),f9="Move to file",zY=zo(m.Move_to_file),BY={name:"Move to file",description:zY,kind:"refactor.move.file"},mg(f9,{kinds:[BY.kind],getAvailableActions:function(t,r){const i=$O(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:f9,description:zY,actions:[BY]}]:t.preferences.provideRefactorNotApplicableReason?[{name:f9,description:zY,actions:[{...BY,notApplicableReason:zo(m.Selection_is_not_a_valid_statement_or_statements)}]}]:et:et},getEditsForAction:function(t,r,i){N.assert(r===f9,"Wrong refactor invoked");const o=N.checkDefined($O(t)),{host:s,program:l}=t;N.assert(i,"No interactive refactor arguments available");const u=i.targetFile;return $1(u)||eI(u)?s.fileExists(u)&&l.getSourceFile(u)===void 0?_Ne(zo(m.Cannot_move_statements_to_the_selected_file)):{edits:yr.ChangeTracker.with(t,v=>aXe(t,t.file,i.targetFile,t.program,o,v,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:_Ne(zo(m.Cannot_move_to_file_selected_file_is_invalid))}})}});function RXe(e){const{file:t,startPosition:r,program:i}=e;return RNe(t,r,i)?[{name:GY,description:Ape,actions:[Ipe]}]:et}function DXe(e){const{file:t,startPosition:r,program:i}=e,o=RNe(t,r,i);if(!o)return;const s=i.getTypeChecker(),l=o[o.length-1];let u=l;switch(l.kind){case 173:{u=O.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,v(o),l.type);break}case 174:{u=O.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,v(o),l.type,l.body);break}case 179:{u=O.updateCallSignature(l,l.typeParameters,v(o),l.type);break}case 176:{u=O.updateConstructorDeclaration(l,l.modifiers,v(o),l.body);break}case 180:{u=O.updateConstructSignature(l,l.typeParameters,v(o),l.type);break}case 262:{u=O.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,v(o),l.type,l.body);break}default:return N.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(u===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:yr.ChangeTracker.with(e,A=>{A.replaceNodeRange(t,o[0],o[o.length-1],u)})};function v(A){const I=A[A.length-1];return Js(I)&&I.body&&(A=A.slice(0,A.length-1)),O.createNodeArray([O.createParameterDeclaration(void 0,O.createToken(26),"args",void 0,O.createUnionTypeNode(Wt(A,f)))])}function f(A){const I=Wt(A.parameters,b);return hr(O.createTupleTypeNode(I),St(I,R=>!!Pe(K2(R)))?0:1)}function b(A){N.assert(Ue(A.name));const I=ut(O.createNamedTupleMember(A.dotDotDotToken,A.name,A.questionToken,A.type||O.createKeywordTypeNode(133)),A),R=A.symbol&&A.symbol.getDocumentationComment(s);if(R){const M=i4(R);M.length&&I0(I,[{text:`*
${M.split(`
`).map(C=>` * ${C}`).join(`
`)}
`,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return I}}function xNe(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function RNe(e,t,r){const i=go(e,t),o=jn(i,xNe);if(!o||Js(o)&&o.body&&SO(o.body,t))return;const s=r.getTypeChecker(),l=o.symbol;if(!l)return;const u=l.declarations;if(Pe(u)<=1||!Bn(u,A=>Jn(A)===e)||!xNe(u[0]))return;const p=u[0].kind;if(!Bn(u,A=>A.kind===p))return;const v=u;if(St(v,A=>!!A.typeParameters||St(A.parameters,I=>!!I.modifiers||!Ue(I.name))))return;const f=Vi(v,A=>s.getSignatureFromDeclaration(A));if(Pe(f)!==Pe(u))return;const b=s.getReturnTypeOfSignature(f[0]);if(!!Bn(f,A=>s.getReturnTypeOfSignature(A)===b))return v}var GY,Ape,Ipe,NXe=S({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){oi(),Ch(),GY="Convert overload list to single signature",Ape=zo(m.Convert_overload_list_to_single_signature),Ipe={name:GY,description:Ape,kind:"refactor.rewrite.function.overloadList"},mg(GY,{kinds:[Ipe.kind],getEditsForAction:DXe,getAvailableActions:RXe})}});function CXe(e){const{file:t,startPosition:r,triggerReason:i}=e,o=DNe(t,r,i==="invoked");return o?Yg(o)?e.preferences.provideRefactorNotApplicableReason?[{name:VY,description:xpe,actions:[{...m9,notApplicableReason:o.error},{...QO,notApplicableReason:o.error}]}]:et:[{name:VY,description:xpe,actions:[o.addBraces?m9:QO]}]:et}function PXe(e,t){const{file:r,startPosition:i}=e,o=DNe(r,i);N.assert(o&&!Yg(o),"Expected applicable refactor info");const{expression:s,returnStatement:l,func:u}=o;let p;if(t===m9.name){const f=O.createReturnStatement(s);p=O.createBlock([f],!0),OR(s,f,r,3,!0)}else if(t===QO.name&&l){const f=s||O.createVoidZero();p=kF(f)?O.createParenthesizedExpression(f):f,WO(l,p,r,3,!1),OR(l,p,r,3,!1),TP(l,p,r,3,!1)}else N.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:yr.ChangeTracker.with(e,f=>{f.replaceNode(r,u.body,p)})}}function DNe(e,t,r=!0,i){const o=go(e,t),s=Vp(o);if(!s)return{error:zo(m.Could_not_find_a_containing_arrow_function)};if(!Ks(s))return{error:zo(m.Containing_function_is_not_an_arrow_function)};if(!(!cf(s,o)||cf(s.body,o)&&!r)){if(z0(m9.kind,i)&&bt(s.body))return{func:s,addBraces:!0,expression:s.body};if(z0(QO.kind,i)&&Yo(s.body)&&s.body.statements.length===1){const l=$a(s.body.statements);if(Mm(l)){const u=l.expression&&za(B2(l.expression,!1))?O.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:u,returnStatement:l}}}}}var VY,xpe,m9,QO,MXe=S({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){oi(),Ch(),VY="Add or remove braces in an arrow function",xpe=zo(m.Add_or_remove_braces_in_an_arrow_function),m9={name:"Add braces to arrow function",description:zo(m.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},QO={name:"Remove braces from arrow function",description:zo(m.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},mg(VY,{kinds:[QO.kind],getEditsForAction:PXe,getAvailableActions:CXe})}}),LXe={},kXe=S({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){NXe(),MXe()}});function wXe(e){const{file:t,startPosition:r,program:i,kind:o}=e,s=CNe(t,r,i);if(!s)return et;const{selectedVariableDeclaration:l,func:u}=s,p=[],v=[];if(z0(e4.kind,o)){const f=l||Ks(u)&&Wi(u.parent)?void 0:zo(m.Could_not_convert_to_named_function);f?v.push({...e4,notApplicableReason:f}):p.push(e4)}if(z0(ZO.kind,o)){const f=!l&&Ks(u)?void 0:zo(m.Could_not_convert_to_anonymous_function);f?v.push({...ZO,notApplicableReason:f}):p.push(ZO)}if(z0(t4.kind,o)){const f=Us(u)?void 0:zo(m.Could_not_convert_to_arrow_function);f?v.push({...t4,notApplicableReason:f}):p.push(t4)}return[{name:Rpe,description:LNe,actions:p.length===0&&e.preferences.provideRefactorNotApplicableReason?v:p}]}function OXe(e,t){const{file:r,startPosition:i,program:o}=e,s=CNe(r,i,o);if(!s)return;const{func:l}=s,u=[];switch(t){case ZO.name:u.push(...BXe(e,l));break;case e4.name:const p=zXe(l);if(!p)return;u.push(...GXe(e,l,p));break;case t4.name:if(!Us(l))return;u.push(...VXe(e,l));break;default:return N.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function NNe(e){let t=!1;return e.forEachChild(function r(i){if(CR(i)){t=!0;return}!di(i)&&!Dc(i)&&!Us(i)&&Uo(i,r)}),t}function CNe(e,t,r){const i=go(e,t),o=r.getTypeChecker(),s=FXe(e,o,i.parent);if(s&&!NNe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};const l=Vp(i);if(l&&(Us(l)||Ks(l))&&!cf(l.body,i)&&!NNe(l.body)&&!o.containsArgumentsReference(l))return Us(l)&&MNe(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function WXe(e){return Wi(e)||Xc(e)&&e.declarations.length===1}function FXe(e,t,r){if(!WXe(r))return;const o=(Wi(r)?r:$a(r.declarations)).initializer;if(o&&(Ks(o)||Us(o)&&!MNe(e,t,o)))return o}function PNe(e){if(bt(e)){const t=O.createReturnStatement(e),r=e.getSourceFile();return ut(t,e),Rp(t),WO(e,t,r,void 0,!0),O.createBlock([t],!0)}else return e}function zXe(e){const t=e.parent;if(!Wi(t)||!wN(t))return;const r=t.parent,i=r.parent;if(!(!Xc(r)||!Fl(i)||!Ue(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function BXe(e,t){const{file:r}=e,i=PNe(t.body),o=O.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return yr.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function GXe(e,t,r){const{file:i}=e,o=PNe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:u,name:p}=r;jX(u);const v=c0(s)&32|fd(t),f=O.createModifiersFromModifierFlags(v),b=O.createFunctionDeclaration(Pe(f)?f:void 0,t.asteriskToken,p,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?yr.ChangeTracker.with(e,A=>A.replaceNode(i,u,b)):yr.ChangeTracker.with(e,A=>{A.delete(i,s),A.insertNodeAfter(i,u,b)})}function VXe(e,t){const{file:r}=e,o=t.body.statements[0];let s;jXe(t.body,o)?(s=o.expression,Rp(s),lT(o,s)):s=t.body;const l=O.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,O.createToken(39),s);return yr.ChangeTracker.with(e,u=>u.replaceNode(r,t,l))}function jXe(e,t){return e.statements.length===1&&Mm(t)&&!!t.expression}function MNe(e,t,r){return!!r.name&&Hs.Core.isSymbolReferencedInFile(r.name,t,e)}var Rpe,LNe,ZO,e4,t4,UXe=S({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){oi(),Ch(),Rpe="Convert arrow function or function expression",LNe=zo(m.Convert_arrow_function_or_function_expression),ZO={name:"Convert to anonymous function",description:zo(m.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},e4={name:"Convert to named function",description:zo(m.Convert_to_named_function),kind:"refactor.rewrite.function.named"},t4={name:"Convert to arrow function",description:zo(m.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},mg(Rpe,{kinds:[ZO.kind,e4.kind,t4.kind],getEditsForAction:OXe,getAvailableActions:wXe})}}),HXe={},qXe=S({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){UXe()}});function JXe(e){const{file:t,startPosition:r}=e;return pd(t)||!ONe(t,r,e.program.getTypeChecker())?et:[{name:h9,description:Ppe,actions:[Mpe]}]}function KXe(e,t){N.assert(t===h9,"Unexpected action name");const{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,u=ONe(r,i,o.getTypeChecker());if(!u||!s)return;const p=YXe(u,o,s);return p.valid?{renameFilename:void 0,renameLocation:void 0,edits:yr.ChangeTracker.with(e,f=>XXe(r,o,l,f,u,p))}:{edits:[]}}function XXe(e,t,r,i,o,s){const l=s.signature,u=Wt(BNe(o,t,r),f=>pl(f));if(l){const f=Wt(BNe(l,t,r),b=>pl(b));v(l,f)}v(o,u);const p=aN(s.functionCalls,(f,b)=>al(f.pos,b.pos));for(const f of p)if(f.arguments&&f.arguments.length){const b=pl(aYe(o,f.arguments),!0);i.replaceNodeRange(Jn(f),$a(f.arguments),rs(f.arguments),b,{leadingTriviaOption:yr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:yr.TrailingTriviaOption.Include})}function v(f,b){i.replaceNodeRangeWithNodes(e,$a(f.parameters),rs(f.parameters),b,{joiner:", ",indentation:0,leadingTriviaOption:yr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:yr.TrailingTriviaOption.Include})}}function YXe(e,t,r){const i=lYe(e),o=Wl(e)?sYe(e):[],s=N1([...i,...o],Mv),l=t.getTypeChecker(),u=qi(s,b=>Hs.getReferenceEntriesForNode(-1,b,t,t.getSourceFiles(),r)),p=v(u);return Bn(p.declarations,b=>Mn(s,b))||(p.valid=!1),p;function v(b){const A={accessExpressions:[],typeUsages:[]},I={functionCalls:[],declarations:[],classReferences:A,valid:!0},R=Wt(i,f),M=Wt(o,f),C=Wl(e),W=Wt(i,U=>Dpe(U,l));for(const U of b){if(U.kind===Hs.EntryKind.Span){I.valid=!1;continue}if(Mn(W,f(U.node))){if(eYe(U.node.parent)){I.signature=U.node.parent;continue}const ee=wNe(U);if(ee){I.functionCalls.push(ee);continue}}const X=Dpe(U.node,l);if(X&&Mn(W,X)){const ee=Npe(U);if(ee){I.declarations.push(ee);continue}}if(Mn(R,f(U.node))||_P(U.node)){if(kNe(U))continue;const V=Npe(U);if(V){I.declarations.push(V);continue}const se=wNe(U);if(se){I.functionCalls.push(se);continue}}if(C&&Mn(M,f(U.node))){if(kNe(U))continue;const V=Npe(U);if(V){I.declarations.push(V);continue}const se=$Xe(U);if(se){A.accessExpressions.push(se);continue}if(Nc(e.parent)){const G=QXe(U);if(G){A.typeUsages.push(G);continue}}}I.valid=!1}return I}function f(b){const A=l.getSymbolAtLocation(b);return A&&GX(A,l)}}function Dpe(e,t){const r=o4(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),o=i==null?void 0:i.getSymbol();if(o&&!(Cl(o)&6))return o}}function kNe(e){const t=e.node;if(rp(t.parent)||Ih(t.parent)||au(t.parent)||eb(t.parent)||$u(t.parent)||zl(t.parent))return t}function Npe(e){if(Yu(e.node.parent))return e.node}function wNe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 213:case 214:const i=ni(r,I_);if(i&&i.expression===t)return i;break;case 211:const o=ni(r,Br);if(o&&o.parent&&o.name===t){const l=ni(o.parent,I_);if(l&&l.expression===o)return l}break;case 212:const s=ni(r,el);if(s&&s.parent&&s.argumentExpression===t){const l=ni(s.parent,I_);if(l&&l.expression===s)return l}break}}}function $Xe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 211:const i=ni(r,Br);if(i&&i.expression===t)return i;break;case 212:const o=ni(r,el);if(o&&o.expression===t)return o;break}}}function QXe(e){const t=e.node;if(oT(t)===2||H3(t.parent))return t}function ONe(e,t,r){const i=PR(e,t),o=Xie(i);if(!ZXe(i)&&o&&tYe(o,r)&&cf(o,i)&&!(o.body&&cf(o.body,i)))return o}function ZXe(e){const t=jn(e,l2);if(t){const r=jn(t,i=>!l2(i));return!!r&&Js(r)}return!1}function eYe(e){return Th(e)&&(gd(e.parent)||Ap(e.parent))}function tYe(e,t){var r;if(!nYe(e.parameters,t))return!1;switch(e.kind){case 262:return WNe(e)&&_9(e,t);case 174:if(za(e.parent)){const i=Dpe(e.name,t);return((r=i==null?void 0:i.declarations)==null?void 0:r.length)===1&&_9(e,t)}return _9(e,t);case 176:return Nc(e.parent)?WNe(e.parent)&&_9(e,t):FNe(e.parent.parent)&&_9(e,t);case 218:case 219:return FNe(e.parent)}return!1}function _9(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function WNe(e){return e.name?!0:!!LR(e,90)}function nYe(e,t){return iYe(e)>=GNe&&Bn(e,r=>rYe(r,t))}function rYe(e,t){if(eg(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Ue(e.name)}function FNe(e){return Wi(e)&&_2(e)&&Ue(e.name)&&!e.type}function Cpe(e){return e.length>0&&CR(e[0].name)}function iYe(e){return Cpe(e)?e.length-1:e.length}function zNe(e){return Cpe(e)&&(e=O.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function oYe(e,t){return Ue(t)&&am(t)===e?O.createShorthandPropertyAssignment(e):O.createPropertyAssignment(e,t)}function aYe(e,t){const r=zNe(e.parameters),i=eg(rs(r)),o=i?t.slice(0,r.length-1):t,s=Wt(o,(u,p)=>{const v=jY(r[p]),f=oYe(v,u);return Rp(f.name),Tc(f)&&Rp(f.initializer),lT(u,f),f});if(i&&t.length>=r.length){const u=t.slice(r.length-1),p=O.createPropertyAssignment(jY(rs(r)),O.createArrayLiteralExpression(u));s.push(p)}return O.createObjectLiteralExpression(s,!1)}function BNe(e,t,r){const i=t.getTypeChecker(),o=zNe(e.parameters),s=Wt(o,f),l=O.createObjectBindingPattern(s),u=b(o);let p;Bn(o,R)&&(p=O.createObjectLiteralExpression());const v=O.createParameterDeclaration(void 0,void 0,l,void 0,u,p);if(Cpe(e.parameters)){const M=e.parameters[0],C=O.createParameterDeclaration(void 0,void 0,M.name,void 0,M.type);return Rp(C.name),lT(M.name,C.name),M.type&&(Rp(C.type),lT(M.type,C.type)),O.createNodeArray([C,v])}return O.createNodeArray([v]);function f(M){const C=O.createBindingElement(void 0,void 0,jY(M),eg(M)&&R(M)?O.createArrayLiteralExpression():M.initializer);return Rp(C),M.initializer&&C.initializer&&lT(M.initializer,C.initializer),C}function b(M){const C=Wt(M,A);return k_(O.createTypeLiteralNode(C),1)}function A(M){let C=M.type;!C&&(M.initializer||eg(M))&&(C=I(M));const W=O.createPropertySignature(void 0,jY(M),R(M)?O.createToken(58):M.questionToken,C);return Rp(W),lT(M.name,W.name),M.type&&W.type&&lT(M.type,W.type),W}function I(M){const C=i.getTypeAtLocation(M);return IP(C,M,t,r)}function R(M){if(eg(M)){const C=i.getTypeAtLocation(M);return!i.isTupleType(C)}return i.isOptionalParameter(M)}}function jY(e){return am(e.name)}function sYe(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[N.checkDefined(LR(t,90),"Nameless class declaration should be a default export")];case 231:const i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function lYe(e){switch(e.kind){case 262:return e.name?[e.name]:[N.checkDefined(LR(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const r=N.checkDefined(Is(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,r]:[r];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return N.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var h9,GNe,Ppe,Mpe,cYe=S({"src/services/refactors/convertParamsToDestructuredObject.ts"(){oi(),Ch(),h9="Convert parameters to destructured object",GNe=1,Ppe=zo(m.Convert_parameters_to_destructured_object),Mpe={name:h9,description:Ppe,kind:"refactor.rewrite.parameters.toDestructured"},mg(h9,{kinds:[Mpe.kind],getEditsForAction:KXe,getAvailableActions:JXe})}}),uYe={},dYe=S({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){cYe()}});function pYe(e){const{file:t,startPosition:r}=e,i=VNe(t,r),o=Lpe(i),s=La(o),l={name:UY,description:HY,actions:[]};return s&&e.triggerReason!=="invoked"?et:rg(o)&&(s||vr(o)&&kpe(o).isValidConcatenation)?(l.actions.push(qY),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...qY,notApplicableReason:zo(m.Can_only_convert_string_concatenations_and_string_literals)}),[l]):et}function VNe(e,t){const r=go(e,t),i=Lpe(r);return!kpe(i).isValidConcatenation&&Vd(i.parent)&&vr(i.parent.parent)?i.parent.parent:r}function fYe(e,t){const{file:r,startPosition:i}=e,o=VNe(r,i);switch(t){case HY:return{edits:mYe(e,o)};default:return N.fail("invalid action")}}function mYe(e,t){const r=Lpe(t),i=e.file,o=gYe(kpe(r),i),s=a0(i.text,r.end);if(s){const l=s[s.length-1],u={pos:s[0].pos,end:l.end};return yr.ChangeTracker.with(e,p=>{p.deleteRange(i,u),p.replaceNode(i,r,o)})}else return yr.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function _Ye(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Lpe(e){return jn(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(vr(r.parent)&&_Ye(r.parent));default:return"quit"}})||e}function kpe(e){const t=l=>{if(!vr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:La(l)||lI(l)};const{nodes:u,operators:p,hasString:v,validOperators:f}=t(l.left);if(!(v||La(l.right)||h5(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};const b=l.operatorToken.kind===40,A=f&&b;return u.push(l.right),p.push(l.operatorToken),{nodes:u,operators:p,hasString:!0,validOperators:A}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}function hYe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function jNe(e){const t=cI(e)||OH(e)?-2:-1;return bc(e).slice(1,t)}function UNe(e,t){const r=[];let i="",o="";for(;e<t.length;){const s=t[e];if(hs(s))i+=s.text,o+=hYe(bc(s).slice(1,-1)),r.push(e),e++;else if(h5(s)){i+=s.head.text,o+=jNe(s.head);break}else break}return[e,i,o,r]}function gYe({nodes:e,operators:t},r){const i=qNe(t,r),o=JNe(e,r,i),[s,l,u,p]=UNe(0,e);if(s===e.length){const b=O.createNoSubstitutionTemplateLiteral(l,u);return o(p,b),b}const v=[],f=O.createTemplateHead(l,u);o(p,f);for(let b=s;b<e.length;b++){const A=vYe(e[b]);i(b,A);const[I,R,M,C]=UNe(b+1,e);b=I-1;const W=b===e.length-1;if(h5(A)){const U=Wt(A.templateSpans,(X,ee)=>{HNe(X);const V=ee===A.templateSpans.length-1,se=X.literal.text+(V?R:""),G=jNe(X.literal)+(V?M:"");return O.createTemplateSpan(X.expression,W&&V?O.createTemplateTail(se,G):O.createTemplateMiddle(se,G))});v.push(...U)}else{const U=W?O.createTemplateTail(R,M):O.createTemplateMiddle(R,M);o(C,U),v.push(O.createTemplateSpan(A,U))}}return O.createTemplateExpression(f,v)}function HNe(e){const t=e.getSourceFile();TP(e,e.expression,t,3,!1),WO(e.expression,e.expression,t,3,!1)}function vYe(e){return Vd(e)&&(HNe(e),e=e.expression),e}var UY,HY,qY,qNe,JNe,yYe=S({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){oi(),Ch(),UY="Convert to template string",HY=zo(m.Convert_to_template_string),qY={name:UY,description:HY,kind:"refactor.rewrite.string"},mg(UY,{kinds:[qY.kind],getEditsForAction:fYe,getAvailableActions:pYe}),qNe=(e,t)=>(r,i)=>{r<e.length&&TP(e[r],i,t,3,!1)},JNe=(e,t,r)=>(i,o)=>{for(;i.length>0;){const s=i.shift();TP(e[s],o,t,3,!1),r(s,o)}}}}),bYe={},EYe=S({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){yYe()}});function SYe(e){const t=KNe(e,e.triggerReason==="invoked");return t?Yg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:g9,description:XY,actions:[{...YY,notApplicableReason:t.error}]}]:et:[{name:g9,description:XY,actions:[YY]}]:et}function TYe(e,t){const r=KNe(e);return N.assert(r&&!Yg(r),"Expected applicable refactor info"),{edits:yr.ChangeTracker.with(e,o=>PYe(e.file,e.program.getTypeChecker(),o,r)),renameFilename:void 0,renameLocation:void 0}}function JY(e){return vr(e)||eR(e)}function AYe(e){return ou(e)||Mm(e)||Fl(e)}function KY(e){return JY(e)||AYe(e)}function KNe(e,t=!0){const{file:r,program:i}=e,o=FI(e),s=o.length===0;if(s&&!t)return;const l=go(r,o.start),u=vF(r,o.start+o.length),p=yc(l.pos,u&&u.end>=l.pos?u.getEnd():l.getEnd()),v=s?NYe(l):DYe(l,p),f=v&&KY(v)?CYe(v):void 0;if(!f)return{error:zo(m.Could_not_find_convertible_access_expression)};const b=i.getTypeChecker();return eR(f)?IYe(f,b):xYe(f)}function IYe(e,t){const r=e.condition,i=Ope(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:zo(m.Could_not_find_convertible_access_expression)};if((Br(r)||Ue(r))&&wpe(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(vr(r)){const o=XNe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:zo(m.Could_not_find_matching_access_expressions)}}}function xYe(e){if(e.operatorToken.kind!==56)return{error:zo(m.Can_only_convert_logical_AND_access_chains)};const t=Ope(e.right);if(!t)return{error:zo(m.Could_not_find_convertible_access_expression)};const r=XNe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:zo(m.Could_not_find_matching_access_expressions)}}function XNe(e,t){const r=[];for(;vr(t)&&t.operatorToken.kind===56;){const o=wpe(Ss(e),Ss(t.right));if(!o)break;r.push(o),e=o,t=t.left}const i=wpe(e,t);return i&&r.push(i),r.length>0?r:void 0}function wpe(e,t){if(!(!Ue(t)&&!Br(t)&&!el(t)))return RYe(e,t)?t:void 0}function RYe(e,t){for(;(ca(e)||Br(e)||el(e))&&n4(e)!==n4(t);)e=e.expression;for(;Br(e)&&Br(t)||el(e)&&el(t);){if(n4(e)!==n4(t))return!1;e=e.expression,t=t.expression}return Ue(e)&&Ue(t)&&e.getText()===t.getText()}function n4(e){if(Ue(e)||nf(e))return e.getText();if(Br(e))return n4(e.name);if(el(e))return n4(e.argumentExpression)}function DYe(e,t){for(;e.parent;){if(KY(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function NYe(e){for(;e.parent;){if(KY(e)&&!KY(e.parent))return e;e=e.parent}}function CYe(e){if(JY(e))return e;if(Fl(e)){const t=UA(e),r=t==null?void 0:t.initializer;return r&&JY(r)?r:void 0}return e.expression&&JY(e.expression)?e.expression:void 0}function Ope(e){if(e=Ss(e),vr(e))return Ope(e.left);if((Br(e)||el(e)||ca(e))&&!Xu(e))return e}function YNe(e,t,r){if(Br(t)||el(t)||ca(t)){const i=YNe(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(),ca(t))return s?O.createCallChain(i,O.createToken(29),t.typeArguments,t.arguments):O.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Br(t))return s?O.createPropertyAccessChain(i,O.createToken(29),t.name):O.createPropertyAccessChain(i,t.questionDotToken,t.name);if(el(t))return s?O.createElementAccessChain(i,O.createToken(29),t.argumentExpression):O.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function PYe(e,t,r,i,o){const{finalExpression:s,occurrences:l,expression:u}=i,p=l[l.length-1],v=YNe(t,s,l);v&&(Br(v)||el(v)||ca(v))&&(vr(u)?r.replaceNodeRange(e,p,s,v):eR(u)&&r.replaceNode(e,u,O.createBinaryExpression(v,O.createToken(61),u.whenFalse)))}var g9,XY,YY,MYe=S({"src/services/refactors/convertToOptionalChainExpression.ts"(){oi(),Ch(),g9="Convert to optional chain expression",XY=zo(m.Convert_to_optional_chain_expression),YY={name:g9,description:XY,kind:"refactor.rewrite.expression.optionalChain"},mg(g9,{kinds:[YY.kind],getEditsForAction:TYe,getAvailableActions:SYe})}}),LYe={},kYe=S({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){MYe()}});function $Ne(e){const t=e.kind,r=Wpe(e.file,FI(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return et;const R=[];return z0(VR.kind,t)&&R.push({name:BR,description:VR.description,actions:[{...VR,notApplicableReason:I(r.errors)}]}),z0(GR.kind,t)&&R.push({name:BR,description:GR.description,actions:[{...GR,notApplicableReason:I(r.errors)}]}),R}const o=BYe(i,e);if(o===void 0)return et;const s=[],l=new Map;let u;const p=[],v=new Map;let f,b=0;for(const{functionExtraction:R,constantExtraction:M}of o){if(z0(VR.kind,t)){const C=R.description;R.errors.length===0?l.has(C)||(l.set(C,!0),s.push({description:C,name:`function_scope_${b}`,kind:VR.kind})):u||(u={description:C,name:`function_scope_${b}`,notApplicableReason:I(R.errors),kind:VR.kind})}if(z0(GR.kind,t)){const C=M.description;M.errors.length===0?v.has(C)||(v.set(C,!0),p.push({description:C,name:`constant_scope_${b}`,kind:GR.kind})):f||(f={description:C,name:`constant_scope_${b}`,notApplicableReason:I(M.errors),kind:GR.kind})}b++}const A=[];return s.length?A.push({name:BR,description:zo(m.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&u&&A.push({name:BR,description:zo(m.Extract_function),actions:[u]}),p.length?A.push({name:BR,description:zo(m.Extract_constant),actions:p}):e.preferences.provideRefactorNotApplicableReason&&f&&A.push({name:BR,description:zo(m.Extract_constant),actions:[f]}),A.length?A:et;function I(R){let M=R[0].messageText;return typeof M!="string"&&(M=M.messageText),M}}function QNe(e,t){const i=Wpe(e.file,FI(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){const l=+o[1];return N.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),FYe(i,e,l)}const s=/^constant_scope_(\d+)$/.exec(t);if(s){const l=+s[1];return N.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),zYe(i,e,l)}N.fail("Unrecognized action name")}function Wpe(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[ru(e,t.start,i,xu.cannotExtractEmpty)]};const o=i===0&&r,s=Hue(e,t.start),l=vF(e,tc(t)),u=s&&l&&r?wYe(s,l,e):t,p=o?a$e(s):LO(s,e,u),v=o?p:LO(l,e,u);let f=0,b;if(!p||!v)return{errors:[ru(e,t.start,i,xu.cannotExtractRange)]};if(p.flags&16777216)return{errors:[ru(e,t.start,i,xu.cannotExtractJSDoc)]};if(p.parent!==v.parent)return{errors:[ru(e,t.start,i,xu.cannotExtractRange)]};if(p!==v){if(!eCe(p.parent))return{errors:[ru(e,t.start,i,xu.cannotExtractRange)]};const U=[];for(const X of p.parent.statements){if(X===p||U.length){const ee=W(X);if(ee)return{errors:ee};U.push(X)}if(X===v)break}return U.length?{targetRange:{range:U,facts:f,thisNode:b}}:{errors:[ru(e,t.start,i,xu.cannotExtractRange)]}}if(Mm(p)&&!p.expression)return{errors:[ru(e,t.start,i,xu.cannotExtractRange)]};const A=R(p),I=M(A)||W(A);if(I)return{errors:I};return{targetRange:{range:OYe(A),facts:f,thisNode:b}};function R(U){if(Mm(U)){if(U.expression)return U.expression}else if(Fl(U)||Xc(U)){const X=Fl(U)?U.declarationList.declarations:U.declarations;let ee=0,V;for(const se of X)se.initializer&&(ee++,V=se.initializer);if(ee===1)return V}else if(Wi(U)&&U.initializer)return U.initializer;return U}function M(U){if(Ue(ou(U)?U.expression:U))return[Fr(U,xu.cannotExtractIdentifier)]}function C(U,X){let ee=U;for(;ee!==X;){if(ee.kind===172){la(ee)&&(f|=32);break}else if(ee.kind===169){Vp(ee).kind===176&&(f|=32);break}else ee.kind===174&&la(ee)&&(f|=32);ee=ee.parent}}function W(U){let X;if((_e=>{_e[_e.None=0]="None",_e[_e.Break=1]="Break",_e[_e.Continue=2]="Continue",_e[_e.Return=4]="Return"})(X||(X={})),N.assert(U.pos<=U.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),N.assert(!e_(U.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!$i(U)&&!(rg(U)&&ZNe(U))&&!Vpe(U))return[Fr(U,xu.statementOrExpressionExpected)];if(U.flags&33554432)return[Fr(U,xu.cannotExtractAmbientBlock)];const ee=du(U);ee&&C(U,ee);let V,se=4,G;if(re(U),f&8){const _e=zd(U,!1,!1);(_e.kind===262||_e.kind===174&&_e.parent.kind===210||_e.kind===218)&&(f|=16)}return V;function re(_e){if(V)return!0;if(Yu(_e)){const Q=_e.kind===260?_e.parent.parent:_e;if(Qr(Q,32))return(V||(V=[])).push(Fr(_e,xu.cannotExtractExportedEntity)),!0}switch(_e.kind){case 272:return(V||(V=[])).push(Fr(_e,xu.cannotExtractImport)),!0;case 277:return(V||(V=[])).push(Fr(_e,xu.cannotExtractExportedEntity)),!0;case 108:if(_e.parent.kind===213){const Q=du(_e);if(Q===void 0||Q.pos<t.start||Q.end>=t.start+t.length)return(V||(V=[])).push(Fr(_e,xu.cannotExtractSuper)),!0}else f|=8,b=_e;break;case 219:Uo(_e,function Q(Y){if(CR(Y))f|=8,b=_e;else{if(di(Y)||ta(Y)&&!Ks(Y))return!1;Uo(Y,Q)}});case 263:case 262:io(_e.parent)&&_e.parent.externalModuleIndicator===void 0&&(V||(V=[])).push(Fr(_e,xu.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const ye=se;switch(_e.kind){case 245:se&=-5;break;case 258:se=0;break;case 241:_e.parent&&_e.parent.kind===258&&_e.parent.finallyBlock===_e&&(se=4);break;case 297:case 296:se|=1;break;default:wy(_e,!1)&&(se|=3);break}switch(_e.kind){case 197:case 110:f|=8,b=_e;break;case 256:{const Q=_e.label;(G||(G=[])).push(Q.escapedText),Uo(_e,re),G.pop();break}case 252:case 251:{const Q=_e.label;Q?Mn(G,Q.escapedText)||(V||(V=[])).push(Fr(_e,xu.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):se&(_e.kind===252?1:2)||(V||(V=[])).push(Fr(_e,xu.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:f|=4;break;case 229:f|=2;break;case 253:se&4?f|=1:(V||(V=[])).push(Fr(_e,xu.cannotExtractRangeContainingConditionalReturnStatement));break;default:Uo(_e,re);break}se=ye}}}function wYe(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 OYe(e){if($i(e))return[e];if(rg(e))return ou(e.parent)?[e.parent]:e;if(Vpe(e))return e}function Fpe(e){return Ks(e)?Ej(e.body):Js(e)||io(e)||O_(e)||di(e)}function WYe(e){let t=ry(e.range)?$a(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=du(t);if(i){const o=jn(t,Js);return o?[o,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===169&&(t=jn(t,i=>Js(i)).parent),Fpe(t)&&(r.push(t),t.kind===312))return r}function FYe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:u}}=zpe(e,t);return N.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),qYe(o,i[r],s[r],u,e,t)}function zYe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:u}}=zpe(e,t);N.assert(!l[r].length,"The extraction went missing? How?"),N.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const p=bt(o)?o:o.statements[0].expression;return JYe(p,i[r],s[r],e.facts,t)}function BYe(e,t){const{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=zpe(e,t);return r.map((l,u)=>{const p=GYe(l),v=VYe(l),f=Js(l)?jYe(l):di(l)?UYe(l):HYe(l);let b,A;return f===1?(b=cg(zo(m.Extract_to_0_in_1_scope),[p,"global"]),A=cg(zo(m.Extract_to_0_in_1_scope),[v,"global"])):f===0?(b=cg(zo(m.Extract_to_0_in_1_scope),[p,"module"]),A=cg(zo(m.Extract_to_0_in_1_scope),[v,"module"])):(b=cg(zo(m.Extract_to_0_in_1),[p,f]),A=cg(zo(m.Extract_to_0_in_1),[v,f])),u===0&&!di(l)&&(A=cg(zo(m.Extract_to_0_in_enclosing_scope),[v])),{functionExtraction:{description:b,errors:i[u]},constantExtraction:{description:A,errors:o[u]}}})}function zpe(e,t){const{file:r}=t,i=WYe(e),o=i$e(e,r),s=o$e(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function GYe(e){return Js(e)?"inner function":di(e)?"method":"function"}function VYe(e){return di(e)?"readonly field":"constant"}function jYe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:YF;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:N.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function UYe(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function HYe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function qYe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,u){const p=u.program.getTypeChecker(),v=ps(u.program.getCompilerOptions()),f=Bu.createImportAdder(u.file,u.program,u.preferences,u.host),b=t.getSourceFile(),A=cT(di(t)?"newMethod":"newFunction",b),I=dr(t),R=O.createIdentifier(A);let M;const C=[],W=[];let U;r.forEach((Le,Ne)=>{let Oe;if(!I){let be=p.getTypeOfSymbolAtLocation(Le.symbol,Le.node);be=p.getBaseTypeOfLiteralType(be),Oe=Bu.typeToAutoImportableTypeNode(p,f,be,t,v,1)}const At=O.createParameterDeclaration(void 0,void 0,Ne,void 0,Oe);C.push(At),Le.usage===2&&(U||(U=[])).push(Le),W.push(O.createIdentifier(Ne))});const ee=Go(i.values(),Le=>({type:Le,declaration:XYe(Le,u.startPosition)})).sort(YYe),V=ee.length===0?void 0:Vi(ee,({declaration:Le})=>Le),se=V!==void 0?V.map(Le=>O.createTypeReferenceNode(Le.name,void 0)):void 0;if(bt(e)&&!I){const Le=p.getContextualType(e);M=p.typeToTypeNode(Le,t,1)}const{body:G,returnValueProperty:re}=QYe(e,s,U,o,!!(l.facts&1));Rp(G);let _e;const ye=!!(l.facts&16);if(di(t)){const Le=I?[]:[O.createModifier(123)];l.facts&32&&Le.push(O.createModifier(126)),l.facts&4&&Le.push(O.createModifier(134)),_e=O.createMethodDeclaration(Le.length?Le:void 0,l.facts&2?O.createToken(42):void 0,R,void 0,V,C,M,G)}else ye&&C.unshift(O.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(p.getTypeAtLocation(l.thisNode),t,1),void 0)),_e=O.createFunctionDeclaration(l.facts&4?[O.createToken(134)]:void 0,l.facts&2?O.createToken(42):void 0,R,V,C,M,G);const Q=yr.ChangeTracker.fromContext(u),Y=(ry(l.range)?rs(l.range):l.range).end,oe=t$e(Y,t);oe?Q.insertNodeBefore(u.file,oe,_e,!0):Q.insertNodeAtEndOfScope(u.file,t,_e),f.writeFixes(Q);const he=[],Ie=$Ye(t,l,A);ye&&W.unshift(O.createIdentifier("this"));let de=O.createCallExpression(ye?O.createPropertyAccessExpression(Ie,"call"):Ie,se,W);if(l.facts&2&&(de=O.createYieldExpression(O.createToken(42),de)),l.facts&4&&(de=O.createAwaitExpression(de)),Gpe(e)&&(de=O.createJsxExpression(void 0,de)),s.length&&!U)if(N.assert(!re,"Expected no returnValueProperty"),N.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){const Le=s[0];he.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(pl(Le.name),void 0,pl(Le.type),de)],Le.parent.flags)))}else{const Le=[],Ne=[];let Oe=s[0].parent.flags,At=!1;for(const He of s){Le.push(O.createBindingElement(void 0,void 0,pl(He.name)));const it=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(He)),t,1);Ne.push(O.createPropertySignature(void 0,He.symbol.name,void 0,it)),At=At||He.type!==void 0,Oe=Oe&He.parent.flags}const be=At?O.createTypeLiteralNode(Ne):void 0;be&&hr(be,1),he.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(O.createObjectBindingPattern(Le),void 0,be,de)],Oe)))}else if(s.length||U){if(s.length)for(const Ne of s){let Oe=Ne.parent.flags;Oe&2&&(Oe=Oe&-3|1),he.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(Ne.symbol.name,void 0,Se(Ne.type))],Oe)))}re&&he.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(re,void 0,Se(M))],1)));const Le=Bpe(s,U);re&&Le.unshift(O.createShorthandPropertyAssignment(re)),Le.length===1?(N.assert(!re,"Shouldn't have returnValueProperty here"),he.push(O.createExpressionStatement(O.createAssignment(Le[0].name,de))),l.facts&1&&he.push(O.createReturnStatement())):(he.push(O.createExpressionStatement(O.createAssignment(O.createObjectLiteralExpression(Le),de))),re&&he.push(O.createReturnStatement(O.createIdentifier(re))))}else l.facts&1?he.push(O.createReturnStatement(de)):ry(l.range)?he.push(O.createExpressionStatement(de)):he.push(de);ry(l.range)?Q.replaceNodeRangeWithNodes(u.file,$a(l.range),rs(l.range),he):Q.replaceNodeWithNodes(u.file,l.range,he);const ie=Q.getChanges(),Ce=(ry(l.range)?$a(l.range):l.range).getSourceFile().fileName,qe=OO(ie,Ce,A,!1);return{renameFilename:Ce,renameLocation:qe,edits:ie};function Se(Le){if(Le===void 0)return;const Ne=pl(Le);let Oe=Ne;for(;GS(Oe);)Oe=Oe.type;return Yy(Oe)&&un(Oe.types,At=>At.kind===157)?Ne:O.createUnionTypeNode([Ne,O.createKeywordTypeNode(157)])}}function JYe(e,t,{substitutions:r},i,o){const s=o.program.getTypeChecker(),l=t.getSourceFile(),u=Br(e)&&!di(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!Qi(e.name)&&!u0(e.name)?e.name.text:cT(di(t)?"newProperty":"newLocal",l),p=dr(t);let v=p||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),f=ZYe(Ss(e),r);({variableType:v,initializer:f}=M(v,f)),Rp(f);const b=yr.ChangeTracker.fromContext(o);if(di(t)){N.assert(!p,"Cannot extract to a JS class");const C=[];C.push(O.createModifier(123)),i&32&&C.push(O.createModifier(126)),C.push(O.createModifier(148));const W=O.createPropertyDeclaration(C,u,void 0,v,f);let U=O.createPropertyAccessExpression(i&32?O.createIdentifier(t.name.getText()):O.createThis(),O.createIdentifier(u));Gpe(e)&&(U=O.createJsxExpression(void 0,U));const X=e.pos,ee=n$e(X,t);b.insertNodeBefore(o.file,ee,W,!0),b.replaceNode(o.file,e,U)}else{const C=O.createVariableDeclaration(u,void 0,v,f),W=KYe(e,t);if(W){b.insertNodeBefore(o.file,W,C);const U=O.createIdentifier(u);b.replaceNode(o.file,e,U)}else if(e.parent.kind===244&&t===jn(e,Fpe)){const U=O.createVariableStatement(void 0,O.createVariableDeclarationList([C],2));b.replaceNode(o.file,e.parent,U)}else{const U=O.createVariableStatement(void 0,O.createVariableDeclarationList([C],2)),X=r$e(e,t);if(X.pos===0?b.insertNodeAtTopOfFile(o.file,U,!1):b.insertNodeBefore(o.file,X,U,!1),e.parent.kind===244)b.delete(o.file,e.parent);else{let ee=O.createIdentifier(u);Gpe(e)&&(ee=O.createJsxExpression(void 0,ee)),b.replaceNode(o.file,e,ee)}}}const A=b.getChanges(),I=e.getSourceFile().fileName,R=OO(A,I,u,!0);return{renameFilename:I,renameLocation:R,edits:A};function M(C,W){if(C===void 0)return{variableType:C,initializer:W};if(!Us(W)&&!Ks(W)||!!W.typeParameters)return{variableType:C,initializer:W};const U=s.getTypeAtLocation(e),X=uh(s.getSignaturesOfType(U,0));if(!X)return{variableType:C,initializer:W};if(X.getTypeParameters())return{variableType:C,initializer:W};const ee=[];let V=!1;for(const se of W.parameters)if(se.type)ee.push(se);else{const G=s.getTypeAtLocation(se);G===s.getAnyType()&&(V=!0),ee.push(O.updateParameterDeclaration(se,se.modifiers,se.dotDotDotToken,se.name,se.questionToken,se.type||s.typeToTypeNode(G,t,1),se.initializer))}if(V)return{variableType:C,initializer:W};if(C=void 0,Ks(W))W=O.updateArrowFunction(W,km(e)?L1(e):void 0,W.typeParameters,ee,W.type||s.typeToTypeNode(X.getReturnType(),t,1),W.equalsGreaterThanToken,W.body);else{if(X&&!!X.thisParameter){const se=eu(ee);if(!se||Ue(se.name)&&se.name.escapedText!=="this"){const G=s.getTypeOfSymbolAtLocation(X.thisParameter,e);ee.splice(0,0,O.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(G,t,1)))}}W=O.updateFunctionExpression(W,km(e)?L1(e):void 0,W.asteriskToken,W.name,W.typeParameters,ee,W.type||s.typeToTypeNode(X.getReturnType(),t,1),W.body)}return{variableType:C,initializer:W}}}function KYe(e,t){let r;for(;e!==void 0&&e!==t;){if(Wi(e)&&e.initializer===r&&Xc(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function XYe(e,t){let r;const i=e.symbol;if(i&&i.declarations)for(const o of i.declarations)(r===void 0||o.pos<r.pos)&&o.pos<t&&(r=o);return r}function YYe({type:e,declaration:t},{type:r,declaration:i}){return Yne(t,i,"pos",al)||Ju(e.symbol?e.symbol.getName():"",r.symbol?r.symbol.getName():"")||al(e.id,r.id)}function $Ye(e,t,r){const i=O.createIdentifier(r);if(di(e)){const o=t.facts&32?O.createIdentifier(e.name.text):O.createThis();return O.createPropertyAccessExpression(o,i)}else return i}function QYe(e,t,r,i,o){const s=r!==void 0||t.length>0;if(Yo(e)&&!s&&i.size===0)return{body:O.createBlock(e.statements,!0),returnValueProperty:void 0};let l,u=!1;const p=O.createNodeArray(Yo(e)?e.statements.slice(0):[$i(e)?e:O.createReturnStatement(Ss(e))]);if(s||i.size){const f=Un(p,v,$i).slice();if(s&&!o&&$i(e)){const b=Bpe(t,r);b.length===1?f.push(O.createReturnStatement(b[0].name)):f.push(O.createReturnStatement(O.createObjectLiteralExpression(b)))}return{body:O.createBlock(f,!0),returnValueProperty:l}}else return{body:O.createBlock(p,!0),returnValueProperty:void 0};function v(f){if(!u&&Mm(f)&&s){const b=Bpe(t,r);return f.expression&&(l||(l="__return"),b.unshift(O.createPropertyAssignment(l,rt(f.expression,v,bt)))),b.length===1?O.createReturnStatement(b[0].name):O.createReturnStatement(O.createObjectLiteralExpression(b))}else{const b=u;u=u||Js(f)||di(f);const A=i.get(fs(f).toString()),I=A?pl(A):xn(f,v,void 0);return u=b,I}}}function ZYe(e,t){return t.size?r(e):e;function r(i){const o=t.get(fs(i).toString());return o?pl(o):xn(i,r,void 0)}}function e$e(e){if(Js(e)){const t=e.body;if(Yo(t))return t.statements}else{if(O_(e)||io(e))return e.statements;if(di(e))return e.members}return et}function t$e(e,t){return un(e$e(t),r=>r.pos>=e&&Js(r)&&!Wl(r))}function n$e(e,t){const r=t.members;N.assert(r.length>0,"Found no members");let i,o=!0;for(const s of r){if(s.pos>e)return i||r[0];if(o&&!qo(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?N.fail():i}function r$e(e,t){N.assert(!di(t));let r;for(let i=e;i!==t;i=i.parent)Fpe(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(eCe(i)){let o;for(const s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&tR(i)?(N.assert(LC(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):N.checkDefined(o,"prevStatement failed to get set")}N.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Bpe(e,t){const r=Wt(e,o=>O.createShorthandPropertyAssignment(o.symbol.name)),i=Wt(t,o=>O.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function ry(e){return Do(e)}function i$e(e,t){return ry(e.range)?{pos:$a(e.range).getStart(t),end:rs(e.range).getEnd()}:e.range}function o$e(e,t,r,i,o,s){const l=new Map,u=[],p=[],v=[],f=[],b=[],A=new Map,I=[];let R;const M=ry(e.range)?e.range.length===1&&ou(e.range[0])?e.range[0].expression:void 0:e.range;let C;if(M===void 0){const oe=e.range,he=$a(oe).getStart(),Ie=rs(oe).end;C=ru(i,he,Ie-he,xu.expressionExpected)}else o.getTypeAtLocation(M).flags&147456&&(C=Fr(M,xu.uselessConstantType));for(const oe of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),p.push(new Map),v.push([]);const he=[];C&&he.push(C),di(oe)&&dr(oe)&&he.push(Fr(oe,xu.cannotExtractToJSClass)),Ks(oe)&&!Yo(oe.body)&&he.push(Fr(oe,xu.cannotExtractToExpressionArrowFunction)),f.push(he)}const W=new Map,U=ry(e.range)?O.createBlock(e.range):e.range,X=ry(e.range)?$a(e.range):e.range,ee=V(X);if(G(U),ee&&!ry(e.range)&&!F_(e.range)){const oe=o.getContextualType(e.range);se(oe)}if(l.size>0){const oe=new Map;let he=0;for(let Ie=X;Ie!==void 0&&he<t.length;Ie=Ie.parent)if(Ie===t[he]&&(oe.forEach((de,ie)=>{u[he].typeParameterUsages.set(ie,de)}),he++),Bj(Ie))for(const de of My(Ie)){const ie=o.getTypeAtLocation(de);l.has(ie.id.toString())&&oe.set(ie.id.toString(),ie)}N.assert(he===t.length,"Should have iterated all scopes")}if(b.length){const oe=zj(t[0],t[0].parent)?t[0]:yh(t[0]);Uo(oe,ye)}for(let oe=0;oe<t.length;oe++){const he=u[oe];if(oe>0&&(he.usages.size>0||he.typeParameterUsages.size>0)){const ie=ry(e.range)?e.range[0]:e.range;f[oe].push(Fr(ie,xu.cannotAccessVariablesFromNestedScopes))}e.facts&16&&di(t[oe])&&v[oe].push(Fr(e.thisNode,xu.cannotExtractFunctionsContainingThisToMethod));let Ie=!1,de;if(u[oe].usages.forEach(ie=>{ie.usage===2&&(Ie=!0,ie.symbol.flags&106500&&ie.symbol.valueDeclaration&&bp(ie.symbol.valueDeclaration,8)&&(de=ie.symbol.valueDeclaration))}),N.assert(ry(e.range)||I.length===0,"No variable declarations expected if something was extracted"),Ie&&!ry(e.range)){const ie=Fr(e.range,xu.cannotWriteInExpression);v[oe].push(ie),f[oe].push(ie)}else if(de&&oe>0){const ie=Fr(de,xu.cannotExtractReadonlyPropertyInitializerOutsideConstructor);v[oe].push(ie),f[oe].push(ie)}else if(R){const ie=Fr(R,xu.cannotExtractExportedEntity);v[oe].push(ie),f[oe].push(ie)}}return{target:U,usagesPerScope:u,functionErrorsPerScope:v,constantErrorsPerScope:f,exposedVariableDeclarations:I};function V(oe){return!!jn(oe,he=>Bj(he)&&My(he).length!==0)}function se(oe){const he=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:Ie}=he.walkType(oe);for(const de of Ie)de.isTypeParameter()&&l.set(de.id.toString(),de)}function G(oe,he=1){if(ee){const Ie=o.getTypeAtLocation(oe);se(Ie)}if(Yu(oe)&&oe.symbol&&b.push(oe),Wc(oe))G(oe.left,2),G(oe.right);else if(aie(oe))G(oe.operand,2);else if(Br(oe)||el(oe))Uo(oe,G);else if(Ue(oe)){if(!oe.parent||xd(oe.parent)&&oe!==oe.parent.left||Br(oe.parent)&&oe!==oe.parent.expression)return;re(oe,he,ng(oe))}else Uo(oe,G)}function re(oe,he,Ie){const de=_e(oe,he,Ie);if(de)for(let ie=0;ie<t.length;ie++){const ge=p[ie].get(de);ge&&u[ie].substitutions.set(fs(oe).toString(),ge)}}function _e(oe,he,Ie){const de=Q(oe);if(!de)return;const ie=Ia(de).toString(),ge=W.get(ie);if(ge&&ge>=he)return ie;if(W.set(ie,he),ge){for(const Se of u)Se.usages.get(oe.text)&&Se.usages.set(oe.text,{usage:he,symbol:de,node:oe});return ie}const Ce=de.getDeclarations(),qe=Ce&&un(Ce,Se=>Se.getSourceFile()===i);if(!!qe&&!AO(r,qe.getStart(),qe.end)){if(e.facts&2&&he===2){const Se=Fr(oe,xu.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const Le of v)Le.push(Se);for(const Le of f)Le.push(Se)}for(let Se=0;Se<t.length;Se++){const Le=t[Se];if(o.resolveName(de.name,Le,de.flags,!1)!==de&&!p[Se].has(ie)){const Oe=Y(de.exportSymbol||de,Le,Ie);if(Oe)p[Se].set(ie,Oe);else if(Ie){if(!(de.flags&262144)){const At=Fr(oe,xu.typeWillNotBeVisibleInTheNewScope);v[Se].push(At),f[Se].push(At)}}else u[Se].usages.set(oe.text,{usage:he,symbol:de,node:oe})}}return ie}}function ye(oe){if(oe===e.range||ry(e.range)&&e.range.includes(oe))return;const he=Ue(oe)?Q(oe):o.getSymbolAtLocation(oe);if(he){const Ie=un(b,de=>de.symbol===he);if(Ie)if(Wi(Ie)){const de=Ie.symbol.id.toString();A.has(de)||(I.push(Ie),A.set(de,!0))}else R=R||Ie}Uo(oe,ye)}function Q(oe){return oe.parent&&ip(oe.parent)&&oe.parent.name===oe?o.getShorthandAssignmentValueSymbol(oe.parent):o.getSymbolAtLocation(oe)}function Y(oe,he,Ie){if(!oe)return;const de=oe.getDeclarations();if(de&&de.some(ge=>ge.parent===he))return O.createIdentifier(oe.name);const ie=Y(oe.parent,he,Ie);if(ie!==void 0)return Ie?O.createQualifiedName(ie,O.createIdentifier(oe.name)):O.createPropertyAccessExpression(ie,oe.name)}}function a$e(e){return jn(e,t=>t.parent&&ZNe(t)&&!vr(t.parent))}function ZNe(e){const{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function eCe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function Gpe(e){return Vpe(e)||(pg(e)||JS(e)||lE(e))&&(pg(e.parent)||lE(e.parent))}function Vpe(e){return La(e)&&e.parent&&F_(e.parent)}var BR,GR,VR,xu,jpe,s$e=S({"src/services/refactors/extractSymbol.ts"(){oi(),Ch(),BR="Extract Symbol",GR={name:"Extract Constant",description:zo(m.Extract_constant),kind:"refactor.extract.constant"},VR={name:"Extract Function",description:zo(m.Extract_function),kind:"refactor.extract.function"},mg(BR,{kinds:[GR.kind,VR.kind],getEditsForAction:QNe,getAvailableActions:$Ne}),(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")})(xu||(xu={})),jpe=(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))(jpe||{})}}),tCe={};H(tCe,{Messages:()=>xu,RangeFacts:()=>jpe,getRangeToExtract:()=>Wpe,getRefactorActionsToExtractSymbol:()=>$Ne,getRefactorEditsToExtractSymbol:()=>QNe});var l$e=S({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){s$e()}}),v9,$Y,QY,c$e=S({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){oi(),Ch(),v9="Generate 'get' and 'set' accessors",$Y=zo(m.Generate_get_and_set_accessors),QY={name:v9,description:$Y,kind:"refactor.rewrite.property.generateAccessors"},mg(v9,{kinds:[QY.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=Bu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);N.assert(i&&!Yg(i),"Expected applicable refactor info");const o=Bu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;const s=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,p=(Ue(l)?0:-1)+OO(o,s,l.text,No(i.declaration));return{renameFilename:s,renameLocation:p,edits:o}},getAvailableActions(e){if(!e.endPosition)return et;const t=Bu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?Yg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:v9,description:$Y,actions:[{...QY,notApplicableReason:t.error}]}]:et:[{name:v9,description:$Y,actions:[QY]}]:et}})}}),u$e={},d$e=S({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){c$e()}});function p$e(e){const t=nCe(e);if(t&&!Yg(t))return{renameFilename:void 0,renameLocation:void 0,edits:yr.ChangeTracker.with(e,i=>m$e(e.file,i,t.declaration,t.returnTypeNode))}}function f$e(e){const t=nCe(e);return t?Yg(t)?e.preferences.provideRefactorNotApplicableReason?[{name:y9,description:ZY,actions:[{...b9,notApplicableReason:t.error}]}]:et:[{name:y9,description:ZY,actions:[b9]}]:et}function m$e(e,t,r,i){const o=Is(r,22,e),s=Ks(r)&&o===void 0,l=s?$a(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,O.createToken(21)),t.insertNodeAfter(e,l,O.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function nCe(e){if(dr(e.file)||!z0(b9.kind,e.kind))return;const t=jd(e.file,e.startPosition),r=jn(t,l=>Yo(l)||l.parent&&Ks(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":_$e(l));if(!r||!r.body||r.type)return{error:zo(m.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),o=h$e(i,r);if(!o)return{error:zo(m.Could_not_determine_function_return_type)};const s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function _$e(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function h$e(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(Vi(i,o=>o.getReturnType()))}const r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var y9,ZY,b9,g$e=S({"src/services/refactors/inferFunctionReturnType.ts"(){oi(),Ch(),y9="Infer function return type",ZY=zo(m.Infer_function_return_type),b9={name:y9,description:ZY,kind:"refactor.rewrite.function.returnType"},mg(y9,{kinds:[b9.kind],getEditsForAction:p$e,getAvailableActions:f$e})}}),v$e={},y$e=S({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){g$e()}}),BI={};H(BI,{addExportToChanges:()=>ype,addExports:()=>_pe,addNewFileToTsconfig:()=>upe,addOrRemoveBracesToArrowFunction:()=>LXe,containsJsx:()=>Epe,convertArrowFunctionOrFunctionExpression:()=>HXe,convertParamsToDestructuredObject:()=>uYe,convertStringOrTemplateLiteral:()=>bYe,convertToOptionalChainExpression:()=>LYe,createNewFileName:()=>bpe,createOldFileImportsFromTargetFile:()=>mpe,deleteMovedStatements:()=>c9,deleteUnusedImports:()=>hpe,deleteUnusedOldImports:()=>dpe,doChangeNamedToNamespaceOrDefault:()=>uNe,extractSymbol:()=>tCe,filterImport:()=>YO,forEachImportInStatement:()=>XO,generateGetAccessorAndSetAccessor:()=>u$e,getApplicableRefactors:()=>PKe,getEditsForRefactor:()=>MKe,getStatementsToMove:()=>$O,getTopLevelDeclarationStatement:()=>FY,getUsageInfo:()=>d9,inferFunctionReturnType:()=>v$e,isRefactorErrorInfo:()=>Yg,isTopLevelDeclaration:()=>p9,makeImportOrRequire:()=>u9,moduleSpecifierFromImport:()=>KO,nameOfTopLevelDeclaration:()=>vpe,refactorKindBeginsWith:()=>z0,registerRefactor:()=>mg,updateImportsInOtherFiles:()=>ppe});var Ch=S({"src/services/_namespaces/ts.refactor.ts"(){iNe(),zKe(),UKe(),QKe(),ZKe(),tXe(),oXe(),xXe(),kXe(),qXe(),dYe(),EYe(),kYe(),l$e(),d$e(),y$e()}});function rCe(e,t,r,i){const o=Upe(e,t,r,i);N.assert(o.spans.length%3===0);const s=o.spans,l=[];for(let u=0;u<s.length;u+=3)l.push({textSpan:Eu(s[u],s[u+1]),classificationType:s[u+2]});return l}function Upe(e,t,r,i){return{spans:b$e(e,r,i,t),endOfLineState:0}}function b$e(e,t,r,i){const o=[];return e&&t&&E$e(e,t,r,(l,u,p)=>{o.push(l.getStart(t),l.getWidth(t),(u+1<<8)+p)},i),o}function E$e(e,t,r,i,o){const s=e.getTypeChecker();let l=!1;function u(p){switch(p.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:o.throwIfCancellationRequested()}if(!p||!P6(r,p.pos,p.getFullWidth())||p.getFullWidth()===0)return;const v=l;if((pg(p)||JS(p))&&(l=!0),wC(p)&&(l=!1),Ue(p)&&!l&&!I$e(p)&&!hC(p.escapedText)){let f=s.getSymbolAtLocation(p);if(f){f.flags&2097152&&(f=s.getAliasedSymbol(f));let b=S$e(f,oT(p));if(b!==void 0){let A=0;p.parent&&(os(p.parent)||Kpe.get(p.parent.kind)===b)&&p.parent.name===p&&(A=1<<0),b===6&&oCe(p)&&(b=9),b=T$e(s,p,b);const I=f.valueDeclaration;if(I){const R=c0(I),M=Ov(I);R&256&&(A|=1<<1),R&1024&&(A|=1<<2),b!==0&&b!==2&&(R&8||M&2||f.getFlags()&8)&&(A|=1<<3),(b===7||b===10)&&A$e(I,t)&&(A|=1<<5),e.isSourceFileDefaultLibrary(I.getSourceFile())&&(A|=1<<4)}else f.declarations&&f.declarations.some(R=>e.isSourceFileDefaultLibrary(R.getSourceFile()))&&(A|=1<<4);i(p,b,A)}}}Uo(p,u),l=v}u(t)}function S$e(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&&os(i)&&(i=iCe(i)),i&&Kpe.get(i.kind)}function T$e(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)||x$e(t))return r===9?11:10}}return r}function A$e(e,t){return os(e)&&(e=iCe(e)),Wi(e)?(!io(e.parent.parent.parent)||uE(e.parent))&&e.getSourceFile()===t:Dc(e)?!io(e.parent)&&e.getSourceFile()===t:!1}function iCe(e){for(;;)if(os(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function I$e(e){const t=e.parent;return t&&(Ih(t)||rp(t)||eb(t))}function x$e(e){for(;oCe(e);)e=e.parent;return ca(e.parent)&&e.parent.expression===e}function oCe(e){return xd(e.parent)&&e.parent.right===e||Br(e.parent)&&e.parent.name===e}var Hpe,qpe,Jpe,Kpe,aCe=S({"src/services/classifier2020.ts"(){oi(),Hpe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(Hpe||{}),qpe=(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))(qpe||{}),Jpe=(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))(Jpe||{}),Kpe=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function sCe(e,t,r,i){const o=DL(e)?new i$(e,t,r):e===80?new a$(80,t,r):e===81?new s$(81,t,r):new Qpe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}function R$e(e,t){if(!DL(e.kind))return et;const r=[];if(J6(e))return e.forEachChild(l=>{r.push(l)}),r;td.setText((t||e.getSourceFile()).text);let i=e.pos;const o=l=>{E9(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{E9(r,i,l.pos,e),r.push(D$e(l,e)),i=l.end};return Ve(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),E9(r,i,e.end,e),td.setText(void 0),r}function E9(e,t,r,i){for(td.resetTokenState(t);t<r;){const o=td.scan(),s=td.getTokenEnd();if(s<=r){if(o===80){if(bae(i))continue;N.fail(`Did not expect ${N.formatSyntaxKind(i.kind)} to have an Identifier in its trivia`)}e.push(sCe(o,t,s,i))}if(t=s,o===1)break}}function D$e(e,t){const r=sCe(358,e.pos,e.end,t);r._children=[];let i=e.pos;for(const o of e)E9(r._children,i,o.pos,t),r._children.push(o),i=o.end;return E9(r._children,i,e.end,t),r}function lCe(e){return f0(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function e$(e,t){if(!e)return et;let r=G0.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(lCe))){const i=new Set;for(const o of e){const s=cCe(t,o,l=>{var u;if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualJsDocTags(o,t):((u=l.declarations)==null?void 0:u.length)===1?l.getJsDocTags():void 0});s&&(r=[...s,...r])}}return r}function S9(e,t){if(!e)return et;let r=G0.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(lCe))){const i=new Set;for(const o of e){const s=cCe(t,o,l=>{if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualDocumentationComment(o,t):l.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(wR(),r))}}return r}function cCe(e,t,r){var i;const o=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!o)return;const s=Ec(t);return $t(VN(o),l=>{const u=e.getTypeAtLocation(l),p=s&&u.symbol?e.getTypeOfSymbol(u.symbol):u,v=e.getPropertyOfType(p,t.symbol.name);return v?r(v):void 0})}function N$e(){return{getNodeConstructor:()=>i$,getTokenConstructor:()=>Qpe,getIdentifierConstructor:()=>a$,getPrivateIdentifierConstructor:()=>s$,getSourceFileConstructor:()=>_Ce,getSymbolConstructor:()=>pCe,getTypeConstructor:()=>fCe,getSignatureConstructor:()=>mCe,getSourceMapSourceConstructor:()=>hCe}}function r4(e){let t=!0;for(const i in e)if(Ls(e,i)&&!uCe(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(Ls(e,i)){const o=uCe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function uCe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function i4(e){return e?Wt(e,t=>t.text).join(""):""}function T9(){return{target:1,jsx:1}}function t$(){return Bu.getSupportedErrorCodes()}function dCe(e,t,r){e.version=r,e.scriptSnapshot=t}function A9(e,t,r,i,o,s){const l=Iw(e,MR(t),r,o,s);return dCe(l,t,i),l}function n$(e,t,r,i,o){if(i&&r!==e.version){let l;const u=i.span.start!==0?e.text.substr(0,i.span.start):"",p=tc(i.span)!==e.text.length?e.text.substr(tc(i.span)):"";if(i.newLength===0)l=u&&p?u+p:u||p;else{const f=t.getText(i.span.start,i.span.start+i.newLength);l=u&&p?u+f+p:u?u+f:f+p}const v=mq(e,l,i,o);return dCe(v,t,r),v.nameTable=void 0,e!==v&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),v}const s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return A9(e.fileName,t,s,r,!0,e.scriptKind)}function Xpe(e,t=Mde(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;const s=new gCe(e);let l,u,p=0;const v=e.getCancellationToken?new yCe(e.getCancellationToken()):vCe,f=e.getCurrentDirectory();Qoe((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function b(L){e.log&&e.log(L)}const A=w2(e),I=ku(A),R=qde({useCaseSensitiveFileNames:()=>A,getCurrentDirectory:()=>f,getProgram:U,fileExists:aa(e,e.fileExists),readFile:aa(e,e.readFile),getDocumentPositionMapper:aa(e,e.getDocumentPositionMapper),getSourceFileLike:aa(e,e.getSourceFileLike),log:b});function M(L){const me=l.getSourceFile(L);if(!me){const J=new Error(`Could not find source file: '${L}'.`);throw J.ProgramFiles=l.getSourceFiles().map(fe=>fe.fileName),J}return me}function C(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():W()}function W(){var L,me,J;if(N.assert(o!==2),e.getProjectVersion){const ao=e.getProjectVersion();if(ao){if(u===ao&&!((L=e.hasChangedAutomaticTypeDirectiveNames)!=null&&L.call(e)))return;u=ao}}const fe=e.getTypeRootsVersion?e.getTypeRootsVersion():0;p!==fe&&(b("TypeRoots version has changed; provide new program"),l=void 0,p=fe);const je=e.getScriptFileNames().slice(),ke=e.getCompilationSettings()||T9(),Tt=e.hasInvalidatedResolutions||Ym,kt=aa(e,e.hasInvalidatedLibResolutions)||Ym,nn=aa(e,e.hasChangedAutomaticTypeDirectiveNames),En=(me=e.getProjectReferences)==null?void 0:me.call(e);let or,pr={getSourceFile:ba,getSourceFileByPath:Gl,getCancellationToken:()=>v,getCanonicalFileName:I,useCaseSensitiveFileNames:()=>A,getNewLine:()=>Uv(ke),getDefaultLibFileName:ao=>e.getDefaultLibFileName(ao),writeFile:is,getCurrentDirectory:()=>f,fileExists:ao=>e.fileExists(ao),readFile:ao=>e.readFile&&e.readFile(ao),getSymlinkCache:aa(e,e.getSymlinkCache),realpath:aa(e,e.realpath),directoryExists:ao=>Qm(ao,e),getDirectories:ao=>e.getDirectories?e.getDirectories(ao):[],readDirectory:(ao,Ga,ka,Ts,oc)=>(N.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(ao,Ga,ka,Ts,oc)),onReleaseOldSourceFile:Qt,onReleaseParsedCommandLine:Xa,hasInvalidatedResolutions:Tt,hasInvalidatedLibResolutions:kt,hasChangedAutomaticTypeDirectiveNames:nn,trace:aa(e,e.trace),resolveModuleNames:aa(e,e.resolveModuleNames),getModuleResolutionCache:aa(e,e.getModuleResolutionCache),createHash:aa(e,e.createHash),resolveTypeReferenceDirectives:aa(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:aa(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:aa(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:aa(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:aa(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:vi,jsDocParsingMode:e.jsDocParsingMode};const ai=pr.getSourceFile,{getSourceFileWithCache:li}=oO(pr,ao=>ll(ao,f,I),(...ao)=>ai.call(pr,...ao));pr.getSourceFile=li,(J=e.setCompilerHost)==null||J.call(e,pr);const Qn={useCaseSensitiveFileNames:A,fileExists:ao=>pr.fileExists(ao),readFile:ao=>pr.readFile(ao),directoryExists:ao=>pr.directoryExists(ao),getDirectories:ao=>pr.getDirectories(ao),realpath:pr.realpath,readDirectory:(...ao)=>pr.readDirectory(...ao),trace:pr.trace,getCurrentDirectory:pr.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:is},qr=t.getKeyForCompilationSettings(ke);let Ao=new Set;if(eK(l,je,ke,(ao,Ga)=>e.getScriptVersion(Ga),ao=>pr.fileExists(ao),Tt,kt,nn,vi,En)){pr=void 0,or=void 0,Ao=void 0;return}l=OW({rootNames:je,options:ke,host:pr,oldProgram:l,projectReferences:En}),pr=void 0,or=void 0,Ao=void 0,R.clearCache(),l.getTypeChecker();return;function vi(ao){const Ga=ll(ao,f,I),ka=or==null?void 0:or.get(Ga);if(ka!==void 0)return ka||void 0;const Ts=e.getParsedCommandLine?e.getParsedCommandLine(ao):ya(ao);return(or||(or=new Map)).set(Ga,Ts||!1),Ts}function ya(ao){const Ga=ba(ao,100);if(!!Ga)return Ga.path=ll(ao,f,I),Ga.resolvedPath=Ga.path,Ga.originalFileName=Ga.fileName,Cw(Ga,Qn,To(ii(ao),f),void 0,To(ao,f))}function Xa(ao,Ga,ka){var Ts;e.getParsedCommandLine?(Ts=e.onReleaseParsedCommandLine)==null||Ts.call(e,ao,Ga,ka):Ga&&Qt(Ga.sourceFile,ka)}function Qt(ao,Ga){const ka=t.getKeyForCompilationSettings(Ga);t.releaseDocumentWithKey(ao.resolvedPath,ka,ao.scriptKind,ao.impliedNodeFormat)}function ba(ao,Ga,ka,Ts){return Gl(ao,ll(ao,f,I),Ga,ka,Ts)}function Gl(ao,Ga,ka,Ts,oc){N.assert(pr,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const co=e.getScriptSnapshot(ao);if(!co)return;const da=BX(ao,e),mu=e.getScriptVersion(ao);if(!oc){const Ps=l&&l.getSourceFileByPath(Ga);if(Ps){if(da===Ps.scriptKind||Ao.has(Ps.resolvedPath))return t.updateDocumentWithKey(ao,Ga,e,qr,co,mu,da,ka);t.releaseDocumentWithKey(Ps.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),Ps.scriptKind,Ps.impliedNodeFormat),Ao.add(Ps.resolvedPath)}}return t.acquireDocumentWithKey(ao,Ga,e,qr,co,mu,da,ka)}}function U(){if(o===2){N.assert(l===void 0);return}return C(),l}function X(){var L;return(L=e.getPackageJsonAutoImportProvider)==null?void 0:L.call(e)}function ee(L,me){const J=l.getTypeChecker(),fe=je();if(!fe)return!1;for(const Tt of L)for(const kt of Tt.references){const nn=ke(kt);if(N.assertIsDefined(nn),me.has(kt)||Hs.isDeclarationOfSymbol(nn,fe)){me.add(kt),kt.isDefinition=!0;const En=PF(kt,R,aa(e,e.fileExists));En&&me.add(En)}else kt.isDefinition=!1}return!0;function je(){for(const Tt of L)for(const kt of Tt.references){if(me.has(kt)){const En=ke(kt);return N.assertIsDefined(En),J.getSymbolAtLocation(En)}const nn=PF(kt,R,aa(e,e.fileExists));if(nn&&me.has(nn)){const En=ke(nn);if(En)return J.getSymbolAtLocation(En)}}}function ke(Tt){const kt=l.getSourceFile(Tt.fileName);if(!kt)return;const nn=jd(kt,Tt.textSpan.start);return Hs.Core.getAdjustedNode(nn,{use:Hs.FindReferencesUse.References})}}function V(){if(l){const L=t.getKeyForCompilationSettings(l.getCompilerOptions());Ve(l.getSourceFiles(),me=>t.releaseDocumentWithKey(me.resolvedPath,L,me.scriptKind,me.impliedNodeFormat)),l=void 0}}function se(){V(),e=void 0}function G(L){return C(),l.getSyntacticDiagnostics(M(L),v).slice()}function re(L){C();const me=M(L),J=l.getSemanticDiagnostics(me,v);if(!Nf(l.getCompilerOptions()))return J.slice();const fe=l.getDeclarationDiagnostics(me,v);return[...J,...fe]}function _e(L){return C(),vY(M(L),l,v)}function ye(){return C(),[...l.getOptionsDiagnostics(v),...l.getGlobalDiagnostics(v)]}function Q(L,me,J=kf,fe){const je={...J,includeCompletionsForModuleExports:J.includeCompletionsForModuleExports||J.includeExternalModuleExports,includeCompletionsWithInsertText:J.includeCompletionsWithInsertText||J.includeInsertTextCompletions};return C(),qI.getCompletionsAtPosition(e,l,b,M(L),me,je,J.triggerCharacter,J.triggerKind,v,fe&&Bc.getFormatContext(fe,e),J.includeSymbol)}function Y(L,me,J,fe,je,ke=kf,Tt){return C(),qI.getCompletionEntryDetails(l,b,M(L),me,{name:J,source:je,data:Tt},e,fe&&Bc.getFormatContext(fe,e),ke,v)}function oe(L,me,J,fe,je=kf){return C(),qI.getCompletionEntrySymbol(l,b,M(L),me,{name:J,source:fe},e,je)}function he(L,me){C();const J=M(L),fe=jd(J,me);if(fe===J)return;const je=l.getTypeChecker(),ke=Ie(fe),Tt=L$e(ke,je);if(!Tt||je.isUnknownSymbol(Tt)){const pr=de(J,ke,me)?je.getTypeAtLocation(ke):void 0;return pr&&{kind:"",kindModifiers:"",textSpan:Nd(ke,J),displayParts:je.runWithCancellationToken(v,ai=>kO(ai,pr,aT(ke))),documentation:pr.symbol?pr.symbol.getDocumentationComment(je):void 0,tags:pr.symbol?pr.symbol.getJsDocTags(je):void 0}}const{symbolKind:kt,displayParts:nn,documentation:En,tags:or}=je.runWithCancellationToken(v,pr=>iy.getSymbolDisplayPartsDocumentationAndSymbolKind(pr,Tt,J,aT(ke),ke));return{kind:kt,kindModifiers:iy.getSymbolModifiers(je,Tt),textSpan:Nd(ke,J),displayParts:nn,documentation:En,tags:or}}function Ie(L){return iE(L.parent)&&L.pos===L.parent.pos?L.parent.expression:$2(L.parent)&&L.pos===L.parent.pos||h2(L.parent)&&L.parent.name===L||n_(L.parent)?L.parent:L}function de(L,me,J){switch(me.kind){case 80:return!sX(me)&&!lX(me)&&!Wg(me.parent);case 211:case 166:return!Qv(L,J);case 110:case 197:case 108:case 202:return!0;case 236:return h2(me);default:return!1}}function ie(L,me,J,fe){return C(),XR.getDefinitionAtPosition(l,M(L),me,J,fe)}function ge(L,me){return C(),XR.getDefinitionAndBoundSpan(l,M(L),me)}function Ce(L,me){return C(),XR.getTypeDefinitionAtPosition(l.getTypeChecker(),M(L),me)}function qe(L,me){return C(),Hs.getImplementationsAtPosition(l,v,l.getSourceFiles(),M(L),me)}function Se(L,me,J){const fe=va(L);N.assert(J.some(Tt=>va(Tt)===fe)),C();const je=Vi(J,Tt=>l.getSourceFile(Tt)),ke=M(L);return ZF.getDocumentHighlights(l,v,ke,me,je)}function Le(L,me,J,fe,je){C();const ke=M(L),Tt=gF(jd(ke,me));if(!!Q9.nodeIsEligibleForRename(Tt))if(Ue(Tt)&&(W_(Tt.parent)||sE(Tt.parent))&&L2(Tt.escapedText)){const{openingElement:kt,closingElement:nn}=Tt.parent.parent;return[kt,nn].map(En=>{const or=Nd(En.tagName,ke);return{fileName:ke.fileName,textSpan:or,...Hs.toContextSpan(or,ke,En.parent)}})}else{const kt=uf(ke,je!=null?je:kf),nn=typeof je=="boolean"?je:je==null?void 0:je.providePrefixAndSuffixTextForRename;return Oe(Tt,me,{findInStrings:J,findInComments:fe,providePrefixAndSuffixTextForRename:nn,use:Hs.FindReferencesUse.Rename},(En,or,pr)=>Hs.toRenameLocation(En,or,pr,nn||!1,kt))}}function Ne(L,me){return C(),Oe(jd(M(L),me),me,{use:Hs.FindReferencesUse.References},Hs.toReferenceEntry)}function Oe(L,me,J,fe){C();const je=J&&J.use===Hs.FindReferencesUse.Rename?l.getSourceFiles().filter(ke=>!l.isSourceFileDefaultLibrary(ke)):l.getSourceFiles();return Hs.findReferenceOrRenameEntries(l,v,je,L,me,J,fe)}function At(L,me){return C(),Hs.findReferencedSymbols(l,v,l.getSourceFiles(),M(L),me)}function be(L){return C(),Hs.Core.getReferencesForFileName(L,l,l.getSourceFiles()).map(Hs.toReferenceEntry)}function He(L,me,J,fe=!1,je=!1){C();const ke=J?[M(J)]:l.getSourceFiles();return LDe(ke,l.getTypeChecker(),v,L,me,fe,je)}function it(L,me,J){C();const fe=M(L),je=e.getCustomTransformers&&e.getCustomTransformers();return Gce(l,fe,!!me,v,je,J)}function Ft(L,me,{triggerReason:J}=kf){C();const fe=M(L);return b4.getSignatureHelpItems(l,fe,me,J,v)}function yt(L){return s.getCurrentSourceFile(L)}function Ze(L,me,J){const fe=s.getCurrentSourceFile(L),je=jd(fe,me);if(je===fe)return;switch(je.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let ke=je;for(;;)if(NR(ke)||Gue(ke))ke=ke.parent;else if(uX(ke))if(ke.parent.parent.kind===267&&ke.parent.parent.body===ke.parent)ke=ke.parent.parent.name;else break;else break;return yc(ke.getStart(),je.getEnd())}function It(L,me){const J=s.getCurrentSourceFile(L);return c$.spanInSourceFileAtLocation(J,me)}function on(L){return WDe(s.getCurrentSourceFile(L),v)}function Yt(L){return FDe(s.getCurrentSourceFile(L),v)}function Nn(L,me,J){return C(),(J||"original")==="2020"?rCe(l,v,M(L),me):Cde(l.getTypeChecker(),v,M(L),l.getClassifiableNames(),me)}function Xn(L,me,J){return C(),(J||"original")==="original"?dY(l.getTypeChecker(),v,M(L),l.getClassifiableNames(),me):Upe(l,v,M(L),me)}function yn(L,me){return Pde(v,s.getCurrentSourceFile(L),me)}function tn(L,me){return pY(v,s.getCurrentSourceFile(L),me)}function en(L){const me=s.getCurrentSourceFile(L);return oZ.collectElements(me,v)}const gi=new Map(Object.entries({[19]:20,[21]:22,[23]:24,[32]:30}));gi.forEach((L,me)=>gi.set(L.toString(),Number(me)));function bo(L,me){const J=s.getCurrentSourceFile(L),fe=PR(J,me),je=fe.getStart(J)===me?gi.get(fe.kind.toString()):void 0,ke=je&&Is(fe.parent,je,J);return ke?[Nd(fe,J),Nd(ke,J)].sort((Tt,kt)=>Tt.start-kt.start):et}function Ui(L,me,J){let fe=Qs();const je=r4(J),ke=s.getCurrentSourceFile(L);b("getIndentationAtPosition: getCurrentSourceFile: "+(Qs()-fe)),fe=Qs();const Tt=Bc.SmartIndenter.getIndentation(me,ke,je);return b("getIndentationAtPosition: computeIndentation : "+(Qs()-fe)),Tt}function Co(L,me,J,fe){const je=s.getCurrentSourceFile(L);return Bc.formatSelection(me,J,je,Bc.getFormatContext(r4(fe),e))}function tr(L,me){return Bc.formatDocument(s.getCurrentSourceFile(L),Bc.getFormatContext(r4(me),e))}function Ci(L,me,J,fe){const je=s.getCurrentSourceFile(L),ke=Bc.getFormatContext(r4(fe),e);if(!Qv(je,me))switch(J){case"{":return Bc.formatOnOpeningCurly(me,je,ke);case"}":return Bc.formatOnClosingCurly(me,je,ke);case";":return Bc.formatOnSemicolon(me,je,ke);case`
`:return Bc.formatOnEnter(me,je,ke)}return[]}function Nr(L,me,J,fe,je,ke=kf){C();const Tt=M(L),kt=yc(me,J),nn=Bc.getFormatContext(je,e);return qi(N1(fe,Mv,al),En=>(v.throwIfCancellationRequested(),Bu.getFixes({errorCode:En,sourceFile:Tt,span:kt,program:l,host:e,cancellationToken:v,formatContext:nn,preferences:ke})))}function Kt(L,me,J,fe=kf){C(),N.assert(L.type==="file");const je=M(L.fileName),ke=Bc.getFormatContext(J,e);return Bu.getAllFixes({fixId:me,sourceFile:je,program:l,host:e,cancellationToken:v,formatContext:ke,preferences:fe})}function nt(L,me,J=kf){var Tt;C(),N.assert(L.type==="file");const fe=M(L.fileName),je=Bc.getFormatContext(me,e),ke=(Tt=L.mode)!=null?Tt:L.skipDestructiveCodeActions?"SortAndCombine":"All";return Wm.organizeImports(fe,je,e,l,J,ke)}function Bt(L,me,J,fe=kf){return kde(U(),L,me,e,Bc.getFormatContext(J,e),fe,R)}function Dn(L,me){const J=typeof L=="string"?me:L;return Do(J)?Promise.all(J.map(fe=>si(fe))):si(J)}function si(L){const me=J=>ll(J,f,I);return N.assertEqual(L.type,"install package"),e.installPackage?e.installPackage({fileName:me(L.file),packageName:L.packageName}):Promise.reject("Host does not implement `installPackage`")}function yi(L,me,J,fe){const je=fe?Bc.getFormatContext(fe,e).options:void 0;return G0.getDocCommentTemplateAtPosition(ty(e,je),s.getCurrentSourceFile(L),me,J)}function oo(L,me,J){if(J===60)return!1;const fe=s.getCurrentSourceFile(L);if(wI(fe,me))return!1;if(Kue(fe,me))return J===123;if(hX(fe,me))return!1;switch(J){case 39:case 34:case 96:return!Qv(fe,me)}return!0}function Po(L,me){const J=s.getCurrentSourceFile(L),fe=Cc(me,J);if(!fe)return;const je=fe.kind===32&&W_(fe.parent)?fe.parent.parent:sI(fe)&&pg(fe.parent)?fe.parent:void 0;if(je&&pt(je))return{newText:`</${je.openingElement.tagName.getText(J)}>`};const ke=fe.kind===32&&EI(fe.parent)?fe.parent.parent:sI(fe)&&lE(fe.parent)?fe.parent:void 0;if(ke&&Pt(ke))return{newText:"</>"}}function _a(L,me){const J=s.getCurrentSourceFile(L),fe=Cc(me,J);if(!fe||fe.parent.kind===312)return;const je="[a-zA-Z0-9:\\-\\._$]*";if(lE(fe.parent.parent)){const ke=fe.parent.parent.openingFragment,Tt=fe.parent.parent.closingFragment;if(d2(ke)||d2(Tt))return;const kt=ke.getStart(J)+1,nn=Tt.getStart(J)+2;return me!==kt&&me!==nn?void 0:{ranges:[{start:kt,length:0},{start:nn,length:0}],wordPattern:je}}else{const ke=jn(fe.parent,li=>!!(W_(li)||sE(li)));if(!ke)return;N.assert(W_(ke)||sE(ke),"tag should be opening or closing element");const Tt=ke.parent.openingElement,kt=ke.parent.closingElement,nn=Tt.tagName.getStart(J),En=Tt.tagName.end,or=kt.tagName.getStart(J),pr=kt.tagName.end;return nn===Tt.getStart(J)||or===kt.getStart(J)||En===Tt.getEnd()||pr===kt.getEnd()||!(nn<=me&&me<=En||or<=me&&me<=pr)||Tt.tagName.getText(J)!==kt.tagName.getText(J)?void 0:{ranges:[{start:nn,length:En-nn},{start:or,length:pr-or}],wordPattern:je}}}function Ba(L,me){return{lineStarts:L.getLineStarts(),firstLine:L.getLineAndCharacterOfPosition(me.pos).line,lastLine:L.getLineAndCharacterOfPosition(me.end).line}}function Tn(L,me,J){const fe=s.getCurrentSourceFile(L),je=[],{lineStarts:ke,firstLine:Tt,lastLine:kt}=Ba(fe,me);let nn=J||!1,En=Number.MAX_VALUE;const or=new Map,pr=new RegExp(/\S/),ai=bF(fe,ke[Tt]),li=ai?"{/*":"//";for(let Qn=Tt;Qn<=kt;Qn++){const qr=fe.text.substring(ke[Qn],fe.getLineEndOfPosition(ke[Qn])),Ao=pr.exec(qr);Ao&&(En=Math.min(En,Ao.index),or.set(Qn.toString(),Ao.index),qr.substr(Ao.index,li.length)!==li&&(nn=J===void 0||J))}for(let Qn=Tt;Qn<=kt;Qn++){if(Tt!==kt&&ke[Qn]===me.end)continue;const qr=or.get(Qn.toString());qr!==void 0&&(ai?je.push(...On(L,{pos:ke[Qn]+En,end:fe.getLineEndOfPosition(ke[Qn])},nn,ai)):nn?je.push({newText:li,span:{length:0,start:ke[Qn]+En}}):fe.text.substr(ke[Qn]+qr,li.length)===li&&je.push({newText:"",span:{length:li.length,start:ke[Qn]+qr}}))}return je}function On(L,me,J,fe){var je;const ke=s.getCurrentSourceFile(L),Tt=[],{text:kt}=ke;let nn=!1,En=J||!1;const or=[];let{pos:pr}=me;const ai=fe!==void 0?fe:bF(ke,pr),li=ai?"{/*":"/*",Qn=ai?"*/}":"*/",qr=ai?"\\{\\/\\*":"\\/\\*",Ao=ai?"\\*\\/\\}":"\\*\\/";for(;pr<=me.end;){const Fi=kt.substr(pr,li.length)===li?li.length:0,vi=Qv(ke,pr+Fi);if(vi)ai&&(vi.pos--,vi.end++),or.push(vi.pos),vi.kind===3&&or.push(vi.end),nn=!0,pr=vi.end+1;else{const ya=kt.substring(pr,me.end).search(`(${qr})|(${Ao})`);En=J!==void 0?J:En||!ade(kt,pr,ya===-1?me.end:pr+ya),pr=ya===-1?me.end+1:pr+ya+Qn.length}}if(En||!nn){((je=Qv(ke,me.pos))==null?void 0:je.kind)!==2&&Ay(or,me.pos,al),Ay(or,me.end,al);const Fi=or[0];kt.substr(Fi,li.length)!==li&&Tt.push({newText:li,span:{length:0,start:Fi}});for(let vi=1;vi<or.length-1;vi++)kt.substr(or[vi]-Qn.length,Qn.length)!==Qn&&Tt.push({newText:Qn,span:{length:0,start:or[vi]}}),kt.substr(or[vi],li.length)!==li&&Tt.push({newText:li,span:{length:0,start:or[vi]}});Tt.length%2!==0&&Tt.push({newText:Qn,span:{length:0,start:or[or.length-1]}})}else for(const Fi of or){const vi=Fi-Qn.length>0?Fi-Qn.length:0,ya=kt.substr(vi,Qn.length)===Qn?Qn.length:0;Tt.push({newText:"",span:{length:li.length,start:Fi-ya}})}return Tt}function Je(L,me){const J=s.getCurrentSourceFile(L),{firstLine:fe,lastLine:je}=Ba(J,me);return fe===je&&me.pos!==me.end?On(L,me,!0):Tn(L,me,!0)}function mt(L,me){const J=s.getCurrentSourceFile(L),fe=[],{pos:je}=me;let{end:ke}=me;je===ke&&(ke+=bF(J,je)?2:1);for(let Tt=je;Tt<=ke;Tt++){const kt=Qv(J,Tt);if(kt){switch(kt.kind){case 2:fe.push(...Tn(L,{end:kt.end,pos:kt.pos+1},!1));break;case 3:fe.push(...On(L,{end:kt.end,pos:kt.pos+1},!1))}Tt=kt.end+1}}return fe}function pt({openingElement:L,closingElement:me,parent:J}){return!C0(L.tagName,me.tagName)||pg(J)&&C0(L.tagName,J.openingElement.tagName)&&pt(J)}function Pt({closingFragment:L,parent:me}){return!!(L.flags&262144)||lE(me)&&Pt(me)}function le(L,me,J){const fe=s.getCurrentSourceFile(L),je=Bc.getRangeOfEnclosingComment(fe,me);return je&&(!J||je.kind===3)?ob(je):void 0}function Fe(L,me){C();const J=M(L);v.throwIfCancellationRequested();const fe=J.text,je=[];if(me.length>0&&!nn(J.fileName)){const En=Tt();let or;for(;or=En.exec(fe);){v.throwIfCancellationRequested();const pr=3;N.assert(or.length===me.length+pr);const ai=or[1],li=or.index+ai.length;if(!Qv(J,li))continue;let Qn;for(let Ao=0;Ao<me.length;Ao++)or[Ao+pr]&&(Qn=me[Ao]);if(Qn===void 0)return N.fail();if(kt(fe.charCodeAt(li+Qn.text.length)))continue;const qr=or[2];je.push({descriptor:Qn,message:qr,position:li})}}return je;function ke(En){return En.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Tt(){const En=/(?:\/\/+\s*)/.source,or=/(?:\/\*+\s*)/.source,ai="("+/(?:^(?:\s|\*)*)/.source+"|"+En+"|"+or+")",li="(?:"+Wt(me,vi=>"("+ke(vi.text)+")").join("|")+")",Qn=/(?:$|\*\/)/.source,qr=/(?:.*?)/.source,Ao="("+li+qr+")",Fi=ai+Ao+Qn;return new RegExp(Fi,"gim")}function kt(En){return En>=97&&En<=122||En>=65&&En<=90||En>=48&&En<=57}function nn(En){return En.includes("/node_modules/")}}function dt(L,me,J){return C(),Q9.getRenameInfo(l,M(L),me,J||{})}function j(L,me,J,fe,je,ke){const[Tt,kt]=typeof me=="number"?[me,void 0]:[me.pos,me.end];return{file:L,startPosition:Tt,endPosition:kt,program:U(),host:e,formatContext:Bc.getFormatContext(fe,e),cancellationToken:v,preferences:J,triggerReason:je,kind:ke}}function ot(L,me,J){return{file:L,program:U(),host:e,span:me,preferences:J,cancellationToken:v}}function Dt(L,me){return lZ.getSmartSelectionRange(me,s.getCurrentSourceFile(L))}function Ye(L,me,J=kf,fe,je,ke){C();const Tt=M(L);return BI.getApplicableRefactors(j(Tt,me,J,kf,fe,je),ke)}function _t(L,me,J=kf){C();const fe=M(L),je=N.checkDefined(l.getSourceFiles()),ke=uC(L),Tt=$O(j(fe,me,J,kf)),kt=Epe(Tt==null?void 0:Tt.all),nn=Vi(je,En=>{const or=uC(En.fileName);return!(l!=null&&l.isSourceFileFromExternalLibrary(fe))&&!(fe===M(En.fileName)||ke===".ts"&&or===".d.ts"||ke===".d.ts"&&ho(dc(En.fileName),"lib.")&&or===".d.ts")&&(ke===or||(ke===".tsx"&&or===".ts"||ke===".jsx"&&or===".js")&&!kt)?En.fileName:void 0});return{newFileName:bpe(fe,l,e,Tt),files:nn}}function Gt(L,me,J,fe,je,ke=kf,Tt){C();const kt=M(L);return BI.getEditsForRefactor(j(kt,J,ke,me),fe,je,Tt)}function gn(L,me){return me===0?{line:0,character:0}:R.toLineColumnOffset(L,me)}function hn(L,me){C();const J=GI.resolveCallHierarchyDeclaration(l,jd(M(L),me));return J&&$X(J,fe=>GI.createCallHierarchyItem(l,fe))}function pn(L,me){C();const J=M(L),fe=QX(GI.resolveCallHierarchyDeclaration(l,me===0?J:jd(J,me)));return fe?GI.getIncomingCalls(l,fe,v):[]}function q(L,me){C();const J=M(L),fe=QX(GI.resolveCallHierarchyDeclaration(l,me===0?J:jd(J,me)));return fe?GI.getOutgoingCalls(l,fe):[]}function We(L,me,J=kf){C();const fe=M(L);return tZ.provideInlayHints(ot(fe,me,J))}const Lt={dispose:se,cleanupSemanticCache:V,getSyntacticDiagnostics:G,getSemanticDiagnostics:re,getSuggestionDiagnostics:_e,getCompilerOptionsDiagnostics:ye,getSyntacticClassifications:yn,getSemanticClassifications:Nn,getEncodedSyntacticClassifications:tn,getEncodedSemanticClassifications:Xn,getCompletionsAtPosition:Q,getCompletionEntryDetails:Y,getCompletionEntrySymbol:oe,getSignatureHelpItems:Ft,getQuickInfoAtPosition:he,getDefinitionAtPosition:ie,getDefinitionAndBoundSpan:ge,getImplementationAtPosition:qe,getTypeDefinitionAtPosition:Ce,getReferencesAtPosition:Ne,findReferences:At,getFileReferences:be,getDocumentHighlights:Se,getNameOrDottedNameSpan:Ze,getBreakpointStatementAtPosition:It,getNavigateToItems:He,getRenameInfo:dt,getSmartSelectionRange:Dt,findRenameLocations:Le,getNavigationBarItems:on,getNavigationTree:Yt,getOutliningSpans:en,getTodoComments:Fe,getBraceMatchingAtPosition:bo,getIndentationAtPosition:Ui,getFormattingEditsForRange:Co,getFormattingEditsForDocument:tr,getFormattingEditsAfterKeystroke:Ci,getDocCommentTemplateAtPosition:yi,isValidBraceCompletionAtPosition:oo,getJsxClosingTagAtPosition:Po,getLinkedEditingRangeAtPosition:_a,getSpanOfEnclosingComment:le,getCodeFixesAtPosition:Nr,getCombinedCodeFix:Kt,applyCodeActionCommand:Dn,organizeImports:nt,getEditsForFileRename:Bt,getEmitOutput:it,getNonBoundSourceFile:yt,getProgram:U,getCurrentProgram:()=>l,getAutoImportProvider:X,updateIsDefinitionOfReferencedSymbols:ee,getApplicableRefactors:Ye,getEditsForRefactor:Gt,getMoveToRefactoringFileSuggestions:_t,toLineColumnOffset:gn,getSourceMapper:()=>R,clearSourceMapperCache:()=>R.clearCache(),prepareCallHierarchy:hn,provideCallHierarchyIncomingCalls:pn,provideCallHierarchyOutgoingCalls:q,toggleLineComment:Tn,toggleMultilineComment:On,commentSelection:Je,uncommentSelection:mt,provideInlayHints:We,getSupportedCodeFixes:t$};switch(o){case 0:break;case 1:Zpe.forEach(L=>Lt[L]=()=>{throw new Error(`LanguageService Operation: ${L} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:bCe.forEach(L=>Lt[L]=()=>{throw new Error(`LanguageService Operation: ${L} not allowed in LanguageServiceMode.Syntactic`)});break;default:N.assertNever(o)}return Lt}function r$(e){return e.nameTable||C$e(e),e.nameTable}function C$e(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(Ue(i)&&!lX(i)&&i.escapedText||nf(i)&&P$e(i)){const o=HN(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(Qi(i)){const o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Uo(i,r),zp(i))for(const o of i.jsDoc)Uo(o,r)})}function P$e(e){return Gg(e)||e.parent.kind===283||k$e(e)||vk(e)}function o4(e){const t=M$e(e);return t&&(za(t.parent)||cE(t.parent))?t:void 0}function M$e(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return Tj(e.parent.parent)?e.parent.parent:void 0;case 80:return Tj(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function L$e(e,t){const r=o4(e);if(r){const i=t.getContextualType(r.parent),o=i&&I9(r,t,i,!1);if(o&&o.length===1)return $a(o)}return t.getSymbolAtLocation(e)}function I9(e,t,r,i){const o=PO(e.name);if(!o)return et;if(!r.isUnion()){const u=r.getProperty(o);return u?[u]:et}const s=za(e.parent)||cE(e.parent)?Vn(r.types,u=>!t.isTypeInvalidDueToUnionDiscriminant(u,e.parent)):r.types,l=Vi(s,u=>u.getProperty(o));if(i&&(l.length===0||l.length===r.types.length)){const u=r.getProperty(o);if(u)return[u]}return!s.length&&!l.length?Vi(r.types,u=>u.getProperty(o)):N1(l,Mv)}function k$e(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function Ype(e){if(bu)return $r(ii(va(bu.getExecutingFilePath())),bL(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var $pe,i$,o$,pCe,Qpe,a$,s$,fCe,mCe,_Ce,hCe,gCe,vCe,yCe,l$,Zpe,bCe,w$e=S({"src/services/services.ts"(){oi(),ODe(),rNe(),Ch(),pDe(),aCe(),$pe="0.8",i$=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){N.assert(!e_(this.pos)&&!e_(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Jn(this)}getStart(e,t){return this.assertHasRealPosition(),_0(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=R$e(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=un(t,i=>i.kind<316||i.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),r=il(t);if(!!r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Uo(this,e,t)}},o$=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 Jn(this)}getStart(e,t){return _0(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||et}getFirstToken(){}getLastToken(){}forEachChild(){}},pCe=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Il(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=et,!this.declarations&&gh(this)&&this.links.target&&gh(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=S9([t],e)}else this.documentationComment=S9(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Oy(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=S9(Vn(this.declarations,Oy),t)),Pe(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Fv(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=S9(Vn(this.declarations,Fv),t)),Pe(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=e$(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Oy(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=e$(Vn(this.declarations,Oy),t)),Pe(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Fv(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=e$(Vn(this.declarations,Fv),t)),Pe(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},Qpe=class extends o${constructor(e,t,r){super(t,r),this.kind=e}},a$=class extends o${constructor(e,t,r){super(t,r),this.kind=80}get text(){return Rr(this)}},a$.prototype.kind=80,s$=class extends o${constructor(e,t,r){super(t,r),this.kind=81}get text(){return Rr(this)}},s$.prototype.kind=81,fCe=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(zr(this)&3)}isClass(){return!!(zr(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(zr(this)&4)return this.checker.getTypeArguments(this)}},mCe=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()&&gC(t.type)){const r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=S9(NA(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=e$(NA(this.declaration),this.checker))}},_Ce=class extends i${constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return mq(this,e,t)}getLineAndCharacterOfPosition(e){return Rs(this,e)}getLineStarts(){return wg(this)}getPositionOfLineAndCharacter(e,t,r){return R6(wg(this),e,t,this.text,r)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts();let i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);const o=this.getFullText();return o[i]===`
`&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=Zp();return this.forEachChild(o),e;function t(s){const l=i(s);l&&e.add(l,s)}function r(s){let l=e.get(s);return l||e.set(s,l=[]),l}function i(s){const l=M6(s);return l&&(ss(l)&&Br(l.expression)?l.expression.name.text:pc(l)?PO(l):void 0)}function o(s){switch(s.kind){case 262:case 218:case 174:case 173:const l=s,u=i(l);if(u){const f=r(u),b=il(f);b&&l.parent===b.parent&&l.symbol===b.symbol?l.body&&!b.body&&(f[f.length-1]=l):f.push(l)}Uo(s,o);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(s),Uo(s,o);break;case 169:if(!Qr(s,31))break;case 260:case 208:{const f=s;if(na(f.name)){Uo(f.name,o);break}f.initializer&&o(f.initializer)}case 306:case 172:case 171:t(s);break;case 278:const p=s;p.exportClause&&(Pf(p.exportClause)?Ve(p.exportClause.elements,o):o(p.exportClause.name));break;case 272:const v=s.importClause;v&&(v.name&&t(v.name),v.namedBindings&&(v.namedBindings.kind===274?t(v.namedBindings):Ve(v.namedBindings.elements,o)));break;case 226:ql(s)!==0&&t(s);default:Uo(s,o)}}}},hCe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return Rs(this,e)}},gCe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,u,p;const v=this.host.getScriptSnapshot(e);if(!v)throw new Error("Could not find file: '"+e+"'.");const f=BX(e,this.host),b=this.host.getScriptVersion(e);let A;if(this.currentFileName!==e){const I={languageVersion:99,impliedNodeFormat:lO(ll(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||Gv(this.host)),(p=(u=(l=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:l.getModuleResolutionCache)==null?void 0:u.call(l))==null?void 0:p.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:kk(this.host.getCompilationSettings()),jsDocParsingMode:0};A=A9(e,v,I,b,!0,f)}else if(this.currentFileVersion!==b){const I=v.getChangeRange(this.currentFileScriptSnapshot);A=n$(this.currentSourceFile,v,b,I)}return A&&(this.currentFileVersion=b,this.currentFileName=e,this.currentFileScriptSnapshot=v,this.currentSourceFile=A),this.currentSourceFile}},vCe={isCancellationRequested:Ym,throwIfCancellationRequested:is},yCe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=ur)==null||e.instant(ur.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Yx}},l$=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Qs();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=ur)==null||e.instant(ur.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Yx}},Zpe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],bCe=[...Zpe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],Yoe(N$e())}});function ECe(e,t,r){const i=[];r=TY(r,i);const o=Do(e)?e:[e],s=Zw(void 0,void 0,O,r,o,t,!0);return s.diagnostics=Ro(s.diagnostics,i),s}var O$e=S({"src/services/transform.ts"(){oi()}});function W$e(e,t){if(e.isDeclarationFile)return;let r=go(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){const b=Cc(r.pos,e);if(!b||e.getLineAndCharacterOfPosition(b.getEnd()).line!==i)return;r=b}if(r.flags&33554432)return;return f(r);function o(b,A){const I=QS(b)?Mi(b.modifiers,Au):void 0,R=I?Wa(e.text,I.end):b.getStart(e);return yc(R,(A||b).getEnd())}function s(b,A){return o(b,EE(A,A.parent,e))}function l(b,A){return b&&i===e.getLineAndCharacterOfPosition(b.getStart(e)).line?f(b):f(A)}function u(b,A,I){if(b){const R=b.indexOf(A);if(R>=0){let M=R,C=R+1;for(;M>0&&I(b[M-1]);)M--;for(;C<b.length&&I(b[C]);)C++;return yc(Wa(e.text,b[M].pos),b[C-1].end)}}return o(A)}function p(b){return f(Cc(b.pos,e))}function v(b){return f(EE(b,b.parent,e))}function f(b){if(b){const{parent:ie}=b;switch(b.kind){case 243:return I(b.declarationList.declarations[0]);case 260:case 172:case 171:return I(b);case 169:return M(b);case 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:return W(b);case 241:if(G1(b))return U(b);case 268:return X(b);case 299:return X(b.block);case 244:return o(b.expression);case 253:return o(b.getChildAt(0),b.expression);case 247:return s(b,b.expression);case 246:return f(b.statement);case 259:return o(b.getChildAt(0));case 245:return s(b,b.expression);case 256:return f(b.statement);case 252:case 251:return o(b.getChildAt(0),b.label);case 248:return V(b);case 249:return s(b,b.expression);case 250:return ee(b);case 255:return s(b,b.expression);case 296:case 297:return f(b.statements[0]);case 258:return X(b.tryBlock);case 257:return o(b,b.expression);case 277:return o(b,b.expression);case 271:return o(b,b.moduleReference);case 272:return o(b,b.moduleSpecifier);case 278:return o(b,b.moduleSpecifier);case 267:if(Xg(b)!==1)return;case 263:case 266:case 306:case 208:return o(b);case 254:return f(b.statement);case 170:return u(ie.modifiers,b,Au);case 206:case 207:return se(b);case 264:case 265:return;case 27:case 1:return l(Cc(b.pos,e));case 28:return p(b);case 19:return re(b);case 20:return _e(b);case 24:return ye(b);case 21:return Q(b);case 22:return Y(b);case 59:return oe(b);case 32:case 30:return he(b);case 117:return Ie(b);case 93:case 85:case 98:return v(b);case 165:return de(b);default:if(Zv(b))return G(b);if((b.kind===80||b.kind===230||b.kind===303||b.kind===304)&&Zv(ie))return o(b);if(b.kind===226){const{left:ge,operatorToken:Ce}=b;if(Zv(ge))return G(ge);if(Ce.kind===64&&Zv(b.parent))return o(b);if(Ce.kind===28)return f(ge)}if(rg(b))switch(ie.kind){case 246:return p(b);case 170:return f(b.parent);case 248:case 250:return o(b);case 226:if(b.parent.operatorToken.kind===28)return o(b);break;case 219:if(b.parent.body===b)return o(b);break}switch(b.parent.kind){case 303:if(b.parent.name===b&&!Zv(b.parent.parent))return f(b.parent.initializer);break;case 216:if(b.parent.type===b)return v(b.parent.type);break;case 260:case 169:{const{initializer:ge,type:Ce}=b.parent;if(ge===b||Ce===b||Vv(b.kind))return p(b);break}case 226:{const{left:ge}=b.parent;if(Zv(ge)&&b!==ge)return p(b);break}default:if(ta(b.parent)&&b.parent.type===b)return p(b)}return f(b.parent)}}function A(ie){return Xc(ie.parent)&&ie.parent.declarations[0]===ie?o(Cc(ie.pos,e,ie.parent),ie):o(ie)}function I(ie){if(ie.parent.parent.kind===249)return f(ie.parent.parent);const ge=ie.parent;if(na(ie.name))return se(ie.name);if(ES(ie)&&ie.initializer||Qr(ie,32)||ge.parent.kind===250)return A(ie);if(Xc(ie.parent)&&ie.parent.declarations[0]!==ie)return f(Cc(ie.pos,e,ie.parent))}function R(ie){return!!ie.initializer||ie.dotDotDotToken!==void 0||Qr(ie,3)}function M(ie){if(na(ie.name))return se(ie.name);if(R(ie))return o(ie);{const ge=ie.parent,Ce=ge.parameters.indexOf(ie);return N.assert(Ce!==-1),Ce!==0?M(ge.parameters[Ce-1]):f(ge.body)}}function C(ie){return Qr(ie,32)||ie.parent.kind===263&&ie.kind!==176}function W(ie){if(!!ie.body)return C(ie)?o(ie):f(ie.body)}function U(ie){const ge=ie.statements.length?ie.statements[0]:ie.getLastToken();return C(ie.parent)?l(ie.parent,ge):f(ge)}function X(ie){switch(ie.parent.kind){case 267:if(Xg(ie.parent)!==1)return;case 247:case 245:case 249:return l(ie.parent,ie.statements[0]);case 248:case 250:return l(Cc(ie.pos,e,ie.parent),ie.statements[0])}return f(ie.statements[0])}function ee(ie){if(ie.initializer.kind===261){const ge=ie.initializer;if(ge.declarations.length>0)return f(ge.declarations[0])}else return f(ie.initializer)}function V(ie){if(ie.initializer)return ee(ie);if(ie.condition)return o(ie.condition);if(ie.incrementor)return o(ie.incrementor)}function se(ie){const ge=Ve(ie.elements,Ce=>Ce.kind!==232?Ce:void 0);return ge?f(ge):ie.parent.kind===208?o(ie.parent):A(ie.parent)}function G(ie){N.assert(ie.kind!==207&&ie.kind!==206);const ge=ie.kind===209?ie.elements:ie.properties,Ce=Ve(ge,qe=>qe.kind!==232?qe:void 0);return Ce?f(Ce):o(ie.parent.kind===226?ie.parent:ie)}function re(ie){switch(ie.parent.kind){case 266:const ge=ie.parent;return l(Cc(ie.pos,e,ie.parent),ge.members.length?ge.members[0]:ge.getLastToken(e));case 263:const Ce=ie.parent;return l(Cc(ie.pos,e,ie.parent),Ce.members.length?Ce.members[0]:Ce.getLastToken(e));case 269:return l(ie.parent.parent,ie.parent.clauses[0])}return f(ie.parent)}function _e(ie){switch(ie.parent.kind){case 268:if(Xg(ie.parent.parent)!==1)return;case 266:case 263:return o(ie);case 241:if(G1(ie.parent))return o(ie);case 299:return f(il(ie.parent.statements));case 269:const ge=ie.parent,Ce=il(ge.clauses);return Ce?f(il(Ce.statements)):void 0;case 206:const qe=ie.parent;return f(il(qe.elements)||qe);default:if(Zv(ie.parent)){const Se=ie.parent;return o(il(Se.properties)||Se)}return f(ie.parent)}}function ye(ie){switch(ie.parent.kind){case 207:const ge=ie.parent;return o(il(ge.elements)||ge);default:if(Zv(ie.parent)){const Ce=ie.parent;return o(il(Ce.elements)||Ce)}return f(ie.parent)}}function Q(ie){return ie.parent.kind===246||ie.parent.kind===213||ie.parent.kind===214?p(ie):ie.parent.kind===217?v(ie):f(ie.parent)}function Y(ie){switch(ie.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return p(ie);default:return f(ie.parent)}}function oe(ie){return ta(ie.parent)||ie.parent.kind===303||ie.parent.kind===169?p(ie):f(ie.parent)}function he(ie){return ie.parent.kind===216?v(ie):f(ie.parent)}function Ie(ie){return ie.parent.kind===246?s(ie,ie.parent.expression):f(ie.parent)}function de(ie){return ie.parent.kind===250?v(ie):f(ie.parent)}}}var F$e=S({"src/services/breakpoints.ts"(){oi()}}),c$={};H(c$,{spanInSourceFileAtLocation:()=>W$e});var z$e=S({"src/services/_namespaces/ts.BreakpointResolver.ts"(){F$e()}});function B$e(e){return(Us(e)||iu(e))&&cd(e)}function SCe(e){return qo(e)||Wi(e)}function a4(e){return(Us(e)||Ks(e)||iu(e))&&SCe(e.parent)&&e===e.parent.initializer&&Ue(e.parent.name)&&(!!(Ov(e.parent)&2)||qo(e.parent))}function TCe(e){return io(e)||nc(e)||Dc(e)||Us(e)||Nc(e)||iu(e)||Pl(e)||Ql(e)||Th(e)||rf(e)||Tp(e)}function jR(e){return io(e)||nc(e)&&Ue(e.name)||Dc(e)||Nc(e)||Pl(e)||Ql(e)||Th(e)||rf(e)||Tp(e)||B$e(e)||a4(e)}function ACe(e){return io(e)?e:cd(e)?e.name:a4(e)?e.parent.name:N.checkDefined(e.modifiers&&un(e.modifiers,ICe))}function ICe(e){return e.kind===90}function xCe(e,t){const r=ACe(t);return r&&e.getSymbolAtLocation(r)}function G$e(e,t){if(io(t))return{text:t.fileName,pos:0,end:0};if((Dc(t)||Nc(t))&&!cd(t)){const o=t.modifiers&&un(t.modifiers,ICe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Pl(t)){const o=t.getSourceFile(),s=Wa(o.text,L_(t).pos),l=s+6,u=e.getTypeChecker(),p=u.getSymbolAtLocation(t.parent);return{text:`${p?`${u.symbolToString(p,t.parent)} `:""}static {}`,pos:s,end:l}}const r=a4(t)?t.parent.name:N.checkDefined(Oo(t),"Expected call hierarchy item to have a name");let i=Ue(r)?Rr(r):nf(r)?r.text:ss(r)&&nf(r.expression)?r.expression.text:void 0;if(i===void 0){const o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){const o=tO();i=PN(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function V$e(e){var t,r,i,o;if(a4(e))return qo(e.parent)&&di(e.parent.parent)?iu(e.parent.parent)?(t=L6(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():O_(e.parent.parent.parent.parent)&&Ue(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(i=L6(e.parent))==null?void 0:i.getText():(o=Oo(e.parent))==null?void 0:o.getText();case 262:case 263:case 267:if(O_(e.parent)&&Ue(e.parent.parent.name))return e.parent.parent.name.getText()}}function RCe(e,t){if(t.body)return t;if(Wl(t))return sg(t.parent);if(Dc(t)||Ql(t)){const r=xCe(e,t);return r&&r.valueDeclaration&&Js(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function DCe(e,t){const r=xCe(e,t);let i;if(r&&r.declarations){const o=YM(r.declarations),s=Wt(r.declarations,p=>({file:p.getSourceFile().fileName,pos:p.pos}));o.sort((p,v)=>Ju(s[p].file,s[v].file)||s[p].pos-s[v].pos);const l=Wt(o,p=>r.declarations[p]);let u;for(const p of l)jR(p)&&((!u||u.parent!==p.parent||u.end!==p.pos)&&(i=Rn(i,p)),u=p)}return i}function u$(e,t){var r,i,o;return Pl(t)?t:Js(t)?(i=(r=RCe(e,t))!=null?r:DCe(e,t))!=null?i:t:(o=DCe(e,t))!=null?o:t}function NCe(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(jR(t))return u$(r,t);if(TCe(t)){const o=jn(t,jR);return o&&u$(r,o)}if(Gg(t)){if(jR(t.parent))return u$(r,t.parent);if(TCe(t.parent)){const o=jn(t.parent,jR);return o&&u$(r,o)}return SCe(t.parent)&&t.parent.initializer&&a4(t.parent.initializer)?t.parent.initializer:void 0}if(Wl(t))return jR(t.parent)?t.parent:void 0;if(t.kind===126&&Pl(t.parent)){t=t.parent;continue}if(Wi(t)&&t.initializer&&a4(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 efe(e,t){const r=t.getSourceFile(),i=G$e(e,t),o=V$e(t),s=bE(t),l=gP(t),u=yc(Wa(r.text,t.getFullStart(),!1,!0),t.getEnd()),p=yc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:u,selectionSpan:p}}function j$e(e){return e!==void 0}function U$e(e){if(e.kind===Hs.EntryKind.Node){const{node:t}=e;if(iX(t,!0,!0)||Wue(t,!0,!0)||Fue(t,!0,!0)||zue(t,!0,!0)||NR(t)||cX(t)){const r=t.getSourceFile();return{declaration:jn(t,jR)||r,range:AX(t,r)}}}}function CCe(e){return fs(e.declaration)}function H$e(e,t){return{from:e,fromSpans:t}}function q$e(e,t){return H$e(efe(e,t[0].declaration),Wt(t,r=>ob(r.range)))}function J$e(e,t,r){if(io(t)||nc(t)||Pl(t))return[];const i=ACe(t),o=Vn(Hs.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Hs.FindReferencesUse.References},U$e),j$e);return o?lN(o,CCe,s=>q$e(e,s)):[]}function K$e(e,t){function r(o){const s=oE(o)?o.tag:dd(o)?o.tagName:js(o)||Pl(o)?o:o.expression,l=NCe(e,s);if(l){const u=AX(s,o.getSourceFile());if(Do(l))for(const p of l)t.push({declaration:p,range:u});else t.push({declaration:l,range:u})}}function i(o){if(!!o&&!(o.flags&33554432)){if(jR(o)){if(di(o))for(const s of o.members)s.name&&ss(s.name)&&i(s.name.expression);return}switch(o.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:r(o);return;case 216:case 234:i(o.expression);return;case 260:case 169:i(o.name),i(o.initializer);return;case 213:r(o),i(o.expression),Ve(o.arguments,i);return;case 214:r(o),i(o.expression),Ve(o.arguments,i);return;case 215:r(o),i(o.tag),i(o.template);return;case 286:case 285:r(o),i(o.tagName),i(o.attributes);return;case 170:r(o),i(o.expression);return;case 211:case 212:r(o),Uo(o,i);break;case 238:i(o.expression);return}ng(o)||Uo(o,i)}}return i}function X$e(e,t){Ve(e.statements,t)}function Y$e(e,t){!Qr(e,128)&&e.body&&O_(e.body)&&Ve(e.body.statements,t)}function $$e(e,t,r){const i=RCe(e,t);i&&(Ve(i.parameters,r),r(i.body))}function Q$e(e,t){t(e.body)}function Z$e(e,t){Ve(e.modifiers,t);const r=H1(e);r&&t(r.expression);for(const i of e.members)km(i)&&Ve(i.modifiers,t),qo(i)?t(i.initializer):Wl(i)&&i.body?(Ve(i.parameters,t),t(i.body)):Pl(i)&&t(i)}function eQe(e,t){const r=[],i=K$e(e,r);switch(t.kind){case 312:X$e(t,i);break;case 267:Y$e(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:$$e(e.getTypeChecker(),t,i);break;case 263:case 231:Z$e(t,i);break;case 175:Q$e(t,i);break;default:N.assertNever(t)}return r}function tQe(e,t){return{to:e,fromSpans:t}}function nQe(e,t){return tQe(efe(e,t[0].declaration),Wt(t,r=>ob(r.range)))}function rQe(e,t){return t.flags&33554432||Th(t)?[]:lN(eQe(e,t),CCe,r=>nQe(e,r))}var iQe=S({"src/services/callHierarchy.ts"(){oi()}}),GI={};H(GI,{createCallHierarchyItem:()=>efe,getIncomingCalls:()=>J$e,getOutgoingCalls:()=>rQe,resolveCallHierarchyDeclaration:()=>NCe});var oQe=S({"src/services/_namespaces/ts.CallHierarchy.ts"(){iQe()}}),PCe={};H(PCe,{TokenEncodingConsts:()=>Hpe,TokenModifier:()=>Jpe,TokenType:()=>qpe,getEncodedSemanticClassifications:()=>Upe,getSemanticClassifications:()=>rCe});var aQe=S({"src/services/_namespaces/ts.classifier.v2020.ts"(){aCe()}}),tfe={};H(tfe,{v2020:()=>PCe});var sQe=S({"src/services/_namespaces/ts.classifier.ts"(){aQe()}});function a_(e,t,r){return rfe(e,uT(r),t,void 0,void 0)}function ua(e,t,r,i,o,s){return rfe(e,uT(r),t,i,uT(o),s)}function nfe(e,t,r,i,o,s){return rfe(e,uT(r),t,i,o&&uT(o),s)}function rfe(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function xa(e){for(const t of e.errorCodes)x9=void 0,d$.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)N.assert(!p$.has(t)),p$.set(t,e)}function lQe(){return x9!=null?x9:x9=Go(d$.keys())}function cQe(e,t){const{errorCodes:r}=e;let i=0;for(const s of t)if(Mn(r,s.code)&&i++,i>1)break;const o=i<2;return({fixId:s,fixAllDescription:l,...u})=>o?u:{...u,fixId:s,fixAllDescription:l}}function uQe(e){const t=LCe(e),r=d$.get(String(e.errorCode));return qi(r,i=>Wt(i.getCodeActions(e),cQe(i,t)))}function dQe(e){return p$.get(sa(e.fixId,wo)).getAllCodeActions(e)}function UR(e,t){return{changes:e,commands:t}}function MCe(e,t){return{fileName:e,textChanges:t}}function Ds(e,t,r){const i=[],o=yr.ChangeTracker.with(e,s=>HR(e,t,l=>r(s,l,i)));return UR(o,i.length===0?void 0:i)}function HR(e,t,r){for(const i of LCe(e))Mn(t,i.code)&&r(i)}function LCe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...vY(t,e,r)]}var d$,p$,x9,pQe=S({"src/services/codeFixProvider.ts"(){oi(),d$=Zp(),p$=new Map}});function kCe(e,t,r){const i=dw(r)?O.createAsExpression(r.expression,O.createKeywordTypeNode(159)):O.createTypeAssertion(O.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function wCe(e,t){if(!dr(e))return jn(go(e,t),r=>dw(r)||nse(r))}var f$,ife,fQe=S({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){oi(),Da(),f$="addConvertToUnknownForNonOverlappingTypes",ife=[m.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],xa({errorCodes:ife,getCodeActions:function(t){const r=wCe(t.sourceFile,t.span.start);if(r===void 0)return;const i=yr.ChangeTracker.with(t,o=>kCe(o,t.sourceFile,r));return[ua(f$,i,m.Add_unknown_conversion_for_non_overlapping_types,f$,m.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[f$],getAllCodeActions:e=>Ds(e,ife,(t,r)=>{const i=wCe(r.file,r.start);i&&kCe(t,r.file,i)})})}}),mQe=S({"src/services/codefixes/addEmptyExportDeclaration.ts"(){oi(),Da(),xa({errorCodes:[m.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,m.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,m.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){const{sourceFile:r}=t,i=yr.ChangeTracker.with(t,o=>{const s=O.createExportDeclaration(void 0,!1,O.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[a_("addEmptyExportDeclaration",i,m.Add_export_to_make_this_file_into_a_module)]}})}});function OCe(e,t,r,i){const o=r(s=>_Qe(s,e.sourceFile,t,i));return ua(m$,o,m.Add_async_modifier_to_containing_function,m$,m.Add_all_missing_async_modifiers)}function _Qe(e,t,r,i){if(i&&i.has(fs(r)))return;i==null||i.add(fs(r));const o=O.replaceModifiers(pl(r,!0),O.createNodeArray(O.createModifiersFromModifierFlags(Vy(r)|1024)));e.replaceNode(t,r,o)}function WCe(e,t){if(!t)return;const r=go(e,t.start);return jn(r,o=>o.getStart(e)<t.start||o.getEnd()>tc(t)?"quit":(Ks(o)||Ql(o)||Us(o)||Dc(o))&&kR(t,Nd(o,e)))}function hQe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Cv(r)&&Cv(i)&&kR({start:r,length:i},e)&&s===t&&!!o&&St(o,l=>l.code===m.Did_you_mean_to_mark_this_function_as_async.code)}var m$,ofe,gQe=S({"src/services/codefixes/addMissingAsync.ts"(){oi(),Da(),m$="addMissingAsync",ofe=[m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,m.Type_0_is_not_assignable_to_type_1.code,m.Type_0_is_not_comparable_to_type_1.code],xa({fixIds:[m$],errorCodes:ofe,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,u=un(s.getTypeChecker().getDiagnostics(r,o),hQe(l,i)),p=u&&u.relatedInformation&&un(u.relatedInformation,b=>b.code===m.Did_you_mean_to_mark_this_function_as_async.code),v=WCe(r,p);return v?[OCe(t,v,b=>yr.ChangeTracker.with(t,b))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return Ds(e,ofe,(i,o)=>{const s=o.relatedInformation&&un(o.relatedInformation,p=>p.code===m.Did_you_mean_to_mark_this_function_as_async.code),l=WCe(t,s);return l?OCe(e,l,p=>(p(i),[]),r):void 0})}})}});function FCe(e,t,r,i,o){const s=YX(e,r);return s&&vQe(e,t,r,i,o)&&GCe(s)?s:void 0}function zCe(e,t,r,i,o,s){const{sourceFile:l,program:u,cancellationToken:p}=e,v=yQe(t,l,p,u,i);if(v){const f=o(b=>{Ve(v.initializers,({expression:A})=>afe(b,r,l,i,A,s)),s&&v.needsSecondPassForFixAll&&afe(b,r,l,i,t,s)});return a_("addMissingAwaitToInitializer",f,v.initializers.length===1?[m.Add_await_to_initializer_for_0,v.initializers[0].declarationSymbol.name]:m.Add_await_to_initializers)}}function BCe(e,t,r,i,o,s){const l=o(u=>afe(u,r,e.sourceFile,i,t,s));return ua(_$,l,m.Add_await,_$,m.Fix_all_expressions_possibly_missing_await)}function vQe(e,t,r,i,o){const l=o.getTypeChecker().getDiagnostics(e,i);return St(l,({start:u,length:p,relatedInformation:v,code:f})=>Cv(u)&&Cv(p)&&kR({start:u,length:p},r)&&f===t&&!!v&&St(v,b=>b.code===m.Did_you_forget_to_use_await.code))}function yQe(e,t,r,i,o){const s=bQe(e,o);if(!s)return;let l=s.isCompleteFix,u;for(const p of s.identifiers){const v=o.getSymbolAtLocation(p);if(!v)continue;const f=ni(v.valueDeclaration,Wi),b=f&&ni(f.name,Ue),A=b0(f,243);if(!f||!A||f.type||!f.initializer||A.getSourceFile()!==t||Qr(A,32)||!b||!GCe(f.initializer)){l=!1;continue}const I=i.getSemanticDiagnostics(t,r);if(Hs.Core.eachSymbolReferenceInFile(b,o,t,M=>p!==M&&!EQe(M,I,t,o))){l=!1;continue}(u||(u=[])).push({expression:f.initializer,declarationSymbol:v})}return u&&{initializers:u,needsSecondPassForFixAll:!l}}function bQe(e,t){if(Br(e.parent)&&Ue(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Ue(e))return{identifiers:[e],isCompleteFix:!0};if(vr(e)){let r,i=!0;for(const o of[e.left,e.right]){const s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!Ue(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function EQe(e,t,r,i){const o=Br(e.parent)?e.parent.name:vr(e.parent)?e.parent:e,s=un(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&Mn(h$,s.code)||i.getTypeAtLocation(o).flags&1}function GCe(e){return e.flags&65536||!!jn(e,t=>t.parent&&Ks(t.parent)&&t.parent.body===t||Yo(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function afe(e,t,r,i,o,s){if(pw(o.parent)&&!o.parent.awaitModifier){const l=i.getTypeAtLocation(o),u=i.getAsyncIterableType();if(u&&i.isTypeAssignableTo(l,u)){const p=o.parent;e.replaceNode(r,p,O.updateForOfStatement(p,O.createToken(135),p.initializer,p.expression,p.statement));return}}if(vr(o))for(const l of[o.left,o.right]){if(s&&Ue(l)){const v=i.getSymbolAtLocation(l);if(v&&s.has(Ia(v)))continue}const u=i.getTypeAtLocation(l),p=i.getPromisedTypeOfPromise(u)?O.createAwaitExpression(l):l;e.replaceNode(r,l,p)}else if(t===sfe&&Br(o.parent)){if(s&&Ue(o.parent.expression)){const l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(Ia(l)))return}e.replaceNode(r,o.parent.expression,O.createParenthesizedExpression(O.createAwaitExpression(o.parent.expression))),VCe(e,o.parent.expression,r)}else if(Mn(lfe,t)&&I_(o.parent)){if(s&&Ue(o)){const l=i.getSymbolAtLocation(o);if(l&&s.has(Ia(l)))return}e.replaceNode(r,o,O.createParenthesizedExpression(O.createAwaitExpression(o))),VCe(e,o,r)}else{if(s&&Wi(o.parent)&&Ue(o.parent.name)){const l=i.getSymbolAtLocation(o.parent.name);if(l&&!Rv(s,Ia(l)))return}e.replaceNode(r,o,O.createAwaitExpression(o))}}function VCe(e,t,r){const i=Cc(t.pos,r);i&&FF(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var _$,sfe,lfe,h$,SQe=S({"src/services/codefixes/addMissingAwait.ts"(){oi(),Da(),_$="addMissingAwait",sfe=m.Property_0_does_not_exist_on_type_1.code,lfe=[m.This_expression_is_not_callable.code,m.This_expression_is_not_constructable.code],h$=[m.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,m.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,m.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,m.Operator_0_cannot_be_applied_to_type_1.code,m.Operator_0_cannot_be_applied_to_types_1_and_2.code,m.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,m.This_condition_will_always_return_true_since_this_0_is_always_defined.code,m.Type_0_is_not_an_array_type.code,m.Type_0_is_not_an_array_type_or_a_string_type.code,m.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,m.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,m.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,m.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,m.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,sfe,...lfe],xa({fixIds:[_$],errorCodes:h$,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,u=FCe(r,i,o,s,l);if(!u)return;const p=t.program.getTypeChecker(),v=f=>yr.ChangeTracker.with(t,f);return $M([zCe(t,u,i,p,v),BCe(t,u,i,p,v)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return Ds(e,h$,(l,u)=>{const p=FCe(t,u.code,u,i,r);if(!p)return;const v=f=>(f(l),[]);return zCe(e,p,u.code,o,v,s)||BCe(e,p,u.code,o,v,s)})}})}});function jCe(e,t,r,i,o){const s=go(t,r),l=jn(s,v=>s2(v.parent)?v.parent.initializer===v:TQe(v)?!1:"quit");if(l)return g$(e,l,t,o);const u=s.parent;if(vr(u)&&u.operatorToken.kind===64&&ou(u.parent))return g$(e,s,t,o);if(hd(u)){const v=i.getTypeChecker();return Bn(u.elements,f=>AQe(f,v))?g$(e,u,t,o):void 0}const p=jn(s,v=>ou(v.parent)?!0:IQe(v)?!1:"quit");if(p){const v=i.getTypeChecker();return UCe(p,v)?g$(e,p,t,o):void 0}}function g$(e,t,r,i){(!i||Rv(i,t))&&e.insertModifierBefore(r,87,t)}function TQe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function AQe(e,t){const r=Ue(e)?e:Wc(e,!0)&&Ue(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function IQe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function UCe(e,t){return vr(e)?e.operatorToken.kind===28?Bn([e.left,e.right],r=>UCe(r,t)):e.operatorToken.kind===64&&Ue(e.left)&&!t.getSymbolAtLocation(e.left):!1}var v$,cfe,xQe=S({"src/services/codefixes/addMissingConst.ts"(){oi(),Da(),v$="addMissingConst",cfe=[m.Cannot_find_name_0.code,m.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],xa({errorCodes:cfe,getCodeActions:function(t){const r=yr.ChangeTracker.with(t,i=>jCe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[ua(v$,r,m.Add_const_to_unresolved_variable,v$,m.Add_const_to_all_unresolved_variables)]},fixIds:[v$],getAllCodeActions:e=>{const t=new Set;return Ds(e,cfe,(r,i)=>jCe(r,i.file,i.start,e.program,t))}})}});function HCe(e,t,r,i){const o=go(t,r);if(!Ue(o))return;const s=o.parent;s.kind===172&&(!i||Rv(i,s))&&e.insertModifierBefore(t,138,s)}var y$,ufe,RQe=S({"src/services/codefixes/addMissingDeclareProperty.ts"(){oi(),Da(),y$="addMissingDeclareProperty",ufe=[m.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],xa({errorCodes:ufe,getCodeActions:function(t){const r=yr.ChangeTracker.with(t,i=>HCe(i,t.sourceFile,t.span.start));if(r.length>0)return[ua(y$,r,m.Prefix_with_declare,y$,m.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[y$],getAllCodeActions:e=>{const t=new Set;return Ds(e,ufe,(r,i)=>HCe(r,i.file,i.start,t))}})}});function qCe(e,t,r){const i=go(t,r),o=jn(i,Au);N.assert(!!o,"Expected position to be owned by a decorator.");const s=O.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var b$,dfe,DQe=S({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){oi(),Da(),b$="addMissingInvocationForDecorator",dfe=[m._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],xa({errorCodes:dfe,getCodeActions:function(t){const r=yr.ChangeTracker.with(t,i=>qCe(i,t.sourceFile,t.span.start));return[ua(b$,r,m.Call_decorator_expression,b$,m.Add_to_all_uncalled_decorators)]},fixIds:[b$],getAllCodeActions:e=>Ds(e,dfe,(t,r)=>qCe(t,r.file,r.start))})}});function JCe(e,t,r){const i=go(t,r),o=i.parent;if(!No(o))return N.fail("Tried to add a parameter name to a non-parameter: "+N.formatSyntaxKind(i.kind));const s=o.parent.parameters.indexOf(o);N.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),N.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),u=O.createTypeReferenceNode(o.name,void 0),p=KCe(t,o);for(;p;)u=O.createArrayTypeNode(u),l=p.getEnd(),p=KCe(t,p);const v=O.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!cw(u)?O.createArrayTypeNode(u):u,o.initializer);e.replaceRange(t,xf(o.getStart(t),l),v)}function KCe(e,t){const r=EE(t.name,t.parent,e);if(r&&r.kind===23&&rE(r.parent)&&No(r.parent.parent))return r.parent.parent}var E$,pfe,NQe=S({"src/services/codefixes/addNameToNamelessParameter.ts"(){oi(),Da(),E$="addNameToNamelessParameter",pfe=[m.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],xa({errorCodes:pfe,getCodeActions:function(t){const r=yr.ChangeTracker.with(t,i=>JCe(i,t.sourceFile,t.span.start));return[ua(E$,r,m.Add_parameter_name,E$,m.Add_names_to_all_parameters_without_names)]},fixIds:[E$],getAllCodeActions:e=>Ds(e,pfe,(t,r)=>JCe(t,r.file,r.start))})}});function CQe(e,t,r){var i,o;const s=XCe(YX(e,t),r);if(!s)return et;const{source:l,target:u}=s,p=PQe(l,u,r)?r.getTypeAtLocation(u.expression):r.getTypeAtLocation(u);return(o=(i=p.symbol)==null?void 0:i.declarations)!=null&&o.some(v=>Jn(v).fileName.match(/\.d\.ts$/))?et:r.getExactOptionalProperties(p)}function PQe(e,t,r){return Br(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function XCe(e,t){var r;if(e){if(vr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Wi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(ca(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!(i!=null&&i.valueDeclaration)||!OA(i.valueDeclaration.kind)||!bt(e))return;const o=e.parent.arguments.indexOf(e);if(o===-1)return;const s=i.valueDeclaration.parameters[o].name;if(Ue(s))return{source:e,target:s}}else if(Tc(e.parent)&&Ue(e.parent.name)||ip(e.parent)){const i=XCe(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:Tc(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function MQe(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(Sp(i)||qo(i))&&i.type){const o=O.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],O.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var ffe,YCe,LQe=S({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){oi(),Da(),ffe="addOptionalPropertyUndefined",YCe=[m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],xa({errorCodes:YCe,getCodeActions(e){const t=e.program.getTypeChecker(),r=CQe(e.sourceFile,e.span,t);if(!r.length)return;const i=yr.ChangeTracker.with(e,o=>MQe(o,r));return[a_(ffe,i,m.Add_undefined_to_optional_property_type)]},fixIds:[ffe]})}});function $Ce(e,t){const r=go(e,t);return ni(No(r.parent)?r.parent.parent:r.parent,QCe)}function QCe(e){return kQe(e)&&ZCe(e)}function ZCe(e){return Js(e)?e.parameters.some(ZCe)||!e.type&&!!IL(e):!e.type&&!!p0(e)}function ePe(e,t,r){if(Js(r)&&(IL(r)||r.parameters.some(i=>!!p0(i)))){if(!r.typeParameters){const o=V3(r);o.length&&e.insertTypeParameters(t,r,o)}const i=Ks(r)&&!Is(r,21,t);i&&e.insertNodeBefore(t,$a(r.parameters),O.createToken(21));for(const o of r.parameters)if(!o.type){const s=p0(o);s&&e.tryInsertTypeAnnotation(t,o,rt(s,xE,Xi))}if(i&&e.insertNodeAfter(t,rs(r.parameters),O.createToken(22)),!r.type){const o=IL(r);o&&e.tryInsertTypeAnnotation(t,r,rt(o,xE,Xi))}}else{const i=N.checkDefined(p0(r),"A JSDocType for this declaration should exist");N.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,rt(i,xE,Xi))}}function kQe(e){return Js(e)||e.kind===260||e.kind===171||e.kind===172}function xE(e){switch(e.kind){case 319:case 320:return O.createTypeReferenceNode("any",et);case 323:return OQe(e);case 322:return xE(e.type);case 321:return WQe(e);case 325:return FQe(e);case 324:return zQe(e);case 183:return GQe(e);case 329:return wQe(e);default:const t=xn(e,xE,void 0);return hr(t,1),t}}function wQe(e){const t=O.createTypeLiteralNode(Wt(e.jsDocPropertyTags,r=>O.createPropertySignature(void 0,Ue(r.name)?r.name:r.name.right,Bk(r)?O.createToken(58):void 0,r.typeExpression&&rt(r.typeExpression.type,xE,Xi)||O.createKeywordTypeNode(133))));return hr(t,1),t}function OQe(e){return O.createUnionTypeNode([rt(e.type,xE,Xi),O.createTypeReferenceNode("undefined",et)])}function WQe(e){return O.createUnionTypeNode([rt(e.type,xE,Xi),O.createTypeReferenceNode("null",et)])}function FQe(e){return O.createArrayTypeNode(rt(e.type,xE,Xi))}function zQe(e){var t;return O.createFunctionTypeNode(et,e.parameters.map(BQe),(t=e.type)!=null?t:O.createKeywordTypeNode(133))}function BQe(e){const t=e.parent.parameters.indexOf(e),r=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?O.createToken(26):e.dotDotDotToken;return O.createParameterDeclaration(e.modifiers,o,i,e.questionToken,rt(e.type,xE,Xi),e.initializer)}function GQe(e){let t=e.typeName,r=e.typeArguments;if(Ue(e.typeName)){if(T3(e))return VQe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=O.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=O.createNodeArray([O.createTypeReferenceNode("any",et)]):r=Un(e.typeArguments,xE,Xi)}return O.createTypeReferenceNode(t,r)}function VQe(e){const t=O.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,O.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=O.createTypeLiteralNode([O.createIndexSignature(void 0,[t],e.typeArguments[1])]);return hr(r,1),r}var S$,mfe,jQe=S({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){oi(),Da(),S$="annotateWithTypeFromJSDoc",mfe=[m.JSDoc_types_may_be_moved_to_TypeScript_types.code],xa({errorCodes:mfe,getCodeActions(e){const t=$Ce(e.sourceFile,e.span.start);if(!t)return;const r=yr.ChangeTracker.with(e,i=>ePe(i,e.sourceFile,t));return[ua(S$,r,m.Annotate_with_type_from_JSDoc,S$,m.Annotate_everything_with_types_from_JSDoc)]},fixIds:[S$],getAllCodeActions:e=>Ds(e,mfe,(t,r)=>{const i=$Ce(r.file,r.start);i&&ePe(t,r.file,i)})})}});function tPe(e,t,r,i,o,s){const l=i.getSymbolAtLocation(go(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;const u=l.valueDeclaration;if(Dc(u)||Us(u))e.replaceNode(t,u,f(u));else if(Wi(u)){const b=v(u);if(!b)return;const A=u.parent.parent;Xc(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,A,b)):e.replaceNode(t,A,b)}function p(b){const A=[];return b.exports&&b.exports.forEach(M=>{if(M.name==="prototype"&&M.declarations){const C=M.declarations[0];if(M.declarations.length===1&&Br(C)&&vr(C.parent)&&C.parent.operatorToken.kind===64&&za(C.parent.right)){const W=C.parent.right;R(W.symbol,void 0,A)}}else R(M,[O.createToken(126)],A)}),b.members&&b.members.forEach((M,C)=>{var W,U,X,ee;if(C==="constructor"&&M.valueDeclaration){const V=(ee=(X=(U=(W=b.exports)==null?void 0:W.get("prototype"))==null?void 0:U.declarations)==null?void 0:X[0])==null?void 0:ee.parent;V&&vr(V)&&za(V.right)&&St(V.right.properties,A$)||e.delete(t,M.valueDeclaration.parent);return}R(M,void 0,A)}),A;function I(M,C){return js(M)?Br(M)&&A$(M)?!0:ta(C):Bn(M.properties,W=>!!(Ql(W)||O6(W)||Tc(W)&&Us(W.initializer)&&!!W.name||A$(W)))}function R(M,C,W){if(!(M.flags&8192)&&!(M.flags&4096))return;const U=M.valueDeclaration,X=U.parent,ee=X.right;if(!I(U,ee)||St(W,_e=>{const ye=Oo(_e);return!!(ye&&Ue(ye)&&Rr(ye)===Il(M))}))return;const V=X.parent&&X.parent.kind===244?X.parent:X;if(e.delete(t,V),!ee){W.push(O.createPropertyDeclaration(C,M.name,void 0,void 0,void 0));return}if(js(U)&&(Us(ee)||Ks(ee))){const _e=uf(t,o),ye=UQe(U,s,_e);ye&&se(W,ee,ye);return}else if(za(ee)){Ve(ee.properties,_e=>{(Ql(_e)||O6(_e))&&W.push(_e),Tc(_e)&&Us(_e.initializer)&&se(W,_e.initializer,_e.name),A$(_e)});return}else{if(pd(t)||!Br(U))return;const _e=O.createPropertyDeclaration(C,U.name,void 0,void 0,ee);OR(X.parent,_e,t),W.push(_e);return}function se(_e,ye,Q){return Us(ye)?G(_e,ye,Q):re(_e,ye,Q)}function G(_e,ye,Q){const Y=Ro(C,T$(ye,134)),oe=O.createMethodDeclaration(Y,void 0,Q,void 0,void 0,ye.parameters,void 0,ye.body);OR(X,oe,t),_e.push(oe)}function re(_e,ye,Q){const Y=ye.body;let oe;Y.kind===241?oe=Y:oe=O.createBlock([O.createReturnStatement(Y)]);const he=Ro(C,T$(ye,134)),Ie=O.createMethodDeclaration(he,void 0,Q,void 0,void 0,ye.parameters,void 0,oe);OR(X,Ie,t),_e.push(Ie)}}}function v(b){const A=b.initializer;if(!A||!Us(A)||!Ue(b.name))return;const I=p(b.symbol);A.body&&I.unshift(O.createConstructorDeclaration(void 0,A.parameters,A.body));const R=T$(b.parent.parent,95);return O.createClassDeclaration(R,b.name,void 0,void 0,I)}function f(b){const A=p(l);b.body&&A.unshift(O.createConstructorDeclaration(void 0,b.parameters,b.body));const I=T$(b,95);return O.createClassDeclaration(I,b.name,void 0,void 0,A)}}function T$(e,t){return km(e)?Vn(e.modifiers,r=>r.kind===t):void 0}function A$(e){return e.name?!!(Ue(e.name)&&e.name.text==="constructor"):!1}function UQe(e,t,r){if(Br(e))return e.name;const i=e.argumentExpression;if(Ep(i))return i;if(hs(i))return tf(i.text,ps(t))?O.createIdentifier(i.text):lI(i)?O.createStringLiteral(i.text,r===0):i}var I$,_fe,HQe=S({"src/services/codefixes/convertFunctionToEs6Class.ts"(){oi(),Da(),I$="convertFunctionToEs6Class",_fe=[m.This_constructor_function_may_be_converted_to_a_class_declaration.code],xa({errorCodes:_fe,getCodeActions(e){const t=yr.ChangeTracker.with(e,r=>tPe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[ua(I$,t,m.Convert_function_to_an_ES2015_class,I$,m.Convert_all_constructor_functions_to_classes)]},fixIds:[I$],getAllCodeActions:e=>Ds(e,_fe,(t,r)=>tPe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function nPe(e,t,r,i){const o=go(t,r);let s;if(Ue(o)&&Wi(o.parent)&&o.parent.initializer&&Js(o.parent.initializer)?s=o.parent.initializer:s=ni(Vp(go(t,r)),EY),!s)return;const l=new Map,u=dr(s),p=JQe(s,i),v=KQe(s,i,l);if(!yY(v,i))return;const f=v.body&&Yo(v.body)?qQe(v.body,i):et,b={checker:i,synthNamesMap:l,setOfExpressionsToReturn:p,isInJSFile:u};if(!f.length)return;const A=Wa(t.text,L_(s).pos);e.insertModifierAt(t,A,134,{suffix:" "});for(const I of f)if(Uo(I,function R(M){if(ca(M)){const C=qR(M,M,b,!1);if(VI())return!0;e.replaceNodeWithNodes(t,I,C)}else if(!ta(M)&&(Uo(M,R),VI()))return!0}),VI())return}function qQe(e,t){const r=[];return B1(e,i=>{t9(i,t)&&r.push(i)}),r}function JQe(e,t){if(!e.body)return new Set;const r=new Set;return Uo(e.body,function i(o){s4(o,t,"then")?(r.add(fs(o)),Ve(o.arguments,i)):s4(o,t,"catch")||s4(o,t,"finally")?(r.add(fs(o)),Uo(o,i)):iPe(o,t)?r.add(fs(o)):Uo(o,i)}),r}function s4(e,t,r){if(!ca(e))return!1;const o=bO(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function rPe(e,t){return(zr(e)&4)!==0&&e.target===t}function x$(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(rPe(i,r.getPromiseType())||rPe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Lv(e.arguments,0))return Lv(e.typeArguments,0);if(t===Lv(e.arguments,1))return Lv(e.typeArguments,1)}else return Lv(e.typeArguments,0)}function iPe(e,t){return bt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function KQe(e,t,r){const i=new Map,o=Zp();return Uo(e,function s(l){if(!Ue(l)){Uo(l,s);return}const u=t.getSymbolAtLocation(l);if(u){const p=t.getTypeAtLocation(l),v=uPe(p,t),f=Ia(u).toString();if(v&&!No(l.parent)&&!Js(l.parent)&&!r.has(f)){const b=eu(v.parameters),A=(b==null?void 0:b.valueDeclaration)&&No(b.valueDeclaration)&&ni(b.valueDeclaration.name,Ue)||O.createUniqueName("result",16),I=oPe(A,o);r.set(f,I),o.add(A.text,u)}else if(l.parent&&(No(l.parent)||Wi(l.parent)||os(l.parent))){const b=l.text,A=o.get(b);if(A&&A.some(I=>I!==u)){const I=oPe(l,o);i.set(f,I.identifier),r.set(f,I),o.add(b,u)}else{const I=pl(l);r.set(f,CP(I)),o.add(b,u)}}}}),wO(e,!0,s=>{if(os(s)&&Ue(s.name)&&pm(s.parent)){const l=t.getSymbolAtLocation(s.name),u=l&&i.get(String(Ia(l)));if(u&&u.text!==(s.name||s.propertyName).getText())return O.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,u,s.initializer)}else if(Ue(s)){const l=t.getSymbolAtLocation(s),u=l&&i.get(String(Ia(l)));if(u)return O.createIdentifier(u.text)}})}function oPe(e,t){const r=(t.get(e.text)||et).length,i=r===0?e:O.createIdentifier(e.text+"_"+r);return CP(i)}function VI(){return!D9}function B0(){return D9=!1,et}function qR(e,t,r,i,o){if(s4(t,r.checker,"then"))return $Qe(t,Lv(t.arguments,0),Lv(t.arguments,1),r,i,o);if(s4(t,r.checker,"catch"))return lPe(t,Lv(t.arguments,0),r,i,o);if(s4(t,r.checker,"finally"))return YQe(t,Lv(t.arguments,0),r,i,o);if(Br(t))return qR(e,t.expression,r,i,o);const s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(N.assertNode(Ol(t).parent,Br),QQe(e,t,r,i,o)):B0()}function R$({checker:e},t){if(t.kind===106)return!0;if(Ue(t)&&!ul(t)&&Rr(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function XQe(e){const t=O.createUniqueName(e.identifier.text,16);return CP(t)}function aPe(e,t,r){let i;return r&&!c4(e,t)&&(l4(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){const l=XQe(r);t.synthNamesMap.set(s,l)}})):i=CP(O.createUniqueName("result",16),r.types),yfe(i)),i}function sPe(e,t,r,i,o){const s=[];let l;if(i&&!c4(e,t)){l=pl(yfe(i));const u=i.types,p=t.checker.getUnionType(u,2),v=t.isInJSFile?void 0:t.checker.typeToTypeNode(p,void 0,void 0),f=[O.createVariableDeclaration(l,void 0,v)],b=O.createVariableStatement(void 0,O.createVariableDeclarationList(f,1));s.push(b)}return s.push(r),o&&l&&tZe(o)&&s.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(pl(mPe(o)),void 0,void 0,l)],2))),s}function YQe(e,t,r,i,o){if(!t||R$(r,t))return qR(e,e.expression.expression,r,i,o);const s=aPe(e,r,o),l=qR(e,e.expression.expression,r,!0,s);if(VI())return B0();const u=gfe(t,i,void 0,void 0,e,r);if(VI())return B0();const p=O.createBlock(l),v=O.createBlock(u),f=O.createTryStatement(p,void 0,v);return sPe(e,r,f,s,o)}function lPe(e,t,r,i,o){if(!t||R$(r,t))return qR(e,e.expression.expression,r,i,o);const s=pPe(t,r),l=aPe(e,r,o),u=qR(e,e.expression.expression,r,!0,l);if(VI())return B0();const p=gfe(t,i,l,s,e,r);if(VI())return B0();const v=O.createBlock(u),f=O.createCatchClause(s&&pl(R9(s)),O.createBlock(p)),b=O.createTryStatement(v,f,void 0);return sPe(e,r,b,l,o)}function $Qe(e,t,r,i,o,s){if(!t||R$(i,t))return lPe(e,r,i,o,s);if(r&&!R$(i,r))return B0();const l=pPe(t,i),u=qR(e.expression.expression,e.expression.expression,i,!0,l);if(VI())return B0();const p=gfe(t,o,s,l,e,i);return VI()?B0():Ro(u,p)}function QQe(e,t,r,i,o){if(c4(e,r)){let s=pl(t);return i&&(s=O.createAwaitExpression(s)),[O.createReturnStatement(s)]}return D$(o,O.createAwaitExpression(t),void 0)}function D$(e,t,r){return!e||fPe(e)?[O.createExpressionStatement(t)]:l4(e)&&e.hasBeenDeclared?[O.createExpressionStatement(O.createAssignment(pl(vfe(e)),t))]:[O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(pl(R9(e)),void 0,r,t)],2))]}function hfe(e,t){if(t&&e){const r=O.createUniqueName("result",16);return[...D$(CP(r),e,t),O.createReturnStatement(r)]}return[O.createReturnStatement(e)]}function gfe(e,t,r,i,o,s){var l;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;const u=O.createCallExpression(pl(e),void 0,l4(i)?[vfe(i)]:[]);if(c4(o,s))return hfe(u,x$(o,e,s.checker));const p=s.checker.getTypeAtLocation(e),v=s.checker.getSignaturesOfType(p,0);if(!v.length)return B0();const f=v[0].getReturnType(),b=D$(r,O.createAwaitExpression(u),x$(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(f)||f),b;case 218:case 219:{const A=e.body,I=(l=uPe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(Yo(A)){let R=[],M=!1;for(const C of A.statements)if(Mm(C))if(M=!0,t9(C,s.checker))R=R.concat(dPe(s,C,t,r));else{const W=I&&C.expression?cPe(s.checker,I,C.expression):C.expression;R.push(...hfe(W,x$(o,e,s.checker)))}else{if(t&&B1(C,Pv))return B0();R.push(C)}return c4(o,s)?R.map(C=>pl(C)):ZQe(R,r,s,M)}else{const R=bY(A,s.checker)?dPe(s,O.createReturnStatement(A),t,r):et;if(R.length>0)return R;if(I){const M=cPe(s.checker,I,A);if(c4(o,s))return hfe(M,x$(o,e,s.checker));{const C=D$(r,M,void 0);return r&&r.types.push(s.checker.getAwaitedType(I)||I),C}}else return B0()}}default:return B0()}return et}function cPe(e,t,r){const i=pl(r);return e.getPromisedTypeOfPromise(t)?O.createAwaitExpression(i):i}function uPe(e,t){const r=t.getSignaturesOfType(e,0);return il(r)}function ZQe(e,t,r,i){const o=[];for(const s of e)if(Mm(s)){if(s.expression){const l=iPe(s.expression,r.checker)?O.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(O.createExpressionStatement(l)):l4(t)&&t.hasBeenDeclared?o.push(O.createExpressionStatement(O.createAssignment(vfe(t),l))):o.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(R9(t),void 0,void 0,l)],2)))}}else o.push(pl(s));return!i&&t!==void 0&&o.push(O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(R9(t),void 0,void 0,O.createIdentifier("undefined"))],2))),o}function dPe(e,t,r,i){let o=[];return Uo(t,function s(l){if(ca(l)){const u=qR(l,l,e,r,i);if(o=o.concat(u),o.length>0)return}else ta(l)||Uo(l,s)}),o}function pPe(e,t){const r=[];let i;if(Js(e)){if(e.parameters.length>0){const p=e.parameters[0].name;i=o(p)}}else Ue(e)?i=s(e):Br(e)&&Ue(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(p){if(Ue(p))return s(p);const v=qi(p.elements,f=>Kc(f)?[]:[o(f.name)]);return eZe(p,v)}function s(p){const v=u(p),f=l(v);return f&&t.synthNamesMap.get(Ia(f).toString())||CP(p,r)}function l(p){var f;var v;return(f=(v=ni(p,x_))==null?void 0:v.symbol)!=null?f:t.checker.getSymbolAtLocation(p)}function u(p){return p.original?p.original:p}}function fPe(e){return e?l4(e)?!e.identifier.text:Bn(e.elements,fPe):!0}function CP(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function eZe(e,t=et,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function vfe(e){return e.hasBeenReferenced=!0,e.identifier}function R9(e){return l4(e)?yfe(e):mPe(e)}function mPe(e){for(const t of e.elements)R9(t);return e.bindingPattern}function yfe(e){return e.hasBeenDeclared=!0,e.identifier}function l4(e){return e.kind===0}function tZe(e){return e.kind===1}function c4(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(fs(e.original))}var N$,bfe,D9,nZe=S({"src/services/codefixes/convertToAsyncFunction.ts"(){oi(),Da(),N$="convertToAsyncFunction",bfe=[m.This_may_be_converted_to_an_async_function.code],D9=!0,xa({errorCodes:bfe,getCodeActions(e){D9=!0;const t=yr.ChangeTracker.with(e,r=>nPe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return D9?[ua(N$,t,m.Convert_to_async_function,N$,m.Convert_all_to_async_functions)]:[]},fixIds:[N$],getAllCodeActions:e=>Ds(e,bfe,(t,r)=>nPe(t,r.file,r.start,e.program.getTypeChecker()))})}});function rZe(e,t,r,i,o){var s;for(const l of e.imports){const u=(s=r.getResolvedModuleFromModuleSpecifier(l))==null?void 0:s.resolvedModule;if(!u||u.resolvedFileName!==t.fileName)continue;const p=BN(l);switch(p.kind){case 271:i.replaceNode(e,p,ey(p.name,void 0,l,o));break;case 213:Ad(p,!1)&&i.replaceNode(e,p,O.createPropertyAccessExpression(pl(p),"default"));break}}}function iZe(e,t,r,i,o){const s={original:gZe(e),additional:new Set},l=oZe(e,t,s);aZe(e,l,r);let u=!1,p;for(const v of Vn(e.statements,Fl)){const f=hPe(e,v,r,t,s,i,o);f&&$6(f,p!=null?p:p=new Map)}for(const v of Vn(e.statements,f=>!Fl(f))){const f=sZe(e,v,t,r,s,i,l,p,o);u=u||f}return p==null||p.forEach((v,f)=>{r.replaceNode(e,f,v)}),u}function oZe(e,t,r){const i=new Map;return _Pe(e,o=>{const{text:s}=o.name;!i.has(s)&&(pU(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,C$(`_${s}`,r))}),i}function aZe(e,t,r){_Pe(e,(i,o)=>{if(o)return;const{text:s}=i.name;r.replaceNode(e,i,O.createIdentifier(t.get(s)||s))})}function _Pe(e,t){e.forEachChild(function r(i){if(Br(i)&&mE(e,i.expression)&&Ue(i.name)){const{parent:o}=i;t(i,vr(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function sZe(e,t,r,i,o,s,l,u,p){switch(t.kind){case 243:return hPe(e,t,i,r,o,s,p),!1;case 244:{const{expression:v}=t;switch(v.kind){case 213:return Ad(v,!0)&&i.replaceNode(e,t,ey(void 0,void 0,v.arguments[0],p)),!1;case 226:{const{operatorToken:f}=v;return f.kind===64&&cZe(e,r,v,i,l,u)}}}default:return!1}}function hPe(e,t,r,i,o,s,l){const{declarationList:u}=t;let p=!1;const v=Wt(u.declarations,f=>{const{name:b,initializer:A}=f;if(A){if(mE(e,A))return p=!0,PP([]);if(Ad(A,!0))return p=!0,_Ze(b,A.arguments[0],i,o,s,l);if(Br(A)&&Ad(A.expression,!0))return p=!0,lZe(b,A.name.text,A.expression.arguments[0],o,l)}return PP([O.createVariableStatement(void 0,O.createVariableDeclarationList([f],u.flags))])});if(p){r.replaceNodeWithNodes(e,t,qi(v,b=>b.newImports));let f;return Ve(v,b=>{b.useSitesToUnqualify&&$6(b.useSitesToUnqualify,f!=null?f:f=new Map)}),f}}function lZe(e,t,r,i,o){switch(e.kind){case 206:case 207:{const s=C$(t,i);return PP([bPe(s,t,r,o),P$(void 0,e,O.createIdentifier(s))])}case 80:return PP([bPe(e.text,t,r,o)]);default:return N.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function cZe(e,t,r,i,o,s){const{left:l,right:u}=r;if(!Br(l))return!1;if(mE(e,l))if(mE(e,u))i.delete(e,r.parent);else{const p=za(u)?uZe(u,s):Ad(u,!0)?pZe(u.arguments[0],t):void 0;return p?(i.replaceNodeWithNodes(e,r.parent,p[0]),p[1]):(i.replaceRangeWithText(e,xf(l.getStart(e),u.pos),"export default"),!0)}else mE(e,l.expression)&&dZe(e,r,i,o);return!1}function uZe(e,t){const r=SA(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Ue(i.name)?mZe(i.name.text,i.initializer,t):void 0;case 174:return Ue(i.name)?yPe(i.name.text,[O.createToken(95)],i,t):void 0;default:N.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function dZe(e,t,r,i){const{text:o}=t.left.name,s=i.get(o);if(s!==void 0){const l=[P$(void 0,s,t.right),Tfe([O.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else fZe(t,e,r)}function pZe(e,t){const r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:r6;return o.has("export=")?[[Efe(r)],!0]:o.has("default")?o.size>1?[[gPe(r),Efe(r)],!0]:[[Efe(r)],!0]:[[gPe(r)],!1]}function gPe(e){return Tfe(void 0,e)}function Efe(e){return Tfe([O.createExportSpecifier(!1,void 0,"default")],e)}function fZe({left:e,right:t,parent:r},i,o){const s=e.name.text;if((Us(t)||Ks(t)||iu(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},O.createToken(95),{suffix:" "}),t.name||o.insertName(i,t,s);const l=Is(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,Is(e,25,i),[O.createToken(95),O.createToken(87)],{joiner:" ",suffix:" "})}function mZe(e,t,r){const i=[O.createToken(95)];switch(t.kind){case 218:{const{name:s}=t;if(s&&s.text!==e)return o()}case 219:return yPe(e,i,t,r);case 231:return yZe(e,i,t,r);default:return o()}function o(){return P$(i,O.createIdentifier(e),Sfe(t,r))}}function Sfe(e,t){if(!t||!St(Go(t.keys()),i=>cf(e,i)))return e;return Do(e)?VX(e,!0,r):wO(e,!0,r);function r(i){if(i.kind===211){const o=t.get(i);return t.delete(i),o}}}function _Ze(e,t,r,i,o,s){switch(e.kind){case 206:{const l=SA(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!Ue(u.propertyName)||!Ue(u.name)?void 0:EPe(u.propertyName&&u.propertyName.text,u.name.text));if(l)return PP([ey(void 0,l,t,s)])}case 207:{const l=C$(Ofe(t.text,o),i);return PP([ey(O.createIdentifier(l),void 0,t,s),P$(void 0,pl(e),O.createIdentifier(l))])}case 80:return hZe(e,t,r,i,s);default:return N.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function hZe(e,t,r,i,o){const s=r.getSymbolAtLocation(e),l=new Map;let u=!1,p;for(const f of i.original.get(e.text)){if(r.getSymbolAtLocation(f)!==s||f===e)continue;const{parent:b}=f;if(Br(b)){const{name:{text:A}}=b;if(A==="default"){u=!0;const I=f.getText();(p!=null?p:p=new Map).set(b,O.createIdentifier(I))}else{N.assert(b.expression===f,"Didn't expect expression === use");let I=l.get(A);I===void 0&&(I=C$(A,i),l.set(A,I)),(p!=null?p:p=new Map).set(b,O.createIdentifier(I))}}else u=!0}const v=l.size===0?void 0:Go(Xo(l.entries(),([f,b])=>O.createImportSpecifier(!1,f===b?void 0:O.createIdentifier(f),O.createIdentifier(b))));return v||(u=!0),PP([ey(u?pl(e):void 0,v,t,o)],p)}function C$(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function gZe(e){const t=Zp();return vPe(e,r=>t.add(r.text,r)),t}function vPe(e,t){Ue(e)&&vZe(e)&&t(e),e.forEachChild(r=>vPe(r,t))}function vZe(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function yPe(e,t,r,i){return O.createFunctionDeclaration(Ro(t,SE(r.modifiers)),pl(r.asteriskToken),e,SE(r.typeParameters),SE(r.parameters),pl(r.type),O.converters.convertToFunctionBlock(Sfe(r.body,i)))}function yZe(e,t,r,i){return O.createClassDeclaration(Ro(t,SE(r.modifiers)),e,SE(r.typeParameters),SE(r.heritageClauses),Sfe(r.members,i))}function bPe(e,t,r,i){return t==="default"?ey(O.createIdentifier(e),void 0,r,i):ey(void 0,[EPe(t,e)],r,i)}function EPe(e,t){return O.createImportSpecifier(!1,e!==void 0&&e!==t?O.createIdentifier(e):void 0,O.createIdentifier(t))}function P$(e,t,r){return O.createVariableStatement(e,O.createVariableDeclarationList([O.createVariableDeclaration(t,void 0,void 0,r)],2))}function Tfe(e,t){return O.createExportDeclaration(void 0,!1,e&&O.createNamedExports(e),t===void 0?void 0:O.createStringLiteral(t))}function PP(e,t){return{newImports:e,useSitesToUnqualify:t}}var bZe=S({"src/services/codefixes/convertToEsModule.ts"(){oi(),Da(),xa({errorCodes:[m.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:r,preferences:i}=e,o=yr.ChangeTracker.with(e,s=>{if(iZe(t,r.getTypeChecker(),s,ps(r.getCompilerOptions()),uf(t,i)))for(const u of r.getSourceFiles())rZe(u,t,r,s,uf(u,i))});return[a_("convertToEsModule",o,m.Convert_to_ES_module)]}})}});function SPe(e,t){const r=jn(go(e,t),xd);return N.assert(!!r,"Expected position to be owned by a qualified name."),Ue(r.left)?r:void 0}function TPe(e,t,r){const i=r.right.text,o=O.createIndexedAccessTypeNode(O.createTypeReferenceNode(r.left,void 0),O.createLiteralTypeNode(O.createStringLiteral(i)));e.replaceNode(t,r,o)}var M$,Afe,EZe=S({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){oi(),Da(),M$="correctQualifiedNameToIndexedAccessType",Afe=[m.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],xa({errorCodes:Afe,getCodeActions(e){const t=SPe(e.sourceFile,e.span.start);if(!t)return;const r=yr.ChangeTracker.with(e,o=>TPe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[ua(M$,r,[m.Rewrite_as_the_indexed_access_type_0,i],M$,m.Rewrite_all_as_indexed_access_types)]},fixIds:[M$],getAllCodeActions:e=>Ds(e,Afe,(t,r)=>{const i=SPe(r.file,r.start);i&&TPe(t,r.file,i)})})}});function APe(e,t){return ni(go(t,e.start).parent,$u)}function IPe(e,t,r){if(!t)return;const i=t.parent,o=i.parent,s=SZe(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{const l=O.updateExportDeclaration(o,o.modifiers,!1,O.updateNamedExports(i,Vn(i.elements,p=>!Mn(s,p))),o.moduleSpecifier,void 0),u=O.createExportDeclaration(void 0,!0,O.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:yr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:yr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,u)}}function SZe(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=Ide(Nd(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return Vn(r.elements,o=>{var s;return o===e||((s=Ade(o,i))==null?void 0:s.code)===L$[0]})}var L$,k$,TZe=S({"src/services/codefixes/convertToTypeOnlyExport.ts"(){oi(),Da(),L$=[m.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],k$="convertToTypeOnlyExport",xa({errorCodes:L$,getCodeActions:function(t){const r=yr.ChangeTracker.with(t,i=>IPe(i,APe(t.span,t.sourceFile),t));if(r.length)return[ua(k$,r,m.Convert_to_type_only_export,k$,m.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[k$],getAllCodeActions:function(t){const r=new Map;return Ds(t,L$,(i,o)=>{const s=APe(o,t.sourceFile);s&&Pm(r,fs(s.parent.parent))&&IPe(i,s,t)})}})}});function xPe(e,t){const{parent:r}=go(e,t);return rp(r)||Fc(r)&&r.importClause?r:void 0}function RPe(e,t,r){if(e.parent.parent.name)return!1;const i=e.parent.elements.filter(s=>!s.isTypeOnly);if(i.length===1)return!0;const o=r.getTypeChecker();for(const s of i)if(Hs.Core.eachSymbolReferenceInFile(s.name,o,t,u=>!T0(u)))return!1;return!0}function N9(e,t,r){var i;if(rp(r))e.replaceNode(t,r,O.updateImportSpecifier(r,!0,r.propertyName,r.name));else{const o=r.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,r,[O.createImportDeclaration(SE(r.modifiers,!0),O.createImportClause(!0,pl(o.name,!0),void 0),pl(r.moduleSpecifier,!0),pl(r.attributes,!0)),O.createImportDeclaration(SE(r.modifiers,!0),O.createImportClause(!0,void 0,pl(o.namedBindings,!0)),pl(r.moduleSpecifier,!0),pl(r.attributes,!0))]);else{const s=((i=o.namedBindings)==null?void 0:i.kind)===275?O.updateNamedImports(o.namedBindings,mo(o.namedBindings.elements,u=>O.updateImportSpecifier(u,!1,u.propertyName,u.name))):o.namedBindings,l=O.updateImportDeclaration(r,r.modifiers,O.updateImportClause(o,!0,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var Ife,C9,AZe=S({"src/services/codefixes/convertToTypeOnlyImport.ts"(){oi(),Da(),Ife=[m.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,m._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,m._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],C9="convertToTypeOnlyImport",xa({errorCodes:Ife,getCodeActions:function(t){var o;var r;const i=xPe(t.sourceFile,t.span.start);if(i){const s=yr.ChangeTracker.with(t,p=>N9(p,t.sourceFile,i)),l=i.kind===276&&RPe(i,t.sourceFile,t.program)?yr.ChangeTracker.with(t,p=>N9(p,t.sourceFile,i.parent.parent.parent)):void 0,u=ua(C9,s,i.kind===276?[m.Use_type_0,(o=(r=i.propertyName)==null?void 0:r.text)!=null?o:i.name.text]:m.Use_import_type,C9,m.Fix_all_with_type_only_imports);return St(l)?[a_(C9,l,m.Use_import_type),u]:[u]}},fixIds:[C9],getAllCodeActions:function(t){const r=new Set;return Ds(t,Ife,(i,o)=>{const s=xPe(o.file,o.start);(s==null?void 0:s.kind)===272&&!r.has(s)?(N9(i,o.file,s),r.add(s)):(s==null?void 0:s.kind)===276&&!r.has(s.parent.parent.parent)&&RPe(s,o.file,t.program)?(N9(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):(s==null?void 0:s.kind)===276&&N9(i,o.file,s)})}})}});function DPe(e,t,r,i,o=!1){if(!YS(t))return;const s=xZe(t);if(!s)return;const l=t.parent,{leftSibling:u,rightSibling:p}=IZe(t);let v=l.getStart(),f="";!u&&l.comment&&(v=NPe(l,l.getStart(),t.getStart()),f=`${i} */${i}`),u&&(o&&YS(u)?(v=t.getStart(),f=""):(v=NPe(l,u.getStart(),t.getStart()),f=`${i} */${i}`));let b=l.getEnd(),A="";p&&(o&&YS(p)?(b=p.getStart(),A=`${i}${i}`):(b=p.getStart(),A=`${i}/**${i} * `)),e.replaceRange(r,{pos:v,end:b},s,{prefix:f,suffix:A})}function IZe(e){const t=e.parent,r=t.getChildCount()-1,i=t.getChildren().findIndex(l=>l.getStart()===e.getStart()&&l.getEnd()===e.getEnd()),o=i>0?t.getChildAt(i-1):void 0,s=i<r?t.getChildAt(i+1):void 0;return{leftSibling:o,rightSibling:s}}function NPe(e,t,r){const i=e.getText().substring(t-e.getStart(),r-e.getStart());for(let o=i.length;o>0;o--)if(!/[*/\s]/g.test(i.substring(o-1,o)))return t+o;return r}function xZe(e){var t;const{typeExpression:r}=e;if(!r)return;const i=(t=e.name)==null?void 0:t.getText();if(!!i){if(r.kind===329)return RZe(i,r);if(r.kind===316)return DZe(i,r)}}function RZe(e,t){const r=CPe(t);if(!!St(r))return O.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function DZe(e,t){const r=pl(t.type);if(!!r)return O.createTypeAliasDeclaration(void 0,O.createIdentifier(e),void 0,r)}function CPe(e){const t=e.jsDocPropertyTags;return St(t)?Vi(t,i=>{var o;const s=NZe(i),l=(o=i.typeExpression)==null?void 0:o.type,u=i.isBracketed;let p;if(l&&XS(l)){const v=CPe(l);p=O.createTypeLiteralNode(v)}else l&&(p=pl(l));if(p&&s){const v=u?O.createToken(58):void 0;return O.createPropertySignature(void 0,s,v,p)}}):void 0}function NZe(e){return e.name.kind===80?e.name.text:e.name.right.text}function CZe(e){return zp(e)?qi(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>YS(i))}):[]}var w$,xfe,PZe=S({"src/services/codefixes/convertTypedefToType.ts"(){oi(),Da(),w$="convertTypedefToType",xfe=[m.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],xa({fixIds:[w$],errorCodes:xfe,getCodeActions(e){const t=ty(e.host,e.formatContext.options),r=go(e.sourceFile,e.span.start);if(!r)return;const i=yr.ChangeTracker.with(e,o=>DPe(o,r,e.sourceFile,t));if(i.length>0)return[ua(w$,i,m.Convert_typedef_to_TypeScript_type,w$,m.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Ds(e,xfe,(t,r)=>{const i=ty(e.host,e.formatContext.options),o=go(r.file,r.start),s=!0;o&&DPe(t,o,r.file,i,s)})})}});function PPe(e,t){const r=go(e,t);if(Ue(r)){const i=sa(r.parent.parent,Sp),o=r.getText(e);return{container:sa(i.parent,Ap),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function MPe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,O.createMappedTypeNode(void 0,O.createTypeParameterDeclaration(void 0,s,O.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var O$,Rfe,MZe=S({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){oi(),Da(),O$="convertLiteralTypeToMappedType",Rfe=[m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],xa({errorCodes:Rfe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=PPe(r,i.start);if(!o)return;const{name:s,constraint:l}=o,u=yr.ChangeTracker.with(t,p=>MPe(p,r,o));return[ua(O$,u,[m.Convert_0_to_1_in_0,l,s],O$,m.Convert_all_type_literals_to_mapped_type)]},fixIds:[O$],getAllCodeActions:e=>Ds(e,Rfe,(t,r)=>{const i=PPe(r.file,r.start);i&&MPe(t,r.file,i)})})}});function LPe(e,t){return N.checkDefined(du(go(e,t)),"There should be a containing class")}function kPe(e){return!e.valueDeclaration||!(fd(e.valueDeclaration)&2)}function wPe(e,t,r,i,o,s){const l=e.program.getTypeChecker(),u=LZe(i,l),p=l.getTypeAtLocation(t),f=l.getPropertiesOfType(p).filter(Z8(kPe,C=>!u.has(C.escapedName))),b=l.getTypeAtLocation(i),A=un(i.members,C=>Wl(C));b.getNumberIndexType()||R(p,1),b.getStringIndexType()||R(p,0);const I=jI(r,e.program,s,e.host);wme(i,f,r,e,s,I,C=>M(r,i,C)),I.writeFixes(o);function R(C,W){const U=l.getIndexInfoOfType(C,W);U&&M(r,i,l.indexInfoToIndexSignatureDeclaration(U,i,void 0,JR(e)))}function M(C,W,U){A?o.insertNodeAfter(C,A,U):o.insertMemberAtStart(C,W,U)}}function LZe(e,t){const r=D_(e);if(!r)return pa();const i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return pa(o.filter(kPe))}var Dfe,W$,kZe=S({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){oi(),Da(),Dfe=[m.Class_0_incorrectly_implements_interface_1.code,m.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],W$="fixClassIncorrectlyImplementsInterface",xa({errorCodes:Dfe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=LPe(t,r.start);return Vi(N2(i),o=>{const s=yr.ChangeTracker.with(e,l=>wPe(e,o,t,i,l,e.preferences));return s.length===0?void 0:ua(W$,s,[m.Implement_interface_0,o.getText(t)],W$,m.Implement_all_unimplemented_interfaces)})},fixIds:[W$],getAllCodeActions(e){const t=new Map;return Ds(e,Dfe,(r,i)=>{const o=LPe(i.file,i.start);if(Pm(t,fs(o)))for(const s of N2(o))wPe(e,s,i.file,o,r,e.preferences)})}})}});function jI(e,t,r,i,o){return OPe(e,t,!1,r,i,o)}function OPe(e,t,r,i,o,s){const l=t.getCompilerOptions(),u=[],p=[],v=new Map,f=new Map;return{addImportFromDiagnostic:b,addImportFromExportedSymbol:A,writeFixes:R,hasFixes:M};function b(C,W){const U=VPe(W,C.code,C.start,r);!U||!U.length||I($a(U))}function A(C,W){const U=N.checkDefined(C.parent),X=UF(C,ps(l)),ee=t.getTypeChecker(),V=ee.getMergedSymbol(Tu(C,ee)),se=zPe(e,V,X,U,!1,t,o,i,s),G=z$(e,t),re=WPe(e,N.checkDefined(se),t,void 0,!!W,G,o,i);re&&I({fix:re,symbolName:X,errorIdentifierText:void 0})}function I(C){var W,U;const{fix:X,symbolName:ee}=C;switch(X.kind){case 0:u.push(X);break;case 1:p.push(X);break;case 2:{const{importClauseOrBindingPattern:re,importKind:_e,addAsTypeOnly:ye}=X,Q=String(fs(re));let Y=v.get(Q);if(Y||v.set(Q,Y={importClauseOrBindingPattern:re,defaultImport:void 0,namedImports:new Map}),_e===0){const oe=Y==null?void 0:Y.namedImports.get(ee);Y.namedImports.set(ee,V(oe,ye))}else N.assert(Y.defaultImport===void 0||Y.defaultImport.name===ee,"(Add to Existing) Default import should be missing or match symbolName"),Y.defaultImport={name:ee,addAsTypeOnly:V((W=Y.defaultImport)==null?void 0:W.addAsTypeOnly,ye)};break}case 3:{const{moduleSpecifier:re,importKind:_e,useRequire:ye,addAsTypeOnly:Q}=X,Y=se(re,_e,ye,Q);switch(N.assert(Y.useRequire===ye,"(Add new) Tried to add an `import` and a `require` for the same module"),_e){case 1:N.assert(Y.defaultImport===void 0||Y.defaultImport.name===ee,"(Add new) Default import should be missing or match symbolName"),Y.defaultImport={name:ee,addAsTypeOnly:V((U=Y.defaultImport)==null?void 0:U.addAsTypeOnly,Q)};break;case 0:const oe=(Y.namedImports||(Y.namedImports=new Map)).get(ee);Y.namedImports.set(ee,V(oe,Q));break;case 3:case 2:N.assert(Y.namespaceLikeImport===void 0||Y.namespaceLikeImport.name===ee,"Namespacelike import shoudl be missing or match symbolName"),Y.namespaceLikeImport={importKind:_e,name:ee,addAsTypeOnly:Q};break}break}case 4:break;default:N.assertNever(X,`fix wasn't never - got kind ${X.kind}`)}function V(re,_e){return Math.max(re!=null?re:0,_e)}function se(re,_e,ye,Q){const Y=G(re,!0),oe=G(re,!1),he=f.get(Y),Ie=f.get(oe),de={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:ye};return _e===1&&Q===2?he||(f.set(Y,de),de):Q===1&&(he||Ie)?he||Ie:Ie||(f.set(oe,de),de)}function G(re,_e){return`${_e?1:0}|${re}`}}function R(C,W){let U;e.imports.length===0&&W!==void 0?U=W:U=uf(e,i);for(const ee of u)Lfe(C,e,ee);for(const ee of p)XPe(C,e,ee,U);v.forEach(({importClauseOrBindingPattern:ee,defaultImport:V,namedImports:se})=>{KPe(C,e,ee,V,Go(se.entries(),([G,re])=>({addAsTypeOnly:re,name:G})),i)});let X;f.forEach(({useRequire:ee,defaultImport:V,namedImports:se,namespaceLikeImport:G},re)=>{const _e=re.slice(2),Q=(ee?QPe:$Pe)(_e,U,V,se&&Go(se.entries(),([Y,oe])=>({addAsTypeOnly:oe,name:Y})),G,l,i);X=Vx(X,Q)}),X&&yP(C,e,X,!0,i)}function M(){return u.length>0||p.length>0||v.size>0||f.size>0}}function wZe(e,t,r,i){const o=xP(e,i,r),s=BPe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(u,p,v,f){const{fixes:b,computedWithoutCacheCount:A}=F$(u,p,v,!1,t,e,r,i,s,f),I=jPe(b,e,t,o,r);return I&&{...I,computedWithoutCacheCount:A}}}function OZe(e,t,r,i,o,s,l,u,p,v,f,b){let A;r?(A=VO(i,l,u,f,b).get(i.path,r),N.assertIsDefined(A,"Some exportInfo should match the specified exportMapKey")):(A=JV(sm(t.name))?[FZe(e,o,t,u,l)]:zPe(i,e,o,t,s,u,l,f,b),N.assertIsDefined(A,"Some exportInfo should match the specified symbol / moduleSymbol"));const I=z$(i,u),R=T0(go(i,v)),M=N.checkDefined(WPe(i,A,u,v,R,I,l,f));return{moduleSpecifier:M.moduleSpecifier,codeAction:FPe(Mfe({host:l,formatContext:p,preferences:f},i,o,M,!1,u,f))}}function WZe(e,t,r,i,o,s){const l=r.getCompilerOptions(),u=AG(Pfe(e,r.getTypeChecker(),t,l)),p=qPe(e,t,u,r),v=u!==t.text;return p&&FPe(Mfe({host:i,formatContext:o,preferences:s},e,u,p,v,r,s))}function WPe(e,t,r,i,o,s,l,u){const p=xP(e,u,l);return jPe(F$(t,i,o,s,r,e,l,u).fixes,e,r,p,l)}function FPe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function zPe(e,t,r,i,o,s,l,u,p){const v=GPe(s,l);return VO(e,l,s,u,p).search(e.path,o,f=>f===r,f=>{if(Tu(f[0].symbol,v(f[0].isFromPackageJson))===t&&f.some(b=>b.moduleSymbol===i||b.symbol.parent===i))return f})}function FZe(e,t,r,i,o){var s,l;const u=i.getCompilerOptions(),p=f(i.getTypeChecker(),!1);if(p)return p;const v=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return N.checkDefined(v&&f(v,!0),"Could not find symbol in specified module for code actions");function f(b,A){const I=$F(r,b,u);if(I&&Tu(I.symbol,b)===e)return{symbol:I.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:I.exportKind,targetFlags:Tu(e,b).flags,isFromPackageJson:A};const R=b.tryGetMemberInModuleExportsAndProperties(t,r);if(R&&Tu(R,b)===e)return{symbol:R,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:Tu(e,b).flags,isFromPackageJson:A}}}function F$(e,t,r,i,o,s,l,u,p=BPe(o.getTypeChecker(),s,o.getCompilerOptions()),v){const f=o.getTypeChecker(),b=qi(e,p.getImportsForExportInfo),A=t!==void 0&&zZe(b,t),I=GZe(b,r,f,o.getCompilerOptions());if(I)return{computedWithoutCacheCount:0,fixes:[...A?[A]:et,I]};const{fixes:R,computedWithoutCacheCount:M=0}=jZe(e,b,o,s,t,r,i,l,u,v);return{computedWithoutCacheCount:M,fixes:[...A?[A]:et,...R]}}function zZe(e,t){return $t(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;const s=BZe(r),l=s&&((o=T2(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function BZe(e){var t,r,i;switch(e.kind){case 260:return(t=ni(e.name,Ue))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=ni((r=e.importClause)==null?void 0:r.namedBindings,eb))==null?void 0:i.name.text;default:return N.assertNever(e)}}function Nfe(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||jU(s)&&(!(i&111551)||!!o.getTypeOnlyAliasDeclaration(r))?2:1:4}function GZe(e,t,r,i){let o;for(const l of e){const u=s(l);if(!u)continue;const p=NL(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&p||u.addAsTypeOnly===4&&!p)return u;o!=null||(o=u)}return o;function s({declaration:l,importKind:u,symbol:p,targetFlags:v}){if(u===3||u===2||l.kind===271)return;if(l.kind===260)return(u===0||u===1)&&l.name.kind===206?{kind:2,importClauseOrBindingPattern:l.name,importKind:u,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:f}=l;if(!f||!hs(l.moduleSpecifier))return;const{name:b,namedBindings:A}=f;if(f.isTypeOnly&&!(u===0&&A))return;const I=Nfe(t,!1,p,v,r,i);if(!(u===1&&(b||I===2&&A))&&!(u===0&&(A==null?void 0:A.kind)===274))return{kind:2,importClauseOrBindingPattern:f,importKind:u,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:I}}}function BPe(e,t,r){let i;for(const o of t.imports){const s=BN(o);if(A3(s.parent)){const l=e.resolveExternalModuleName(o);l&&(i||(i=Zp())).add(Ia(l),s.parent)}else if(s.kind===272||s.kind===271){const l=e.getSymbolAtLocation(o);l&&(i||(i=Zp())).add(Ia(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:u})=>{if(!(l&111551)&&pd(t))return et;const p=i==null?void 0:i.get(Ia(o));if(!p)return et;const v=Cfe(t,s,r);return p.map(f=>({declaration:f,importKind:v,symbol:u,targetFlags:l}))}}}function z$(e,t){if(!pd(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const r=t.getCompilerOptions();if(r.configFile)return Wu(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(const i of t.getSourceFiles())if(!(i===e||!pd(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function GPe(e,t){return fh(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function VZe(e,t,r,i,o,s,l,u,p){const v=pd(t),f=e.getCompilerOptions(),b=sT(e,l),A=GPe(e,l),I=_d(f),R=xF(I),M=p?U=>({moduleSpecifiers:_E.tryGetModuleSpecifiersFromCache(U,t,b,u),computedWithoutCache:!1}):(U,X)=>_E.getModuleSpecifiersWithCacheInfo(U,X,f,t,b,u,void 0,!0);let C=0;const W=qi(s,(U,X)=>{const ee=A(U.isFromPackageJson),{computedWithoutCache:V,moduleSpecifiers:se}=M(U.moduleSymbol,ee),G=!!(U.targetFlags&111551),re=Nfe(i,!0,U.symbol,U.targetFlags,ee,f);return C+=V?1:0,Vi(se,_e=>{var ye;if(R&&L0(_e))return;if(!G&&v&&r!==void 0)return{kind:1,moduleSpecifier:_e,usagePosition:r,exportInfo:U,isReExport:X>0};const Q=Cfe(t,U.exportKind,f);let Y;if(r!==void 0&&Q===3&&U.exportKind===0){const oe=ee.resolveExternalModuleSymbol(U.moduleSymbol);let he;oe!==U.moduleSymbol&&(he=(ye=QF(oe,ee,f))==null?void 0:ye.name),he||(he=wfe(U.moduleSymbol,ps(f),!1)),Y={namespacePrefix:he,usagePosition:r}}return{kind:3,moduleSpecifier:_e,importKind:Q,useRequire:o,addAsTypeOnly:re,exportInfo:U,isReExport:X>0,qualification:Y}})});return{computedWithoutCacheCount:C,fixes:W}}function jZe(e,t,r,i,o,s,l,u,p,v){const f=$t(t,b=>UZe(b,s,l,r.getTypeChecker(),r.getCompilerOptions()));return f?{fixes:[f]}:VZe(r,i,o,s,l,e,u,p,v)}function UZe({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,u){var p;const v=(p=T2(e))==null?void 0:p.text;if(v){const f=s?4:Nfe(o,!0,r,i,l,u);return{kind:3,moduleSpecifier:v,importKind:t,addAsTypeOnly:f,useRequire:s}}}function VPe(e,t,r,i){const o=go(e.sourceFile,r);let s;if(t===m._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=KZe(e,o);else if(Ue(o))if(t===m._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const u=AG(Pfe(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),p=qPe(e.sourceFile,o,u,e.program);return p&&[{fix:p,symbolName:u,errorIdentifierText:o.text}]}else s=$Ze(e,o,i);else return;const l=xP(e.sourceFile,e.preferences,e.host);return s&&HZe(s,e.sourceFile,e.program,l,e.host)}function HZe(e,t,r,i,o){const s=l=>ll(l,o.getCurrentDirectory(),Gv(o));return uS(e,(l,u)=>Iy(!!l.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||al(l.fix.kind,u.fix.kind)||UPe(l.fix,u.fix,t,r,i.allowsImportingSpecifier,s))}function jPe(e,t,r,i,o){if(!!St(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>UPe(l,s,t,r,i.allowsImportingSpecifier,u=>ll(u,o.getCurrentDirectory(),Gv(o)))===-1?l:s)}function UPe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?Iy(o(t.moduleSpecifier),o(e.moduleSpecifier))||JZe(e.moduleSpecifier,t.moduleSpecifier,r,i)||Iy(HPe(e,r,i.getCompilerOptions(),s),HPe(t,r,i.getCompilerOptions(),s))||Ok(e.moduleSpecifier,t.moduleSpecifier):0}function HPe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)==null?void 0:o.moduleFileName)&&qZe(e.exportInfo.moduleFileName)){const s=i(ii(e.exportInfo.moduleFileName));return ho(t.path,s)}return!1}function qZe(e){return dc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function JZe(e,t,r,i){return ho(e,"node:")&&!ho(t,"node:")?qF(r,i)?-1:1:ho(t,"node:")&&!ho(e,"node:")?qF(r,i)?1:-1:0}function KZe({sourceFile:e,program:t,host:r,preferences:i},o){const s=t.getTypeChecker(),l=XZe(o,s);if(!l)return;const u=s.getAliasedSymbol(l),p=l.name,v=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],f=z$(e,t);return F$(v,void 0,!1,f,t,e,r,i).fixes.map(A=>{var I;return{fix:A,symbolName:p,errorIdentifierText:(I=ni(o,Ue))==null?void 0:I.text}})}function XZe(e,t){const r=Ue(e)?t.getSymbolAtLocation(e):void 0;if(Q3(r))return r;const{parent:i}=e;if(dd(i)&&i.tagName===e||EI(i)){const o=t.resolveName(t.getJsxNamespace(i),dd(i)?e:i,111551,!1);if(Q3(o))return o}}function Cfe(e,t,r,i){if(r.verbatimModuleSyntax&&(Wu(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return eet(e,r,!!i);case 3:return YZe(e,r,!!i);default:return N.assertNever(t)}}function YZe(e,t,r){if(FS(t))return 1;const i=Wu(t);switch(i){case 2:case 1:case 3:return dr(e)&&(mc(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return N.assertNever(i,`Unexpected moduleKind ${i}`)}}function $Ze({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){const u=t.getTypeChecker(),p=t.getCompilerOptions();return qi(Pfe(e,u,s,p),v=>{if(v==="default")return;const f=T0(s),b=z$(e,t),A=ZZe(v,b2(s),oT(s),r,e,t,l,i,o);return Go(Zf(A.values(),I=>F$(I,s.getStart(e),f,b,t,e,i,o).fixes),I=>({fix:I,symbolName:v,errorIdentifierText:s.text,isJsxNamespaceFix:v!==s.text}))})}function qPe(e,t,r,i){const o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;const l=o.getTypeOnlyAliasDeclaration(s);if(!(!l||Jn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function Pfe(e,t,r,i){const o=r.parent;if((dd(o)||sE(o))&&o.tagName===r&&eY(i.jsx)){const s=t.getJsxNamespace(e);if(QZe(s,r,t))return!L2(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function QZe(e,t,r){if(L2(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||St(i.declarations,m0)&&!(i.flags&111551)}function ZZe(e,t,r,i,o,s,l,u,p){var v;const f=Zp(),b=xP(o,p,u),A=(v=u.getModuleSpecifierCache)==null?void 0:v.call(u),I=fh(M=>sT(M?u.getPackageJsonAutoImportProvider():s,u));function R(M,C,W,U,X,ee){const V=I(ee);if(C&&sY(X,o,C,p,b,V,A)||!C&&b.allowsImportingAmbientModule(M,V)){const se=X.getTypeChecker();f.add(_de(W,se).toString(),{symbol:W,moduleSymbol:M,moduleFileName:C==null?void 0:C.fileName,exportKind:U,targetFlags:Tu(W,se).flags,isFromPackageJson:ee})}}return lY(s,u,p,l,(M,C,W,U)=>{const X=W.getTypeChecker();i.throwIfCancellationRequested();const ee=W.getCompilerOptions(),V=$F(M,X,ee);V&&(V.name===e||wfe(M,ps(ee),t)===e)&&eMe(V.resolvedSymbol,r)&&R(M,C,V.symbol,V.exportKind,W,U);const se=X.tryGetMemberInModuleExportsAndProperties(e,M);se&&eMe(se,r)&&R(M,C,se,0,W,U)}),f}function eet(e,t,r){const i=FS(t),o=dr(e);if(!o&&Wu(t)>=5)return i?1:2;if(o)return mc(e)||r?i?1:2:3;for(const s of e.statements)if(au(s)&&!Hl(s.moduleReference))return 3;return i?1:3}function Mfe(e,t,r,i,o,s,l){let u;const p=yr.ChangeTracker.with(e,v=>{u=tet(v,t,r,i,o,s,l)});return ua(Wfe,p,u,Ffe,m.Add_all_missing_imports)}function tet(e,t,r,i,o,s,l){const u=uf(t,l);switch(i.kind){case 0:return Lfe(e,t,i),[m.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return XPe(e,t,i,u),[m.Change_0_to_1,r,YPe(i.moduleSpecifier,u)+r];case 2:{const{importClauseOrBindingPattern:p,importKind:v,addAsTypeOnly:f,moduleSpecifier:b}=i;KPe(e,t,p,v===1?{name:r,addAsTypeOnly:f}:void 0,v===0?[{name:r,addAsTypeOnly:f}]:et,l);const A=sm(b);return o?[m.Import_0_from_1,r,A]:[m.Update_import_from_0,A]}case 3:{const{importKind:p,moduleSpecifier:v,addAsTypeOnly:f,useRequire:b,qualification:A}=i,I=b?QPe:$Pe,R=p===1?{name:r,addAsTypeOnly:f}:void 0,M=p===0?[{name:r,addAsTypeOnly:f}]:void 0,C=p===2||p===3?{importKind:p,name:(A==null?void 0:A.namespacePrefix)||r,addAsTypeOnly:f}:void 0;return yP(e,t,I(v,u,R,M,C,s.getCompilerOptions(),l),!0,l),A&&Lfe(e,t,A),o?[m.Import_0_from_1,r,v]:[m.Add_import_from_0,v]}case 4:{const{typeOnlyAliasDeclaration:p}=i,v=net(e,p,s,t,l);return v.kind===276?[m.Remove_type_from_import_of_0_from_1,r,JPe(v.parent.parent)]:[m.Remove_type_from_import_declaration_from_0,JPe(v)]}default:return N.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function JPe(e){var t,r;return e.kind===271?((r=ni((t=ni(e.moduleReference,Rh))==null?void 0:t.expression,hs))==null?void 0:r.text)||e.moduleReference.getText():sa(e.parent.moduleSpecifier,La).text}function net(e,t,r,i,o){var p;const s=r.getCompilerOptions(),l=jU(s);switch(t.kind){case 276:if(t.isTypeOnly){const v=Wm.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&v){const f=O.updateImportSpecifier(t,!1,t.propertyName,t.name),b=Wm.getOrganizeImportsComparer(o,v===2),A=Wm.getImportSpecifierInsertionIndex(t.parent.elements,f,b,o);if(A!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,f,t.parent,A),t}return e.deleteRange(i,{pos:_0(t.getFirstToken()),end:_0((p=t.propertyName)!=null?p:t.name)}),t}else return N.assert(t.parent.parent.isTypeOnly),u(t.parent.parent),t.parent.parent;case 273:return u(t),t;case 274:return u(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:N.failBadSyntaxKind(t)}function u(v){var f;if(e.delete(i,PX(v,i)),!s.allowImportingTsExtensions){const b=T2(v.parent),A=b&&((f=r.getResolvedModuleFromModuleSpecifier(b))==null?void 0:f.resolvedModule);if(A!=null&&A.resolvedUsingTsExtension){const I=dL(b.text,AW(b.text,s));e.replaceNode(i,b,O.createStringLiteral(I))}}if(l){const b=ni(v.namedBindings,qg);if(b&&b.elements.length>1){Wm.detectImportSpecifierSorting(b.elements,o)&&t.kind===276&&b.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,b,0));for(const A of b.elements)A!==t&&!A.isTypeOnly&&e.insertModifierBefore(i,156,A)}}}}function KPe(e,t,r,i,o,s){var l;if(r.kind===206){i&&v(r,i.name,"default");for(const f of o)v(r,f.name,void 0);return}const u=r.isTypeOnly&&St([i,...o],f=>(f==null?void 0:f.addAsTypeOnly)===4),p=r.namedBindings&&((l=ni(r.namedBindings,qg))==null?void 0:l.elements);if(i&&(N.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),O.createIdentifier(i.name),{suffix:", "})),o.length){let f;if(typeof s.organizeImportsIgnoreCase=="boolean")f=s.organizeImportsIgnoreCase;else if(p){const R=Wm.detectImportSpecifierSorting(p,s);R!==3&&(f=R===2)}f===void 0&&(f=Wm.detectSorting(t,s)===2);const b=Wm.getOrganizeImportsComparer(s,f),A=Dv(o.map(R=>O.createImportSpecifier((!r.isTypeOnly||u)&&B$(R,s),void 0,O.createIdentifier(R.name))),(R,M)=>Wm.compareImportOrExportSpecifiers(R,M,b)),I=(p==null?void 0:p.length)&&Wm.detectImportSpecifierSorting(p,s);if(I&&!(f&&I===1))for(const R of A){const M=u&&!R.isTypeOnly?0:Wm.getImportSpecifierInsertionIndex(p,R,b,s);e.insertImportSpecifierAtIndex(t,R,r.namedBindings,M)}else if(p!=null&&p.length)for(const R of A)e.insertNodeInListAfter(t,rs(p),R,p);else if(A.length){const R=O.createNamedImports(A);r.namedBindings?e.replaceNode(t,r.namedBindings,R):e.insertNodeAfter(t,N.checkDefined(r.name,"Import clause must have either named imports or a default import"),R)}}if(u&&(e.delete(t,PX(r,t)),p))for(const f of p)e.insertModifierBefore(t,156,f);function v(f,b,A){const I=O.createBindingElement(void 0,A,b);f.elements.length?e.insertNodeInListAfter(t,rs(f.elements),I):e.replaceNode(t,f,O.createObjectBindingPattern([I]))}}function Lfe(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function XPe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,YPe(r,o))}function YPe(e,t){const r=CX(t);return`import(${r}${e}${r}).`}function kfe({addAsTypeOnly:e}){return e===2}function B$(e,t){return kfe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function $Pe(e,t,r,i,o,s,l){const u=WI(e,t);let p;if(r!==void 0||(i==null?void 0:i.length)){const v=(!r||kfe(r))&&Bn(i,kfe)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&(r==null?void 0:r.addAsTypeOnly)!==4&&!St(i,f=>f.addAsTypeOnly===4);p=Vx(p,ey(r&&O.createIdentifier(r.name),i==null?void 0:i.map(f=>O.createImportSpecifier(!v&&B$(f,l),void 0,O.createIdentifier(f.name))),e,t,v))}if(o){const v=o.importKind===3?O.createImportEqualsDeclaration(void 0,B$(o,l),O.createIdentifier(o.name),O.createExternalModuleReference(u)):O.createImportDeclaration(void 0,O.createImportClause(B$(o,l),void 0,O.createNamespaceImport(O.createIdentifier(o.name))),u,void 0);p=Vx(p,v)}return N.checkDefined(p)}function QPe(e,t,r,i,o){const s=WI(e,t);let l;if(r||(i==null?void 0:i.length)){const u=(i==null?void 0:i.map(({name:v})=>O.createBindingElement(void 0,void 0,v)))||[];r&&u.unshift(O.createBindingElement(void 0,"default",r.name));const p=ZPe(O.createObjectBindingPattern(u),s);l=Vx(l,p)}if(o){const u=ZPe(o.name,s);l=Vx(l,u)}return N.checkDefined(l)}function ZPe(e,t){return O.createVariableStatement(void 0,O.createVariableDeclarationList([O.createVariableDeclaration(typeof e=="string"?O.createIdentifier(e):e,void 0,void 0,O.createCallExpression(O.createIdentifier("require"),void 0,[t]))],2))}function eMe({declarations:e},t){return St(e,r=>!!(vO(r)&t))}function wfe(e,t,r){return Ofe(Id(sm(e.name)),t,r)}function Ofe(e,t,r){const i=dc(Hx(e,"/index"));let o="",s=!0;const l=i.charCodeAt(0);Qh(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let u=1;u<i.length;u++){const p=i.charCodeAt(u),v=s0(p,t);if(v){let f=String.fromCharCode(p);s||(f=f.toUpperCase()),o+=f}s=v}return qA(o)?`_${o}`:o||"_"}var Wfe,Ffe,zfe,ret=S({"src/services/codefixes/importFixes.ts"(){oi(),Da(),Wfe="import",Ffe="fixMissingImport",zfe=[m.Cannot_find_name_0.code,m.Cannot_find_name_0_Did_you_mean_1.code,m.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,m.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,m.Cannot_find_namespace_0.code,m._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,m._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,m.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,m._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,m.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,m.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,m.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,m.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,m.Cannot_find_namespace_0_Did_you_mean_1.code],xa({errorCodes:zfe,getCodeActions(e){const{errorCode:t,preferences:r,sourceFile:i,span:o,program:s}=e,l=VPe(e,t,o.start,!0);if(!!l)return l.map(({fix:u,symbolName:p,errorIdentifierText:v})=>Mfe(e,i,p,u,p!==v,s,r))},fixIds:[Ffe],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=OPe(t,r,!0,i,o,s);return HR(e,zfe,u=>l.addImportFromDiagnostic(u,e)),UR(yr.ChangeTracker.with(e,l.writeFixes))}})}});function tMe(e,t,r){const i=un(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=un(i.relatedInformation,l=>l.code===m.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=Vme(o.file,Eu(o.start,o.length));if(s!==void 0&&(Ue(s)&&El(s.parent)&&(s=s.parent),El(s))){if(Q2(s.parent))return;const l=go(t,r.start),u=e.getTypeChecker();return{constraint:oet(u,l)||iet(o.messageText),declaration:s,token:l}}}function nMe(e,t,r,i,o,s){const{declaration:l,constraint:u}=s,p=t.getTypeChecker();if(wo(u))e.insertText(o,l.name.end,` extends ${u}`);else{const v=ps(t.getCompilerOptions()),f=JR({program:t,host:i}),b=jI(o,t,r,i),A=AQ(p,b,u,void 0,v,void 0,f);A&&(e.replaceNode(o,l,O.updateTypeParameterDeclaration(l,void 0,l.name,A,l.default)),b.writeFixes(e))}}function iet(e){const[,t]=B_(e,`
`,0).match(/`extends (.*)`/)||[];return t}function oet(e,t){return Xi(t.parent)?e.getTypeArgumentConstraint(t.parent):(bt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var G$,Bfe,aet=S({"src/services/codefixes/fixAddMissingConstraint.ts"(){oi(),Da(),G$="addMissingConstraint",Bfe=[m.Type_0_is_not_comparable_to_type_1.code,m.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,m.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,m.Type_0_is_not_assignable_to_type_1.code,m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,m.Property_0_is_incompatible_with_index_signature.code,m.Property_0_in_type_1_is_not_assignable_to_type_2.code,m.Type_0_does_not_satisfy_the_constraint_1.code],xa({errorCodes:Bfe,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=tMe(i,t,r);if(l===void 0)return;const u=yr.ChangeTracker.with(e,p=>nMe(p,i,o,s,t,l));return[ua(G$,u,m.Add_extends_constraint,G$,m.Add_extends_constraint_to_all_type_parameters)]},fixIds:[G$],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,o=new Map;return UR(yr.ChangeTracker.with(e,s=>{HR(e,Bfe,l=>{const u=tMe(t,l.file,Eu(l.start,l.length));if(u&&Pm(o,fs(u.declaration)))return nMe(s,t,r,i,l.file,u)})}))}})}});function rMe(e,t,r,i){switch(r){case m.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case m.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case m.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case m.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case m.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return set(e,t.sourceFile,i);case m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case m.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return cet(e,t.sourceFile,i);default:N.fail("Unexpected error code: "+r)}}function set(e,t,r){const i=oMe(t,r);if(pd(t)){e.addJSDocTags(t,i,[O.createJSDocOverrideTag(O.createIdentifier("override"))]);return}const o=i.modifiers||et,s=un(o,dI),l=un(o,$ae),u=un(o,b=>bX(b.kind)),p=Mi(o,Au),v=l?l.end:s?s.end:u?u.end:p?Wa(t.text,p.end):i.getStart(t),f=u||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,v,164,f)}function cet(e,t,r){const i=oMe(t,r);if(pd(t)){e.filterJSDocTags(t,i,e6(S5));return}const o=un(i.modifiers,Qae);N.assertIsDefined(o),e.deleteModifier(t,o)}function iMe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return gp(e,e.parent);default:return!1}}function oMe(e,t){const r=go(e,t),i=jn(r,o=>di(o)?"quit":iMe(o));return N.assert(i&&iMe(i)),i}var Gfe,MP,u4,Vfe,jfe,uet=S({"src/services/codefixes/fixOverrideModifier.ts"(){oi(),Da(),Gfe="fixOverrideModifier",MP="fixAddOverrideModifier",u4="fixRemoveOverrideModifier",Vfe=[m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,m.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,m.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,m.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,m.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,m.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,m.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],jfe={[m.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:m.Add_override_modifier,fixId:MP,fixAllDescriptions:m.Add_all_missing_override_modifiers},[m.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:m.Add_override_modifier,fixId:MP,fixAllDescriptions:m.Add_all_missing_override_modifiers},[m.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:m.Remove_override_modifier,fixId:u4,fixAllDescriptions:m.Remove_all_unnecessary_override_modifiers},[m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:m.Remove_override_modifier,fixId:u4,fixAllDescriptions:m.Remove_override_modifier},[m.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:m.Add_override_modifier,fixId:MP,fixAllDescriptions:m.Add_all_missing_override_modifiers},[m.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:m.Add_override_modifier,fixId:MP,fixAllDescriptions:m.Add_all_missing_override_modifiers},[m.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:m.Add_override_modifier,fixId:MP,fixAllDescriptions:m.Remove_all_unnecessary_override_modifiers},[m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:m.Remove_override_modifier,fixId:u4,fixAllDescriptions:m.Remove_all_unnecessary_override_modifiers},[m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:m.Remove_override_modifier,fixId:u4,fixAllDescriptions:m.Remove_all_unnecessary_override_modifiers}},xa({errorCodes:Vfe,getCodeActions:function(t){const{errorCode:r,span:i}=t,o=jfe[r];if(!o)return et;const{descriptions:s,fixId:l,fixAllDescriptions:u}=o,p=yr.ChangeTracker.with(t,v=>rMe(v,t,r,i.start));return[nfe(Gfe,p,s,l,u)]},fixIds:[Gfe,MP,u4],getAllCodeActions:e=>Ds(e,Vfe,(t,r)=>{const{code:i,start:o}=r,s=jfe[i];!s||s.fixId!==e.fixId||rMe(t,e,i,o)})})}});function aMe(e,t,r,i){const o=uf(t,i),s=O.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,W6(r)?O.createElementAccessChain(r.expression,r.questionDotToken,s):O.createElementAccessExpression(r.expression,s))}function sMe(e,t){return sa(go(e,t).parent,Br)}var V$,Ufe,det=S({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){oi(),Da(),V$="fixNoPropertyAccessFromIndexSignature",Ufe=[m.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],xa({errorCodes:Ufe,fixIds:[V$],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,o=sMe(t,r.start),s=yr.ChangeTracker.with(e,l=>aMe(l,e.sourceFile,o,i));return[ua(V$,s,[m.Use_element_access_for_0,o.name.text],V$,m.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Ds(e,Ufe,(t,r)=>aMe(t,r.file,sMe(r.file,r.start),e.preferences))})}});function lMe(e,t,r,i){const o=go(t,r);if(!CR(o))return;const s=zd(o,!1,!1);if(!(!Dc(s)&&!Us(s))&&!io(zd(s,!1,!1))){const l=N.checkDefined(Is(s,100,t)),{name:u}=s,p=N.checkDefined(s.body);return Us(s)?u&&Hs.Core.isSymbolReferencedInFile(u,i,t,p)?void 0:(e.delete(t,l),u&&e.delete(t,u),e.insertText(t,p.pos," =>"),[m.Convert_function_expression_0_to_arrow_function,u?u.text:YF]):(e.replaceNode(t,l,O.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,p.pos," =>"),[m.Convert_function_declaration_0_to_arrow_function,u.text])}}var j$,Hfe,pet=S({"src/services/codefixes/fixImplicitThis.ts"(){oi(),Da(),j$="fixImplicitThis",Hfe=[m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],xa({errorCodes:Hfe,getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t;let s;const l=yr.ChangeTracker.with(t,u=>{s=lMe(u,r,o.start,i.getTypeChecker())});return s?[ua(j$,l,s,j$,m.Fix_all_implicit_this_errors)]:et},fixIds:[j$],getAllCodeActions:e=>Ds(e,Hfe,(t,r)=>{lMe(t,r.file,r.start,e.program.getTypeChecker())})})}});function cMe(e,t,r){var i,o;const s=go(e,t);if(Ue(s)){const l=jn(s,Fc);if(l===void 0)return;const u=La(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(u===void 0)return;const p=(i=r.getResolvedModuleFromModuleSpecifier(u))==null?void 0:i.resolvedModule;if(p===void 0)return;const v=r.getSourceFile(p.resolvedFileName);if(v===void 0||WR(r,v))return;const f=v.symbol,b=(o=ni(f.valueDeclaration,hh))==null?void 0:o.locals;if(b===void 0)return;const A=b.get(s.escapedText);if(A===void 0)return;const I=met(A);return I===void 0?void 0:{exportName:{node:s,isTypeOnly:H2(I)},node:I,moduleSourceFile:v,moduleSpecifier:u.text}}}function fet(e,t,{exportName:r,node:i,moduleSourceFile:o}){const s=U$(o,r.isTypeOnly);s?uMe(e,t,o,s,[r]):zk(i)?e.insertExportModifier(o,i):dMe(e,t,o,[r])}function qfe(e,t,r,i,o){Pe(i)&&(o?uMe(e,t,r,o,i):dMe(e,t,r,i))}function U$(e,t){const r=i=>rc(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return Mi(e.statements,r)}function uMe(e,t,r,i,o){const s=i.exportClause&&Pf(i.exportClause)?i.exportClause.elements:O.createNodeArray([]),l=!i.isTypeOnly&&!!(dm(t.getCompilerOptions())||un(s,u=>u.isTypeOnly));e.replaceNode(r,i,O.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,O.createNamedExports(O.createNodeArray([...s,...pMe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function dMe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,O.createExportDeclaration(void 0,!1,O.createNamedExports(pMe(i,dm(t.getCompilerOptions()))),void 0,void 0))}function pMe(e,t){return O.createNodeArray(Wt(e,r=>O.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function met(e){if(e.valueDeclaration===void 0)return eu(e.declarations);const t=e.valueDeclaration,r=Wi(t)?ni(t.parent.parent,Fl):void 0;return r&&Pe(r.declarationList.declarations)===1?r:t}var H$,Jfe,_et=S({"src/services/codefixes/fixImportNonExportedMember.ts"(){oi(),Da(),H$="fixImportNonExportedMember",Jfe=[m.Module_0_declares_1_locally_but_it_is_not_exported.code],xa({errorCodes:Jfe,fixIds:[H$],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=cMe(t,r.start,i);if(o===void 0)return;const s=yr.ChangeTracker.with(e,l=>fet(l,i,o));return[ua(H$,s,[m.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],H$,m.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return UR(yr.ChangeTracker.with(e,r=>{const i=new Map;HR(e,Jfe,o=>{const s=cMe(o.file,o.start,t);if(s===void 0)return;const{exportName:l,node:u,moduleSourceFile:p}=s;if(U$(p,l.isTypeOnly)===void 0&&zk(u))r.insertExportModifier(p,u);else{const v=i.get(p)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?v.typeOnlyExports.push(l):v.exports.push(l),i.set(p,v)}}),i.forEach((o,s)=>{const l=U$(s,!0);l&&l.isTypeOnly?(qfe(r,t,s,o.typeOnlyExports,l),qfe(r,t,s,o.exports,U$(s,!1))):qfe(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function het(e,t){const r=go(e,t);return jn(r,i=>i.kind===202)}function get(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?o=!0:i.kind===191&&(s=!0),i=i.type;const l=O.updateNamedTupleMember(r,r.dotDotDotToken||(s?O.createToken(26):void 0),r.name,r.questionToken||(o?O.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var q$,fMe,vet=S({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){oi(),Da(),q$="fixIncorrectNamedTupleSyntax",fMe=[m.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,m.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],xa({errorCodes:fMe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=het(r,i.start),s=yr.ChangeTracker.with(t,l=>get(l,r,o));return[ua(q$,s,m.Move_labeled_tuple_element_modifiers_to_labels,q$,m.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[q$]})}});function mMe(e,t,r,i){const o=go(e,t),s=o.parent;if((i===m.No_overload_matches_this_call.code||i===m.Type_0_is_not_assignable_to_type_1.code)&&!F_(s))return;const l=r.program.getTypeChecker();let u;if(Br(s)&&s.name===o){N.assert(Zh(o),"Expected an identifier for spelling (property access)");let p=l.getTypeAtLocation(s.expression);s.flags&64&&(p=l.getNonNullableType(p)),u=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(vr(s)&&s.operatorToken.kind===103&&s.left===o&&Qi(o)){const p=l.getTypeAtLocation(s.right);u=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(xd(s)&&s.right===o){const p=l.getSymbolAtLocation(s.left);p&&p.flags&1536&&(u=l.getSuggestedSymbolForNonexistentModule(s.right,p))}else if(rp(s)&&s.name===o){N.assertNode(o,Ue,"Expected an identifier for spelling (import)");const p=jn(o,Fc),v=bet(r,p);v&&v.symbol&&(u=l.getSuggestedSymbolForNonexistentModule(o,v.symbol))}else if(F_(s)&&s.name===o){N.assertNode(o,Ue,"Expected an identifier for JSX attribute");const p=jn(o,dd),v=l.getContextualTypeForArgumentAtIndex(p,0);u=l.getSuggestedSymbolForNonexistentJSXAttribute(o,v)}else if(U3(s)&&nu(s)&&s.name===o){const p=jn(o,di),v=p?D_(p):void 0,f=v?l.getTypeAtLocation(v):void 0;f&&(u=l.getSuggestedSymbolForNonexistentClassMember(bc(o),f))}else{const p=oT(o),v=bc(o);N.assert(v!==void 0,"name should be defined"),u=l.getSuggestedSymbolForNonexistentSymbol(o,v,yet(p))}return u===void 0?void 0:{node:o,suggestedSymbol:u}}function _Me(e,t,r,i,o){const s=Il(i);if(!tf(s,o)&&Br(r.parent)){const l=i.valueDeclaration;l&&cd(l)&&Qi(l.name)?e.replaceNode(t,r,O.createIdentifier(s)):e.replaceNode(t,r.parent,O.createElementAccessExpression(r.parent.expression,O.createStringLiteral(s)))}else e.replaceNode(t,r,O.createIdentifier(s))}function yet(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function bet(e,t){var r;if(!t||!hs(t.moduleSpecifier))return;const i=(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))==null?void 0:r.resolvedModule;if(!!i)return e.program.getSourceFile(i.resolvedFileName)}var Kfe,Xfe,Eet=S({"src/services/codefixes/fixSpelling.ts"(){oi(),Da(),Kfe="fixSpelling",Xfe=[m.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,m.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,m.Cannot_find_name_0_Did_you_mean_1.code,m.Could_not_find_name_0_Did_you_mean_1.code,m.Cannot_find_namespace_0_Did_you_mean_1.code,m.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,m.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,m._0_has_no_exported_member_named_1_Did_you_mean_2.code,m.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,m.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,m.No_overload_matches_this_call.code,m.Type_0_is_not_assignable_to_type_1.code],xa({errorCodes:Xfe,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=mMe(t,e.span.start,e,r);if(!i)return;const{node:o,suggestedSymbol:s}=i,l=ps(e.host.getCompilationSettings()),u=yr.ChangeTracker.with(e,p=>_Me(p,t,o,s,l));return[ua("spelling",u,[m.Change_spelling_to_0,Il(s)],Kfe,m.Fix_all_detected_spelling_errors)]},fixIds:[Kfe],getAllCodeActions:e=>Ds(e,Xfe,(t,r)=>{const i=mMe(r.file,r.start,e,r.code),o=ps(e.host.getCompilationSettings());i&&_Me(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function hMe(e,t,r){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);const o=pa([i]);return e.createAnonymousType(void 0,o,[],[],[])}function Yfe(e,t,r,i){if(!t.body||!Yo(t.body)||Pe(t.body.statements)!==1)return;const o=$a(t.body.statements);if(ou(o)&&$fe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(aE(o)&&ou(o.statement)){const s=O.createObjectLiteralExpression([O.createPropertyAssignment(o.label,o.statement.expression)]),l=hMe(e,o.label,o.statement.expression);if($fe(e,t,l,r,i))return Ks(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(Yo(o)&&Pe(o.statements)===1){const s=$a(o.statements);if(aE(s)&&ou(s.statement)){const l=O.createObjectLiteralExpression([O.createPropertyAssignment(s.label,s.statement.expression)]),u=hMe(e,s.label,s.statement.expression);if($fe(e,t,u,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function $fe(e,t,r,i,o){if(o){const s=e.getSignatureFromDeclaration(t);if(s){Qr(t,1024)&&(r=e.createPromiseType(r));const l=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,pa(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function gMe(e,t,r,i){const o=go(t,r);if(!o.parent)return;const s=jn(o.parent,Js);switch(i){case m.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!s||!s.body||!s.type||!cf(s.type,o)?void 0:Yfe(e,s,e.getTypeFromTypeNode(s.type),!1);case m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!ca(s.parent)||!s.body)return;const l=s.parent.arguments.indexOf(s);if(l===-1)return;const u=e.getContextualTypeForArgumentAtIndex(s.parent,l);return u?Yfe(e,s,u,!0):void 0;case m.Type_0_is_not_assignable_to_type_1.code:if(!Gg(o)||!g2(o.parent)&&!F_(o.parent))return;const p=Tet(o.parent);return!p||!Js(p)||!p.body?void 0:Yfe(e,p,e.getTypeAtLocation(o.parent),!0)}}function Tet(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(wC(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function vMe(e,t,r,i){Rp(r);const o=FO(t);e.replaceNode(t,i,O.createReturnStatement(r),{leadingTriviaOption:yr.LeadingTriviaOption.Exclude,trailingTriviaOption:yr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function yMe(e,t,r,i,o,s){const l=s||kF(i)?O.createParenthesizedExpression(i):i;Rp(o),lT(o,l),e.replaceNode(t,r.body,l)}function bMe(e,t,r,i){e.replaceNode(t,r.body,O.createParenthesizedExpression(i))}function Aet(e,t,r){const i=yr.ChangeTracker.with(e,o=>vMe(o,e.sourceFile,t,r));return ua(J$,i,m.Add_a_return_statement,K$,m.Add_all_missing_return_statement)}function Iet(e,t,r,i){const o=yr.ChangeTracker.with(e,s=>yMe(s,e.sourceFile,t,r,i,!1));return ua(J$,o,m.Remove_braces_from_arrow_function_body,X$,m.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function xet(e,t,r){const i=yr.ChangeTracker.with(e,o=>bMe(o,e.sourceFile,t,r));return ua(J$,i,m.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Y$,m.Wrap_all_object_literal_with_parentheses)}var J$,K$,X$,Y$,Qfe,Ret=S({"src/services/codefixes/returnValueCorrect.ts"(){oi(),Da(),J$="returnValueCorrect",K$="fixAddReturnStatement",X$="fixRemoveBracesFromArrowFunctionBody",Y$="fixWrapTheBlockWithParen",Qfe=[m.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,m.Type_0_is_not_assignable_to_type_1.code,m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],xa({errorCodes:Qfe,fixIds:[K$,X$,Y$],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=gMe(r.getTypeChecker(),i,o,s);if(!!l)return l.kind===0?Rn([Aet(t,l.expression,l.statement)],Ks(l.declaration)?Iet(t,l.declaration,l.expression,l.commentSource):void 0):[xet(t,l.declaration,l.expression)]},getAllCodeActions:e=>Ds(e,Qfe,(t,r)=>{const i=gMe(e.program.getTypeChecker(),r.file,r.start,r.code);if(!!i)switch(e.fixId){case K$:vMe(t,r.file,i.expression,i.statement);break;case X$:if(!Ks(i.declaration))return;yMe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case Y$:if(!Ks(i.declaration))return;bMe(t,r.file,i.declaration,i.expression);break;default:N.fail(JSON.stringify(e.fixId))}})})}});function EMe(e,t,r,i,o){var s;const l=go(e,t),u=l.parent;if(r===m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(l.kind===19&&za(u)&&ca(u.parent)))return;const I=Ji(u.parent.arguments,W=>W===u);if(I<0)return;const R=i.getResolvedSignature(u.parent);if(!(R&&R.declaration&&R.parameters[I]))return;const M=R.parameters[I].valueDeclaration;if(!(M&&No(M)&&Ue(M.name)))return;const C=Go(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(R,I),!1,!1));return Pe(C)?{kind:3,token:M.name,identifier:M.name.text,properties:C,parentDeclaration:u}:void 0}if(l.kind===19&&za(u)){const I=i.getContextualType(u)||i.getTypeAtLocation(u),R=Go(i.getUnmatchedProperties(i.getTypeAtLocation(u),I,!1,!1));return Pe(R)?{kind:3,token:u,identifier:"",properties:R,parentDeclaration:u}:void 0}if(!Zh(l))return;if(Ue(l)&&Wy(u)&&u.initializer&&za(u.initializer)){const I=i.getContextualType(l)||i.getTypeAtLocation(l),R=Go(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),I,!1,!1));return Pe(R)?{kind:3,token:l,identifier:l.text,properties:R,parentDeclaration:u.initializer}:void 0}if(Ue(l)&&dd(l.parent)){const I=ps(o.getCompilerOptions()),R=ket(i,I,l.parent);return Pe(R)?{kind:4,token:l,attributes:R,parentDeclaration:l.parent}:void 0}if(Ue(l)){const I=(s=i.getContextualType(l))==null?void 0:s.getNonNullableType();if(I&&zr(I)&16){const R=eu(i.getSignaturesOfType(I,0));return R===void 0?void 0:{kind:5,token:l,signature:R,sourceFile:e,parentDeclaration:MMe(l)}}if(ca(u)&&u.expression===l)return{kind:2,token:l,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:MMe(l)}}if(!Br(u))return;const p=xX(i.getTypeAtLocation(u.expression)),v=p.symbol;if(!v||!v.declarations)return;if(Ue(l)&&ca(u.parent)){const I=un(v.declarations,nc),R=I==null?void 0:I.getSourceFile();if(I&&R&&!WR(o,R))return{kind:2,token:l,call:u.parent,sourceFile:e,modifierFlags:32,parentDeclaration:I};const M=un(v.declarations,io);if(e.commonJsModuleIndicator)return;if(M&&!WR(o,M))return{kind:2,token:l,call:u.parent,sourceFile:M,modifierFlags:32,parentDeclaration:M}}const f=un(v.declarations,di);if(!f&&Qi(l))return;const b=f||un(v.declarations,I=>gd(I)||Ap(I));if(b&&!WR(o,b.getSourceFile())){const I=!Ap(b)&&(p.target||p)!==i.getDeclaredTypeOfSymbol(v);if(I&&(Qi(l)||gd(b)))return;const R=b.getSourceFile(),M=Ap(b)?0:(I?256:0)|(ZX(l.text)?2:0),C=pd(R),W=ni(u.parent,ca);return{kind:0,token:l,call:W,modifierFlags:M,parentDeclaration:b,declSourceFile:R,isJSFile:C}}const A=un(v.declarations,x0);if(A&&!(p.flags&1056)&&!Qi(l)&&!WR(o,A.getSourceFile()))return{kind:1,token:l,parentDeclaration:A}}function Det(e,t){return t.isJSFile?NA(Net(e,t)):Cet(e,t)}function Net(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(gd(t)||Ap(t))return;const s=yr.ChangeTracker.with(e,u=>SMe(u,r,t,o,!!(i&256)));if(s.length===0)return;const l=i&256?m.Initialize_static_property_0:Qi(o)?m.Declare_a_private_field_named_0:m.Initialize_property_0_in_the_constructor;return ua(sb,s,[l,o.text],sb,m.Add_all_missing_members)}function SMe(e,t,r,i,o){const s=i.text;if(o){if(r.kind===231)return;const l=r.name.getText(),u=TMe(O.createIdentifier(l),s);e.insertNodeAfter(t,r,u)}else if(Qi(i)){const l=O.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),u=xMe(r);u?e.insertNodeAfter(t,u,l):e.insertMemberAtStart(t,r,l)}else{const l=sg(r);if(!l)return;const u=TMe(O.createThis(),s);e.insertNodeAtConstructorEnd(t,l,u)}}function TMe(e,t){return O.createExpressionStatement(O.createAssignment(O.createPropertyAccessExpression(e,t),UI()))}function Cet(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){const s=o.text,l=i&256,u=AMe(e.program.getTypeChecker(),t,o),p=f=>yr.ChangeTracker.with(e,b=>IMe(b,r,t,s,u,f)),v=[ua(sb,p(i&256),[l?m.Declare_static_property_0:m.Declare_property_0,s],sb,m.Add_all_missing_members)];return l||Qi(o)||(i&2&&v.unshift(a_(sb,p(2),[m.Declare_private_property_0,s])),v.push(Pet(e,r,t,o.text,u))),v}function AMe(e,t,r){let i;if(r.parent.parent.kind===226){const o=r.parent.parent,s=r.parent===o.left?o.right:o.left,l=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)));i=e.typeToTypeNode(l,t,1)}else{const o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||O.createKeywordTypeNode(133)}function IMe(e,t,r,i,o,s){const l=s?O.createNodeArray(O.createModifiersFromModifierFlags(s)):void 0,u=di(r)?O.createPropertyDeclaration(l,i,void 0,o,void 0):O.createPropertySignature(void 0,i,void 0,o),p=xMe(r);p?e.insertNodeAfter(t,p,u):e.insertMemberAtStart(t,r,u)}function xMe(e){let t;for(const r of e.members){if(!qo(r))break;t=r}return t}function Pet(e,t,r,i,o){const s=O.createKeywordTypeNode(154),l=O.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),u=O.createIndexSignature(void 0,[l],o),p=yr.ChangeTracker.with(e,v=>v.insertMemberAtStart(t,r,u));return a_(sb,p,[m.Add_index_signature_for_property_0,i])}function Met(e,t){const{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0)return;const u=s.text,p=f=>yr.ChangeTracker.with(e,b=>RMe(e,b,l,s,f,r,i)),v=[ua(sb,p(o&256),[o&256?m.Declare_static_method_0:m.Declare_method_0,u],sb,m.Add_all_missing_members)];return o&2&&v.unshift(a_(sb,p(2),[m.Declare_private_method_0,u])),v}function RMe(e,t,r,i,o,s,l){const u=jI(l,e.program,e.preferences,e.host),p=di(s)?174:173,v=Ome(p,e,u,r,i,o,s),f=wet(s,r);f?t.insertNodeAfter(l,f,v):t.insertMemberAtStart(l,s,v),u.writeFixes(t)}function DMe(e,t,{token:r,parentDeclaration:i}){const o=St(i.members,p=>{const v=t.getTypeAtLocation(p);return!!(v&&v.flags&402653316)}),s=i.getSourceFile(),l=O.createEnumMember(r,o?O.createStringLiteral(r.text):void 0),u=il(i.members);u?e.insertNodeInListAfter(s,u,l,i.members):e.insertMemberAtStart(s,i,l)}function NMe(e,t,r){const i=uf(t.sourceFile,t.preferences),o=jI(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?Ome(262,t,o,r.call,Rr(r.token),r.modifierFlags,r.parentDeclaration):TQ(262,t,i,r.signature,z9(m.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&N.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Mm(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function CMe(e,t,r){const i=jI(t.sourceFile,t.program,t.preferences,t.host),o=uf(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,u=St(l.properties,SI),p=Wt(r.attributes,b=>{const A=$$(t,s,i,o,s.getTypeOfSymbol(b),r.parentDeclaration),I=O.createIdentifier(b.name),R=O.createJsxAttribute(I,O.createJsxExpression(void 0,A));return Qa(I,R),R}),v=O.createJsxAttributes(u?[...p,...l.properties]:[...l.properties,...p]),f={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,v,f),i.writeFixes(e)}function PMe(e,t,r){const i=jI(t.sourceFile,t.program,t.preferences,t.host),o=uf(t.sourceFile,t.preferences),s=ps(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),u=Wt(r.properties,v=>{const f=$$(t,l,i,o,l.getTypeOfSymbol(v),r.parentDeclaration);return O.createPropertyAssignment(Oet(v,s,o,l),f)}),p={leadingTriviaOption:yr.LeadingTriviaOption.Exclude,trailingTriviaOption:yr.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,O.createObjectLiteralExpression([...r.parentDeclaration.properties,...u],!0),p),i.writeFixes(e)}function $$(e,t,r,i,o,s){if(o.flags&3)return UI();if(o.flags&134217732)return O.createStringLiteral("",i===0);if(o.flags&8)return O.createNumericLiteral(0);if(o.flags&64)return O.createBigIntLiteral("0n");if(o.flags&16)return O.createFalse();if(o.flags&1056){const l=o.symbol.exports?q8(o.symbol.exports.values()):o.symbol,u=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,64);return l===void 0||u===void 0?O.createNumericLiteral(0):O.createPropertyAccessExpression(u,t.symbolToString(l))}if(o.flags&256)return O.createNumericLiteral(o.value);if(o.flags&2048)return O.createBigIntLiteral(o.value);if(o.flags&128)return O.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?O.createFalse():O.createTrue();if(o.flags&65536)return O.createNull();if(o.flags&1048576){const l=$t(o.types,u=>$$(e,t,r,i,u,s));return l!=null?l:UI()}if(t.isArrayLikeType(o))return O.createArrayLiteralExpression();if(Let(o)){const l=Wt(t.getPropertiesOfType(o),u=>{const p=$$(e,t,r,i,t.getTypeOfSymbol(u),s);return O.createPropertyAssignment(u.name,p)});return O.createObjectLiteralExpression(l,!0)}if(zr(o)&16){if(un(o.symbol.declarations||et,$m(Ah,Th,Ql))===void 0)return UI();const u=t.getSignaturesOfType(o,0);if(u===void 0)return UI();const p=TQ(218,e,i,u[0],z9(m.Function_not_implemented.message,i),void 0,void 0,void 0,s,r);return p!=null?p:UI()}if(zr(o)&1){const l=jg(o.symbol);if(l===void 0||Y1(l))return UI();const u=sg(l);return u&&Pe(u.parameters)?UI():O.createNewExpression(O.createIdentifier(o.symbol.name),void 0,void 0)}return UI()}function UI(){return O.createIdentifier("undefined")}function Let(e){return e.flags&524288&&(zr(e)&128||e.symbol&&ni(uh(e.symbol.declarations),Ap))}function ket(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return et;const o=i.getProperties();if(!Pe(o))return et;const s=new Set;for(const l of r.attributes.properties)if(F_(l)&&s.add(yC(l.name)),SI(l)){const u=e.getTypeAtLocation(l.expression);for(const p of u.getProperties())s.add(p.escapedName)}return Vn(o,l=>tf(l.name,t,1)&&!(l.flags&16777216||Cl(l)&48||s.has(l.escapedName)))}function wet(e,t){if(Ap(e))return;const r=jn(t,i=>Ql(i)||Wl(i));return r&&r.parent===e?r:void 0}function Oet(e,t,r,i){if(gh(e)){const o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&ss(o))return o}return v7(e.name,t,r===0,!1,!1)}function MMe(e){if(jn(e,wC)){const t=jn(e.parent,Mm);if(t)return t}return Jn(e)}var sb,P9,M9,L9,Zfe,Wet=S({"src/services/codefixes/fixAddMissingMember.ts"(){oi(),Da(),sb="fixMissingMember",P9="fixMissingProperties",M9="fixMissingAttributes",L9="fixMissingFunctionDeclaration",Zfe=[m.Property_0_does_not_exist_on_type_1.code,m.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,m.Property_0_is_missing_in_type_1_but_required_in_type_2.code,m.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,m.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,m.Cannot_find_name_0.code],xa({errorCodes:Zfe,getCodeActions(e){const t=e.program.getTypeChecker(),r=EMe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(!!r){if(r.kind===3){const i=yr.ChangeTracker.with(e,o=>PMe(o,e,r));return[ua(P9,i,m.Add_missing_properties,P9,m.Add_all_missing_properties)]}if(r.kind===4){const i=yr.ChangeTracker.with(e,o=>CMe(o,e,r));return[ua(M9,i,m.Add_missing_attributes,M9,m.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=yr.ChangeTracker.with(e,o=>NMe(o,e,r));return[ua(L9,i,[m.Add_missing_function_declaration_0,r.token.text],L9,m.Add_all_missing_function_declarations)]}if(r.kind===1){const i=yr.ChangeTracker.with(e,o=>DMe(o,e.program.getTypeChecker(),r));return[ua(sb,i,[m.Add_missing_enum_member_0,r.token.text],sb,m.Add_all_missing_members)]}return Ro(Met(e,r),Det(e,r))}},fixIds:[sb,L9,P9,M9],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return UR(yr.ChangeTracker.with(e,l=>{HR(e,Zfe,u=>{const p=EMe(u.file,u.start,u.code,i,e.program);if(!(!p||!Pm(o,fs(p.parentDeclaration)+"#"+(p.kind===3?p.identifier:p.token.text)))){if(r===L9&&(p.kind===2||p.kind===5))NMe(l,e,p);else if(r===P9&&p.kind===3)PMe(l,e,p);else if(r===M9&&p.kind===4)CMe(l,e,p);else if(p.kind===1&&DMe(l,i,p),p.kind===0){const{parentDeclaration:v,token:f}=p,b=AA(s,v,()=>[]);b.some(A=>A.token.text===f.text)||b.push(p)}}}),s.forEach((u,p)=>{const v=Ap(p)?void 0:Ume(p,i);for(const f of u){if(v!=null&&v.some(W=>{const U=s.get(W);return!!U&&U.some(({token:X})=>X.text===f.token.text)}))continue;const{parentDeclaration:b,declSourceFile:A,modifierFlags:I,token:R,call:M,isJSFile:C}=f;if(M&&!Qi(R))RMe(e,l,M,R,I&256,b,A);else if(C&&!gd(b)&&!Ap(b))SMe(l,A,b,R,!!(I&256));else{const W=AMe(i,b,R);IMe(l,A,b,R.text,W,I&256)}}})}))}})}});function LMe(e,t,r){const i=sa(Fet(t,r),ca),o=O.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function Fet(e,t){let r=go(e,t.start);const i=tc(t);for(;r.end<i;)r=r.parent;return r}var Q$,eme,zet=S({"src/services/codefixes/fixAddMissingNewOperator.ts"(){oi(),Da(),Q$="addMissingNewOperator",eme=[m.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],xa({errorCodes:eme,getCodeActions(e){const{sourceFile:t,span:r}=e,i=yr.ChangeTracker.with(e,o=>LMe(o,t,r));return[ua(Q$,i,m.Add_missing_new_operator_to_call,Q$,m.Add_missing_new_operator_to_all_calls)]},fixIds:[Q$],getAllCodeActions:e=>Ds(e,eme,(t,r)=>LMe(t,e.sourceFile,r))})}});function kMe(e,t,r){const i=go(e,r),o=jn(i,ca);if(o===void 0||Pe(o.arguments)===0)return;const s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),u=Vn(l.symbol.declarations,wMe);if(u===void 0)return;const p=il(u);if(p===void 0||p.body===void 0||WR(t,p.getSourceFile()))return;const v=Bet(p);if(v===void 0)return;const f=[],b=[],A=Pe(p.parameters),I=Pe(o.arguments);if(A>I)return;const R=[p,...Vet(p,u)];for(let M=0,C=0,W=0;M<I;M++){const U=o.arguments[M],X=js(U)?GU(U):U,ee=s.getWidenedType(s.getBaseTypeOfLiteralType(s.getTypeAtLocation(U))),V=C<A?p.parameters[C]:void 0;if(V&&s.isTypeAssignableTo(ee,s.getTypeAtLocation(V))){C++;continue}const se=X&&Ue(X)?X.text:`p${W++}`,G=Get(s,ee,p);Rn(f,{pos:M,declaration:WMe(se,G,void 0)}),!Uet(R,C)&&Rn(b,{pos:M,declaration:WMe(se,G,O.createToken(58))})}return{newParameters:f,newOptionalParameters:b,name:ks(v),declarations:R}}function Bet(e){const t=Oo(e);if(t)return t;if(Wi(e.parent)&&Ue(e.parent.name)||qo(e.parent)||No(e.parent))return e.parent.name}function Get(e,t,r){var i;return(i=e.typeToTypeNode(e.getWidenedType(t),r,1))!=null?i:O.createKeywordTypeNode(159)}function Z$(e,t,r,i){Ve(r,o=>{Pe(o.parameters)?e.replaceNodeRangeWithNodes(t,$a(o.parameters),rs(o.parameters),OMe(o,i),{joiner:", ",indentation:0,leadingTriviaOption:yr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:yr.TrailingTriviaOption.Include}):Ve(OMe(o,i),(s,l)=>{Pe(o.parameters)===0&&l===0?e.insertNodeAt(t,o.parameters.end,s):e.insertNodeAtEndOfList(t,o.parameters,s)})})}function wMe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function OMe(e,t){const r=Wt(e.parameters,i=>O.createParameterDeclaration(i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type,i.initializer));for(const{pos:i,declaration:o}of t){const s=i>0?r[i-1]:void 0;r.splice(i,0,O.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,s&&s.questionToken?O.createToken(58):o.questionToken,o.type,o.initializer))}return r}function Vet(e,t){const r=[];for(const i of t)if(jet(i)){if(Pe(i.parameters)===Pe(e.parameters)){r.push(i);continue}if(Pe(i.parameters)>Pe(e.parameters))return[]}return r}function jet(e){return wMe(e)&&e.body===void 0}function WMe(e,t,r){return O.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function Uet(e,t){return Pe(e)&&St(e,r=>t<Pe(r.parameters)&&!!r.parameters[t]&&r.parameters[t].questionToken===void 0)}var k9,w9,tme,Het=S({"src/services/codefixes/fixAddMissingParam.ts"(){oi(),Da(),k9="addMissingParam",w9="addOptionalParam",tme=[m.Expected_0_arguments_but_got_1.code],xa({errorCodes:tme,fixIds:[k9,w9],getCodeActions(e){const t=kMe(e.sourceFile,e.program,e.span.start);if(t===void 0)return;const{name:r,declarations:i,newParameters:o,newOptionalParameters:s}=t,l=[];return Pe(o)&&Rn(l,ua(k9,yr.ChangeTracker.with(e,u=>Z$(u,e.sourceFile,i,o)),[Pe(o)>1?m.Add_missing_parameters_to_0:m.Add_missing_parameter_to_0,r],k9,m.Add_all_missing_parameters)),Pe(s)&&Rn(l,ua(w9,yr.ChangeTracker.with(e,u=>Z$(u,e.sourceFile,i,s)),[Pe(s)>1?m.Add_optional_parameters_to_0:m.Add_optional_parameter_to_0,r],w9,m.Add_all_optional_parameters)),l},getAllCodeActions:e=>Ds(e,tme,(t,r)=>{const i=kMe(e.sourceFile,e.program,r.start);if(i){const{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===k9&&Z$(t,e.sourceFile,o,s),e.fixId===w9&&Z$(t,e.sourceFile,o,l)}})})}});function FMe(e,t){return{type:"install package",file:e,packageName:t}}function zMe(e,t){const r=ni(go(e,t),La);if(!r)return;const i=r.text,{packageName:o}=jw(i);return tu(o)?void 0:o}function BMe(e,t,r){var i;return r===nme?V_.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?nW(e):void 0}var GMe,eQ,nme,rme,qet=S({"src/services/codefixes/fixCannotFindModule.ts"(){oi(),Da(),GMe="fixCannotFindModule",eQ="installTypesPackage",nme=m.Cannot_find_module_0_or_its_corresponding_type_declarations.code,rme=[nme,m.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],xa({errorCodes:rme,getCodeActions:function(t){const{host:r,sourceFile:i,span:{start:o}}=t,s=zMe(i,o);if(s===void 0)return;const l=BMe(s,r,t.errorCode);return l===void 0?[]:[ua(GMe,[],[m.Install_0,l],eQ,m.Install_all_missing_types_packages,FMe(i.fileName,l))]},fixIds:[eQ],getAllCodeActions:e=>Ds(e,rme,(t,r,i)=>{const o=zMe(r.file,r.start);if(o!==void 0)switch(e.fixId){case eQ:{const s=BMe(o,e.host,r.code);s&&i.push(FMe(r.file.fileName,s));break}default:N.fail(`Bad fixId: ${e.fixId}`)}})})}});function VMe(e,t){const r=go(e,t);return sa(r.parent,di)}function jMe(e,t,r,i,o){const s=D_(e),l=r.program.getTypeChecker(),u=l.getTypeAtLocation(s),p=l.getPropertiesOfType(u).filter(Jet),v=jI(t,r.program,o,r.host);wme(e,p,t,r,o,v,f=>i.insertMemberAtStart(t,e,f)),v.writeFixes(i)}function Jet(e){const t=Vy($a(e.getDeclarations()));return!(t&2)&&!!(t&64)}var ime,tQ,Ket=S({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){oi(),Da(),ime=[m.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],tQ="fixClassDoesntImplementInheritedAbstractMember",xa({errorCodes:ime,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=yr.ChangeTracker.with(t,s=>jMe(VMe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[ua(tQ,o,m.Implement_inherited_abstract_class,tQ,m.Implement_all_inherited_abstract_classes)]},fixIds:[tQ],getAllCodeActions:function(t){const r=new Map;return Ds(t,ime,(i,o)=>{const s=VMe(o.file,o.start);Pm(r,fs(s))&&jMe(s,t.sourceFile,t,i,t.preferences)})}})}});function UMe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function HMe(e,t){const r=go(e,t);if(r.kind!==110)return;const i=Vp(r),o=qMe(i.body);return o&&!o.expression.arguments.some(s=>Br(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function qMe(e){return ou(e)&&IS(e.expression)?e:ta(e)?void 0:Uo(e,qMe)}var nQ,ome,Xet=S({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){oi(),Da(),nQ="classSuperMustPrecedeThisAccess",ome=[m.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],xa({errorCodes:ome,getCodeActions(e){const{sourceFile:t,span:r}=e,i=HMe(t,r.start);if(!i)return;const{constructor:o,superCall:s}=i,l=yr.ChangeTracker.with(e,u=>UMe(u,t,o,s));return[ua(nQ,l,m.Make_super_call_the_first_statement_in_the_constructor,nQ,m.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[nQ],getAllCodeActions(e){const{sourceFile:t}=e,r=new Map;return Ds(e,ome,(i,o)=>{const s=HMe(o.file,o.start);if(!s)return;const{constructor:l,superCall:u}=s;Pm(r,fs(l.parent))&&UMe(i,t,l,u)})}})}});function JMe(e,t){const r=go(e,t);return N.assert(Wl(r.parent),"token should be at the constructor declaration"),r.parent}function KMe(e,t,r){const i=O.createExpressionStatement(O.createCallExpression(O.createSuper(),void 0,et));e.insertNodeAtConstructorStart(t,r,i)}var rQ,ame,Yet=S({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){oi(),Da(),rQ="constructorForDerivedNeedSuperCall",ame=[m.Constructors_for_derived_classes_must_contain_a_super_call.code],xa({errorCodes:ame,getCodeActions(e){const{sourceFile:t,span:r}=e,i=JMe(t,r.start),o=yr.ChangeTracker.with(e,s=>KMe(s,t,i));return[ua(rQ,o,m.Add_missing_super_call,rQ,m.Add_all_missing_super_calls)]},fixIds:[rQ],getAllCodeActions:e=>Ds(e,ame,(t,r)=>KMe(t,e.sourceFile,JMe(r.file,r.start)))})}});function XMe(e,t){Bme(e,t,"jsx",O.createStringLiteral("react"))}var sme,lme,$et=S({"src/services/codefixes/fixEnableJsxFlag.ts"(){oi(),Da(),sme="fixEnableJsxFlag",lme=[m.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],xa({errorCodes:lme,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=yr.ChangeTracker.with(t,o=>XMe(o,r));return[a_(sme,i,m.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[sme],getAllCodeActions:e=>Ds(e,lme,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&XMe(t,r)})})}});function YMe(e,t,r){const i=un(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=un(i.relatedInformation,l=>l.code===m.Did_you_mean_0.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;const s=Vme(o.file,Eu(o.start,o.length));if(s!==void 0&&bt(s)&&vr(s.parent))return{suggestion:Qet(o.messageText),expression:s.parent,arg:s}}function $Me(e,t,r,i){const o=O.createCallExpression(O.createPropertyAccessExpression(O.createIdentifier("Number"),O.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===38||s===36?O.createPrefixUnaryExpression(54,o):o)}function Qet(e){const[,t]=B_(e,`
`,0).match(/'(.*)'/)||[];return t}var iQ,cme,Zet=S({"src/services/codefixes/fixNaNEquality.ts"(){oi(),Da(),iQ="fixNaNEquality",cme=[m.This_condition_will_always_return_0.code],xa({errorCodes:cme,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=YMe(i,t,r);if(o===void 0)return;const{suggestion:s,expression:l,arg:u}=o,p=yr.ChangeTracker.with(e,v=>$Me(v,t,u,l));return[ua(iQ,p,[m.Use_0,s],iQ,m.Use_Number_isNaN_in_all_conditions)]},fixIds:[iQ],getAllCodeActions:e=>Ds(e,cme,(t,r)=>{const i=YMe(e.program,r.file,Eu(r.start,r.length));i&&$Me(t,r.file,i.arg,i.expression)})})}}),ett=S({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){oi(),Da(),xa({errorCodes:[m.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,m.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,m.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){const r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;const o=[],s=Wu(r);if(s>=5&&s<99){const v=yr.ChangeTracker.with(t,f=>{Bme(f,i,"module",O.createStringLiteral("esnext"))});o.push(a_("fixModuleOption",v,[m.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const u=ps(r);if(u<4||u>99){const v=yr.ChangeTracker.with(t,f=>{if(!ON(i))return;const A=[["target",O.createStringLiteral("es2017")]];s===1&&A.push(["module",O.createStringLiteral("commonjs")]),zme(f,i,A)});o.push(a_("fixTargetOption",v,[m.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function QMe(e,t,r){e.replaceNode(t,r,O.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function ZMe(e,t){return sa(go(e,t).parent,ip)}var oQ,ume,ttt=S({"src/services/codefixes/fixPropertyAssignment.ts"(){oi(),Da(),oQ="fixPropertyAssignment",ume=[m.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],xa({errorCodes:ume,fixIds:[oQ],getCodeActions(e){const{sourceFile:t,span:r}=e,i=ZMe(t,r.start),o=yr.ChangeTracker.with(e,s=>QMe(s,e.sourceFile,i));return[ua(oQ,o,[m.Change_0_to_1,"=",":"],oQ,[m.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Ds(e,ume,(t,r)=>QMe(t,r.file,ZMe(r.file,r.start)))})}});function eLe(e,t){const r=go(e,t),i=du(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function tLe(e,t,r,i){if(e.replaceNode(t,r,O.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){const o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},O.createToken(28));const l=t.text;let u=o.end;for(;u<l.length&&A_(l.charCodeAt(u));)u++;e.deleteRange(t,{pos:o.getStart(),end:u})}}var aQ,dme,ntt=S({"src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts"(){oi(),Da(),aQ="extendsInterfaceBecomesImplements",dme=[m.Cannot_extend_an_interface_0_Did_you_mean_implements.code],xa({errorCodes:dme,getCodeActions(e){const{sourceFile:t}=e,r=eLe(t,e.span.start);if(!r)return;const{extendsToken:i,heritageClauses:o}=r,s=yr.ChangeTracker.with(e,l=>tLe(l,t,i,o));return[ua(aQ,s,m.Change_extends_to_implements,aQ,m.Change_all_extended_interfaces_to_implements)]},fixIds:[aQ],getAllCodeActions:e=>Ds(e,dme,(t,r)=>{const i=eLe(r.file,r.start);i&&tLe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function nLe(e,t,r){const i=go(e,t);if(Ue(i)||Qi(i))return{node:i,className:r===pme?du(i).name.text:void 0}}function rLe(e,t,{node:r,className:i}){Rp(r),e.replaceNode(t,r,O.createPropertyAccessExpression(i?O.createIdentifier(i):O.createThis(),r))}var sQ,pme,fme,rtt=S({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){oi(),Da(),sQ="forgottenThisPropertyAccess",pme=m.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,fme=[m.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,m.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,pme],xa({errorCodes:fme,getCodeActions(e){const{sourceFile:t}=e,r=nLe(t,e.span.start,e.errorCode);if(!r)return;const i=yr.ChangeTracker.with(e,o=>rLe(o,t,r));return[ua(sQ,i,[m.Add_0_to_unresolved_variable,r.className||"this"],sQ,m.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[sQ],getAllCodeActions:e=>Ds(e,fme,(t,r)=>{const i=nLe(r.file,r.start,r.code);i&&rLe(t,e.sourceFile,i)})})}});function itt(e){return Ls(hme,e)}function mme(e,t,r,i,o){const s=r.getText()[i];if(!itt(s))return;const l=o?hme[s]:`{${AP(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var lQ,O9,_me,hme,ott=S({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){oi(),Da(),lQ="fixInvalidJsxCharacters_expression",O9="fixInvalidJsxCharacters_htmlEntity",_me=[m.Unexpected_token_Did_you_mean_or_gt.code,m.Unexpected_token_Did_you_mean_or_rbrace.code],xa({errorCodes:_me,fixIds:[lQ,O9],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,o=yr.ChangeTracker.with(e,l=>mme(l,r,t,i.start,!1)),s=yr.ChangeTracker.with(e,l=>mme(l,r,t,i.start,!0));return[ua(lQ,o,m.Wrap_invalid_character_in_an_expression_container,lQ,m.Wrap_all_invalid_characters_in_an_expression_container),ua(O9,s,m.Convert_invalid_character_to_its_html_entity_code,O9,m.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Ds(e,_me,(t,r)=>mme(t,e.preferences,r.file,r.start,e.fixId===O9))}}),hme={">":"&gt;","}":"&rbrace;"}}});function att(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const o=yr.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return ua(W9,o,[m.Delete_unused_param_tag_0,t.getText(e.sourceFile)],W9,m.Delete_all_unused_param_tags)}function stt(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Pe(i.parameters))return;const s=e.sourceFile,l=f0(i),u=new Set;for(const b of l)i_(b)&&Ue(b.name)&&u.add(b.name.escapedText);const p=$t(i.parameters,b=>Ue(b.name)&&!u.has(b.name.escapedText)?b.name.getText(s):void 0);if(p===void 0)return;const v=O.updateJSDocParameterTag(o,o.tagName,O.createIdentifier(p),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),f=yr.ChangeTracker.with(e,b=>b.replaceJSDocComment(s,r,Wt(l,A=>A===o?v:A)));return a_(gme,f,[m.Rename_param_tag_name_0_to_1,t.getText(s),p])}function iLe(e,t){const r=go(e,t);if(r.parent&&i_(r.parent)&&Ue(r.parent.name)){const i=r.parent,o=CS(i),s=v0(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var W9,gme,vme,ltt=S({"src/services/codefixes/fixUnmatchedParameter.ts"(){oi(),Da(),W9="deleteUnmatchedParameter",gme="renameUnmatchedParameter",vme=[m.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],xa({fixIds:[W9,gme],errorCodes:vme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=[],s=iLe(r,i.start);if(s)return Rn(o,att(t,s)),Rn(o,stt(t,s)),o},getAllCodeActions:function(t){const r=new Map;return UR(yr.ChangeTracker.with(t,i=>{HR(t,vme,({file:o,start:s})=>{const l=iLe(o,s);l&&r.set(l.signature,Rn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===W9){const l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,u=>!l.has(u))}})}))}})}});function ctt(e,t,r){const i=ni(go(e,r),Ue);if(!i||i.parent.kind!==183)return;const s=t.getTypeChecker().getSymbolAtLocation(i);return un((s==null?void 0:s.declarations)||et,$m(Ih,rp,au))}function utt(e,t,r,i){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}const o=r.kind===273?r:r.parent.parent;if(o.name&&o.namedBindings)return;const s=i.getTypeChecker();N3(o,u=>{if(Tu(u.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function dtt(e,t,r,i){BI.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var cQ,oLe,ptt=S({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){oi(),Da(),cQ="fixUnreferenceableDecoratorMetadata",oLe=[m.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],xa({errorCodes:oLe,getCodeActions:e=>{const t=ctt(e.sourceFile,e.program,e.span.start);if(!t)return;const r=yr.ChangeTracker.with(e,s=>t.kind===276&&dtt(s,e.sourceFile,t,e.program)),i=yr.ChangeTracker.with(e,s=>utt(s,e.sourceFile,t,e.program));let o;return r.length&&(o=Rn(o,a_(cQ,r,m.Convert_named_imports_to_namespace_import))),i.length&&(o=Rn(o,a_(cQ,i,m.Use_import_type))),o},fixIds:[cQ]})}});function aLe(e,t,r){e.replaceNode(t,r.parent,O.createKeywordTypeNode(159))}function d4(e,t){return ua(p4,e,t,pQ,m.Delete_all_unused_declarations)}function sLe(e,t,r){e.delete(t,N.checkDefined(sa(r.parent,Gj).typeParameters,"The type parameter to delete should exist"))}function yme(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function lLe(e){return e.kind===102?ni(e.parent,Fc):void 0}function cLe(e,t){return Xc(t.parent)&&$a(t.parent.getChildren(e))===t}function uLe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function ftt(e,t,r){Ve(r.elements,i=>e.delete(t,i))}function mtt(e,t,r,{parent:i}){if(Wi(i)&&i.initializer&&O1(i.initializer))if(Xc(i.parent)&&Pe(i.parent.declarations)>1){const o=i.parent.parent,s=o.getStart(r),l=o.end;t.delete(r,i),t.insertNodeAt(r,l,i.initializer,{prefix:ty(e.host,e.formatContext.options)+r.text.slice(LF(r.text,s-1),s),suffix:FO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function dLe(e,t,r,i){t!==m.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=sa(i.parent,BS).typeParameter.name),Ue(i)&&_tt(i)&&(e.replaceNode(r,i,O.createIdentifier(`_${i.text}`)),No(i.parent)&&r2(i.parent).forEach(o=>{Ue(o.name)&&e.replaceNode(r,o.name,O.createIdentifier(`_${o.name.text}`))})))}function _tt(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function uQ(e,t,r,i,o,s,l,u){htt(t,r,e,i,o,s,l,u),Ue(t)&&Hs.Core.eachSymbolReferenceInFile(t,i,e,p=>{Br(p.parent)&&p.parent.name===p&&(p=p.parent),!u&&btt(p)&&r.delete(e,p.parent.parent)})}function htt(e,t,r,i,o,s,l,u){const{parent:p}=e;if(No(p))gtt(t,r,p,i,o,s,l,u);else if(!(u&&Ue(e)&&Hs.Core.isSymbolReferencedInFile(e,i,r))){const v=Ih(p)?e:ss(p)?p.parent:p;N.assert(v!==r,"should not delete whole source file"),t.delete(r,v)}}function gtt(e,t,r,i,o,s,l,u=!1){if(vtt(i,t,r,o,s,l,u))if(r.modifiers&&r.modifiers.length>0&&(!Ue(r.name)||Hs.Core.isSymbolReferencedInFile(r.name,i,t)))for(const p of r.modifiers)Ra(p)&&e.deleteModifier(t,p);else!r.initializer&&pLe(r,i,o)&&e.delete(t,r)}function pLe(e,t,r){const i=e.parent.parameters.indexOf(e);return!Hs.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function vtt(e,t,r,i,o,s,l){const{parent:u}=r;switch(u.kind){case 174:case 176:const p=u.parameters.indexOf(r),v=Ql(u)?u.name:u,f=Hs.Core.getReferencedSymbolsForNode(u.pos,v,o,i,s);if(f){for(const b of f)for(const A of b.references)if(A.kind===Hs.EntryKind.Node){const I=DC(A.node)&&ca(A.node.parent)&&A.node.parent.arguments.length>p,R=Br(A.node.parent)&&DC(A.node.parent.expression)&&ca(A.node.parent.parent)&&A.node.parent.parent.arguments.length>p,M=(Ql(A.node.parent)||Th(A.node.parent))&&A.node.parent!==r.parent&&A.node.parent.parameters.length>p;if(I||R||M)return!1}}return!0;case 262:return u.name&&ytt(e,t,u.name)?fLe(u,r,l):!0;case 218:case 219:return fLe(u,r,l);case 178:return!1;case 177:return!0;default:return N.failBadSyntaxKind(u)}}function ytt(e,t,r){return!!Hs.Core.eachSymbolReferenceInFile(r,e,t,i=>Ue(i)&&ca(i.parent)&&i.parent.arguments.includes(i))}function fLe(e,t,r){const i=e.parameters,o=i.indexOf(t);return N.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>Ue(s.name)&&!s.symbol.isReferenced):o===i.length-1}function btt(e){return(vr(e.parent)&&e.parent.left===e||(GH(e.parent)||Zy(e.parent))&&e.parent.operand===e)&&ou(e.parent.parent)}var p4,dQ,pQ,F9,fQ,bme,Ett=S({"src/services/codefixes/fixUnusedIdentifier.ts"(){oi(),Da(),p4="unusedIdentifier",dQ="unusedIdentifier_prefix",pQ="unusedIdentifier_delete",F9="unusedIdentifier_deleteImports",fQ="unusedIdentifier_infer",bme=[m._0_is_declared_but_its_value_is_never_read.code,m._0_is_declared_but_never_used.code,m.Property_0_is_declared_but_its_value_is_never_read.code,m.All_imports_in_import_declaration_are_unused.code,m.All_destructured_elements_are_unused.code,m.All_variables_are_unused.code,m.All_type_parameters_are_unused.code],xa({errorCodes:bme,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),u=go(r,e.span.start);if(fm(u))return[d4(yr.ChangeTracker.with(e,b=>b.delete(r,u)),m.Remove_template_tag)];if(u.kind===30){const b=yr.ChangeTracker.with(e,A=>sLe(A,r,u));return[d4(b,m.Remove_type_parameters)]}const p=lLe(u);if(p){const b=yr.ChangeTracker.with(e,A=>A.delete(r,p));return[ua(p4,b,[m.Remove_import_from_0,Hoe(p)],F9,m.Delete_all_unused_imports)]}else if(yme(u)){const b=yr.ChangeTracker.with(e,A=>uQ(r,u,A,s,l,i,o,!1));if(b.length)return[ua(p4,b,[m.Remove_unused_declaration_for_Colon_0,u.getText(r)],F9,m.Delete_all_unused_imports)]}if(pm(u.parent)||rE(u.parent)){if(No(u.parent.parent)){const b=u.parent.elements,A=[b.length>1?m.Remove_unused_declarations_for_Colon_0:m.Remove_unused_declaration_for_Colon_0,Wt(b,I=>I.getText(r)).join(", ")];return[d4(yr.ChangeTracker.with(e,I=>ftt(I,r,u.parent)),A)]}return[d4(yr.ChangeTracker.with(e,b=>mtt(e,b,r,u.parent)),m.Remove_unused_destructuring_declaration)]}if(cLe(r,u))return[d4(yr.ChangeTracker.with(e,b=>uLe(b,r,u.parent)),m.Remove_variable_statement)];const v=[];if(u.kind===140){const b=yr.ChangeTracker.with(e,I=>aLe(I,r,u)),A=sa(u.parent,BS).typeParameter.name.text;v.push(ua(p4,b,[m.Replace_infer_0_with_unknown,A],fQ,m.Replace_all_unused_infer_with_unknown))}else{const b=yr.ChangeTracker.with(e,A=>uQ(r,u,A,s,l,i,o,!1));if(b.length){const A=ss(u.parent)?u.parent:u;v.push(d4(b,[m.Remove_unused_declaration_for_Colon_0,A.getText(r)]))}}const f=yr.ChangeTracker.with(e,b=>dLe(b,t,r,u));return f.length&&v.push(ua(p4,f,[m.Prefix_0_with_an_underscore,u.getText(r)],dQ,m.Prefix_all_unused_declarations_with_where_possible)),v},fixIds:[dQ,pQ,F9,fQ],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return Ds(e,bme,(l,u)=>{const p=go(t,u.start);switch(e.fixId){case dQ:dLe(l,u.code,t,p);break;case F9:{const v=lLe(p);v?l.delete(t,v):yme(p)&&uQ(t,p,l,o,s,r,i,!0);break}case pQ:{if(p.kind===140||yme(p))break;if(fm(p))l.delete(t,p);else if(p.kind===30)sLe(l,t,p);else if(pm(p.parent)){if(p.parent.parent.initializer)break;(!No(p.parent.parent)||pLe(p.parent.parent,o,s))&&l.delete(t,p.parent.parent)}else{if(rE(p.parent.parent)&&p.parent.parent.parent.initializer)break;cLe(t,p)?uLe(l,t,p.parent):uQ(t,p,l,o,s,r,i,!0)}break}case fQ:p.kind===140&&aLe(l,t,p);break;default:N.fail(JSON.stringify(e.fixId))}})}})}});function mLe(e,t,r,i,o){const s=go(t,r),l=jn(s,$i);if(l.getStart(t)!==s.getStart(t)){const p=JSON.stringify({statementKind:N.formatSyntaxKind(l.kind),tokenKind:N.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});N.fail("Token and statement should start at the same point. "+p)}const u=(Yo(l.parent)?l.parent:l).parent;if(!Yo(l.parent)||l===$a(l.parent.statements))switch(u.kind){case 245:if(u.elseStatement){if(Yo(l.parent))break;e.replaceNode(t,l,O.createBlock(et));return}case 247:case 248:e.delete(t,u);return}if(Yo(l.parent)){const p=r+i,v=N.checkDefined(Stt(YU(l.parent.statements,l),f=>f.pos<p),"Some statement should be last");e.deleteNodeRange(t,l,v)}else e.delete(t,l)}function Stt(e,t){let r;for(const i of e){if(!t(i))break;r=i}return r}var mQ,Eme,Ttt=S({"src/services/codefixes/fixUnreachableCode.ts"(){oi(),Da(),mQ="fixUnreachableCode",Eme=[m.Unreachable_code_detected.code],xa({errorCodes:Eme,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const r=yr.ChangeTracker.with(e,i=>mLe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[ua(mQ,r,m.Remove_unreachable_code,mQ,m.Remove_all_unreachable_code)]},fixIds:[mQ],getAllCodeActions:e=>Ds(e,Eme,(t,r)=>mLe(t,r.file,r.start,r.length,r.code))})}});function _Le(e,t,r){const i=go(t,r),o=sa(i.parent,aE),s=i.getStart(t),l=o.statement.getStart(t),u=Rf(s,l,t)?l:Wa(t.text,Is(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:u})}var _Q,Sme,Att=S({"src/services/codefixes/fixUnusedLabel.ts"(){oi(),Da(),_Q="fixUnusedLabel",Sme=[m.Unused_label.code],xa({errorCodes:Sme,getCodeActions(e){const t=yr.ChangeTracker.with(e,r=>_Le(r,e.sourceFile,e.span.start));return[ua(_Q,t,m.Remove_unused_label,_Q,m.Remove_all_unused_labels)]},fixIds:[_Q],getAllCodeActions:e=>Ds(e,Sme,(t,r)=>_Le(t,r.file,r.start))})}});function hLe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function gLe(e,t,r){const i=jn(go(e,t),Itt),o=i&&i.type;return o&&{typeNode:o,type:xtt(r,o)}}function Itt(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function xtt(e,t){if(nR(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Rn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var Tme,hQ,Ame,Rtt=S({"src/services/codefixes/fixJSDocTypes.ts"(){oi(),Da(),Tme="fixJSDocTypes_plain",hQ="fixJSDocTypes_nullable",Ame=[m.JSDoc_types_can_only_be_used_inside_documentation_comments.code,m._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,m._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],xa({errorCodes:Ame,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=gLe(t,e.span.start,r);if(!i)return;const{typeNode:o,type:s}=i,l=o.getText(t),u=[p(s,Tme,m.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===321&&u.push(p(s,hQ,m.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function p(v,f,b){const A=yr.ChangeTracker.with(e,I=>hLe(I,t,o,v,r));return ua("jdocTypes",A,[m.Change_0_to_1,l,r.typeToString(v)],f,b)}},fixIds:[Tme,hQ],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return Ds(e,Ame,(s,l)=>{const u=gLe(l.file,l.start,o);if(!u)return;const{typeNode:p,type:v}=u,f=p.kind===321&&t===hQ?o.getNullableType(v,32768):v;hLe(s,i,p,f,o)})}})}});function vLe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function yLe(e,t){const r=go(e,t);if(Br(r.parent)){let i=r.parent;for(;Br(i.parent);)i=i.parent;return i.name}if(Ue(r))return r}var gQ,Ime,Dtt=S({"src/services/codefixes/fixMissingCallParentheses.ts"(){oi(),Da(),gQ="fixMissingCallParentheses",Ime=[m.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],xa({errorCodes:Ime,fixIds:[gQ],getCodeActions(e){const{sourceFile:t,span:r}=e,i=yLe(t,r.start);if(!i)return;const o=yr.ChangeTracker.with(e,s=>vLe(s,e.sourceFile,i));return[ua(gQ,o,m.Add_missing_call_parentheses,gQ,m.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Ds(e,Ime,(t,r)=>{const i=yLe(r.file,r.start);i&&vLe(t,r.file,i)})})}});function Ntt(e){if(e.type)return e.type;if(Wi(e.parent)&&e.parent.type&&Ah(e.parent.type))return e.parent.type.type}function bLe(e,t){const r=go(e,t),i=Vp(r);if(!i)return;let o;switch(i.kind){case 174:o=i.name;break;case 262:case 218:o=Is(i,100,e);break;case 219:const s=i.typeParameters?30:21;o=Is(i,s,e)||$a(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:Ntt(i)}}function ELe(e,t,{insertBefore:r,returnType:i}){if(i){const o=ZL(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,O.createTypeReferenceNode("Promise",O.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var vQ,xme,Ctt=S({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){oi(),Da(),vQ="fixAwaitInSyncFunction",xme=[m.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,m.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,m.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,m.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],xa({errorCodes:xme,getCodeActions(e){const{sourceFile:t,span:r}=e,i=bLe(t,r.start);if(!i)return;const o=yr.ChangeTracker.with(e,s=>ELe(s,t,i));return[ua(vQ,o,m.Add_async_modifier_to_containing_function,vQ,m.Add_all_missing_async_modifiers)]},fixIds:[vQ],getAllCodeActions:function(t){const r=new Map;return Ds(t,xme,(i,o)=>{const s=bLe(o.file,o.start);!s||!Pm(r,fs(s.insertBefore))||ELe(i,t.sourceFile,s)})}})}});function SLe(e,t,r,i,o){let s,l;if(i===m._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=t,l=t+r;else if(i===m._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const u=o.program.getTypeChecker(),p=go(e,t).parent;N.assert(ky(p),"error span of fixPropertyOverrideAccessor should only be on an accessor");const v=p.parent;N.assert(di(v),"erroneous accessors should only be inside classes");const f=uh(Ume(v,u));if(!f)return[];const b=Ki(f2(p.name)),A=u.getPropertyOfType(u.getTypeAtLocation(f),b);if(!A||!A.valueDeclaration)return[];s=A.valueDeclaration.pos,l=A.valueDeclaration.end,e=Jn(A.valueDeclaration)}else N.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return WLe(e,o.program,s,l,o,m.Generate_get_and_set_accessors.message)}var Rme,yQ,Ptt=S({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){oi(),Da(),Rme=[m._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,m._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],yQ="fixPropertyOverrideAccessor",xa({errorCodes:Rme,getCodeActions(e){const t=SLe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[ua(yQ,t,m.Generate_get_and_set_accessors,yQ,m.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[yQ],getAllCodeActions:e=>Ds(e,Rme,(t,r)=>{const i=SLe(r.file,r.start,r.length,r.code,e);if(i)for(const o of i)t.pushRaw(e.sourceFile,o)})})}});function Mtt(e,t){switch(e){case m.Parameter_0_implicitly_has_an_1_type.code:case m.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Tp(Vp(t))?m.Infer_type_of_0_from_usage:m.Infer_parameter_types_from_usage;case m.Rest_parameter_0_implicitly_has_an_any_type.code:case m.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return m.Infer_parameter_types_from_usage;case m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return m.Infer_this_type_of_0_from_usage;default:return m.Infer_type_of_0_from_usage}}function Ltt(e){switch(e){case m.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return m.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case m.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return m.Variable_0_implicitly_has_an_1_type.code;case m.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return m.Parameter_0_implicitly_has_an_1_type.code;case m.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return m.Rest_parameter_0_implicitly_has_an_any_type.code;case m.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return m.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case m._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return m._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case m.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return m.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case m.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return m.Member_0_implicitly_has_an_1_type.code}return e}function TLe(e,t,r,i,o,s,l,u,p){if(!RN(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;const{parent:v}=r,f=jI(t,o,p,u);switch(i=Ltt(i),i){case m.Member_0_implicitly_has_an_1_type.code:case m.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Wi(v)&&l(v)||qo(v)||Sp(v))return ALe(e,f,t,v,o,u,s),f.writeFixes(e),v;if(Br(v)){const I=f4(v.name,o,s),R=IP(I,v,o,u);if(R){const M=O.createJSDocTypeTag(void 0,O.createJSDocTypeExpression(R),void 0);e.addJSDocTags(t,sa(v.parent.parent,ou),[M])}return f.writeFixes(e),v}return;case m.Variable_0_implicitly_has_an_1_type.code:{const I=o.getTypeChecker().getSymbolAtLocation(r);return I&&I.valueDeclaration&&Wi(I.valueDeclaration)&&l(I.valueDeclaration)?(ALe(e,f,Jn(I.valueDeclaration),I.valueDeclaration,o,u,s),f.writeFixes(e),I.valueDeclaration):void 0}}const b=Vp(r);if(b===void 0)return;let A;switch(i){case m.Parameter_0_implicitly_has_an_1_type.code:if(Tp(b)){ILe(e,f,t,b,o,u,s),A=b;break}case m.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(b)){const I=sa(v,No);ktt(e,f,t,I,b,o,u,s),A=I}break;case m.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case m._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:rf(b)&&Ue(b.name)&&(bQ(e,f,t,b,f4(b.name,o,s),o,u),A=b);break;case m.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:Tp(b)&&(ILe(e,f,t,b,o,u,s),A=b);break;case m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:yr.isThisTypeAnnotatable(b)&&l(b)&&(wtt(e,t,b,o,u,s),A=b);break;default:return N.fail(String(i))}return f.writeFixes(e),A}function ALe(e,t,r,i,o,s,l){Ue(i.name)&&bQ(e,t,r,i,f4(i.name,o,l),o,s)}function ktt(e,t,r,i,o,s,l,u){if(!Ue(i.name))return;const p=Ftt(o,r,s,u);if(N.assert(o.parameters.length===p.length,"Parameter count and inference count should match"),dr(o))xLe(e,r,p,s,l);else{const v=Ks(o)&&!Is(o,21,r);v&&e.insertNodeBefore(r,$a(o.parameters),O.createToken(21));for(const{declaration:f,type:b}of p)f&&!f.type&&!f.initializer&&bQ(e,t,r,f,b,s,l);v&&e.insertNodeAfter(r,rs(o.parameters),O.createToken(22))}}function wtt(e,t,r,i,o,s){const l=RLe(r,t,i,s);if(!l||!l.length)return;const u=Nme(i,l,s).thisParameter(),p=IP(u,r,i,o);!p||(dr(r)?Ott(e,t,r,p):e.tryInsertThisTypeAnnotation(t,r,p))}function Ott(e,t,r,i){e.addJSDocTags(t,r,[O.createJSDocThisTag(void 0,O.createJSDocTypeExpression(i))])}function ILe(e,t,r,i,o,s,l){const u=eu(i.parameters);if(u&&Ue(i.name)&&Ue(u.name)){let p=f4(i.name,o,l);p===o.getTypeChecker().getAnyType()&&(p=f4(u.name,o,l)),dr(i)?xLe(e,r,[{declaration:u,type:p}],o,s):bQ(e,t,r,u,p,o,s)}}function bQ(e,t,r,i,o,s,l){const u=IP(o,i,s,l);if(u)if(dr(r)&&i.kind!==171){const p=Wi(i)?ni(i.parent.parent,Fl):i;if(!p)return;const v=O.createJSDocTypeExpression(u),f=rf(i)?O.createJSDocReturnTag(void 0,v,void 0):O.createJSDocTypeTag(void 0,v,void 0);e.addJSDocTags(r,p,[f])}else Wtt(u,i,r,e,t,ps(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,u)}function Wtt(e,t,r,i,o,s){const l=HI(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(Ve(l.symbols,u=>o.addImportFromExportedSymbol(u,!0)),!0):!1}function xLe(e,t,r,i,o){const s=r.length&&r[0].declaration.parent;if(!s)return;const l=Vi(r,u=>{const p=u.declaration;if(p.initializer||p0(p)||!Ue(p.name))return;const v=u.type&&IP(u.type,p,i,o);if(v){const f=O.cloneNode(p.name);return hr(f,7168),{name:O.cloneNode(p.name),param:p,isOptional:!!u.isOptional,typeNode:v}}});if(!!l.length)if(Ks(s)||Us(s)){const u=Ks(s)&&!Is(s,21,t);u&&e.insertNodeBefore(t,$a(s.parameters),O.createToken(21)),Ve(l,({typeNode:p,param:v})=>{const f=O.createJSDocTypeTag(void 0,O.createJSDocTypeExpression(p)),b=O.createJSDocComment(void 0,[f]);e.insertNodeAt(t,v.getStart(t),b,{suffix:" "})}),u&&e.insertNodeAfter(t,rs(s.parameters),O.createToken(22))}else{const u=Wt(l,({name:p,typeNode:v,isOptional:f})=>O.createJSDocParameterTag(void 0,p,!!f,O.createJSDocTypeExpression(v),!1,void 0));e.addJSDocTags(t,s,u)}}function Dme(e,t,r){return Vi(Hs.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Hs.EntryKind.Span?ni(i.node,Ue):void 0)}function f4(e,t,r){const i=Dme(e,t,r);return Nme(t,i,r).single()}function Ftt(e,t,r,i){const o=RLe(e,t,r,i);return o&&Nme(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Ue(s.name)?f4(s.name,r,i):r.getTypeChecker().getAnyType()}))}function RLe(e,t,r,i){let o;switch(e.kind){case 176:o=Is(e,137,t);break;case 219:case 218:const s=e.parent;o=(Wi(s)||qo(s))&&Ue(s.name)?s.name:e.name;break;case 262:case 174:case 173:o=e.name;break}if(!!o)return Dme(o,r,i)}function Nme(e,t,r){const i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Le=>i.createArrayType(Le),Promise:Le=>i.createPromiseType(Le)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:p,parameters:v,thisParameter:f};function l(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function u(Le){const Ne=new Map;for(const At of Le)At.properties&&At.properties.forEach((be,He)=>{Ne.has(He)||Ne.set(He,[]),Ne.get(He).push(be)});const Oe=new Map;return Ne.forEach((At,be)=>{Oe.set(be,u(At))}),{isNumber:Le.some(At=>At.isNumber),isString:Le.some(At=>At.isString),isNumberOrString:Le.some(At=>At.isNumberOrString),candidateTypes:qi(Le,At=>At.candidateTypes),properties:Oe,calls:qi(Le,At=>At.calls),constructs:qi(Le,At=>At.constructs),numberIndex:Ve(Le,At=>At.numberIndex),stringIndex:Ve(Le,At=>At.stringIndex),candidateThisTypes:qi(Le,At=>At.candidateThisTypes),inferredTypes:void 0}}function p(){return _e(b(t))}function v(Le){if(t.length===0||!Le.parameters)return;const Ne=l();for(const At of t)r.throwIfCancellationRequested(),A(At,Ne);const Oe=[...Ne.constructs||[],...Ne.calls||[]];return Le.parameters.map((At,be)=>{const He=[],it=eg(At);let Ft=!1;for(const Ze of Oe)if(Ze.argumentTypes.length<=be)Ft=dr(Le),He.push(i.getUndefinedType());else if(it)for(let It=be;It<Ze.argumentTypes.length;It++)He.push(i.getBaseTypeOfLiteralType(Ze.argumentTypes[It]));else He.push(i.getBaseTypeOfLiteralType(Ze.argumentTypes[be]));if(Ue(At.name)){const Ze=b(Dme(At.name,e,r));He.push(...it?Vi(Ze,i.getElementTypeOfArrayType):Ze)}const yt=_e(He);return{type:it?i.createArrayType(yt):yt,isOptional:Ft&&!it,declaration:At}})}function f(){const Le=l();for(const Ne of t)r.throwIfCancellationRequested(),A(Ne,Le);return _e(Le.candidateThisTypes||et)}function b(Le){const Ne=l();for(const Oe of Le)r.throwIfCancellationRequested(),A(Oe,Ne);return Q(Ne)}function A(Le,Ne){for(;eC(Le);)Le=Le.parent;switch(Le.parent.kind){case 244:R(Le,Ne);break;case 225:Ne.isNumber=!0;break;case 224:M(Le.parent,Ne);break;case 226:C(Le,Le.parent,Ne);break;case 296:case 297:W(Le.parent,Ne);break;case 213:case 214:Le.parent.expression===Le?U(Le.parent,Ne):I(Le,Ne);break;case 211:X(Le.parent,Ne);break;case 212:ee(Le.parent,Le,Ne);break;case 303:case 304:V(Le.parent,Ne);break;case 172:se(Le.parent,Ne);break;case 260:{const{name:Oe,initializer:At}=Le.parent;if(Le===Oe){At&&qe(Ne,i.getTypeAtLocation(At));break}}default:return I(Le,Ne)}}function I(Le,Ne){rg(Le)&&qe(Ne,i.getContextualType(Le))}function R(Le,Ne){qe(Ne,ca(Le)?i.getVoidType():i.getAnyType())}function M(Le,Ne){switch(Le.operator){case 46:case 47:case 41:case 55:Ne.isNumber=!0;break;case 40:Ne.isNumberOrString=!0;break}}function C(Le,Ne,Oe){switch(Ne.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const At=i.getTypeAtLocation(Ne.left===Le?Ne.right:Ne.left);At.flags&1056?qe(Oe,At):Oe.isNumber=!0;break;case 65:case 40:const be=i.getTypeAtLocation(Ne.left===Le?Ne.right:Ne.left);be.flags&1056?qe(Oe,be):be.flags&296?Oe.isNumber=!0:be.flags&402653316?Oe.isString=!0:be.flags&1||(Oe.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:qe(Oe,i.getTypeAtLocation(Ne.left===Le?Ne.right:Ne.left));break;case 103:Le===Ne.left&&(Oe.isString=!0);break;case 57:case 61:Le===Ne.left&&(Le.parent.parent.kind===260||Wc(Le.parent.parent,!0))&&qe(Oe,i.getTypeAtLocation(Ne.right));break}}function W(Le,Ne){qe(Ne,i.getTypeAtLocation(Le.parent.parent.expression))}function U(Le,Ne){const Oe={argumentTypes:[],return_:l()};if(Le.arguments)for(const At of Le.arguments)Oe.argumentTypes.push(i.getTypeAtLocation(At));A(Le,Oe.return_),Le.kind===213?(Ne.calls||(Ne.calls=[])).push(Oe):(Ne.constructs||(Ne.constructs=[])).push(Oe)}function X(Le,Ne){const Oe=bl(Le.name.text);Ne.properties||(Ne.properties=new Map);const At=Ne.properties.get(Oe)||l();A(Le,At),Ne.properties.set(Oe,At)}function ee(Le,Ne,Oe){if(Ne===Le.argumentExpression){Oe.isNumberOrString=!0;return}else{const At=i.getTypeAtLocation(Le.argumentExpression),be=l();A(Le,be),At.flags&296?Oe.numberIndex=be:Oe.stringIndex=be}}function V(Le,Ne){const Oe=Wi(Le.parent.parent)?Le.parent.parent:Le.parent;Se(Ne,i.getTypeAtLocation(Oe))}function se(Le,Ne){Se(Ne,i.getTypeAtLocation(Le.parent))}function G(Le,Ne){const Oe=[];for(const At of Le)for(const{high:be,low:He}of Ne)be(At)&&(N.assert(!He(At),"Priority can't have both low and high"),Oe.push(He));return Le.filter(At=>Oe.every(be=>!be(At)))}function re(Le){return _e(Q(Le))}function _e(Le){if(!Le.length)return i.getAnyType();const Ne=i.getUnionType([i.getStringType(),i.getNumberType()]);let At=G(Le,[{high:He=>He===i.getStringType()||He===i.getNumberType(),low:He=>He===Ne},{high:He=>!(He.flags&16385),low:He=>!!(He.flags&16385)},{high:He=>!(He.flags&114689)&&!(zr(He)&16),low:He=>!!(zr(He)&16)}]);const be=At.filter(He=>zr(He)&16);return be.length&&(At=At.filter(He=>!(zr(He)&16)),At.push(ye(be))),i.getWidenedType(i.getUnionType(At.map(i.getBaseTypeOfLiteralType),2))}function ye(Le){if(Le.length===1)return Le[0];const Ne=[],Oe=[],At=[],be=[];let He=!1,it=!1;const Ft=Zp();for(const It of Le){for(const Nn of i.getPropertiesOfType(It))Ft.add(Nn.escapedName,Nn.valueDeclaration?i.getTypeOfSymbolAtLocation(Nn,Nn.valueDeclaration):i.getAnyType());Ne.push(...i.getSignaturesOfType(It,0)),Oe.push(...i.getSignaturesOfType(It,1));const on=i.getIndexInfoOfType(It,0);on&&(At.push(on.type),He=He||on.isReadonly);const Yt=i.getIndexInfoOfType(It,1);Yt&&(be.push(Yt.type),it=it||Yt.isReadonly)}const yt=zne(Ft,(It,on)=>{const Yt=on.length<Le.length?16777216:0,Nn=i.createSymbol(4|Yt,It);return Nn.links.type=i.getUnionType(on),[It,Nn]}),Ze=[];return At.length&&Ze.push(i.createIndexInfo(i.getStringType(),i.getUnionType(At),He)),be.length&&Ze.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(be),it)),i.createAnonymousType(Le[0].symbol,yt,Ne,Oe,Ze)}function Q(Le){var Ne,Oe,At;const be=[];Le.isNumber&&be.push(i.getNumberType()),Le.isString&&be.push(i.getStringType()),Le.isNumberOrString&&be.push(i.getUnionType([i.getStringType(),i.getNumberType()])),Le.numberIndex&&be.push(i.createArrayType(re(Le.numberIndex))),(((Ne=Le.properties)==null?void 0:Ne.size)||((Oe=Le.constructs)==null?void 0:Oe.length)||Le.stringIndex)&&be.push(Y(Le));const He=(Le.candidateTypes||[]).map(Ft=>i.getBaseTypeOfLiteralType(Ft)),it=(At=Le.calls)!=null&&At.length?Y(Le):void 0;return it&&He?be.push(i.getUnionType([it,...He],2)):(it&&be.push(it),Pe(He)&&be.push(...He)),be.push(...oe(Le)),be}function Y(Le){const Ne=new Map;Le.properties&&Le.properties.forEach((He,it)=>{const Ft=i.createSymbol(4,it);Ft.links.type=re(He),Ne.set(it,Ft)});const Oe=Le.calls?[Ce(Le.calls)]:[],At=Le.constructs?[Ce(Le.constructs)]:[],be=Le.stringIndex?[i.createIndexInfo(i.getStringType(),re(Le.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Ne,Oe,At,be)}function oe(Le){if(!Le.properties||!Le.properties.size)return[];const Ne=s.filter(Oe=>he(Oe,Le));return 0<Ne.length&&Ne.length<3?Ne.map(Oe=>Ie(Oe,Le)):[]}function he(Le,Ne){return Ne.properties?!qc(Ne.properties,(Oe,At)=>{const be=i.getTypeOfPropertyOfType(Le,At);return be?Oe.calls?!i.getSignaturesOfType(be,0).length||!i.isTypeAssignableTo(be,ge(Oe.calls)):!i.isTypeAssignableTo(be,re(Oe)):!0}):!1}function Ie(Le,Ne){if(!(zr(Le)&4)||!Ne.properties)return Le;const Oe=Le.target,At=uh(Oe.typeParameters);if(!At)return Le;const be=[];return Ne.properties.forEach((He,it)=>{const Ft=i.getTypeOfPropertyOfType(Oe,it);N.assert(!!Ft,"generic should have all the properties of its reference."),be.push(...de(Ft,re(He),At))}),o[Le.symbol.escapedName](_e(be))}function de(Le,Ne,Oe){if(Le===Oe)return[Ne];if(Le.flags&3145728)return qi(Le.types,He=>de(He,Ne,Oe));if(zr(Le)&4&&zr(Ne)&4){const He=i.getTypeArguments(Le),it=i.getTypeArguments(Ne),Ft=[];if(He&&it)for(let yt=0;yt<He.length;yt++)it[yt]&&Ft.push(...de(He[yt],it[yt],Oe));return Ft}const At=i.getSignaturesOfType(Le,0),be=i.getSignaturesOfType(Ne,0);return At.length===1&&be.length===1?ie(At[0],be[0],Oe):[]}function ie(Le,Ne,Oe){var At;const be=[];for(let Ft=0;Ft<Le.parameters.length;Ft++){const yt=Le.parameters[Ft],Ze=Ne.parameters[Ft],It=Le.declaration&&eg(Le.declaration.parameters[Ft]);if(!Ze)break;let on=yt.valueDeclaration?i.getTypeOfSymbolAtLocation(yt,yt.valueDeclaration):i.getAnyType();const Yt=It&&i.getElementTypeOfArrayType(on);Yt&&(on=Yt);const Nn=((At=ni(Ze,gh))==null?void 0:At.links.type)||(Ze.valueDeclaration?i.getTypeOfSymbolAtLocation(Ze,Ze.valueDeclaration):i.getAnyType());be.push(...de(on,Nn,Oe))}const He=i.getReturnTypeOfSignature(Le),it=i.getReturnTypeOfSignature(Ne);return be.push(...de(He,it,Oe)),be}function ge(Le){return i.createAnonymousType(void 0,pa(),[Ce(Le)],et,et)}function Ce(Le){const Ne=[],Oe=Math.max(...Le.map(be=>be.argumentTypes.length));for(let be=0;be<Oe;be++){const He=i.createSymbol(1,bl(`arg${be}`));He.links.type=_e(Le.map(it=>it.argumentTypes[be]||i.getUndefinedType())),Le.some(it=>it.argumentTypes[be]===void 0)&&(He.flags|=16777216),Ne.push(He)}const At=re(u(Le.map(be=>be.return_)));return i.createSignature(void 0,void 0,void 0,Ne,At,void 0,Oe,0)}function qe(Le,Ne){Ne&&!(Ne.flags&1)&&!(Ne.flags&131072)&&(Le.candidateTypes||(Le.candidateTypes=[])).push(Ne)}function Se(Le,Ne){Ne&&!(Ne.flags&1)&&!(Ne.flags&131072)&&(Le.candidateThisTypes||(Le.candidateThisTypes=[])).push(Ne)}}var EQ,Cme,ztt=S({"src/services/codefixes/inferFromUsage.ts"(){oi(),Da(),EQ="inferFromUsage",Cme=[m.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,m.Variable_0_implicitly_has_an_1_type.code,m.Parameter_0_implicitly_has_an_1_type.code,m.Rest_parameter_0_implicitly_has_an_any_type.code,m.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,m._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,m.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,m.Member_0_implicitly_has_an_1_type.code,m.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,m.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,m.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,m.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,m.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,m._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,m.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,m.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,m.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],xa({errorCodes:Cme,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:u}=e,p=go(t,i);let v;const f=yr.ChangeTracker.with(e,A=>{v=TLe(A,t,p,o,r,s,Pv,l,u)}),b=v&&Oo(v);return!b||f.length===0?void 0:[ua(EQ,f,[Mtt(o,p),bc(b)],EQ,m.Infer_all_types_from_usage)]},fixIds:[EQ],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=OI();return Ds(e,Cme,(u,p)=>{TLe(u,t,go(p.file,p.start),p.code,r,i,l,o,s)})}})}});function DLe(e,t,r){if(dr(e))return;const i=go(e,r),o=jn(i,Js),s=o==null?void 0:o.type;if(!s)return;const l=t.getTypeFromTypeNode(s),u=t.getAwaitedType(l)||t.getVoidType(),p=t.typeToTypeNode(u,s,void 0);if(p)return{returnTypeNode:s,returnType:l,promisedTypeNode:p,promisedType:u}}function NLe(e,t,r,i){e.replaceNode(t,r,O.createTypeReferenceNode("Promise",[i]))}var SQ,Pme,Btt=S({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){oi(),Da(),SQ="fixReturnTypeInAsyncFunction",Pme=[m.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],xa({errorCodes:Pme,fixIds:[SQ],getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=DLe(r,i.getTypeChecker(),o.start);if(!l)return;const{returnTypeNode:u,returnType:p,promisedTypeNode:v,promisedType:f}=l,b=yr.ChangeTracker.with(t,A=>NLe(A,r,u,v));return[ua(SQ,b,[m.Replace_0_with_Promise_1,s.typeToString(p),s.typeToString(f)],SQ,m.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Ds(e,Pme,(t,r)=>{const i=DLe(r.file,e.program.getTypeChecker(),r.start);i&&NLe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function CLe(e,t,r,i){const{line:o}=Rs(t,r);(!i||Rv(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var Mme,Lme,kme,Gtt=S({"src/services/codefixes/disableJsDiagnostics.ts"(){oi(),Da(),Mme="disableJsDiagnostics",Lme="disableJsDiagnostics",kme=Vi(Object.keys(m),e=>{const t=m[e];return t.category===1?t.code:void 0}),xa({errorCodes:kme,getCodeActions:function(t){const{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!dr(r)||!Fk(r,i.getCompilerOptions()))return;const u=r.checkJsDirective?"":ty(s,l.options),p=[a_(Mme,[MCe(r.fileName,[DO(r.checkJsDirective?yc(r.checkJsDirective.pos,r.checkJsDirective.end):Eu(0,0),`// @ts-nocheck${u}`)])],m.Disable_checking_for_this_file)];return yr.isValidLocationToAddComment(r,o.start)&&p.unshift(ua(Mme,yr.ChangeTracker.with(t,v=>CLe(v,r,o.start)),m.Ignore_this_error_message,Lme,m.Add_ts_ignore_to_all_error_messages)),p},fixIds:[Lme],getAllCodeActions:e=>{const t=new Set;return Ds(e,kme,(r,i)=>{yr.isValidLocationToAddComment(i.file,i.start)&&CLe(r,i.file,i.start,t)})}})}});function wme(e,t,r,i,o,s,l){const u=e.symbol.members;for(const p of t)u.has(p.escapedName)||PLe(p,e,r,i,o,s,l,void 0)}function JR(e){return{trackSymbol:()=>!1,moduleResolverHost:DX(e.program,e.host)}}function PLe(e,t,r,i,o,s,l,u,p=3,v=!1){var he;const f=e.getDeclarations(),b=eu(f),A=i.program.getTypeChecker(),I=ps(i.program.getCompilerOptions()),R=(he=b==null?void 0:b.kind)!=null?he:171,M=oe(e,b),C=b?fd(b):0;let W=C&256;W|=C&1?1:C&4?4:0,b&&Fd(b)&&(W|=512);const U=re(),X=A.getWidenedType(A.getTypeOfSymbolAtLocation(e,t)),ee=!!(e.flags&16777216),V=!!(t.flags&33554432)||v,se=uf(r,o);switch(R){case 171:case 172:const Ie=se===0?268435456:void 0;let de=A.typeToTypeNode(X,t,Ie,JR(i));if(s){const ge=HI(de,I);ge&&(de=ge.typeNode,KR(s,ge.symbols))}l(O.createPropertyDeclaration(U,b?ye(M):e.getName(),ee&&p&2?O.createToken(58):void 0,de,void 0));break;case 177:case 178:{N.assertIsDefined(f);let ge=A.typeToTypeNode(X,t,void 0,JR(i));const Ce=wS(f,b),qe=Ce.secondAccessor?[Ce.firstAccessor,Ce.secondAccessor]:[Ce.firstAccessor];if(s){const Se=HI(ge,I);Se&&(ge=Se.typeNode,KR(s,Se.symbols))}for(const Se of qe)if(rf(Se))l(O.createGetAccessorDeclaration(U,ye(M),et,Y(ge),Q(u,se,V)));else{N.assertNode(Se,Tp,"The counterpart to a getter should be a setter");const Le=YN(Se),Ne=Le&&Ue(Le.name)?Rr(Le.name):void 0;l(O.createSetAccessorDeclaration(U,ye(M),Wme(1,[Ne],[Y(ge)],1,!1),Q(u,se,V)))}break}case 173:case 174:N.assertIsDefined(f);const ie=X.isUnion()?qi(X.types,ge=>ge.getCallSignatures()):X.getCallSignatures();if(!St(ie))break;if(f.length===1){N.assert(ie.length===1,"One declaration implies one signature");const ge=ie[0];G(se,ge,U,ye(M),Q(u,se,V));break}for(const ge of ie)G(se,ge,U,ye(M));if(!V)if(f.length>ie.length){const ge=A.getSignatureFromDeclaration(f[f.length-1]);G(se,ge,U,ye(M),Q(u,se))}else N.assert(f.length===ie.length,"Declarations and signatures should match count"),l(Utt(A,i,t,ie,ye(M),ee&&!!(p&1),U,se,u));break}function G(Ie,de,ie,ge,Ce){const qe=TQ(174,i,Ie,de,Ce,ge,ie,ee&&!!(p&1),t,s);qe&&l(qe)}function re(){let Ie;return W&&(Ie=Vx(Ie,O.createModifiersFromModifierFlags(W))),_e()&&(Ie=Rn(Ie,O.createToken(164))),Ie&&O.createNodeArray(Ie)}function _e(){return!!(i.program.getCompilerOptions().noImplicitOverride&&b&&Y1(b))}function ye(Ie){return Ue(Ie)&&Ie.escapedText==="constructor"?O.createComputedPropertyName(O.createStringLiteral(Rr(Ie),se===0)):pl(Ie,!1)}function Q(Ie,de,ie){return ie?void 0:pl(Ie,!1)||Fme(de)}function Y(Ie){return pl(Ie,!1)}function oe(Ie,de){if(Cl(Ie)&262144){const ie=Ie.links.nameType;if(ie&&cm(ie))return O.createIdentifier(Ki(um(ie)))}return pl(Oo(de),!1)}}function TQ(e,t,r,i,o,s,l,u,p,v){const f=t.program,b=f.getTypeChecker(),A=ps(f.getCompilerOptions()),I=dr(p),R=524545|(r===0?268435456:0),M=b.signatureToSignatureDeclaration(i,e,p,R,JR(t));if(!M)return;let C=I?void 0:M.typeParameters,W=M.parameters,U=I?void 0:M.type;if(v){if(C){const se=mo(C,G=>{let re=G.constraint,_e=G.default;if(re){const ye=HI(re,A);ye&&(re=ye.typeNode,KR(v,ye.symbols))}if(_e){const ye=HI(_e,A);ye&&(_e=ye.typeNode,KR(v,ye.symbols))}return O.updateTypeParameterDeclaration(G,G.modifiers,G.name,re,_e)});C!==se&&(C=ut(O.createNodeArray(se,C.hasTrailingComma),C))}const V=mo(W,se=>{let G=I?void 0:se.type;if(G){const re=HI(G,A);re&&(G=re.typeNode,KR(v,re.symbols))}return O.updateParameterDeclaration(se,se.modifiers,se.dotDotDotToken,se.name,I?void 0:se.questionToken,G,se.initializer)});if(W!==V&&(W=ut(O.createNodeArray(V,W.hasTrailingComma),W)),U){const se=HI(U,A);se&&(U=se.typeNode,KR(v,se.symbols))}}const X=u?O.createToken(58):void 0,ee=M.asteriskToken;if(Us(M))return O.updateFunctionExpression(M,l,M.asteriskToken,ni(s,Ue),C,W,U,o!=null?o:M.body);if(Ks(M))return O.updateArrowFunction(M,l,C,W,U,M.equalsGreaterThanToken,o!=null?o:M.body);if(Ql(M))return O.updateMethodDeclaration(M,l,ee,s!=null?s:O.createIdentifier(""),X,C,W,U,o);if(Dc(M))return O.updateFunctionDeclaration(M,l,M.asteriskToken,ni(s,Ue),C,W,U,o!=null?o:M.body)}function Ome(e,t,r,i,o,s,l){const u=uf(t.sourceFile,t.preferences),p=ps(t.program.getCompilerOptions()),v=JR(t),f=t.program.getTypeChecker(),b=dr(l),{typeArguments:A,arguments:I,parent:R}=i,M=b?void 0:f.getContextualType(i),C=Wt(I,_e=>Ue(_e)?_e.text:Br(_e)&&Ue(_e.name)?_e.name.text:void 0),W=b?[]:Wt(I,_e=>f.getTypeAtLocation(_e)),{argumentTypeNodes:U,argumentTypeParameters:X}=kLe(f,r,W,l,p,1,v),ee=s?O.createNodeArray(O.createModifiersFromModifierFlags(s)):void 0,V=g5(R)?O.createToken(42):void 0,se=b?void 0:Vtt(f,X,A),G=Wme(I.length,C,U,void 0,b),re=b||M===void 0?void 0:f.typeToTypeNode(M,l,void 0,v);switch(e){case 174:return O.createMethodDeclaration(ee,V,o,void 0,se,G,re,Fme(u));case 173:return O.createMethodSignature(ee,o,void 0,se,G,re===void 0?O.createKeywordTypeNode(159):re);case 262:return N.assert(typeof o=="string"||Ue(o),"Unexpected name"),O.createFunctionDeclaration(ee,V,o,se,G,re,z9(m.Function_not_implemented.message,u));default:N.fail("Unexpected kind")}}function Vtt(e,t,r){const i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){const s=r.filter(u=>!t.some(p=>{var v;return e.getTypeAtLocation(u)===((v=p[1])==null?void 0:v.argumentType)})),l=i.size+s.length;for(let u=0;i.size<l;u+=1)i.add(MLe(u))}return Go(i.values(),s=>{var l;return O.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function MLe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function AQ(e,t,r,i,o,s,l){let u=e.typeToTypeNode(r,i,s,l);if(u&&dg(u)){const p=HI(u,o);p&&(KR(t,p.symbols),u=p.typeNode)}return pl(u)}function LLe(e){return e.isUnionOrIntersection()?e.types.some(LLe):e.flags&262144}function kLe(e,t,r,i,o,s,l){const u=[],p=new Map;for(let v=0;v<r.length;v+=1){const f=r[v];if(f.isUnionOrIntersection()&&f.types.some(LLe)){const M=MLe(v);u.push(O.createTypeReferenceNode(M)),p.set(M,void 0);continue}const b=e.getBaseTypeOfLiteralType(f),A=AQ(e,t,b,i,o,s,l);if(!A)continue;u.push(A);const I=wLe(f),R=f.isTypeParameter()&&f.constraint&&!jtt(f.constraint)?AQ(e,t,f.constraint,i,o,s,l):void 0;I&&p.set(I,{argumentType:f,constraint:R})}return{argumentTypeNodes:u,argumentTypeParameters:Go(p.entries())}}function jtt(e){return e.flags&524288&&e.objectFlags===16}function wLe(e){var t;if(e.flags&3145728)for(const r of e.types){const i=wLe(r);if(i)return i}return e.flags&262144?(t=e.getSymbol())==null?void 0:t.getName():void 0}function Wme(e,t,r,i,o){const s=[],l=new Map;for(let u=0;u<e;u++){const p=(t==null?void 0:t[u])||`arg${u}`,v=l.get(p);l.set(p,(v||0)+1);const f=O.createParameterDeclaration(void 0,void 0,p+(v||""),i!==void 0&&u>=i?O.createToken(58):void 0,o?void 0:(r==null?void 0:r[u])||O.createKeywordTypeNode(159),void 0);s.push(f)}return s}function Utt(e,t,r,i,o,s,l,u,p){let v=i[0],f=i[0].minArgumentCount,b=!1;for(const M of i)f=Math.min(M.minArgumentCount,f),Zu(M)&&(b=!0),M.parameters.length>=v.parameters.length&&(!Zu(M)||Zu(v))&&(v=M);const A=v.parameters.length-(Zu(v)?1:0),I=v.parameters.map(M=>M.name),R=Wme(A,I,void 0,f,!1);if(b){const M=O.createParameterDeclaration(void 0,O.createToken(26),I[A]||"rest",A>=f?O.createToken(58):void 0,O.createArrayTypeNode(O.createKeywordTypeNode(159)),void 0);R.push(M)}return qtt(l,o,s,void 0,R,Htt(i,e,t,r),u,p)}function Htt(e,t,r,i){if(Pe(e)){const o=t.getUnionType(Wt(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,JR(r))}}function qtt(e,t,r,i,o,s,l,u){return O.createMethodDeclaration(e,void 0,t,r?O.createToken(58):void 0,i,o,s,u||Fme(l))}function Fme(e){return z9(m.Method_not_implemented.message,e)}function z9(e,t){return O.createBlock([O.createThrowStatement(O.createNewExpression(O.createIdentifier("Error"),void 0,[O.createStringLiteral(e,t===0)]))],!0)}function zme(e,t,r){const i=ON(t);if(!i)return;const o=Gme(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,IQ("compilerOptions",O.createObjectLiteralExpression(r.map(([l,u])=>IQ(l,u)),!0)));return}const s=o.initializer;if(!!za(s))for(const[l,u]of r){const p=Gme(s,l);p===void 0?e.insertNodeAtObjectStart(t,s,IQ(l,u)):e.replaceNode(t,p.initializer,u)}}function Bme(e,t,r,i){zme(e,t,[[r,i]])}function IQ(e,t){return O.createPropertyAssignment(O.createStringLiteral(e),t)}function Gme(e,t){return un(e.properties,r=>Tc(r)&&!!r.name&&La(r.name)&&r.name.text===t)}function HI(e,t){let r;const i=rt(e,o,Xi);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(By(s)&&s.qualifier){const l=jp(s.qualifier),u=UF(l.symbol,t),p=u!==l.text?OLe(s.qualifier,O.createIdentifier(u)):s.qualifier;r=Rn(r,l.symbol);const v=Un(s.typeArguments,o,Xi);return O.createTypeReferenceNode(p,v)}return xn(s,o,void 0)}}function OLe(e,t){return e.kind===80?t:O.createQualifiedName(OLe(e.left,t),e.right)}function KR(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function Vme(e,t){const r=tc(t);let i=go(e,t.start);for(;i.end<r;)i=i.parent;return i}var jme,Jtt=S({"src/services/codefixes/helpers.ts"(){oi(),jme=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(jme||{})}});function WLe(e,t,r,i,o,s){const l=BLe(e,t,r,i);if(!l||BI.isRefactorErrorInfo(l))return;const u=yr.ChangeTracker.fromContext(o),{isStatic:p,isReadonly:v,fieldName:f,accessorName:b,originalName:A,type:I,container:R,declaration:M}=l;Rp(f),Rp(b),Rp(M),Rp(R);let C,W;if(di(R)){const X=fd(M);if(pd(e)){const ee=O.createModifiersFromModifierFlags(X);C=ee,W=ee}else C=O.createModifiersFromModifierFlags(Ytt(X)),W=O.createModifiersFromModifierFlags($tt(X));QS(M)&&(W=Ro(Py(M),W))}nnt(u,e,M,I,f,W);const U=Qtt(f,b,I,C,p,R);if(Rp(U),GLe(u,e,U,M,R),v){const X=sg(R);X&&rnt(u,e,X,f.text,A)}else{const X=Ztt(f,b,I,C,p,R);Rp(X),GLe(u,e,X,M,R)}return u.getChanges()}function Ktt(e){return Ue(e)||La(e)}function Xtt(e){return gp(e,e.parent)||qo(e)||Tc(e)}function FLe(e,t){return Ue(t)?O.createIdentifier(e):O.createStringLiteral(e)}function zLe(e,t,r){const i=t?r.name:O.createThis();return Ue(e)?O.createPropertyAccessExpression(i,e):O.createElementAccessExpression(i,O.createStringLiteralFromNode(e))}function Ytt(e){return e&=-9,e&=-3,e&4||(e|=1),e}function $tt(e){return e&=-2,e&=-5,e|=2,e}function BLe(e,t,r,i,o=!0){const s=go(e,r),l=r===i&&o,u=jn(s.parent,Xtt),p=271;if(!u||!(fF(u.name,e,r,i)||l))return{error:zo(m.Could_not_find_property_for_which_to_generate_accessor)};if(!Ktt(u.name))return{error:zo(m.Name_is_not_valid)};if((fd(u)&98303|p)!==p)return{error:zo(m.Can_only_convert_property_with_modifier)};const v=u.name.text,f=ZX(v),b=FLe(f?v:cT(`_${v}`,e),u.name),A=FLe(f?cT(v.substring(1),e):v,u.name);return{isStatic:Ec(u),isReadonly:$N(u),type:int(u,t),container:u.kind===169?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:b,accessorName:A,renameAccessor:f}}function Qtt(e,t,r,i,o,s){return O.createGetAccessorDeclaration(i,t,[],r,O.createBlock([O.createReturnStatement(zLe(e,o,s))],!0))}function Ztt(e,t,r,i,o,s){return O.createSetAccessorDeclaration(i,t,[O.createParameterDeclaration(void 0,void 0,O.createIdentifier("value"),void 0,r)],O.createBlock([O.createExpressionStatement(O.createAssignment(zLe(e,o,s),O.createIdentifier("value")))],!0))}function ent(e,t,r,i,o,s){const l=O.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function tnt(e,t,r,i){let o=O.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=O.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function nnt(e,t,r,i,o,s){qo(r)?ent(e,t,r,i,o,s):Tc(r)?tnt(e,t,r,o):e.replaceNode(t,r,O.updateParameterDeclaration(r,s,r.dotDotDotToken,sa(o,Ue),r.questionToken,r.type,r.initializer))}function GLe(e,t,r,i,o){gp(i,i.parent)?e.insertMemberAtStart(t,o,r):Tc(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function rnt(e,t,r,i,o){!r.body||r.body.forEachChild(function s(l){el(l)&&l.expression.kind===110&&La(l.argumentExpression)&&l.argumentExpression.text===o&&YA(l)&&e.replaceNode(t,l.argumentExpression,O.createStringLiteral(i)),Br(l)&&l.expression.kind===110&&l.name.text===o&&YA(l)&&e.replaceNode(t,l.name,O.createIdentifier(i)),!ta(l)&&!di(l)&&l.forEachChild(s)})}function int(e,t){const r=boe(e);if(qo(e)&&r&&e.questionToken){const i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){const s=Yy(r)?r.types:[r];return O.createUnionTypeNode([...s,O.createKeywordTypeNode(157)])}}return r}function Ume(e,t){const r=[];for(;e;){const i=H1(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;const s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&un(s.declarations,di);if(!l)break;r.push(l),e=l}return r}var ont=S({"src/services/codefixes/generateAccessors.ts"(){oi()}});function ant(e,t){const r=Jn(t),i=I2(t),o=e.program.getCompilerOptions(),s=[];return s.push(VLe(e,r,t,ey(i.name,void 0,t.moduleSpecifier,uf(r,e.preferences)))),Wu(o)===1&&s.push(VLe(e,r,t,O.createImportEqualsDeclaration(void 0,!1,i.name,O.createExternalModuleReference(t.moduleSpecifier)))),s}function VLe(e,t,r,i){const o=yr.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return a_(Hme,o,[m.Replace_import_with_0,o[0].textChanges[0].newText])}function snt(e){const t=e.sourceFile,r=m.This_expression_is_not_callable.code===e.errorCode?213:214,i=jn(go(t,e.span.start),s=>s.kind===r);if(!i)return[];const o=i.expression;return jLe(e,o)}function lnt(e){const t=e.sourceFile,r=jn(go(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?jLe(e,r):[]}function jLe(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&gh(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],o=r.symbol.links.originatingImport;if(Gp(o)||Hr(i,ant(e,o)),bt(t)&&!(cd(t.parent)&&t.parent.name===t)){const s=e.sourceFile,l=yr.ChangeTracker.with(e,u=>u.replaceNode(s,t,O.createPropertyAccessExpression(t,"default"),{}));i.push(a_(Hme,l,m.Use_synthetic_default_member))}return i}var Hme,cnt=S({"src/services/codefixes/fixInvalidImportSyntax.ts"(){oi(),Da(),Hme="invalidImportSyntax",xa({errorCodes:[m.This_expression_is_not_callable.code,m.This_expression_is_not_constructable.code],getCodeActions:snt}),xa({errorCodes:[m.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,m.Type_0_does_not_satisfy_the_constraint_1.code,m.Type_0_is_not_assignable_to_type_1.code,m.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,m.Type_predicate_0_is_not_assignable_to_1.code,m.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,m._0_index_type_1_is_not_assignable_to_2_index_type_3.code,m.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,m.Property_0_in_type_1_is_not_assignable_to_type_2.code,m.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,m.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:lnt})}});function ULe(e,t){const r=go(e,t);if(Ue(r)&&qo(r.parent)){const i=Su(r.parent);if(i)return{type:i,prop:r.parent,isJs:dr(r.parent)}}}function unt(e,t){if(t.isJs)return;const r=yr.ChangeTracker.with(e,i=>HLe(i,e.sourceFile,t.prop));return ua(xQ,r,[m.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],RQ,m.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function HLe(e,t,r){Rp(r);const i=O.updatePropertyDeclaration(r,r.modifiers,r.name,O.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function dnt(e,t){const r=yr.ChangeTracker.with(e,i=>qLe(i,e.sourceFile,t));return ua(xQ,r,[m.Add_undefined_type_to_property_0,t.prop.name.getText()],DQ,m.Add_undefined_type_to_all_uninitialized_properties)}function qLe(e,t,r){const i=O.createKeywordTypeNode(157),o=Yy(r.type)?r.type.types.concat(i):[r.type,i],s=O.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[O.createJSDocTypeTag(void 0,O.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function pnt(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=KLe(r,t.prop);if(!i)return;const o=yr.ChangeTracker.with(e,s=>JLe(s,e.sourceFile,t.prop,i));return ua(xQ,o,[m.Add_initializer_to_property_0,t.prop.name.getText()],NQ,m.Add_initializers_to_all_uninitialized_properties)}function JLe(e,t,r,i){Rp(r);const o=O.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function KLe(e,t){return XLe(e,e.getTypeFromTypeNode(t.type))}function XLe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?O.createFalse():O.createTrue();if(t.isStringLiteral())return O.createStringLiteral(t.value);if(t.isNumberLiteral())return O.createNumericLiteral(t.value);if(t.flags&2048)return O.createBigIntLiteral(t.value);if(t.isUnion())return $t(t.types,r=>XLe(e,r));if(t.isClass()){const r=jg(t.symbol);if(!r||Qr(r,64))return;const i=sg(r);return i&&i.parameters.length?void 0:O.createNewExpression(O.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return O.createArrayLiteralExpression()}var xQ,RQ,DQ,NQ,qme,fnt=S({"src/services/codefixes/fixStrictClassInitialization.ts"(){oi(),Da(),xQ="strictClassInitialization",RQ="addMissingPropertyDefiniteAssignmentAssertions",DQ="addMissingPropertyUndefinedType",NQ="addMissingPropertyInitializer",qme=[m.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],xa({errorCodes:qme,getCodeActions:function(t){const r=ULe(t.sourceFile,t.span.start);if(!r)return;const i=[];return Rn(i,dnt(t,r)),Rn(i,unt(t,r)),Rn(i,pnt(t,r)),i},fixIds:[RQ,DQ,NQ],getAllCodeActions:e=>Ds(e,qme,(t,r)=>{const i=ULe(r.file,r.start);if(!!i)switch(e.fixId){case RQ:HLe(t,r.file,i.prop);break;case DQ:qLe(t,r.file,i);break;case NQ:const o=e.program.getTypeChecker(),s=KLe(o,i.prop);if(!s)return;JLe(t,r.file,i.prop,s);break;default:N.fail(JSON.stringify(e.fixId))}})})}});function YLe(e,t,r){const{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,required:u}=r;e.replaceNode(t,l,o&&!i?O.createImportEqualsDeclaration(void 0,!1,o,O.createExternalModuleReference(u)):O.createImportDeclaration(void 0,O.createImportClause(!1,o,s),u,void 0))}function $Le(e,t,r){const{parent:i}=go(e,r);Ad(i,!0)||N.failBadSyntaxKind(i);const o=sa(i.parent,Wi),s=ni(o.name,Ue),l=pm(o.name)?mnt(o.name):void 0;if(s||l)return{allowSyntheticDefaults:FS(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:sa(o.parent.parent,Fl),required:$a(i.arguments)}}function mnt(e){const t=[];for(const r of e.elements){if(!Ue(r.name)||r.initializer)return;t.push(O.createImportSpecifier(!1,ni(r.propertyName,Ue),r.name))}if(t.length)return O.createNamedImports(t)}var CQ,Jme,_nt=S({"src/services/codefixes/requireInTs.ts"(){oi(),Da(),CQ="requireInTs",Jme=[m.require_call_may_be_converted_to_an_import.code],xa({errorCodes:Jme,getCodeActions(e){const t=$Le(e.sourceFile,e.program,e.span.start);if(!t)return;const r=yr.ChangeTracker.with(e,i=>YLe(i,e.sourceFile,t));return[ua(CQ,r,m.Convert_require_to_import,CQ,m.Convert_all_require_to_import)]},fixIds:[CQ],getAllCodeActions:e=>Ds(e,Jme,(t,r)=>{const i=$Le(r.file,e.program,r.start);i&&YLe(t,e.sourceFile,i)})})}});function QLe(e,t){const r=go(e,t);if(!Ue(r))return;const{parent:i}=r;if(au(i)&&Rh(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(eb(i)){const o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function ZLe(e,t,r,i){e.replaceNode(t,r.importNode,ey(r.name,void 0,r.moduleSpecifier,uf(t,i)))}var PQ,Kme,hnt=S({"src/services/codefixes/useDefaultImport.ts"(){oi(),Da(),PQ="useDefaultImport",Kme=[m.Import_may_be_converted_to_a_default_import.code],xa({errorCodes:Kme,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=QLe(t,r);if(!i)return;const o=yr.ChangeTracker.with(e,s=>ZLe(s,t,i,e.preferences));return[ua(PQ,o,m.Convert_to_default_import,PQ,m.Convert_all_to_default_imports)]},fixIds:[PQ],getAllCodeActions:e=>Ds(e,Kme,(t,r)=>{const i=QLe(r.file,r.start);i&&ZLe(t,r.file,i,e.preferences)})})}});function eke(e,t,r){const i=ni(go(t,r.start),Ep);if(!i)return;const o=i.getText(t)+"n";e.replaceNode(t,i,O.createBigIntLiteral(o))}var MQ,Xme,gnt=S({"src/services/codefixes/useBigintLiteral.ts"(){oi(),Da(),MQ="useBigintLiteral",Xme=[m.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],xa({errorCodes:Xme,getCodeActions:function(t){const r=yr.ChangeTracker.with(t,i=>eke(i,t.sourceFile,t.span));if(r.length>0)return[ua(MQ,r,m.Convert_to_a_bigint_numeric_literal,MQ,m.Convert_all_to_bigint_numeric_literals)]},fixIds:[MQ],getAllCodeActions:e=>Ds(e,Xme,(t,r)=>eke(t,r.file,r))})}});function tke(e,t){const r=go(e,t);return N.assert(r.kind===102,"This token should be an ImportKeyword"),N.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function nke(e,t,r){const i=O.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var rke,LQ,Yme,vnt=S({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){oi(),Da(),rke="fixAddModuleReferTypeMissingTypeof",LQ=rke,Yme=[m.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],xa({errorCodes:Yme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=tke(r,i.start),s=yr.ChangeTracker.with(t,l=>nke(l,r,o));return[ua(LQ,s,m.Add_missing_typeof,LQ,m.Add_missing_typeof)]},fixIds:[LQ],getAllCodeActions:e=>Ds(e,Yme,(t,r)=>nke(t,e.sourceFile,tke(r.file,r.start)))})}});function ike(e,t){let o=go(e,t).parent.parent;if(!(!vr(o)&&(o=o.parent,!vr(o)))&&!!Hl(o.operatorToken))return o}function oke(e,t,r){const i=ynt(r);i&&e.replaceNode(t,r,O.createJsxFragment(O.createJsxOpeningFragment(),i,O.createJsxJsxClosingFragment()))}function ynt(e){const t=[];let r=e;for(;;)if(vr(r)&&Hl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),FL(r.right))return t.push(r.right),t;if(vr(r.right)){r=r.right;continue}else return}else return}var kQ,$me,bnt=S({"src/services/codefixes/wrapJsxInFragment.ts"(){oi(),Da(),kQ="wrapJsxInFragment",$me=[m.JSX_expressions_must_have_one_parent_element.code],xa({errorCodes:$me,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=ike(r,i.start);if(!o)return;const s=yr.ChangeTracker.with(t,l=>oke(l,r,o));return[ua(kQ,s,m.Wrap_in_JSX_fragment,kQ,m.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[kQ],getAllCodeActions:e=>Ds(e,$me,(t,r)=>{const i=ike(e.sourceFile,r.start);!i||oke(t,e.sourceFile,i)})})}});function ake(e,t){const r=go(e,t),i=ni(r.parent.parent,nE);if(!i)return;const o=gd(i.parent)?i.parent:ni(i.parent.parent,Lm);if(!!o)return{indexSignature:i,container:o}}function Ent(e,t){return O.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function ske(e,t,{indexSignature:r,container:i}){const s=(gd(i)?i.members:i.type.members).filter(f=>!nE(f)),l=$a(r.parameters),u=O.createTypeParameterDeclaration(void 0,sa(l.name,Ue),l.type),p=O.createMappedTypeNode($N(r)?O.createModifier(148):void 0,u,void 0,r.questionToken,r.type,void 0),v=O.createIntersectionTypeNode([...VN(i),p,...s.length?[O.createTypeLiteralNode(s)]:et]);e.replaceNode(t,i,Ent(i,v))}var wQ,Qme,Snt=S({"src/services/codefixes/convertToMappedObjectType.ts"(){oi(),Da(),wQ="fixConvertToMappedObjectType",Qme=[m.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],xa({errorCodes:Qme,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=ake(r,i.start);if(!o)return;const s=yr.ChangeTracker.with(t,u=>ske(u,r,o)),l=Rr(o.container.name);return[ua(wQ,s,[m.Convert_0_to_mapped_object_type,l],wQ,[m.Convert_0_to_mapped_object_type,l])]},fixIds:[wQ],getAllCodeActions:e=>Ds(e,Qme,(t,r)=>{const i=ake(r.file,r.start);i&&ske(t,r.file,i)})})}}),Zme,lke,Tnt=S({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){oi(),Da(),Zme="removeAccidentalCallParentheses",lke=[m.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],xa({errorCodes:lke,getCodeActions(e){const t=jn(go(e.sourceFile,e.span.start),ca);if(!t)return;const r=yr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[a_(Zme,r,m.Remove_parentheses)]},fixIds:[Zme]})}});function cke(e,t,r){const i=ni(go(t,r.start),u=>u.kind===135),o=i&&ni(i.parent,Qy);if(!o)return;let s=o;if(Vd(o.parent)){const u=B2(o.expression,!1);if(Ue(u)){const p=Cc(o.parent.pos,t);p&&p.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var OQ,e_e,Ant=S({"src/services/codefixes/removeUnnecessaryAwait.ts"(){oi(),Da(),OQ="removeUnnecessaryAwait",e_e=[m.await_has_no_effect_on_the_type_of_this_expression.code],xa({errorCodes:e_e,getCodeActions:function(t){const r=yr.ChangeTracker.with(t,i=>cke(i,t.sourceFile,t.span));if(r.length>0)return[ua(OQ,r,m.Remove_unnecessary_await,OQ,m.Remove_all_unnecessary_uses_of_await)]},fixIds:[OQ],getAllCodeActions:e=>Ds(e,e_e,(t,r)=>cke(t,r.file,r))})}});function uke(e,t){return jn(go(e,t.start),Fc)}function dke(e,t,r){if(!t)return;const i=N.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,O.updateImportDeclaration(t,t.modifiers,O.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,O.createImportDeclaration(void 0,O.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var t_e,WQ,Int=S({"src/services/codefixes/splitTypeOnlyImport.ts"(){oi(),Da(),t_e=[m.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],WQ="splitTypeOnlyImport",xa({errorCodes:t_e,fixIds:[WQ],getCodeActions:function(t){const r=yr.ChangeTracker.with(t,i=>dke(i,uke(t.sourceFile,t.span),t));if(r.length)return[ua(WQ,r,m.Split_into_two_separate_import_declarations,WQ,m.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Ds(e,t_e,(t,r)=>{dke(t,uke(e.sourceFile,r),e)})})}});function pke(e,t,r){var i;const s=r.getTypeChecker().getSymbolAtLocation(go(e,t));if(s===void 0)return;const l=ni((i=s==null?void 0:s.valueDeclaration)==null?void 0:i.parent,Xc);if(l===void 0)return;const u=Is(l,87,e);if(u!==void 0)return{symbol:s,token:u}}function fke(e,t,r){e.replaceNode(t,r,O.createToken(121))}var FQ,n_e,xnt=S({"src/services/codefixes/convertConstToLet.ts"(){oi(),Da(),FQ="fixConvertConstToLet",n_e=[m.Cannot_assign_to_0_because_it_is_a_constant.code],xa({errorCodes:n_e,getCodeActions:function(t){const{sourceFile:r,span:i,program:o}=t,s=pke(r,i.start,o);if(s===void 0)return;const l=yr.ChangeTracker.with(t,u=>fke(u,r,s.token));return[nfe(FQ,l,m.Convert_const_to_let,FQ,m.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Map;return UR(yr.ChangeTracker.with(e,i=>{HR(e,n_e,o=>{const s=pke(o.file,o.start,t);if(s&&Pm(r,Ia(s.symbol)))return fke(i,o.file,s.token)})}))},fixIds:[FQ]})}});function mke(e,t,r){const i=go(e,t);return i.kind===27&&i.parent&&(za(i.parent)||hd(i.parent))?{node:i}:void 0}function _ke(e,t,{node:r}){const i=O.createToken(28);e.replaceNode(t,r,i)}var zQ,hke,r_e,Rnt=S({"src/services/codefixes/fixExpectedComma.ts"(){oi(),Da(),zQ="fixExpectedComma",hke=m._0_expected.code,r_e=[hke],xa({errorCodes:r_e,getCodeActions(e){const{sourceFile:t}=e,r=mke(t,e.span.start,e.errorCode);if(!r)return;const i=yr.ChangeTracker.with(e,o=>_ke(o,t,r));return[ua(zQ,i,[m.Change_0_to_1,";",","],zQ,[m.Change_0_to_1,";",","])]},fixIds:[zQ],getAllCodeActions:e=>Ds(e,r_e,(t,r)=>{const i=mke(r.file,r.start,r.code);i&&_ke(t,e.sourceFile,i)})})}});function gke(e,t,r,i,o){const s=go(t,r.start);if(!Ue(s)||!ca(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;const l=i.getTypeChecker(),u=l.getSymbolAtLocation(s),p=u==null?void 0:u.valueDeclaration;if(!p||!No(p)||!iE(p.parent.parent)||o!=null&&o.has(p))return;o==null||o.add(p);const v=Dnt(p.parent.parent);if(St(v)){const f=v[0],b=!Yy(f)&&!GS(f)&&GS(O.createUnionTypeNode([f,O.createKeywordTypeNode(116)]).types[0]);b&&e.insertText(t,f.pos,"("),e.insertText(t,f.end,b?") | void":" | void")}else{const f=l.getResolvedSignature(s.parent),b=f==null?void 0:f.parameters[0],A=b&&l.getTypeOfSymbolAtLocation(b,p.parent.parent);dr(p)?(!A||A.flags&3)&&(e.insertText(t,p.parent.parent.end,")"),e.insertText(t,Wa(t.text,p.parent.parent.pos),"/** @type {Promise<void>} */(")):(!A||A.flags&2)&&e.insertText(t,p.parent.parent.expression.end,"<void>")}}function Dnt(e){var t;if(dr(e)){if(Vd(e.parent)){const r=(t=d0(e.parent))==null?void 0:t.typeExpression.type;if(r&&Cf(r)&&Ue(r.typeName)&&Rr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var vke,i_e,o_e,Nnt=S({"src/services/codefixes/fixAddVoidToPromise.ts"(){oi(),Da(),vke="addVoidToPromise",i_e="addVoidToPromise",o_e=[m.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,m.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],xa({errorCodes:o_e,fixIds:[i_e],getCodeActions(e){const t=yr.ChangeTracker.with(e,r=>gke(r,e.sourceFile,e.span,e.program));if(t.length>0)return[ua(vke,t,m.Add_void_to_Promise_resolved_without_a_value,i_e,m.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Ds(e,o_e,(t,r)=>gke(t,r.file,r,e.program,new Set))}})}}),Bu={};H(Bu,{PreserveOptionalFlags:()=>jme,addNewNodeForMemberSymbol:()=>PLe,codeFixAll:()=>Ds,createCodeFixAction:()=>ua,createCodeFixActionMaybeFixAll:()=>nfe,createCodeFixActionWithoutFixAll:()=>a_,createCombinedCodeActions:()=>UR,createFileTextChanges:()=>MCe,createImportAdder:()=>jI,createImportSpecifierResolver:()=>wZe,createJsonPropertyAssignment:()=>IQ,createMissingMemberNodes:()=>wme,createSignatureDeclarationFromCallExpression:()=>Ome,createSignatureDeclarationFromSignature:()=>TQ,createStubbedBody:()=>z9,eachDiagnostic:()=>HR,findAncestorMatchingSpan:()=>Vme,findJsonProperty:()=>Gme,generateAccessorFromProperty:()=>WLe,getAccessorConvertiblePropertyAtPosition:()=>BLe,getAllFixes:()=>dQe,getAllSupers:()=>Ume,getArgumentTypesAndTypeParameters:()=>kLe,getFixes:()=>uQe,getImportCompletionAction:()=>OZe,getImportKind:()=>Cfe,getJSDocTypedefNodes:()=>CZe,getNoopSymbolTrackerWithResolver:()=>JR,getPromoteTypeOnlyCompletionAction:()=>WZe,getSupportedErrorCodes:()=>lQe,importFixName:()=>Wfe,importSymbols:()=>KR,moduleSpecifierToValidIdentifier:()=>Ofe,moduleSymbolToValidIdentifier:()=>wfe,parameterShouldGetTypeFromJSDoc:()=>QCe,registerCodeFix:()=>xa,setJsonCompilerOptionValue:()=>Bme,setJsonCompilerOptionValues:()=>zme,tryGetAutoImportableReferenceFromTypeNode:()=>HI,typeToAutoImportableTypeNode:()=>AQ});var Da=S({"src/services/_namespaces/ts.codefix.ts"(){pQe(),fQe(),mQe(),gQe(),SQe(),xQe(),RQe(),DQe(),NQe(),LQe(),jQe(),HQe(),nZe(),bZe(),EZe(),TZe(),AZe(),PZe(),MZe(),kZe(),ret(),aet(),uet(),det(),pet(),_et(),vet(),Eet(),Ret(),Wet(),zet(),Het(),qet(),Ket(),Xet(),Yet(),$et(),Zet(),ett(),ttt(),ntt(),rtt(),ott(),ltt(),ptt(),Ett(),Ttt(),Att(),Rtt(),Dtt(),Ctt(),Ptt(),ztt(),Btt(),Gtt(),Jtt(),ont(),cnt(),fnt(),_nt(),hnt(),gnt(),vnt(),bnt(),Snt(),Tnt(),Ant(),Int(),xnt(),Rnt(),Nnt()}});function Cnt(e){return!!(e.kind&1)}function Pnt(e){return!!(e.kind&2)}function B9(e){return!!(e&&e.kind&4)}function LP(e){return!!(e&&e.kind===32)}function Mnt(e){return B9(e)||LP(e)||a_e(e)}function Lnt(e){return(B9(e)||LP(e))&&!!e.isFromPackageJson}function knt(e){return!!(e.kind&8)}function wnt(e){return!!(e.kind&16)}function yke(e){return!!(e&&e.kind&64)}function bke(e){return!!(e&&e.kind&128)}function Ont(e){return!!(e&&e.kind&256)}function a_e(e){return!!(e&&e.kind&512)}function Eke(e,t,r,i,o,s,l,u,p){var v,f,b;const A=Qs(),I=l||ZA(_d(i.getCompilerOptions()));let R=!1,M=0,C=0,W=0,U=0;const X=p({tryResolve:V,skippedAny:()=>R,resolvedAny:()=>C>0,resolvedBeyondLimit:()=>C>XQ}),ee=U?` (${(W/U*100).toFixed(1)}% hit rate)`:"";return(v=t.log)==null||v.call(t,`${e}: resolved ${C} module specifiers, plus ${M} ambient and ${W} from cache${ee}`),(f=t.log)==null||f.call(t,`${e}: response is ${R?"incomplete":"complete"}`),(b=t.log)==null||b.call(t,`${e}: ${Qs()-A}`),X;function V(se,G){if(G){const Q=r.getModuleSpecifierForBestExportInfo(se,o,u);return Q&&M++,Q||"failed"}const re=I||s.allowIncompleteCompletions&&C<XQ,_e=!re&&s.allowIncompleteCompletions&&U<h_e,ye=re||_e?r.getModuleSpecifierForBestExportInfo(se,o,u,_e):void 0;return(!re&&!_e||_e&&!ye)&&(R=!0),C+=(ye==null?void 0:ye.computedWithoutCacheCount)||0,W+=se.length-((ye==null?void 0:ye.computedWithoutCacheCount)||0),_e&&U++,ye||(I?"failed":"skipped")}}function Wnt(e,t,r,i,o,s,l,u,p,v,f=!1){var b;const{previousToken:A}=jQ(o,i);if(l&&!wI(i,o,A)&&!vrt(i,l,A,o))return;if(l===" ")return s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;const I=t.getCompilerOptions(),R=t.getTypeChecker(),M=s.allowIncompleteCompletions?(b=e.getIncompleteCompletionsCache)==null?void 0:b.call(e):void 0;if(M&&u===3&&A&&Ue(A)){const U=Fnt(M,i,A,t,e,s,p,o);if(U)return U}else M==null||M.clear();const C=$Q.getStringLiteralCompletions(i,o,A,I,e,t,r,s,f);if(C)return C;if(A&&AN(A.parent)&&(A.kind===83||A.kind===88||A.kind===80))return rrt(A.parent);const W=Lke(t,r,i,I,o,s,void 0,e,v,p);if(!!W)switch(W.kind){case 0:const U=jnt(i,e,t,I,r,W,s,v,o,f);return U!=null&&U.isIncomplete&&(M==null||M.set(U)),U;case 1:return s_e([...G0.getJSDocTagNameCompletions(),...Tke(i,o,R,I,s,!0)]);case 2:return s_e([...G0.getJSDocTagCompletions(),...Tke(i,o,R,I,s,!1)]);case 3:return s_e(G0.getJSDocParameterNameCompletions(W.tag));case 4:return Gnt(W.keywordCompletions,W.isNewIdentifierLocation);default:return N.assertNever(W)}}function G9(e,t){var r,i;let o=eL(e.sortText,t.sortText);return o===0&&(o=eL(e.name,t.name)),o===0&&((r=e.data)==null?void 0:r.moduleSpecifier)&&((i=t.data)==null?void 0:i.moduleSpecifier)&&(o=Ok(e.data.moduleSpecifier,t.data.moduleSpecifier)),o===0?-1:o}function Ske(e){return!!(e!=null&&e.moduleSpecifier)}function Fnt(e,t,r,i,o,s,l,u){const p=e.get();if(!p)return;const v=jd(t,u),f=r.text.toLowerCase(),b=VO(t,o,i,s,l),A=Eke("continuePreviousIncompleteResponse",o,Bu.createImportSpecifierResolver(t,i,o,s),i,r.getStart(),s,!1,T0(r),I=>{const R=Vi(p.entries,M=>{var C;if(!M.hasAction||!M.source||!M.data||Ske(M.data))return M;if(!Jke(M.name,f))return;const{origin:W}=N.checkDefined(kke(M.name,M.data,i,o)),U=b.get(t.path,M.data.exportMapKey),X=U&&I.tryResolve(U,!tu(sm(W.moduleSymbol.name)));if(X==="skipped")return M;if(!X||X==="failed"){(C=o.log)==null||C.call(o,`Unexpected failure resolving auto import for '${M.name}' from '${M.source}'`);return}const ee={...W,kind:32,moduleSpecifier:X.moduleSpecifier};return M.data=Cke(ee),M.source=c_e(ee),M.sourceDisplay=[df(ee.moduleSpecifier)],M});return I.skippedAny()||(p.isIncomplete=void 0),R});return p.entries=A,p.flags=(p.flags||0)|4,p.optionalReplacementSpan=xke(v),p}function s_e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function Tke(e,t,r,i,o,s){const l=go(e,t);if(!c2(l)&&!r_(l))return[];const u=r_(l)?l:l.parent;if(!r_(u))return[];const p=u.parent;if(!ta(p))return[];const v=pd(e),f=o.includeCompletionsWithSnippetText||void 0,b=Ca(u.tags,A=>i_(A)&&A.getEnd()<=t);return Vi(p.parameters,A=>{if(!r2(A).length){if(Ue(A.name)){const I={tabstop:1},R=A.name.text;let M=m4(R,A.initializer,A.dotDotDotToken,v,!1,!1,r,i,o),C=f?m4(R,A.initializer,A.dotDotDotToken,v,!1,!0,r,i,o,I):void 0;return s&&(M=M.slice(1),C&&(C=C.slice(1))),{name:M,kind:"parameter",sortText:Gu.LocationPriority,insertText:f?C:void 0,isSnippet:f}}else if(A.parent.parameters.indexOf(A)===b){const I=`param${b}`,R=Ake(I,A.name,A.initializer,A.dotDotDotToken,v,!1,r,i,o),M=f?Ake(I,A.name,A.initializer,A.dotDotDotToken,v,!0,r,i,o):void 0;let C=R.join(Uv(i)+"* "),W=M==null?void 0:M.join(Uv(i)+"* ");return s&&(C=C.slice(1),W&&(W=W.slice(1))),{name:C,kind:"parameter",sortText:Gu.LocationPriority,insertText:f?W:void 0,isSnippet:f}}}})}function Ake(e,t,r,i,o,s,l,u,p){if(!o)return[m4(e,r,i,o,!1,s,l,u,p,{tabstop:1})];return v(e,t,r,i,{tabstop:1});function v(b,A,I,R,M){if(pm(A)&&!R){const W={tabstop:M.tabstop},U=m4(b,I,R,o,!0,s,l,u,p,W);let X=[];for(const ee of A.elements){const V=f(b,ee,W);if(V)X.push(...V);else{X=void 0;break}}if(X)return M.tabstop=W.tabstop,[U,...X]}return[m4(b,I,R,o,!1,s,l,u,p,M)]}function f(b,A,I){if(!A.propertyName&&Ue(A.name)||Ue(A.name)){const R=A.propertyName?kN(A.propertyName):A.name.text;if(!R)return;const M=`${b}.${R}`;return[m4(M,A.initializer,A.dotDotDotToken,o,!1,s,l,u,p,I)]}else if(A.propertyName){const R=kN(A.propertyName);return R&&v(`${b}.${R}`,A.name,A.initializer,A.dotDotDotToken,I)}}}function m4(e,t,r,i,o,s,l,u,p,v){if(s&&N.assertIsDefined(v),t&&(e=znt(e,t)),s&&(e=eE(e)),i){let f="*";if(o)N.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),f="Object";else{if(t){const I=l.getTypeAtLocation(t.parent);if(!(I.flags&16385)){const R=t.getSourceFile(),C=uf(R,p)===0?268435456:0,W=l.typeToTypeNode(I,jn(t,ta),C);if(W){const U=s?VQ({removeComments:!0,module:u.module,target:u.target}):k0({removeComments:!0,module:u.module,target:u.target});hr(W,1),f=U.printNode(4,W,R)}}}s&&f==="*"&&(f=`\${${v.tabstop++}:${f}}`)}const b=!o&&r?"...":"",A=s?`\${${v.tabstop++}}`:"";return`@param {${b}${f}} ${e} ${A}`}else{const f=s?`\${${v.tabstop++}}`:"";return`@param ${e} ${f}`}}function znt(e,t){const r=t.getText().trim();return r.includes(`
`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function Bnt(e){return{name:ma(e),kind:"keyword",kindModifiers:"",sortText:Gu.GlobalsOrKeywords}}function Gnt(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function Ike(e,t,r){return{kind:4,keywordCompletions:wke(e,t),isNewIdentifierLocation:r}}function Vnt(e){switch(e){case 156:return 8;default:N.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function xke(e){return(e==null?void 0:e.kind)===80?Nd(e):void 0}function jnt(e,t,r,i,o,s,l,u,p,v){const{symbols:f,contextToken:b,completionKind:A,isInSnippetScope:I,isNewIdentifierLocation:R,location:M,propertyAccessToConvert:C,keywordFilters:W,symbolToOriginInfoMap:U,recommendedCompletion:X,isJsxInitializer:ee,isTypeOnlyLocation:V,isJsxIdentifierExpected:se,isRightOfOpenTag:G,isRightOfDotOrQuestionDot:re,importStatementCompletion:_e,insideJsDocTagTypeExpression:ye,symbolToSortTextMap:Q,hasUnresolvedAutoImports:Y}=s;let oe=s.literals;const he=r.getTypeChecker();if(Lk(e.scriptKind)===1){const qe=Hnt(M,e);if(qe)return qe}const Ie=jn(b,tR);if(Ie&&(ese(b)||U1(b,Ie.expression))){const qe=KF(he,Ie.parent.clauses);oe=oe.filter(Se=>!qe.hasValue(Se)),f.forEach((Se,Le)=>{if(Se.valueDeclaration&&dE(Se.valueDeclaration)){const Ne=he.getConstantValue(Se.valueDeclaration);Ne!==void 0&&qe.hasValue(Ne)&&(U[Le]={kind:256})}})}const de=bG(),ie=Rke(e,i);if(ie&&!R&&(!f||f.length===0)&&W===0)return;const ge=u_e(f,de,void 0,b,M,p,e,t,r,ps(i),o,A,l,i,u,V,C,se,ee,_e,X,U,Q,se,G,v);if(W!==0)for(const qe of wke(W,!ye&&pd(e)))(V&&vP(M1(qe.name))||!V&&xrt(qe.name)||!ge.has(qe.name))&&(ge.add(qe.name),Ay(de,qe,G9,!0));for(const qe of frt(b,p))ge.has(qe.name)||(ge.add(qe.name),Ay(de,qe,G9,!0));for(const qe of oe){const Se=Jnt(e,l,qe);ge.add(Se.name),Ay(de,Se,G9,!0)}ie||qnt(e,M.pos,ge,ps(i),de);let Ce;if(l.includeCompletionsWithInsertText&&b&&!G&&!re&&(Ce=jn(b,kC))){const qe=Dke(Ce,e,l,i,t,r,u);qe&&de.push(qe.entry)}return{flags:s.flags,isGlobalCompletion:I,isIncomplete:l.allowIncompleteCompletions&&Y?!0:void 0,isMemberCompletion:Unt(A),isNewIdentifierLocation:R,optionalReplacementSpan:xke(M),entries:de}}function Rke(e,t){return!pd(e)||!!Fk(e,t)}function Dke(e,t,r,i,o,s,l){const u=e.clauses,p=s.getTypeChecker(),v=p.getTypeAtLocation(e.parent.expression);if(v&&v.isUnion()&&Bn(v.types,f=>f.isLiteral())){const f=KF(p,u),b=ps(i),A=uf(t,r),I=Bu.createImportAdder(t,s,r,o),R=[];for(const V of v.types)if(V.flags&1024){N.assert(V.symbol,"An enum member type should have a symbol"),N.assert(V.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const se=V.symbol.valueDeclaration&&p.getConstantValue(V.symbol.valueDeclaration);if(se!==void 0){if(f.hasValue(se))continue;f.addValue(se)}const G=Bu.typeToAutoImportableTypeNode(p,I,V,e,b);if(!G)return;const re=BQ(G,b,A);if(!re)return;R.push(re)}else if(!f.hasValue(V.value))switch(typeof V.value){case"object":R.push(V.value.negative?O.createPrefixUnaryExpression(41,O.createBigIntLiteral({negative:!1,base10Value:V.value.base10Value})):O.createBigIntLiteral(V.value));break;case"number":R.push(V.value<0?O.createPrefixUnaryExpression(41,O.createNumericLiteral(-V.value)):O.createNumericLiteral(V.value));break;case"string":R.push(O.createStringLiteral(V.value,A===0));break}if(R.length===0)return;const M=Wt(R,V=>O.createCaseClause(V,[])),C=ty(o,l==null?void 0:l.options),W=VQ({removeComments:!0,module:i.module,target:i.target,newLine:GO(C)}),U=l?V=>W.printAndFormatNode(4,V,t,l):V=>W.printNode(4,V,t),X=Wt(M,(V,se)=>r.includeCompletionsWithSnippetText?`${U(V)}$${se+1}`:`${U(V)}`).join(C);return{entry:{name:`${W.printNode(4,M[0],t)} ...`,kind:"",sortText:Gu.GlobalsOrKeywords,insertText:X,hasAction:I.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:I}}}function BQ(e,t,r){switch(e.kind){case 183:const i=e.typeName;return GQ(i,t,r);case 199:const o=BQ(e.objectType,t,r),s=BQ(e.indexType,t,r);return o&&s&&O.createElementAccessExpression(o,s);case 201:const l=e.literal;switch(l.kind){case 11:return O.createStringLiteral(l.text,r===0);case 9:return O.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 196:const u=BQ(e.type,t,r);return u&&(Ue(u)?u:O.createParenthesizedExpression(u));case 186:return GQ(e.exprName,t,r);case 205:N.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function GQ(e,t,r){if(Ue(e))return e;const i=Ki(e.right.escapedText);return tH(i,t)?O.createPropertyAccessExpression(GQ(e.left,t,r),i):O.createElementAccessExpression(GQ(e.left,t,r),O.createStringLiteral(i,r===0))}function Unt(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Hnt(e,t){const r=jn(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){const i=!!Is(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),u=Nd(r.tagName),p={name:l,kind:"class",kindModifiers:void 0,sortText:Gu.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[p]}}}function qnt(e,t,r,i,o){r$(e).forEach((s,l)=>{if(s===t)return;const u=Ki(l);!r.has(u)&&tf(u,i)&&(r.add(u),Ay(o,{name:u,kind:"warning",kindModifiers:"",sortText:Gu.JavascriptIdentifiers,isFromUncheckedFile:!0},G9))})}function l_e(e,t,r){return typeof r=="object"?Q1(r)+"n":wo(r)?AP(e,t,r):JSON.stringify(r)}function Jnt(e,t,r){return{name:l_e(e,t,r),kind:"string",kindModifiers:"",sortText:Gu.LocationPriority}}function Knt(e,t,r,i,o,s,l,u,p,v,f,b,A,I,R,M,C,W,U,X,ee,V,se,G){var re,_e;let ye,Q,Y=SX(r),oe,he,Ie=c_e(b),de,ie,ge;const Ce=p.getTypeChecker(),qe=b&&wnt(b),Se=b&&Pnt(b)||f;if(b&&Cnt(b))ye=f?`this${qe?"?.":""}[${Pke(l,U,v)}]`:`this${qe?"?.":"."}${v}`;else if((Se||qe)&&I){ye=Se?f?`[${Pke(l,U,v)}]`:`[${v}]`:v,(qe||I.questionDotToken)&&(ye=`?.${ye}`);const Ne=Is(I,25,l)||Is(I,29,l);if(!Ne)return;const Oe=ho(v,I.name.text)?I.name.end:Ne.end;Y=yc(Ne.getStart(l),Oe)}if(R&&(ye===void 0&&(ye=v),ye=`{${ye}}`,typeof R!="boolean"&&(Y=Nd(R,l))),b&&knt(b)&&I){ye===void 0&&(ye=v);const Ne=Cc(I.pos,l);let Oe="";Ne&&FF(Ne.end,Ne.parent,l)&&(Oe=";"),Oe+=`(await ${I.expression.getText()})`,ye=f?`${Oe}${ye}`:`${Oe}${qe?"?.":"."}${ye}`;const be=ni(I.parent,Qy)?I.parent:I.expression;Y=yc(be.getStart(l),I.end)}if(LP(b)&&(de=[df(b.moduleSpecifier)],M&&({insertText:ye,replacementSpan:Y}=trt(v,M,b,C,l,W,U),he=U.includeCompletionsWithSnippetText?!0:void 0)),(b==null?void 0:b.kind)===64&&(ie=!0),X===0&&i&&((re=Cc(i.pos,l,i))==null?void 0:re.kind)!==28&&(Ql(i.parent.parent)||rf(i.parent.parent)||Tp(i.parent.parent)||Xv(i.parent)||((_e=jn(i.parent,Tc))==null?void 0:_e.getLastToken(l))===i||ip(i.parent)&&Rs(l,i.getEnd()).line!==Rs(l,s).line)&&(Ie="ObjectLiteralMemberWithComma/",ie=!0),U.includeCompletionsWithClassMemberSnippets&&U.includeCompletionsWithInsertText&&X===3&&Xnt(e,o,l)){let Ne;const Oe=Nke(u,p,W,U,v,e,o,s,i,ee);if(Oe)({insertText:ye,filterText:Q,isSnippet:he,importAdder:Ne}=Oe),Ne!=null&&Ne.hasFixes()&&(ie=!0,Ie="ClassMemberSnippet/");else return}if(b&&bke(b)&&({insertText:ye,isSnippet:he,labelDetails:ge}=b,U.useLabelDetailsInCompletionEntries||(v=v+ge.detail,ge=void 0),Ie="ObjectLiteralMethodSnippet/",t=Gu.SortBelow(t)),V&&!se&&U.includeCompletionsWithSnippetText&&U.jsxAttributeCompletionStyle&&U.jsxAttributeCompletionStyle!=="none"&&!(F_(o.parent)&&o.parent.initializer)){let Ne=U.jsxAttributeCompletionStyle==="braces";const Oe=Ce.getTypeOfSymbolAtLocation(e,o);U.jsxAttributeCompletionStyle==="auto"&&!(Oe.flags&528)&&!(Oe.flags&1048576&&un(Oe.types,At=>!!(At.flags&528)))&&(Oe.flags&402653316||Oe.flags&1048576&&Bn(Oe.types,At=>!!(At.flags&402686084||ede(At)))?(ye=`${eE(v)}=${AP(l,U,"$1")}`,he=!0):Ne=!0),Ne&&(ye=`${eE(v)}={$1}`,he=!0)}if(ye!==void 0&&!U.includeCompletionsWithInsertText)return;(B9(b)||LP(b))&&(oe=Cke(b),ie=!M);const Le=jn(o,Z3);if((Le==null?void 0:Le.kind)===275){const Ne=M1(v);Le&&Ne&&(Ne===135||dU(Ne))&&(ye=`${v} as ${v}_`)}return{name:v,kind:iy.getSymbolKind(Ce,e,o),kindModifiers:iy.getSymbolModifiers(Ce,e),sortText:t,source:Ie,hasAction:ie?!0:void 0,isRecommended:nrt(e,A,Ce)||void 0,insertText:ye,filterText:Q,replacementSpan:Y,sourceDisplay:de,labelDetails:ge,isSnippet:he,isPackageJsonImport:Lnt(b)||void 0,isImportStatementCompletion:!!M||void 0,data:oe,...G?{symbol:e}:void 0}}function Xnt(e,t,r){if(dr(t))return!1;const i=106500;return!!(e.flags&i)&&(di(t)||t.parent&&t.parent.parent&&nu(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&di(t.parent.parent)||t.parent&&oR(t)&&di(t.parent))}function Nke(e,t,r,i,o,s,l,u,p,v){const f=jn(l,di);if(!f)return;let b,A=o;const I=o,R=t.getTypeChecker(),M=l.getSourceFile(),C=VQ({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:GO(ty(e,v==null?void 0:v.options))}),W=Bu.createImportAdder(M,t,i,e);let U;if(i.includeCompletionsWithSnippetText){b=!0;const _e=O.createEmptyStatement();U=O.createBlock([_e],!0),CH(_e,{kind:0,order:0})}else U=O.createBlock([],!0);let X=0;const{modifiers:ee,range:V,decorators:se}=Ynt(p,M,u),G=ee&64&&f.modifierFlagsCache&64;let re=[];if(Bu.addNewNodeForMemberSymbol(s,f,M,{program:t,host:e},i,W,_e=>{let ye=0;G&&(ye|=64),nu(_e)&&R.getMemberOverrideModifierStatus(f,_e,s)===1&&(ye|=16),re.length||(X=_e.modifierFlagsCache|ye),_e=O.replaceModifiers(_e,X),re.push(_e)},U,Bu.PreserveOptionalFlags.Property,!!G),re.length){const _e=s.flags&8192;let ye=X|16|1;_e?ye|=1024:ye|=136;const Q=ee&ye;if(ee&~ye)return;if(X&4&&Q&1&&(X&=-5),Q!==0&&!(Q&1)&&(X&=-2),X|=Q,re=re.map(oe=>O.replaceModifiers(oe,X)),se!=null&&se.length){const oe=re[re.length-1];QS(oe)&&(re[re.length-1]=O.replaceDecoratorsAndModifiers(oe,se.concat(L1(oe)||[])))}const Y=131073;v?A=C.printAndFormatSnippetList(Y,O.createNodeArray(re),M,v):A=C.printSnippetList(Y,O.createNodeArray(re),M)}return{insertText:A,filterText:I,isSnippet:b,importAdder:W,eraseRange:V}}function Ynt(e,t,r){if(!e||Rs(t,r).line>Rs(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s;const l={pos:r,end:r};if(qo(e.parent)&&e.parent.modifiers&&(i|=M_(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(Au)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),s=$nt(e)){const u=XA(s);i&u||(i|=u,l.pos=Math.min(l.pos,e.pos))}return{modifiers:i,decorators:o,range:l.pos!==r?l:void 0}}function $nt(e){if(Ra(e))return e.kind;if(Ue(e)){const t=u0(e);if(t&&Wv(t))return t}}function Qnt(e,t,r,i,o,s,l,u){const p=l.includeCompletionsWithSnippetText||void 0;let v=t;const f=r.getSourceFile(),b=Znt(e,r,f,i,o,l);if(!b)return;const A=VQ({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:GO(ty(o,u==null?void 0:u.options))});u?v=A.printAndFormatSnippetList(80,O.createNodeArray([b],!0),f,u):v=A.printSnippetList(80,O.createNodeArray([b],!0),f);const I=k0({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),R=O.createMethodSignature(void 0,"",b.questionToken,b.typeParameters,b.parameters,b.type),M={detail:I.printNode(4,R,f)};return{isSnippet:p,insertText:v,labelDetails:M}}function Znt(e,t,r,i,o,s){const l=e.getDeclarations();if(!(l&&l.length))return;const u=i.getTypeChecker(),p=l[0],v=pl(Oo(p),!1),f=u.getWidenedType(u.getTypeOfSymbolAtLocation(e,t)),A=33554432|(uf(r,s)===0?268435456:0);switch(p.kind){case 171:case 172:case 173:case 174:{let I=f.flags&1048576&&f.types.length<10?u.getUnionType(f.types,2):f;if(I.flags&1048576){const U=Vn(I.types,X=>u.getSignaturesOfType(X,0).length>0);if(U.length===1)I=U[0];else return}if(u.getSignaturesOfType(I,0).length!==1)return;const M=u.typeToTypeNode(I,t,A,Bu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!M||!Ah(M))return;let C;if(s.includeCompletionsWithSnippetText){const U=O.createEmptyStatement();C=O.createBlock([U],!0),CH(U,{kind:0,order:0})}else C=O.createBlock([],!0);const W=M.parameters.map(U=>O.createParameterDeclaration(void 0,U.dotDotDotToken,U.name,void 0,void 0,U.initializer));return O.createMethodDeclaration(void 0,void 0,v,void 0,void 0,W,void 0,C)}default:return}}function VQ(e){let t;const r=yr.createWriter(Uv(e)),i=k0(e,r),o={...r,write:A=>s(A,()=>r.write(A)),nonEscapingWrite:r.write,writeLiteral:A=>s(A,()=>r.writeLiteral(A)),writeStringLiteral:A=>s(A,()=>r.writeStringLiteral(A)),writeSymbol:(A,I)=>s(A,()=>r.writeSymbol(A,I)),writeParameter:A=>s(A,()=>r.writeParameter(A)),writeComment:A=>s(A,()=>r.writeComment(A)),writeProperty:A=>s(A,()=>r.writeProperty(A))};return{printSnippetList:l,printAndFormatSnippetList:p,printNode:v,printAndFormatNode:b};function s(A,I){const R=eE(A);if(R!==A){const M=r.getTextPos();I();const C=r.getTextPos();t=Rn(t||(t=[]),{newText:R,span:{start:M,length:C-M}})}else I()}function l(A,I,R){const M=u(A,I,R);return t?yr.applyChanges(M,t):M}function u(A,I,R){return t=void 0,o.clear(),i.writeList(A,I,R,o),o.getText()}function p(A,I,R,M){const C={text:u(A,I,R),getLineAndCharacterOfPosition(ee){return Rs(this,ee)}},W=JF(M,R),U=qi(I,ee=>{const V=yr.assignPositionsToNode(ee);return Bc.formatNodeGivenIndentation(V,C,R.languageVariant,0,0,{...M,options:W})}),X=t?Dv(Ro(U,t),(ee,V)=>Y8(ee.span,V.span)):U;return yr.applyChanges(C.text,X)}function v(A,I,R){const M=f(A,I,R);return t?yr.applyChanges(M,t):M}function f(A,I,R){return t=void 0,o.clear(),i.writeNode(A,I,R,o),o.getText()}function b(A,I,R,M){const C={text:f(A,I,R),getLineAndCharacterOfPosition(V){return Rs(this,V)}},W=JF(M,R),U=yr.assignPositionsToNode(I),X=Bc.formatNodeGivenIndentation(U,C,R.languageVariant,0,0,{...M,options:W}),ee=t?Dv(Ro(X,t),(V,se)=>Y8(V.span,se.span)):X;return yr.applyChanges(C.text,ee)}}function Cke(e){const t=e.fileName?void 0:sm(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return LP(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:sm(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function ert(e,t,r){const i=e.exportName==="default",o=!!e.isPackageJsonImport;return Ske(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 trt(e,t,r,i,o,s,l){const u=t.replacementSpan,p=eE(AP(o,l,r.moduleSpecifier)),v=r.isDefaultExport?1:r.exportName==="export="?2:0,f=l.includeCompletionsWithSnippetText?"$1":"",b=Bu.getImportKind(o,v,s,!0),A=t.couldBeTypeOnlyImportSpecifier,I=t.isTopLevelTypeOnly?` ${ma(156)} `:" ",R=A?`${ma(156)} `:"",M=i?";":"";switch(b){case 3:return{replacementSpan:u,insertText:`import${I}${eE(e)}${f} = require(${p})${M}`};case 1:return{replacementSpan:u,insertText:`import${I}${eE(e)}${f} from ${p}${M}`};case 2:return{replacementSpan:u,insertText:`import${I}* as ${eE(e)} from ${p}${M}`};case 0:return{replacementSpan:u,insertText:`import${I}{ ${R}${eE(e)}${f} } from ${p}${M}`}}}function Pke(e,t,r){return/^\d+$/.test(r)?r:AP(e,t,r)}function nrt(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function c_e(e){if(B9(e))return sm(e.moduleSymbol.name);if(LP(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 u_e(e,t,r,i,o,s,l,u,p,v,f,b,A,I,R,M,C,W,U,X,ee,V,se,G,re,_e=!1){var ie;const ye=Qs(),Q=Trt(i,o),Y=FO(l),oe=p.getTypeChecker(),he=new Map;for(let ge=0;ge<e.length;ge++){const Ce=e[ge],qe=V==null?void 0:V[ge],Se=UQ(Ce,v,qe,b,!!W);if(!Se||he.get(Se.name)&&(!qe||!bke(qe))||b===1&&se&&!Ie(Ce,se)||!M&&dr(l)&&de(Ce))continue;const{name:Le,needsConvertPropertyAccess:Ne}=Se,Oe=(ie=se==null?void 0:se[Ia(Ce)])!=null?ie:Gu.LocationPriority,At=Art(Ce,oe)?Gu.Deprecated(Oe):Oe,be=Knt(Ce,At,r,i,o,s,l,u,p,Le,Ne,qe,ee,C,U,X,Y,I,A,b,R,G,re,_e);if(!be)continue;const He=(!qe||yke(qe))&&!(Ce.parent===void 0&&!St(Ce.declarations,it=>it.getSourceFile()===o.getSourceFile()));he.set(Le,He),Ay(t,be,G9,!0)}return f("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Qs()-ye)),{has:ge=>he.has(ge),add:ge=>he.set(ge,!0)};function Ie(ge,Ce){var Le;var qe;let Se=ge.flags;if(!io(o)){if(zl(o.parent))return!0;if(ni(Q,Wi)&&ge.valueDeclaration===Q)return!1;const Ne=(Le=ge.valueDeclaration)!=null?Le:(qe=ge.declarations)==null?void 0:qe[0];if(Q&&Ne&&(El(Q)&&El(Ne)||No(Q)&&No(Ne))){const At=Ne.pos,be=No(Q)?Q.parent.parameters:BS(Q.parent)?void 0:Q.parent.typeParameters;if(At>=Q.pos&&be&&At<be.end)return!1}const Oe=Tu(ge,oe);if(!!l.externalModuleIndicator&&!I.allowUmdGlobalAccess&&Ce[Ia(ge)]===Gu.GlobalsOrKeywords&&(Ce[Ia(Oe)]===Gu.AutoImportSuggestions||Ce[Ia(Oe)]===Gu.LocationPriority))return!1;if(Se|=F2(Oe),cF(o))return!!(Se&1920);if(M)return __e(ge,oe)}return!!(Se&111551)}function de(ge){var Ce;const qe=F2(Tu(ge,oe));return!(qe&111551)&&(!dr((Ce=ge.declarations)==null?void 0:Ce[0])||!!(qe&788968))}}function rrt(e){const t=irt(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function irt(e){const t=[],r=new Map;let i=e;for(;i&&!ta(i);){if(aE(i)){const o=i.label.text;r.has(o)||(r.set(o,!0),t.push({name:o,kindModifiers:"",kind:"label",sortText:Gu.LocationPriority}))}i=i.parent}return t}function Mke(e,t,r,i,o,s,l){if(o.source==="SwitchCases/")return{type:"cases"};if(o.data){const X=kke(o.name,o.data,e,s);if(X){const{contextToken:ee,previousToken:V}=jQ(i,r);return{type:"symbol",symbol:X.symbol,location:jd(r,i),previousToken:V,contextToken:ee,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:X.origin}}}const u=e.getCompilerOptions(),p=Lke(e,t,r,u,i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,s,void 0);if(!p)return{type:"none"};if(p.kind!==0)return{type:"request",request:p};const{symbols:v,literals:f,location:b,completionKind:A,symbolToOriginInfoMap:I,contextToken:R,previousToken:M,isJsxInitializer:C,isTypeOnlyLocation:W}=p,U=un(f,X=>l_e(r,l,X)===o.name);return U!==void 0?{type:"literal",literal:U}:$t(v,(X,ee)=>{const V=I[ee],se=UQ(X,ps(u),V,A,p.isJsxIdentifierExpected);return se&&se.name===o.name&&(o.source==="ClassMemberSnippet/"&&X.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&X.flags&8196||c_e(V)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:X,location:b,origin:V,contextToken:R,previousToken:M,isJsxInitializer:C,isTypeOnlyLocation:W}:void 0})||{type:"none"}}function ort(e,t,r,i,o,s,l,u,p){const v=e.getTypeChecker(),f=e.getCompilerOptions(),{name:b,source:A,data:I}=o,{previousToken:R,contextToken:M}=jQ(i,r);if(wI(r,i,R))return $Q.getStringLiteralCompletionDetails(b,r,i,R,e,s,p,u);const C=Mke(e,t,r,i,o,s,u);switch(C.type){case"request":{const{request:W}=C;switch(W.kind){case 1:return G0.getJSDocTagNameCompletionDetails(b);case 2:return G0.getJSDocTagCompletionDetails(b);case 3:return G0.getJSDocParameterNameCompletionDetails(b);case 4:return St(W.keywordCompletions,U=>U.name===b)?d_e(b,"keyword",5):void 0;default:return N.assertNever(W)}}case"symbol":{const{symbol:W,location:U,contextToken:X,origin:ee,previousToken:V}=C,{codeActions:se,sourceDisplay:G}=art(b,U,X,ee,W,e,s,f,r,i,V,l,u,I,A,p),re=a_e(ee)?ee.symbolName:W.name;return p_e(W,re,v,r,U,p,se,G)}case"literal":{const{literal:W}=C;return d_e(l_e(r,u,W),"string",typeof W=="string"?8:7)}case"cases":{const W=Dke(M.parent,r,u,e.getCompilerOptions(),s,e,void 0);if(W!=null&&W.importAdder.hasFixes()){const{entry:U,importAdder:X}=W,ee=yr.ChangeTracker.with({host:s,formatContext:l,preferences:u},X.writeFixes);return{name:U.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:ee,description:uT([m.Includes_imports_of_types_referenced_by_0,b])}]}}return{name:b,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return b_e().some(W=>W.name===b)?d_e(b,"keyword",5):void 0;default:N.assertNever(C)}}function d_e(e,t,r){return V9(e,"",t,[op(e,r)])}function p_e(e,t,r,i,o,s,l,u){const{displayParts:p,documentation:v,symbolKind:f,tags:b}=r.runWithCancellationToken(s,A=>iy.getSymbolDisplayPartsDocumentationAndSymbolKind(A,e,i,o,o,7));return V9(t,iy.getSymbolModifiers(r,e),f,p,v,b,l,u)}function V9(e,t,r,i,o,s,l,u){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:l,source:u,sourceDisplay:u}}function art(e,t,r,i,o,s,l,u,p,v,f,b,A,I,R,M){if(I!=null&&I.moduleSpecifier&&f&&Vke(r||f,p).replacementSpan)return{codeActions:void 0,sourceDisplay:[df(I.moduleSpecifier)]};if(R==="ClassMemberSnippet/"){const{importAdder:se,eraseRange:G}=Nke(l,s,u,A,e,o,t,v,r,b);if(se||G)return{sourceDisplay:void 0,codeActions:[{changes:yr.ChangeTracker.with({host:l,formatContext:b,preferences:A},_e=>{se&&se.writeFixes(_e),G&&_e.deleteRange(p,G)}),description:uT([m.Includes_imports_of_types_referenced_by_0,e])}]}}if(yke(i)){const se=Bu.getPromoteTypeOnlyCompletionAction(p,i.declaration.name,s,l,b,A);return N.assertIsDefined(se,"Expected to have a code action for promoting type-only alias"),{codeActions:[se],sourceDisplay:void 0}}if(R==="ObjectLiteralMemberWithComma/"&&r){const se=yr.ChangeTracker.with({host:l,formatContext:b,preferences:A},G=>G.insertText(p,r.end,","));if(se)return{sourceDisplay:void 0,codeActions:[{changes:se,description:uT([m.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(B9(i)||LP(i)))return{codeActions:void 0,sourceDisplay:void 0};const C=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:W}=i,U=C.getMergedSymbol(Tu(o.exportSymbol||o,C)),X=(r==null?void 0:r.kind)===30&&dd(r.parent),{moduleSpecifier:ee,codeAction:V}=Bu.getImportCompletionAction(U,W,I==null?void 0:I.exportMapKey,p,e,X,l,s,b,f&&Ue(f)?f.getStart(p):v,A,M);return N.assert(!(I!=null&&I.moduleSpecifier)||ee===I.moduleSpecifier),{sourceDisplay:[df(ee)],codeActions:[V]}}function srt(e,t,r,i,o,s,l){const u=Mke(e,t,r,i,o,s,l);return u.type==="symbol"?u.symbol:void 0}function lrt(e,t,r){return $t(t&&(t.isUnion()?t.types:[t]),i=>{const o=i&&i.symbol;return o&&o.flags&424&&!Uoe(o)?f_e(o,e,r):void 0})}function crt(e,t,r,i){const{parent:o}=e;switch(e.kind){case 80:return wF(e,i);case 64:switch(o.kind){case 260:return i.getContextualType(o.initializer);case 226:return i.getTypeAtLocation(o.left);case 291:return i.getContextualTypeForJsxAttribute(o);default:return}case 105:return i.getContextualType(o);case 84:const s=ni(o,tR);return s?HX(s,i):void 0;case 19:return wC(o)&&!pg(o.parent)&&!lE(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:const l=b4.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):OF(e.kind)&&vr(o)&&OF(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function f_e(e,t,r){const i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?$a(i):e.parent&&(urt(e.parent)?e:f_e(e.parent,t,r))}function urt(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function Lke(e,t,r,i,o,s,l,u,p,v){const f=e.getTypeChecker(),b=Rke(r,i);let A=Qs(),I=go(r,o);t("getCompletionData: Get current token: "+(Qs()-A)),A=Qs();const R=Qv(r,o,I);t("getCompletionData: Is inside comment: "+(Qs()-A));let M=!1,C=!1;if(R){if($ue(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{const je=mm(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(je,o)))return{kind:2}}}const fe=mrt(I,o);if(fe){if(fe.tagName.pos<=o&&o<=fe.tagName.end)return{kind:1};const je=on(fe);if(je&&(I=go(r,o),(!I||!Gg(I)&&(I.parent.kind!==355||I.parent.name!==I))&&(M=J(je))),!M&&i_(fe)&&(Hl(fe.name)||fe.name.pos<=o&&o<=fe.name.end))return{kind:3,tag:fe}}if(!M){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}A=Qs();const W=!M&&pd(r),U=jQ(o,r),X=U.previousToken;let ee=U.contextToken;t("getCompletionData: Get previous token: "+(Qs()-A));let V=I,se,G=!1,re=!1,_e=!1,ye=!1,Q=!1,Y=!1,oe,he=jd(r,o),Ie=0,de=!1,ie=0;if(ee){const fe=Vke(ee,r);if(fe.keywordCompletion){if(fe.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[Bnt(fe.keywordCompletion)],isNewIdentifierLocation:fe.isNewIdentifierLocation};Ie=Vnt(fe.keywordCompletion)}if(fe.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(ie|=2,oe=fe,de=fe.isNewIdentifierLocation),!fe.replacementSpan&&oo(ee))return t("Returning an empty list because completion was requested in an invalid position."),Ie?Ike(Ie,W,_a()):void 0;let je=ee.parent;if(ee.kind===25||ee.kind===29)switch(G=ee.kind===25,re=ee.kind===29,je.kind){case 211:se=je,V=se.expression;const ke=z2(se);if(Hl(ke)||(ca(V)||ta(V))&&V.end===ee.pos&&V.getChildCount(r)&&rs(V.getChildren(r)).kind!==22)return;break;case 166:V=je.left;break;case 267:V=je.name;break;case 205:V=je;break;case 236:V=je.getFirstToken(r),N.assert(V.kind===102||V.kind===105);break;default:return}else if(!oe){if(je&&je.kind===211&&(ee=je,je=je.parent),I.parent===he)switch(I.kind){case 32:(I.parent.kind===284||I.parent.kind===286)&&(he=I);break;case 44:I.parent.kind===285&&(he=I);break}switch(je.kind){case 287:ee.kind===44&&(ye=!0,he=ee);break;case 226:if(!Gke(je))break;case 285:case 284:case 286:Y=!0,ee.kind===30&&(_e=!0,he=ee);break;case 294:case 293:(X.kind===20||X.kind===80&&X.parent.kind===291)&&(Y=!0);break;case 291:if(je.initializer===X&&X.end<o){Y=!0;break}switch(X.kind){case 64:Q=!0;break;case 80:Y=!0,je!==X.parent&&!je.initializer&&Is(je,64,r)&&(Q=X)}break}}}const ge=Qs();let Ce=5,qe=!1,Se=[],Le;const Ne=[],Oe=[],At=new Map,be=Ci(),He=fh(fe=>sT(fe?u.getPackageJsonAutoImportProvider():e,u));if(G||re)Yt();else if(_e)Se=f.getJsxIntrinsicTagNamesAt(he),N.assertEachIsDefined(Se,"getJsxIntrinsicTagNames() should all be defined"),tn(),Ce=1,Ie=0;else if(ye){const fe=ee.parent.parent.openingElement.tagName,je=f.getSymbolAtLocation(fe);je&&(Se=[je]),Ce=1,Ie=0}else if(!tn())return Ie?Ike(Ie,W,de):void 0;t("getCompletionData: Semantic work: "+(Qs()-ge));const it=X&&crt(X,o,r,f),yt=!ni(X,hs)&&!Y?Vi(it&&(it.isUnion()?it.types:[it]),fe=>fe.isLiteral()&&!(fe.flags&1024)?fe.value:void 0):[],Ze=X&&it&&lrt(X,it,f);return{kind:0,symbols:Se,completionKind:Ce,isInSnippetScope:C,propertyAccessToConvert:se,isNewIdentifierLocation:de,location:he,keywordFilters:Ie,literals:yt,symbolToOriginInfoMap:Ne,recommendedCompletion:Ze,previousToken:X,contextToken:ee,isJsxInitializer:Q,insideJsDocTagTypeExpression:M,symbolToSortTextMap:Oe,isTypeOnlyLocation:be,isJsxIdentifierExpected:Y,isRightOfOpenTag:_e,isRightOfDotOrQuestionDot:G||re,importStatementCompletion:oe,hasUnresolvedAutoImports:qe,flags:ie};function It(fe){switch(fe.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!fe.constraint;default:return!1}}function on(fe){if(It(fe)){const je=fm(fe)?fe.constraint:fe.typeExpression;return je&&je.kind===316?je:void 0}if(TI(fe)||A5(fe))return fe.class}function Yt(){Ce=2;const fe=By(V),je=fe&&!V.isTypeOf||ng(V.parent)||xO(ee,r,f),ke=cF(V);if(ep(V)||fe||Br(V)){const Tt=nc(V.parent);Tt&&(de=!0);let kt=f.getSymbolAtLocation(V);if(kt&&(kt=Tu(kt,f),kt.flags&1920)){const nn=f.getExportsOfModule(kt);N.assertEachIsDefined(nn,"getExportsOfModule() should all be defined");const En=ai=>f.isValidPropertyAccess(fe?V:V.parent,ai.name),or=ai=>__e(ai,f),pr=Tt?ai=>{var li;return!!(ai.flags&1920)&&!((li=ai.declarations)!=null&&li.every(Qn=>Qn.parent===V.parent))}:ke?ai=>or(ai)||En(ai):je||M?or:En;for(const ai of nn)pr(ai)&&Se.push(ai);if(!je&&!M&&kt.declarations&&kt.declarations.some(ai=>ai.kind!==312&&ai.kind!==267&&ai.kind!==266)){let ai=f.getTypeOfSymbolAtLocation(kt,V).getNonOptionalType(),li=!1;if(ai.isNullableType()){const Qn=G&&!re&&s.includeAutomaticOptionalChainCompletions!==!1;(Qn||re)&&(ai=ai.getNonNullableType(),Qn&&(li=!0))}Nn(ai,!!(V.flags&65536),li)}return}}if(!je||kS(V)){f.tryGetThisTypeAt(V,!1);let Tt=f.getTypeAtLocation(V).getNonOptionalType();if(je)Nn(Tt.getNonNullableType(),!1,!1);else{let kt=!1;if(Tt.isNullableType()){const nn=G&&!re&&s.includeAutomaticOptionalChainCompletions!==!1;(nn||re)&&(Tt=Tt.getNonNullableType(),nn&&(kt=!0))}Nn(Tt,!!(V.flags&65536),kt)}}}function Nn(fe,je,ke){de=!!fe.getStringIndexType(),re&&St(fe.getCallSignatures())&&(de=!0);const Tt=V.kind===205?V:V.parent;if(b)for(const kt of fe.getApparentProperties())f.isValidPropertyAccessForCompletions(Tt,fe,kt)&&Xn(kt,!1,ke);else Se.push(...Vn(JQ(fe,f),kt=>f.isValidPropertyAccessForCompletions(Tt,fe,kt)));if(je&&s.includeCompletionsWithInsertText){const kt=f.getPromisedTypeOfPromise(fe);if(kt)for(const nn of kt.getApparentProperties())f.isValidPropertyAccessForCompletions(Tt,kt,nn)&&Xn(nn,!0,ke)}}function Xn(fe,je,ke){var Tt;const kt=$t(fe.declarations,pr=>ni(Oo(pr),ss));if(kt){const pr=yn(kt.expression),ai=pr&&f.getSymbolAtLocation(pr),li=ai&&f_e(ai,ee,f),Qn=li&&Ia(li);if(Qn&&Pm(At,Qn)){const qr=Se.length;Se.push(li);const Ao=li.parent;if(!Ao||!NO(Ao)||f.tryGetMemberInModuleExportsAndProperties(li.name,Ao)!==li)Ne[qr]={kind:or(2)};else{const Fi=tu(sm(Ao.name))?(Tt=e3(Ao))==null?void 0:Tt.fileName:void 0,{moduleSpecifier:vi}=(Le||(Le=Bu.createImportSpecifierResolver(r,e,u,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Fi,isFromPackageJson:!1,moduleSymbol:Ao,symbol:li,targetFlags:Tu(li,f).flags}],o,T0(he))||{};if(vi){const ya={kind:or(6),moduleSymbol:Ao,isDefaultExport:!1,symbolName:li.name,exportName:li.name,fileName:Fi,moduleSpecifier:vi};Ne[qr]=ya}}}else if(s.includeCompletionsWithInsertText){if(Qn&&At.has(Qn))return;En(fe),nn(fe),Se.push(fe)}}else En(fe),nn(fe),Se.push(fe);function nn(pr){brt(pr)&&(Oe[Ia(pr)]=Gu.LocalDeclarationPriority)}function En(pr){s.includeCompletionsWithInsertText&&(je&&Pm(At,Ia(pr))?Ne[Se.length]={kind:or(8)}:ke&&(Ne[Se.length]={kind:16}))}function or(pr){return ke?pr|16:pr}}function yn(fe){return Ue(fe)?fe:Br(fe)?yn(fe.expression):void 0}function tn(){return(Tn()||On()||bo()||Je()||mt()||pt()||en()||Pt()||gi()||(Ui(),1))===1}function en(){return Fe(ee)?(Ce=5,de=!0,Ie=4,1):0}function gi(){const fe=j(ee),je=fe&&f.getContextualType(fe.attributes);if(!je)return 0;const ke=fe&&f.getContextualType(fe.attributes,4);return Se=Ro(Se,me(qQ(je,ke,fe.attributes,f),fe.attributes.properties)),q(),Ce=3,de=!1,1}function bo(){return oe?(de=!0,nt(),1):0}function Ui(){Ie=dt(ee)?5:1,Ce=1,de=_a(),X!==ee&&N.assert(!!X,"Expected 'contextToken' to be defined when different from 'previousToken'.");const fe=X!==ee?X.getStart():o,je=yi(ee,fe,r)||r;C=tr(je);const ke=(be?0:111551)|788968|1920|2097152,Tt=X&&!T0(X);Se=Ro(Se,f.getSymbolsInScope(je,ke)),N.assertEachIsDefined(Se,"getSymbolsInScope() should all be defined");for(let kt=0;kt<Se.length;kt++){const nn=Se[kt];if(!f.isArgumentsSymbol(nn)&&!St(nn.declarations,En=>En.getSourceFile()===r)&&(Oe[Ia(nn)]=Gu.GlobalsOrKeywords),Tt&&!(nn.flags&111551)){const En=nn.declarations&&un(nn.declarations,NL);if(En){const or={kind:64,declaration:En};Ne[kt]=or}}}if(s.includeCompletionsWithInsertText&&je.kind!==312){const kt=f.tryGetThisTypeAt(je,!1,di(je.parent)?je:void 0);if(kt&&!yrt(kt,r,f))for(const nn of JQ(kt,f))Ne[Se.length]={kind:1},Se.push(nn),Oe[Ia(nn)]=Gu.SuggestedClassMembers}nt(),be&&(Ie=ee&&bS(ee.parent)?6:7)}function Co(){return oe?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||RX(e.getCompilerOptions())?!0:rde(e):!1}function tr(fe){switch(fe.kind){case 312:case 228:case 294:case 241:return!0;default:return $i(fe)}}function Ci(){return M||!!oe&&m0(he.parent)||!Nr(ee)&&(xO(ee,r,f)||ng(he)||Kt(ee))}function Nr(fe){return fe&&(fe.kind===114&&(fe.parent.kind===186||Z2(fe.parent))||fe.kind===131&&fe.parent.kind===182)}function Kt(fe){if(fe){const je=fe.parent.kind;switch(fe.kind){case 59:return je===172||je===171||je===169||je===260||OA(je);case 64:return je===265||je===168;case 130:return je===234;case 30:return je===183||je===216;case 96:return je===168;case 152:return je===238}}return!1}function nt(){var fe,je;if(!Co()||(N.assert(!(l!=null&&l.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;ie|=1;const Tt=X===ee&&oe?"":X&&Ue(X)?X.text.toLowerCase():"",kt=(fe=u.getModuleSpecifierCache)==null?void 0:fe.call(u),nn=VO(r,u,e,s,v),En=(je=u.getPackageJsonAutoImportProvider)==null?void 0:je.call(u),or=l?void 0:xP(r,s,u);Eke("collectAutoImports",u,Le||(Le=Bu.createImportSpecifierResolver(r,e,u,s)),e,o,s,!!oe,T0(he),ai=>{nn.search(r.path,_e,(li,Qn)=>{if(!tf(li,ps(u.getCompilationSettings()))||!l&&qA(li)||!be&&!oe&&!(Qn&111551)||be&&!(Qn&790504))return!1;const qr=li.charCodeAt(0);return _e&&(qr<65||qr>90)?!1:l?!0:Jke(li,Tt)},(li,Qn,qr,Ao)=>{if(l&&!St(li,ba=>l.source===sm(ba.moduleSymbol.name))||(li=Vn(li,pr),!li.length))return;const Fi=ai.tryResolve(li,qr)||{};if(Fi==="failed")return;let vi=li[0],ya;Fi!=="skipped"&&({exportInfo:vi=li[0],moduleSpecifier:ya}=Fi);const Xa=vi.exportKind===1,Qt=Xa&&W2(vi.symbol)||vi.symbol;Bt(Qt,{kind:ya?32:4,moduleSpecifier:ya,symbolName:Qn,exportMapKey:Ao,exportName:vi.exportKind===2?"export=":vi.symbol.name,fileName:vi.moduleFileName,isDefaultExport:Xa,moduleSymbol:vi.moduleSymbol,isFromPackageJson:vi.isFromPackageJson})}),qe=ai.skippedAny(),ie|=ai.resolvedAny()?8:0,ie|=ai.resolvedBeyondLimit()?16:0});function pr(ai){const li=ni(ai.moduleSymbol.valueDeclaration,io);if(!li){const Qn=sm(ai.moduleSymbol.name);return V_.nodeCoreModules.has(Qn)&&ho(Qn,"node:")!==qF(r,e)?!1:or?or.allowsImportingAmbientModule(ai.moduleSymbol,He(ai.isFromPackageJson)):!0}return sY(ai.isFromPackageJson?En:e,r,li,s,or,He(ai.isFromPackageJson),kt)}}function Bt(fe,je){const ke=Ia(fe);Oe[ke]!==Gu.GlobalsOrKeywords&&(Ne[Se.length]=je,Oe[ke]=oe?Gu.LocationPriority:Gu.AutoImportSuggestions,Se.push(fe))}function Dn(fe,je){dr(he)||fe.forEach(ke=>{if(!si(ke))return;const Tt=UQ(ke,ps(i),void 0,0,!1);if(!Tt)return;const{name:kt}=Tt,nn=Qnt(ke,kt,je,e,u,i,s,p);if(!nn)return;const En={kind:128,...nn};ie|=32,Ne[Se.length]=En,Se.push(ke)})}function si(fe){return!!(fe.flags&8196)}function yi(fe,je,ke){let Tt=fe;for(;Tt&&!fX(Tt,je,ke);)Tt=Tt.parent;return Tt}function oo(fe){const je=Qs(),ke=Ba(fe)||Dt(fe)||Gt(fe)||Po(fe)||c5(fe);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Qs()-je)),ke}function Po(fe){if(fe.kind===12)return!0;if(fe.kind===32&&fe.parent){if(he===fe.parent&&(he.kind===286||he.kind===285))return!1;if(fe.parent.kind===286)return he.parent.kind!==286;if(fe.parent.kind===287||fe.parent.kind===285)return!!fe.parent.parent&&fe.parent.parent.kind===284}return!1}function _a(){if(ee){const fe=ee.parent.kind,je=HQ(ee);switch(je){case 28:return fe===213||fe===176||fe===214||fe===209||fe===226||fe===184||fe===210;case 21:return fe===213||fe===176||fe===214||fe===217||fe===196;case 23:return fe===209||fe===181||fe===167;case 144:case 145:case 102:return!0;case 25:return fe===267;case 19:return fe===263||fe===210;case 64:return fe===260||fe===226;case 16:return fe===228;case 17:return fe===239;case 134:return fe===174||fe===304;case 42:return fe===174}if(j9(je))return!0}return!1}function Ba(fe){return(wH(fe)||mj(fe))&&(TO(fe,o)||o===fe.end&&(!!fe.isUnterminated||wH(fe)))}function Tn(){const fe=grt(ee);if(!fe)return 0;const ke=(_I(fe.parent)?fe.parent:void 0)||fe,Tt=Bke(ke,f);if(!Tt)return 0;const kt=f.getTypeFromTypeNode(ke),nn=JQ(Tt,f),En=JQ(kt,f),or=new Set;return En.forEach(pr=>or.add(pr.escapedName)),Se=Ro(Se,Vn(nn,pr=>!or.has(pr.escapedName))),Ce=0,de=!0,1}function On(){const fe=Se.length,je=drt(ee,o,r);if(!je)return 0;Ce=0;let ke,Tt;if(je.kind===210){const kt=Ert(je,f);if(kt===void 0)return je.flags&67108864?2:0;const nn=f.getContextualType(je,4),En=(nn||kt).getStringIndexType(),or=(nn||kt).getNumberIndexType();if(de=!!En||!!or,ke=qQ(kt,nn,je,f),Tt=je.properties,ke.length===0&&!or)return 0}else{N.assert(je.kind===206),de=!1;const kt=C_(je.parent);if(!g2(kt))return N.fail("Root declaration is not variable-like.");let nn=Wy(kt)||!!Su(kt)||kt.parent.parent.kind===250;if(!nn&&kt.kind===169&&(bt(kt.parent)?nn=!!f.getContextualType(kt.parent):(kt.parent.kind===174||kt.parent.kind===178)&&(nn=bt(kt.parent.parent)&&!!f.getContextualType(kt.parent.parent))),nn){const En=f.getTypeAtLocation(je);if(!En)return 2;ke=f.getPropertiesOfType(En).filter(or=>f.isPropertyAccessible(je,!1,!1,En,or)),Tt=je.elements}}if(ke&&ke.length>0){const kt=hn(ke,N.checkDefined(Tt));Se=Ro(Se,kt),q(),je.kind===210&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Lt(fe),Dn(kt,je))}return 1}function Je(){if(!ee)return 0;const fe=ee.kind===19||ee.kind===28?ni(ee.parent,Z3):IF(ee)?ni(ee.parent.parent,Z3):void 0;if(!fe)return 0;IF(ee)||(Ie=8);const{moduleSpecifier:je}=fe.kind===275?fe.parent.parent:fe.parent;if(!je)return de=!0,fe.kind===275?2:0;const ke=f.getSymbolAtLocation(je);if(!ke)return de=!0,2;Ce=3,de=!1;const Tt=f.getExportsAndPropertiesOfModule(ke),kt=new Set(fe.elements.filter(En=>!J(En)).map(En=>(En.propertyName||En.name).escapedText)),nn=Tt.filter(En=>En.escapedName!=="default"&&!kt.has(En.escapedName));return Se=Ro(Se,nn),nn.length||(Ie=0),1}function mt(){if(ee===void 0)return 0;const fe=ee.kind===19||ee.kind===28?ni(ee.parent,yI):ee.kind===59?ni(ee.parent.parent,yI):void 0;if(fe===void 0)return 0;const je=new Set(fe.elements.map(S7));return Se=Vn(f.getTypeAtLocation(fe).getApparentProperties(),ke=>!je.has(ke.escapedName)),1}function pt(){var fe;const je=ee&&(ee.kind===19||ee.kind===28)?ni(ee.parent,Pf):void 0;if(!je)return 0;const ke=jn(je,$m(io,nc));return Ce=5,de=!1,(fe=ke.locals)==null||fe.forEach((Tt,kt)=>{var nn,En;Se.push(Tt),(En=(nn=ke.symbol)==null?void 0:nn.exports)!=null&&En.has(kt)&&(Oe[Ia(Tt)]=Gu.OptionalMember)}),1}function Pt(){const fe=hrt(r,ee,he,o);if(!fe)return 0;if(Ce=3,de=!0,Ie=ee.kind===42?0:di(fe)?2:3,!di(fe))return 1;const je=ee.kind===27?ee.parent.parent:ee.parent;let ke=nu(je)?fd(je):0;if(ee.kind===80&&!J(ee))switch(ee.getText()){case"private":ke=ke|2;break;case"static":ke=ke|256;break;case"override":ke=ke|16;break}if(Pl(je)&&(ke|=256),!(ke&2)){const Tt=di(fe)&&ke&16?NA(D_(fe)):VN(fe),kt=qi(Tt,nn=>{const En=f.getTypeAtLocation(nn);return ke&256?(En==null?void 0:En.symbol)&&f.getPropertiesOfType(f.getTypeOfSymbolAtLocation(En.symbol,fe)):En&&f.getPropertiesOfType(En)});Se=Ro(Se,L(kt,fe.members,ke)),Ve(Se,(nn,En)=>{const or=nn==null?void 0:nn.valueDeclaration;if(or&&nu(or)&&or.name&&ss(or.name)){const pr={kind:512,symbolName:f.symbolToString(nn)};Ne[En]=pr}})}return 1}function le(fe){return!!fe.parent&&No(fe.parent)&&Wl(fe.parent.parent)&&(RN(fe.kind)||Gg(fe))}function Fe(fe){if(fe){const je=fe.parent;switch(fe.kind){case 21:case 28:return Wl(fe.parent)?fe.parent:void 0;default:if(le(fe))return je.parent}}}function dt(fe){if(fe){let je;const ke=jn(fe.parent,Tt=>di(Tt)?"quit":Js(Tt)&&je===Tt.body?!0:(je=Tt,!1));return ke&&ke}}function j(fe){if(fe){const je=fe.parent;switch(fe.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(je&&(je.kind===285||je.kind===286)){if(fe.kind===32){const ke=Cc(fe.pos,r,void 0);if(!je.typeArguments||ke&&ke.kind===44)break}return je}else if(je.kind===291)return je.parent.parent;break;case 11:if(je&&(je.kind===291||je.kind===293))return je.parent.parent;break;case 20:if(je&&je.kind===294&&je.parent&&je.parent.kind===291)return je.parent.parent.parent;if(je&&je.kind===293)return je.parent.parent;break}}}function ot(fe,je){return r.getLineEndOfPosition(fe.getEnd())<je}function Dt(fe){const je=fe.parent,ke=je.kind;switch(fe.kind){case 28:return ke===260||gn(fe)||ke===243||ke===266||_t(ke)||ke===264||ke===207||ke===265||di(je)&&!!je.typeParameters&&je.typeParameters.end>=fe.pos;case 25:return ke===207;case 59:return ke===208;case 23:return ke===207;case 21:return ke===299||_t(ke);case 19:return ke===266;case 30:return ke===263||ke===231||ke===264||ke===265||OA(ke);case 126:return ke===172&&!di(je.parent);case 26:return ke===169||!!je.parent&&je.parent.kind===207;case 125:case 123:case 124:return ke===169&&!Wl(je.parent);case 130:return ke===276||ke===281||ke===274;case 139:case 153:return!KQ(fe);case 80:{if(ke===276&&fe===je.name&&fe.text==="type"||jn(fe.parent,Wi)&&ot(fe,o))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return ke!==276;case 42:return ta(fe.parent)&&!Ql(fe.parent)}if(j9(HQ(fe))&&KQ(fe)||le(fe)&&(!Ue(fe)||RN(HQ(fe))||J(fe)))return!1;switch(HQ(fe)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return qo(fe.parent)}if(jn(fe.parent,di)&&fe===X&&Ye(fe,o))return!1;const kt=b0(fe.parent,172);if(kt&&fe!==X&&di(X.parent.parent)&&o<=X.end){if(Ye(fe,X.end))return!1;if(fe.kind!==64&&(Yw(kt)||K6(kt)))return!0}return Gg(fe)&&!ip(fe.parent)&&!F_(fe.parent)&&!((di(fe.parent)||gd(fe.parent)||El(fe.parent))&&(fe!==X||o>X.end))}function Ye(fe,je){return fe.kind!==64&&(fe.kind===27||!Rf(fe.end,je,r))}function _t(fe){return OA(fe)&&fe!==176}function Gt(fe){if(fe.kind===9){const je=fe.getFullText();return je.charAt(je.length-1)==="."}return!1}function gn(fe){return fe.parent.kind===261&&!xO(fe,r,f)}function hn(fe,je){if(je.length===0)return fe;const ke=new Set,Tt=new Set;for(const nn of je){if(nn.kind!==303&&nn.kind!==304&&nn.kind!==208&&nn.kind!==174&&nn.kind!==177&&nn.kind!==178&&nn.kind!==305||J(nn))continue;let En;if(Xv(nn))pn(nn,ke);else if(os(nn)&&nn.propertyName)nn.propertyName.kind===80&&(En=nn.propertyName.escapedText);else{const or=Oo(nn);En=or&&N_(or)?HN(or):void 0}En!==void 0&&Tt.add(En)}const kt=fe.filter(nn=>!Tt.has(nn.escapedName));return We(ke,kt),kt}function pn(fe,je){const ke=fe.expression,Tt=f.getSymbolAtLocation(ke),kt=Tt&&f.getTypeOfSymbolAtLocation(Tt,ke),nn=kt&&kt.properties;nn&&nn.forEach(En=>{je.add(En.name)})}function q(){Se.forEach(fe=>{var je;if(fe.flags&16777216){const ke=Ia(fe);Oe[ke]=(je=Oe[ke])!=null?je:Gu.OptionalMember}})}function We(fe,je){if(fe.size!==0)for(const ke of je)fe.has(ke.name)&&(Oe[Ia(ke)]=Gu.MemberDeclaredBySpreadAssignment)}function Lt(fe){var je;for(let ke=fe;ke<Se.length;ke++){const Tt=Se[ke],kt=Ia(Tt),nn=Ne==null?void 0:Ne[ke],En=ps(i),or=UQ(Tt,En,nn,0,!1);if(or){const pr=(je=Oe[kt])!=null?je:Gu.LocationPriority,{name:ai}=or;Oe[kt]=Gu.ObjectLiteralProperty(pr,ai)}}}function L(fe,je,ke){const Tt=new Set;for(const kt of je){if(kt.kind!==172&&kt.kind!==174&&kt.kind!==177&&kt.kind!==178||J(kt)||bp(kt,2)||la(kt)!==!!(ke&256))continue;const nn=PS(kt.name);nn&&Tt.add(nn)}return fe.filter(kt=>!Tt.has(kt.escapedName)&&!!kt.declarations&&!(Df(kt)&2)&&!(kt.valueDeclaration&&ud(kt.valueDeclaration)))}function me(fe,je){const ke=new Set,Tt=new Set;for(const nn of je)J(nn)||(nn.kind===291?ke.add(yC(nn.name)):SI(nn)&&pn(nn,Tt));const kt=fe.filter(nn=>!ke.has(nn.escapedName));return We(Tt,kt),kt}function J(fe){return fe.getStart(r)<=o&&o<=fe.getEnd()}}function drt(e,t,r){var i;if(e){const{parent:o}=e;switch(e.kind){case 19:case 28:if(za(o)||pm(o))return o;break;case 42:return Ql(o)?ni(o.parent,za):void 0;case 134:return ni(o.parent,za);case 80:if(e.text==="async"&&ip(e.parent))return e.parent.parent;{if(za(e.parent.parent)&&(Xv(e.parent)||ip(e.parent)&&Rs(r,e.getEnd()).line!==Rs(r,t).line))return e.parent.parent;const l=jn(o,Tc);if((l==null?void 0:l.getLastToken(r))===e&&za(l.parent))return l.parent}break;default:if(((i=o.parent)==null?void 0:i.parent)&&(Ql(o.parent)||rf(o.parent)||Tp(o.parent))&&za(o.parent.parent))return o.parent.parent;if(Xv(o)&&za(o.parent))return o.parent;const s=jn(o,Tc);if(e.kind!==59&&(s==null?void 0:s.getLastToken(r))===e&&za(s.parent))return s.parent}}}function jQ(e,t){const r=Cc(e,t);return r&&e<=r.end&&(Zh(r)||Gd(r.kind))?{contextToken:Cc(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function kke(e,t,r,i){const o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),l=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(N.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let u=t.exportName==="export="?s.resolveExternalModuleSymbol(l):s.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return u?(u=t.exportName==="default"&&W2(u)||u,{symbol:u,origin:ert(t,e,l)}):void 0}function UQ(e,t,r,i,o){if(Ont(r))return;const s=Mnt(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&nk(s.charCodeAt(0))||Sk(e))return;const l={name:s,needsConvertPropertyAccess:!1};if(tf(s,t,o?1:0)||e.valueDeclaration&&ud(e.valueDeclaration))return l;switch(i){case 3:return a_e(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(s),needsConvertPropertyAccess:!1};case 2:case 1:return s.charCodeAt(0)===32?void 0:{name:s,needsConvertPropertyAccess:!0};case 5:case 4:return l;default:N.assertNever(i)}}function wke(e,t){if(!t)return Oke(e);const r=e+8+1;return U9[r]||(U9[r]=Oke(e).filter(i=>!prt(M1(i.name))))}function Oke(e){return U9[e]||(U9[e]=b_e().filter(t=>{const r=M1(t.name);switch(e){case 0:return!1;case 1:return Fke(r)||r===138||r===144||r===156||r===145||r===128||vP(r)&&r!==157;case 5:return Fke(r);case 2:return j9(r);case 3:return Wke(r);case 4:return RN(r);case 6:return vP(r)||r===87;case 7:return vP(r);case 8:return r===156;default:return N.assertNever(e)}}))}function prt(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function Wke(e){return e===148}function j9(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return _j(e)}}function Fke(e){return e===134||e===135||e===160||e===130||e===152||e===156||!M3(e)&&!j9(e)}function HQ(e){var t;return Ue(e)?(t=u0(e))!=null?t:0:e.kind}function frt(e,t){const r=[];if(e){const i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(Fc(o)||rc(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:ma(132),kind:"keyword",kindModifiers:"",sortText:Gu.GlobalsOrKeywords})}return r}function mrt(e,t){return jn(e,r=>c2(r)&&SO(r,t)?!0:r_(r)?"quit":!1)}function qQ(e,t,r,i){const o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,l=_rt(s,r,i);return s.isClass()&&zke(l)?[]:o?Vn(l,u):l;function u(p){return Pe(p.declarations)?St(p.declarations,v=>v.parent!==r):!0}}function _rt(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(Vn(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&zke(i.getApparentProperties())))):e.getApparentProperties()}function zke(e){return St(e,t=>!!(Df(t)&6))}function JQ(e,t){return e.isUnion()?N.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):N.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function hrt(e,t,r,i){var o;switch(r.kind){case 358:return ni(r.parent,$A);case 1:const s=ni(il(sa(r.parent,io).statements),$A);if(s&&!Is(s,20,e))return s;break;case 81:if(ni(r.parent,qo))return jn(r,di);break;case 80:{if(u0(r)||qo(r.parent)&&r.parent.initializer===r)return;if(KQ(r))return jn(r,$A)}}if(!!t){if(r.kind===137||Ue(t)&&qo(t.parent)&&di(r))return jn(t,di);switch(t.kind){case 64:return;case 27:case 20:return KQ(r)&&r.parent.name===r?r.parent.parent:ni(r,$A);case 19:case 28:return ni(t.parent,$A);default:if($A(r)){if(Rs(e,t.getEnd()).line!==Rs(e,i).line)return r;const s=di(t.parent.parent)?j9:Wke;return s(t.kind)||t.kind===42||Ue(t)&&s((o=u0(t))!=null?o:0)?t.parent.parent:void 0}return}}}function grt(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(Ap(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&Ap(t.parent))return t.parent;break}}function Bke(e,t){if(!e)return;if(Xi(e)&&X6(e.parent))return t.getTypeArgumentConstraint(e);const r=Bke(e.parent,t);if(!!r)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 193:case 187:case 192:return r}}function KQ(e){return e.parent&&G6(e.parent)&&$A(e.parent.parent)}function vrt(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&bde(r)&&i===r.getStart(e)+1;case"#":return!!r&&Qi(r)&&!!du(r);case"<":return!!r&&r.kind===30&&(!vr(r.parent)||Gke(r.parent));case"/":return!!r&&(hs(r)?!!dk(r):r.kind===44&&sE(r.parent));case" ":return!!r&&NC(r)&&r.parent.kind===312;default:return N.assertNever(t)}}function Gke({left:e}){return Hl(e)}function yrt(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 brt(e){return!!(e.valueDeclaration&&fd(e.valueDeclaration)&256&&di(e.valueDeclaration.parent))}function Ert(e,t){const r=t.getContextualType(e);if(r)return r;const i=Bv(e.parent);if(vr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(bt(i))return t.getContextualType(i)}function Vke(e,t){var r,i,o;let s,l=!1;const u=p();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(u||s===156),isTopLevelTypeOnly:!!((i=(r=ni(u,Fc))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ni(u,au))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&Uke(u,e),replacementSpan:Srt(u)};function p(){const v=e.parent;if(au(v)){const f=v.getLastToken(t);if(Ue(e)&&f!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,m_e(v.moduleReference)?v:void 0}if(Uke(v,e)&&Hke(v.parent))return v;if(qg(v)||eb(v)){if(!v.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),Hke(v))if(e.kind===20||e.kind===80)l=!0,s=161;else return v.parent.parent;return}if(rc(v)&&e.kind===42||Pf(v)&&e.kind===20){l=!0,s=161;return}if(NC(e)&&io(v))return s=156,e;if(NC(e)&&Fc(v))return s=156,m_e(v.moduleSpecifier)?v:void 0}}function Srt(e){var l,u;var t;if(!e)return;const r=(l=jn(e,$m(Fc,au)))!=null?l:e,i=r.getSourceFile();if(OS(r,i))return Nd(r,i);N.assert(r.kind!==102&&r.kind!==276);const o=r.kind===272?(u=jke((t=r.importClause)==null?void 0:t.namedBindings))!=null?u:r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(OS(s,i))return ob(s)}function jke(e){var t;return un((t=ni(e,qg))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&qA(r.name.text)&&((i=Cc(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function Uke(e,t){return rp(e)&&(e.isTypeOnly||t===e.name&&IF(t))}function Hke(e){if(!m_e(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(qg(e)){const t=jke(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function m_e(e){var t;return Hl(e)?!0:!((t=ni(Rh(e)?e.expression:e,hs))!=null&&t.text)}function Trt(e,t){if(!e)return;const r=jn(e,o=>G1(o)||qke(o)||na(o)?"quit":(No(o)||El(o))&&!nE(o.parent)),i=jn(t,o=>G1(o)||qke(o)||na(o)?"quit":Wi(o));return r||i}function qke(e){return e.parent&&Ks(e.parent)&&(e.parent.body===e||e.kind===39)}function __e(e,t,r=new Map){return i(e)||i(Tu(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&Pm(r,Ia(o))&&t.getExportsOfModule(o).some(s=>__e(s,t,r))}}function Art(e,t){const r=Tu(e,t).declarations;return!!Pe(r)&&Bn(r,HF)}function Jke(e,t){if(t.length===0)return!0;let r=!1,i,o=0;const s=e.length;for(let l=0;l<s;l++){const u=e.charCodeAt(l),p=t.charCodeAt(o);if((u===p||u===Irt(p))&&(r||(r=i===void 0||97<=i&&i<=122&&65<=u&&u<=90||i===95&&u!==95),r&&o++,o===t.length))return!0;i=u}return!1}function Irt(e){return 97<=e&&e<=122?e-32:e}function xrt(e){return e==="abstract"||e==="async"||e==="await"||e==="declare"||e==="module"||e==="namespace"||e==="type"}var XQ,h_e,Gu,g_e,v_e,y_e,U9,b_e,Rrt=S({"src/services/completions.ts"(){oi(),R_e(),XQ=100,h_e=1e3,Gu={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"}},g_e=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(g_e||{}),v_e=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(v_e||{}),y_e=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(y_e||{}),U9=[],b_e=Td(()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:ma(t),kind:"keyword",kindModifiers:"",sortText:Gu.GlobalsOrKeywords});return e})}});function E_e(){const e=new Map;function t(r){const i=e.get(r.name);(!i||x_e[i.kind]<x_e[r.kind])&&e.set(r.name,r)}return{add:t,has:e.has.bind(e),values:e.values.bind(e)}}function Drt(e,t,r,i,o,s,l,u,p){if(tde(e,t)){const v=Urt(e,t,i,o);return v&&Kke(v)}if(wI(e,t,r)){if(!r||!hs(r))return;const v=Yke(e,r,t,s,o,u);return Nrt(v,r,e,o,s,l,i,u,t,p)}}function Nrt(e,t,r,i,o,s,l,u,p,v){if(e===void 0)return;const f=TX(t);switch(e.kind){case 0:return Kke(e.paths);case 1:{const b=bG();return u_e(e.symbols,b,t,t,r,p,r,i,o,99,s,4,u,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,v),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:f,entries:b}}case 2:{const b=t.kind===15?96:ho(bc(t),"'")?39:34,A=e.types.map(I=>({name:ag(I.value,b),kindModifiers:"",kind:"string",sortText:Gu.LocationPriority,replacementSpan:SX(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:f,entries:A}}default:return N.assertNever(e)}}function Crt(e,t,r,i,o,s,l,u){if(!i||!hs(i))return;const p=Yke(t,i,r,o,s,u);return p&&Prt(e,i,p,t,o.getTypeChecker(),l)}function Prt(e,t,r,i,o,s){switch(r.kind){case 0:{const l=un(r.paths,u=>u.name===e);return l&&V9(e,Xke(l.extension),l.kind,[df(e)])}case 1:{const l=un(r.symbols,u=>u.name===e);return l&&p_e(l,l.name,o,i,t,s)}case 2:return un(r.types,l=>l.value===e)?V9(e,"","string",[df(e)]):void 0;default:return N.assertNever(r)}}function Kke(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:u})=>({name:o,kind:s,kindModifiers:Xke(u),sortText:Gu.LocationPriority,replacementSpan:l}))}}function Xke(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return N.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return N.assertNever(e)}}function Yke(e,t,r,i,o,s){const l=i.getTypeChecker(),u=S_e(t.parent);switch(u.kind){case 201:{const I=S_e(u.parent);return I.kind===205?{kind:0,paths:Zke(e,t,i,o,s)}:p(I)}case 303:return za(u.parent)&&u.name===t?krt(l,u.parent):v()||v(0);case 212:{const{expression:I,argumentExpression:R}=u;return t===Ss(R)?$ke(l.getTypeAtLocation(I)):void 0}case 213:case 214:case 291:if(!Krt(t)&&!Gp(u)){const I=b4.getArgumentInfoForCompletions(u.kind===291?u.parent:t,r,e,l);return I&&Lrt(I.invocation,t,I,l)||v(0)}case 272:case 278:case 283:return{kind:0,paths:Zke(e,t,i,o,s)};case 296:const f=KF(l,u.parent.clauses),b=v();return b?{kind:2,types:b.types.filter(I=>!f.hasValue(I.value)),isNewIdentifier:!1}:void 0;default:return v()||v(0)}function p(f){switch(f.kind){case 233:case 183:{const I=jn(u,R=>R.parent===f);return I?{kind:2,types:YQ(l.getTypeArgumentConstraint(I)),isNewIdentifier:!1}:void 0}case 199:const{indexType:b,objectType:A}=f;return SO(b,r)?$ke(l.getTypeFromTypeNode(A)):void 0;case 192:{const I=p(S_e(f.parent));if(!I)return;const R=Mrt(f,u);return I.kind===1?{kind:1,symbols:I.symbols.filter(M=>!Mn(R,M.name)),hasIndexSignature:I.hasIndexSignature}:{kind:2,types:I.types.filter(M=>!Mn(R,M.value)),isNewIdentifier:!1}}default:return}}function v(f=4){const b=YQ(wF(t,l,f));if(!!b.length)return{kind:2,types:b,isNewIdentifier:!1}}}function S_e(e){switch(e.kind){case 196:return hk(e);case 217:return Bv(e);default:return e}}function Mrt(e,t){return Vi(e.types,r=>r!==t&&$y(r)&&La(r.literal)?r.literal.text:void 0)}function Lrt(e,t,r,i){let o=!1;const s=new Map,l=dd(e)?N.checkDefined(jn(t.parent,F_)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,l),p=qi(u,v=>{if(!Zu(v)&&r.argumentCount>v.parameters.length)return;let f=v.getTypeParameterAtPosition(r.argumentIndex);if(dd(e)){const b=i.getTypeOfPropertyOfType(f,Vk(l.name));b&&(f=b)}return o=o||!!(f.flags&4),YQ(f,s)});return Pe(p)?{kind:2,types:p,isNewIdentifier:o}:void 0}function $ke(e){return e&&{kind:1,symbols:Vn(e.getApparentProperties(),t=>!(t.valueDeclaration&&ud(t.valueDeclaration))),hasIndexSignature:UX(e)}}function krt(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:qQ(r,i,t,e),hasIndexSignature:UX(r)}}function YQ(e,t=new Map){return e?(e=xX(e),e.isUnion()?qi(e.types,r=>YQ(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Pm(t,e.value)?[e]:et):et}function kP(e,t,r){return{name:e,kind:t,extension:r}}function T_e(e){return kP(e,"directory",void 0)}function Qke(e,t,r){const i=qrt(e,t),o=e.length===0?void 0:Eu(t,e.length);return r.map(({name:s,kind:l,extension:u})=>s.includes(cl)||s.includes(fL)?{name:s,kind:l,extension:u,span:o}:{name:s,kind:l,extension:u,span:i})}function Zke(e,t,r,i,o){return Qke(t.text,t.getStart(e)+1,wrt(e,t,r,i,o))}function wrt(e,t,r,i,o){const s=wu(t.text),l=hs(t)?r.getModeForUsageLocation(e,t):void 0,u=e.path,p=ii(u),v=r.getCompilerOptions(),f=r.getTypeChecker(),b=A_e(v,1,e,f,o,l);return Jrt(s)||!v.baseUrl&&!v.paths&&(hp(s)||vre(s))?Ort(s,p,v,i,u,b):Brt(s,p,l,v,i,b,f)}function A_e(e,t,r,i,o,s){return{extensionsToSearch:Oa(Wrt(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o==null?void 0:o.importModuleSpecifierEnding,resolutionMode:s}}function Ort(e,t,r,i,o,s){return r.rootDirs?zrt(r.rootDirs,e,t,s,r,i,o):Go(_4(e,t,s,i,!0,o).values())}function Wrt(e,t){const r=t?Vi(t.getAmbientModules(),s=>{const l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...lC(e),r],o=_d(e);return xF(o)?wk(e,i):i}function Frt(e,t,r,i){e=e.map(s=>Hc(va(hp(s)?s:$r(t,s))));const o=$t(e,s=>Am(s,r,t,i)?r.substr(s.length):void 0);return N1([...e.map(s=>$r(s,o)),r].map(s=>o0(s)),dS,Ju)}function zrt(e,t,r,i,o,s,l){const u=o.project||s.getCurrentDirectory(),p=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),v=Frt(e,u,r,p);return N1(qi(v,f=>Go(_4(t,f,i,s,!0,l).values())),(f,b)=>f.name===b.name&&f.kind===b.kind&&f.extension===b.extension)}function _4(e,t,r,i,o,s,l=E_e()){var u;e===void 0&&(e=""),e=wu(e),kv(e)||(e=ii(e)),e===""&&(e="."+cl),e=Hc(e);const p=Ny(t,e),v=kv(p)?p:ii(p);if(!o){const I=Sde(v,i);if(I){const M=tC(I,i).typesVersions;if(typeof M=="object"){const C=(u=X5(M))==null?void 0:u.paths;if(C){const W=ii(I),U=p.slice(Hc(W).length);if(twe(l,U,W,r,i,C))return l}}}}const f=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!BF(i,v))return l;const b=qX(i,v,r.extensionsToSearch,void 0,["./*"]);if(b)for(let I of b){if(I=va(I),s&&kg(I,s,t,f)===0)continue;const{name:R,extension:M}=ewe(dc(I),i.getCompilationSettings(),r,!1);l.add(kP(R,"script",M))}const A=zF(i,v);if(A)for(const I of A){const R=dc(va(I));R!=="@types"&&l.add(T_e(R))}return l}function ewe(e,t,r,i){const o=_E.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Ug(o)};if(r.referenceKind===0)return{name:e,extension:Ug(e)};let s=qw({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(u=>u!==0&&u!==1)),s[0]===3){if(Rc(e,Jk))return{name:e,extension:Ug(e)};const u=_E.tryGetJSExtensionForFile(e,t);return u?{name:S0(e,u),extension:u}:{name:e,extension:Ug(e)}}if(!i&&(s[0]===0||s[0]===1)&&Rc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Id(e),extension:Ug(e)};const l=_E.tryGetJSExtensionForFile(e,t);return l?{name:S0(e,l),extension:l}:{name:e,extension:Ug(e)}}function twe(e,t,r,i,o,s){const l=p=>s[p],u=(p,v)=>{const f=V2(p),b=V2(v),A=typeof f=="object"?f.prefix.length:p.length,I=typeof b=="object"?b.prefix.length:v.length;return al(I,A)};return nwe(e,!1,t,r,i,o,Yh(s),l,u)}function nwe(e,t,r,i,o,s,l,u,p){let v=[],f;for(const b of l){if(b===".")continue;const A=b.replace(/^\.\//,""),I=u(b);if(I){const R=V2(A);if(!R)continue;const M=typeof R=="object"&&Q8(R,r);M&&(f===void 0||p(b,f)===-1)&&(f=b,v=v.filter(W=>!W.matchedPattern)),(typeof R=="string"||f===void 0||p(b,f)!==1)&&v.push({matchedPattern:M,results:Grt(A,I,r,i,o,t&&M,s).map(({name:W,kind:U,extension:X})=>kP(W,U,X))})}}return v.forEach(b=>b.results.forEach(A=>e.add(A))),f!==void 0}function Brt(e,t,r,i,o,s,l){const{baseUrl:u,paths:p}=i,v=E_e(),f=_d(i);if(u){const A=va($r(o.getCurrentDirectory(),u));_4(e,A,s,o,!1,void 0,v)}if(p){const A=z3(i,o);twe(v,e,A,s,o,p)}const b=iwe(e);for(const A of jrt(e,b,l))v.add(kP(A,"external module name",void 0));if(swe(o,i,t,b,s,v),xF(f)){let A=!1;if(b===void 0)for(const I of Hrt(o,t)){const R=kP(I,"external module name",void 0);v.has(R.name)||(A=!0,v.add(R))}if(!A){let I=R=>{const M=$r(R,"node_modules");BF(o,M)&&_4(e,M,s,o,!1,void 0,v)};if(b&&R7(i)){const R=I;I=M=>{const C=Uc(e);C.shift();let W=C.shift();if(!W)return R(M);if(ho(W,"@")){const ee=C.shift();if(!ee)return R(M);W=$r(W,ee)}const U=$r(M,"node_modules",W),X=$r(U,"package.json");if(zO(o,X)){const V=tC(X,o).exports;if(V){if(typeof V!="object"||V===null)return;const se=Yh(V),G=C.join("/")+(C.length&&kv(e)?"/":""),re=nb(i,r);nwe(v,!0,G,U,s,o,se,_e=>NA(rwe(V[_e],re)),Yq);return}}return R(M)}}xm(t,I)}}return Go(v.values())}function rwe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Do(e)){for(const r in e)if(r==="default"||t.includes(r)||Uw(t,r)){const i=e[r];return rwe(i,t)}}}function iwe(e){return I_e(e)?kv(e)?e:ii(e):void 0}function Grt(e,t,r,i,o,s,l){if(!Dl(e,"*"))return e.includes("*")?et:v(e,"script");const u=e.slice(0,e.length-1),p=LG(r,u);if(p===void 0)return e[e.length-2]==="/"?v(u,"directory"):qi(t,b=>{var A;return(A=owe("",i,b,o,s,l))==null?void 0:A.map(({name:I,...R})=>({name:u+I,...R}))});return qi(t,f=>owe(p,i,f,o,s,l));function v(f,b){return ho(f,r)?[{name:o0(f),kind:b,extension:void 0}]:et}}function owe(e,t,r,i,o,s){if(!s.readDirectory)return;const l=V2(r);if(l===void 0||wo(l))return;const u=Ny(l.prefix),p=kv(l.prefix)?u:ii(u),v=kv(l.prefix)?"":dc(u),f=I_e(e),b=f?kv(e)?e:ii(e):void 0,A=f?$r(p,v+b):p,I=va(l.suffix),R=I&&F3("_"+I),M=R?[S0(I,R),I]:[I],C=va($r(t,A)),W=f?C:Hc(C)+v,U=I?M.map(se=>"**/*"+se):["./*"],X=Vi(qX(s,C,i.extensionsToSearch,void 0,U),se=>{const G=V(se);if(G){if(I_e(G))return T_e(Uc(awe(G))[1]);const{name:re,extension:_e}=ewe(G,s.getCompilationSettings(),i,o);return kP(re,"script",_e)}}),ee=I?et:Vi(zF(s,C),se=>se==="node_modules"?void 0:T_e(se));return[...X,...ee];function V(se){return $t(M,G=>{const re=Vrt(va(se),W,G);return re===void 0?void 0:awe(re)})}}function Vrt(e,t,r){return ho(e,t)&&Dl(e,r)?e.slice(t.length,e.length-r.length):void 0}function awe(e){return e[0]===cl?e.slice(1):e}function jrt(e,t,r){const o=r.getAmbientModules().map(s=>sm(s.name)).filter(s=>ho(s,e)&&!s.includes("*"));if(t!==void 0){const s=Hc(t);return o.map(l=>uN(l,s))}return o}function Urt(e,t,r,i){const o=go(e,t),s=$h(e.text,o.pos),l=s&&un(s,R=>t>=R.pos&&t<=R.end);if(!l)return;const u=e.text.slice(l.pos,t),p=lwe.exec(u);if(!p)return;const[,v,f,b]=p,A=ii(e.path),I=f==="path"?_4(b,A,A_e(r,0,e),i,!0,e.path):f==="types"?swe(i,r,A,iwe(b),A_e(r,1,e)):N.fail();return Qke(b,l.pos+v.length,Go(I.values()))}function swe(e,t,r,i,o,s=E_e()){const l=new Map,u=GF(()=>KC(t,e))||et;for(const v of u)p(v);for(const v of JX(r,e)){const f=$r(ii(v),"node_modules/@types");p(f)}return s;function p(v){if(!!BF(e,v))for(const f of zF(e,v)){const b=Hw(f);if(!(t.types&&!Mn(t.types,b)))if(i===void 0)l.has(b)||(s.add(kP(b,"external module name",void 0)),l.set(b,!0));else{const A=$r(v,f),I=qU(i,b,Gv(e));I!==void 0&&_4(I,A,o,e,!1,void 0,s)}}}}function Hrt(e,t){if(!e.readFile||!e.fileExists)return et;const r=[];for(const i of JX(t,e)){const o=tC(i,e);for(const s of cwe){const l=o[s];if(!!l)for(const u in l)Ls(l,u)&&!ho(u,"@types/")&&r.push(u)}}return r}function qrt(e,t){const r=Math.max(e.lastIndexOf(cl),e.lastIndexOf(fL)),i=r!==-1?r+1:0,o=e.length-i;return o===0||tf(e.substr(i,o),99)?void 0:Eu(t+i,o)}function Jrt(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 I_e(e){return e.includes(cl)}function Krt(e){return ca(e.parent)&&eu(e.parent.arguments)===e&&Ue(e.parent.expression)&&e.parent.expression.escapedText==="require"}var x_e,lwe,cwe,Xrt=S({"src/services/stringCompletions.ts"(){Nle(),oi(),R_e(),x_e={directory:0,script:1,["external module name"]:2},lwe=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,cwe=["dependencies","devDependencies","peerDependencies","optionalDependencies"]}}),$Q={};H($Q,{getStringLiteralCompletionDetails:()=>Crt,getStringLiteralCompletions:()=>Drt});var Yrt=S({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){Xrt()}}),qI={};H(qI,{CompletionKind:()=>y_e,CompletionSource:()=>g_e,SortText:()=>Gu,StringCompletions:()=>$Q,SymbolOriginInfoKind:()=>v_e,createCompletionDetails:()=>V9,createCompletionDetailsForSymbol:()=>p_e,getCompletionEntriesFromSymbols:()=>u_e,getCompletionEntryDetails:()=>ort,getCompletionEntrySymbol:()=>srt,getCompletionsAtPosition:()=>Wnt,getPropertiesForObjectExpression:()=>qQ,moduleSpecifierResolutionCacheAttemptLimit:()=>h_e,moduleSpecifierResolutionLimit:()=>XQ});var R_e=S({"src/services/_namespaces/ts.Completions.ts"(){Rrt(),Yrt()}});function D_e(e,t,r,i){const o=eit(e,r,i);return(s,l,u)=>{const{directImports:p,indirectUsers:v}=$rt(e,t,o,l,r,i);return{indirectUsers:v,...Qrt(p,s,l.exportKind,r,u)}}}function $rt(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){const u=OI(),p=OI(),v=[],f=!!i.globalExports,b=f?void 0:[];return I(i),{directImports:v,indirectUsers:A()};function A(){if(f)return e;if(i.declarations)for(const X of i.declarations)F1(X)&&t.has(X.getSourceFile().fileName)&&W(X);return b.map(Jn)}function I(X){const ee=U(X);if(ee){for(const V of ee)if(!!u(V))switch(l&&l.throwIfCancellationRequested(),V.kind){case 213:if(Gp(V)){R(V);break}if(!f){const G=V.parent;if(o===2&&G.kind===260){const{name:re}=G;if(re.kind===80){v.push(re);break}}}break;case 80:break;case 271:C(V,V.name,Qr(V,32),!1);break;case 272:v.push(V);const se=V.importClause&&V.importClause.namedBindings;se&&se.kind===274?C(V,se.name,!1,!0):!f&&VA(V)&&W(H9(V));break;case 278:V.exportClause?V.exportClause.kind===280?W(H9(V),!0):v.push(V):I(oit(V,s));break;case 205:!f&&V.isTypeOf&&!V.qualifier&&M(V)&&W(V.getSourceFile(),!0),v.push(V);break;default:N.failBadSyntaxKind(V,"Unexpected import kind.")}}}function R(X){const ee=jn(X,QQ)||X.getSourceFile();W(ee,!!M(X,!0))}function M(X,ee=!1){return jn(X,V=>ee&&QQ(V)?"quit":km(V)&&St(V.modifiers,uI))}function C(X,ee,V,se){if(o===2)se||v.push(X);else if(!f){const G=H9(X);N.assert(G.kind===312||G.kind===267),V||Zrt(G,ee,s)?W(G,!0):W(G)}}function W(X,ee=!1){if(N.assert(!f),!p(X)||(b.push(X),!ee))return;const se=s.getMergedSymbol(X.symbol);if(!se)return;N.assert(!!(se.flags&1536));const G=U(se);if(G)for(const re of G)dg(re)||W(H9(re),!0)}function U(X){return r.get(Ia(X).toString())}}function Qrt(e,t,r,i,o){const s=[],l=[];function u(A,I){s.push([A,I])}if(e)for(const A of e)p(A);return{importSearches:s,singleReferences:l};function p(A){if(A.kind===271){C_e(A)&&v(A.name);return}if(A.kind===80){v(A);return}if(A.kind===205){if(A.qualifier){const M=jp(A.qualifier);M.escapedText===Il(t)&&l.push(M)}else r===2&&l.push(A.argument.literal);return}if(A.moduleSpecifier.kind!==11)return;if(A.kind===278){A.exportClause&&Pf(A.exportClause)&&f(A.exportClause);return}const{name:I,namedBindings:R}=A.importClause||{name:void 0,namedBindings:void 0};if(R)switch(R.kind){case 274:v(R.name);break;case 275:(r===0||r===1)&&f(R);break;default:N.assertNever(R)}if(I&&(r===1||r===2)&&(!o||I.escapedText===DF(t))){const M=i.getSymbolAtLocation(I);u(I,M)}}function v(A){r===2&&(!o||b(A.escapedText))&&u(A,i.getSymbolAtLocation(A))}function f(A){if(!!A)for(const I of A.elements){const{name:R,propertyName:M}=I;if(!!b((M||R).escapedText))if(M)l.push(M),(!o||R.escapedText===t.escapedName)&&u(R,i.getSymbolAtLocation(R));else{const C=I.kind===281&&I.propertyName?i.getExportSpecifierLocalTargetSymbol(I):i.getSymbolAtLocation(R);u(R,C)}}}function b(A){return A===t.escapedName||r!==0&&A==="default"}}function Zrt(e,t,r){const i=r.getSymbolAtLocation(t);return!!dwe(e,o=>{if(!rc(o))return;const{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&Pf(s)&&s.elements.some(u=>r.getExportSpecifierLocalTargetSymbol(u)===i)})}function uwe(e,t,r){var i;const o=[],s=e.getTypeChecker();for(const l of t){const u=r.valueDeclaration;if((u==null?void 0:u.kind)===312){for(const p of l.referencedFiles)e.getSourceFileFromReference(l,p)===u&&o.push({kind:"reference",referencingFile:l,ref:p});for(const p of l.typeReferenceDirectives){const v=(i=e.getResolvedTypeReferenceDirectives().get(p.fileName,p.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;v!==void 0&&v.resolvedFileName===u.fileName&&o.push({kind:"reference",referencingFile:l,ref:p})}}pwe(l,(p,v)=>{s.getSymbolAtLocation(v)===r&&o.push(Zs(p)?{kind:"implicit",literal:v,referencingFile:l}:{kind:"import",literal:v})})}return o}function eit(e,t,r){const i=new Map;for(const o of e)r&&r.throwIfCancellationRequested(),pwe(o,(s,l)=>{const u=t.getSymbolAtLocation(l);if(u){const p=Ia(u).toString();let v=i.get(p);v||i.set(p,v=[]),v.push(s)}});return i}function dwe(e,t){return Ve(e.kind===312?e.statements:e.body.statements,r=>t(r)||QQ(r)&&Ve(r.body&&r.body.statements,t))}function pwe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t(BN(r),r);else dwe(e,r=>{switch(r.kind){case 278:case 272:{const i=r;i.moduleSpecifier&&La(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{const i=r;C_e(i)&&t(i,i.moduleReference.expression);break}}})}function fwe(e,t,r,i){return i?o():o()||s();function o(){var p;const{parent:v}=e,f=v.parent;if(t.exportSymbol)return v.kind===211?((p=t.declarations)==null?void 0:p.some(I=>I===v))&&vr(f)?A(f,!1):void 0:l(t.exportSymbol,u(v));{const I=nit(v,e);if(I&&Qr(I,32))return au(I)&&I.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(I.name)}:l(t,u(I));if(xh(v))return l(t,0);if(zl(v))return b(v);if(zl(f))return b(f);if(vr(v))return A(v,!0);if(vr(f))return A(f,!0);if(YS(v)||KH(v))return l(t,0)}function b(I){if(!I.symbol.parent)return;const R=I.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:I.symbol.parent,exportKind:R}}}function A(I,R){let M;switch(ql(I)){case 1:M=0;break;case 2:M=2;break;default:return}const C=R?r.getSymbolAtLocation(GU(sa(I.left,js))):t;return C&&l(C,M)}}function s(){if(!rit(e))return;let v=r.getImmediateAliasedSymbol(t);if(!v||(v=iit(v,r),v.escapedName==="export="&&(v=tit(v,r),v===void 0)))return;const f=DF(v);if(f===void 0||f==="default"||f===t.escapedName)return{kind:0,symbol:v}}function l(p,v){const f=N_e(p,v,r);return f&&{kind:1,symbol:p,exportInfo:f}}function u(p){return Qr(p,2048)?1:0}}function tit(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const o=N.checkDefined(e.valueDeclaration);if(zl(o))return(r=ni(o.expression,x_))==null?void 0:r.symbol;if(vr(o))return(i=ni(o.right,x_))==null?void 0:i.symbol;if(io(o))return o.symbol}function nit(e,t){const r=Wi(e)?e:os(e)?n2(e):void 0;return r?e.name!==t||uE(r.parent)?void 0:Fl(r.parent.parent)?r.parent.parent:void 0:e}function rit(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&C_e(t);case 276:return!t.propertyName;case 273:case 274:return N.assert(t.name===e),!0;case 208:return dr(e)&&V1(t.parent.parent);default:return!1}}function N_e(e,t,r){const i=e.parent;if(!i)return;const o=r.getMergedSymbol(i);return NO(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function iit(e,t){if(e.declarations)for(const r of e.declarations){if($u(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(Br(r)&&ig(r.expression)&&!Qi(r.name))return t.getSymbolAtLocation(r);if(ip(r)&&vr(r.parent.parent)&&ql(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function oit(e,t){return t.getMergedSymbol(H9(e).symbol)}function H9(e){if(e.kind===213)return e.getSourceFile();const{parent:t}=e;return t.kind===312?t:(N.assert(t.kind===268),sa(t.parent,QQ))}function QQ(e){return e.kind===267&&e.name.kind===11}function C_e(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var P_e,M_e,ait=S({"src/services/importTracker.ts"(){oi(),P_e=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(P_e||{}),M_e=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(M_e||{})}});function _g(e,t=1){return{kind:t,node:e.name||e,context:sit(e)}}function L_e(e){return e&&e.kind===void 0}function sit(e){if(Yu(e))return dT(e);if(!!e.parent){if(!Yu(e.parent)&&!zl(e.parent)){if(dr(e)){const r=vr(e.parent)?e.parent:js(e.parent)&&vr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&ql(r)!==0)return dT(r)}if(W_(e.parent)||sE(e.parent))return e.parent.parent;if(JS(e.parent)||aE(e.parent)||AN(e.parent))return e.parent;if(hs(e)){const r=dk(e);if(r){const i=jn(r,o=>Yu(o)||$i(o)||c2(o));return Yu(i)?dT(i):i}}const t=jn(e,ss);return t?dT(t.parent):void 0}if(e.parent.name===e||Wl(e.parent)||zl(e.parent)||(wA(e.parent)||os(e.parent))&&e.parent.propertyName===e||e.kind===90&&Qr(e.parent,2080))return dT(e.parent)}}function dT(e){if(!!e)switch(e.kind){case 260:return!Xc(e.parent)||e.parent.declarations.length!==1?e:Fl(e.parent.parent)?e.parent.parent:s2(e.parent.parent)?dT(e.parent.parent):e.parent;case 208:return dT(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return ou(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return Zv(e.parent)?dT(jn(e.parent,t=>vr(t)||s2(t))):e;case 255:return{start:un(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function k_e(e,t,r){if(!r)return;const i=L_e(r)?J9(r.start,t,r.end):J9(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function lit(e,t,r,i,o){const s=jd(i,o),l={use:1},u=JI.getReferencedSymbolsForNode(o,s,e,r,t,l),p=e.getTypeChecker(),v=JI.getAdjustedNode(s,l),f=cit(v)?p.getSymbolAtLocation(v):void 0;return!u||!u.length?void 0:Vi(u,({definition:b,references:A})=>b&&{definition:p.runWithCancellationToken(t,I=>pit(b,I,s)),references:A.map(I=>mit(I,f))})}function cit(e){return e.kind===90||!!GN(e)||vk(e)||e.kind===137&&Wl(e.parent)}function uit(e,t,r,i,o){const s=jd(i,o);let l;const u=mwe(e,t,r,s,o);if(s.parent.kind===211||s.parent.kind===208||s.parent.kind===212||s.kind===108)l=u&&[...u];else if(u){const v=ZM(u),f=new Map;for(;!v.isEmpty();){const b=v.dequeue();if(!Pm(f,fs(b.node)))continue;l=Rn(l,b);const A=mwe(e,t,r,b.node,b.node.pos);A&&v.enqueue(...A)}}const p=e.getTypeChecker();return Wt(l,v=>hit(v,p))}function mwe(e,t,r,i,o){if(i.kind===312)return;const s=e.getTypeChecker();if(i.parent.kind===304){const l=[];return JI.getReferenceEntriesForShorthandPropertyAssignment(i,s,u=>l.push(_g(u))),l}else if(i.kind===108||Bd(i.parent)){const l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[_g(l.valueDeclaration)]}else return _we(o,i,e,r,t,{implementations:!0,use:1})}function dit(e,t,r,i,o,s,l){return Wt(hwe(JI.getReferencedSymbolsForNode(o,i,e,r,t,s)),u=>l(u,i,e.getTypeChecker()))}function _we(e,t,r,i,o,s={},l=new Set(i.map(u=>u.fileName))){return hwe(JI.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function hwe(e){return e&&qi(e,t=>t.references)}function pit(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:f}=e,{displayParts:b,kind:A}=gwe(f,t,r),I=b.map(C=>C.text).join(""),R=f.declarations&&eu(f.declarations),M=R?Oo(R)||R:r;return{...q9(M),name:I,kind:A,displayParts:b,context:dT(R)}}case 1:{const{node:f}=e;return{...q9(f),name:f.text,kind:"label",displayParts:[op(f.text,17)]}}case 2:{const{node:f}=e,b=ma(f.kind);return{...q9(f),name:b,kind:"keyword",displayParts:[{text:b,kind:"keyword"}]}}case 3:{const{node:f}=e,b=t.getSymbolAtLocation(f),A=b&&iy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,b,f.getSourceFile(),aT(f),f).displayParts||[df("this")];return{...q9(f),name:"this",kind:"var",displayParts:A}}case 4:{const{node:f}=e;return{...q9(f),name:f.text,kind:"var",displayParts:[op(bc(f),8)]}}case 5:return{textSpan:ob(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[op(`"${e.reference.fileName}"`,8)]};default:return N.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:u,displayParts:p,context:v}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:u,name:l,textSpan:s,displayParts:p,...k_e(s,o,v)}}function q9(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:J9(ss(e)?e.expression:e,t)}}function gwe(e,t,r){const i=JI.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&eu(e.declarations)||r,{displayParts:s,symbolKind:l}=iy.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function fit(e,t,r,i,o){return{...ZQ(e),...i&&_it(e,t,r,o)}}function mit(e,t){const r=vwe(e);return t?{...r,isDefinition:e.kind!==0&&ywe(e.node,t)}:r}function vwe(e){const t=ZQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:r,node:i}=e;return{...t,isWriteAccess:O_e(i),isInString:r===2?!0:void 0}}function ZQ(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=J9(e.node,t);return{textSpan:r,fileName:t.fileName,...k_e(r,t,e.context)}}}function _it(e,t,r,i){if(e.kind!==0&&Ue(t)){const{node:o,kind:s}=e,l=o.parent,u=t.text,p=ip(l);if(p||MO(l)&&l.name===o&&l.dotDotDotToken===void 0){const v={prefixText:u+": "},f={suffixText:": "+u};if(s===3)return v;if(s===4)return f;if(p){const b=l.parent;return za(b)&&vr(b.parent)&&ig(b.parent.left)?v:f}else return v}else if(rp(l)&&!l.propertyName){const v=$u(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return Mn(v.declarations,l)?{prefixText:u+" as "}:kf}else if($u(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&Ep(e.node)&&js(e.node.parent)){const o=CX(i);return{prefixText:o,suffixText:o}}return kf}function hit(e,t){const r=ZQ(e);if(e.kind!==0){const{node:i}=e;return{...r,...git(i,t)}}else return{...r,kind:"",displayParts:[]}}function git(e,t){const r=t.getSymbolAtLocation(Yu(e)&&e.name?e.name:e);return r?gwe(r,t,e):e.kind===210?{kind:"interface",displayParts:[ed(21),df("object literal"),ed(22)]}:e.kind===231?{kind:"local class",displayParts:[ed(21),df("anonymous local class"),ed(22)]}:{kind:bE(e),displayParts:[]}}function vit(e){const t=ZQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=O_e(e.node),i={textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function J9(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return hs(e)&&o-i>2&&(N.assert(r===void 0),i+=1,o-=1),(r==null?void 0:r.kind)===269&&(o=r.getFullStart()),yc(i,o)}function w_e(e){return e.kind===0?e.textSpan:J9(e.node,e.node.getSourceFile())}function O_e(e){const t=GN(e);return!!t&&yit(t)||e.kind===90||YA(e)}function ywe(e,t){var r;if(!t)return!1;const i=GN(e)||(e.kind===90?e.parent:vk(e)||e.kind===137&&Wl(e.parent)?e.parent.parent:void 0),o=i&&vr(i)?i.left:void 0;return!!(i&&((r=t.declarations)==null?void 0:r.some(s=>s===i||s===o)))}function yit(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!Zv(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||uE(e.parent);case 173:case 171:case 355:case 348:return!1;default:return N.failBadSyntaxKind(e)}}var W_e,F_e,z_e,JI,bit=S({"src/services/findAllReferences.ts"(){oi(),B_e(),W_e=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(W_e||{}),F_e=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(F_e||{}),z_e=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(z_e||{}),(e=>{function t(Je,mt,pt,Pt,le,Fe={},dt=new Set(Pt.map(j=>j.fileName))){var j,ot;if(mt=r(mt,Fe),io(mt)){const pn=XR.getReferenceAtPosition(mt,Je,pt);if(!(pn!=null&&pn.file))return;const q=pt.getTypeChecker().getMergedSymbol(pn.file.symbol);if(q)return v(pt,q,!1,Pt,dt);const We=pt.getFileIncludeReasons();return We?[{definition:{type:5,reference:pn.reference,file:mt},references:o(pn.file,We,pt)||et}]:void 0}if(!Fe.implementations){const pn=b(mt,Pt,le);if(pn)return pn}const Dt=pt.getTypeChecker(),Ye=Dt.getSymbolAtLocation(Wl(mt)&&mt.parent.name||mt);if(!Ye){if(!Fe.implementations&&hs(mt)){if(NF(mt)){const pn=pt.getFileIncludeReasons(),q=(ot=(j=pt.getResolvedModuleFromModuleSpecifier(mt))==null?void 0:j.resolvedModule)==null?void 0:ot.resolvedFileName,We=q?pt.getSourceFile(q):void 0;if(We)return[{definition:{type:4,node:mt},references:o(We,pn,pt)||et}]}return Ci(mt,Pt,Dt,le)}return}if(Ye.escapedName==="export=")return v(pt,Ye.parent,!1,Pt,dt);const _t=l(Ye,pt,Pt,le,Fe,dt);if(_t&&!(Ye.flags&33554432))return _t;const Gt=s(mt,Ye,Dt),gn=Gt&&l(Gt,pt,Pt,le,Fe,dt),hn=A(Ye,mt,Pt,dt,Dt,le,Fe);return u(pt,_t,hn,gn)}e.getReferencedSymbolsForNode=t;function r(Je,mt){return mt.use===1?Je=_X(Je):mt.use===2&&(Je=gF(Je)),Je}e.getAdjustedNode=r;function i(Je,mt,pt,Pt=new Set(pt.map(le=>le.fileName))){var le,Fe;const dt=(le=mt.getSourceFile(Je))==null?void 0:le.symbol;if(dt)return((Fe=v(mt,dt,!1,pt,Pt)[0])==null?void 0:Fe.references)||et;const j=mt.getFileIncludeReasons(),ot=mt.getSourceFile(Je);return ot&&j&&o(ot,j,mt)||et}e.getReferencesForFileName=i;function o(Je,mt,pt){let Pt;const le=mt.get(Je.path)||et;for(const Fe of le)if(w0(Fe)){const dt=pt.getSourceFileByPath(Fe.file),j=uP(pt,Fe);SR(j)&&(Pt=Rn(Pt,{kind:0,fileName:dt.fileName,textSpan:ob(j)}))}return Pt}function s(Je,mt,pt){if(Je.parent&&fw(Je.parent)){const Pt=pt.getAliasedSymbol(mt),le=pt.getMergedSymbol(Pt);if(Pt!==le)return le}}function l(Je,mt,pt,Pt,le,Fe){const dt=Je.flags&1536&&Je.declarations&&un(Je.declarations,io);if(!dt)return;const j=Je.exports.get("export="),ot=v(mt,Je,!!j,pt,Fe);if(!j||!Fe.has(dt.fileName))return ot;const Dt=mt.getTypeChecker();return Je=Tu(j,Dt),u(mt,ot,A(Je,void 0,pt,Fe,Dt,Pt,le))}function u(Je,...mt){let pt;for(const Pt of mt)if(!(!Pt||!Pt.length)){if(!pt){pt=Pt;continue}for(const le of Pt){if(!le.definition||le.definition.type!==0){pt.push(le);continue}const Fe=le.definition.symbol,dt=Ji(pt,ot=>!!ot.definition&&ot.definition.type===0&&ot.definition.symbol===Fe);if(dt===-1){pt.push(le);continue}const j=pt[dt];pt[dt]={definition:j.definition,references:j.references.concat(le.references).sort((ot,Dt)=>{const Ye=p(Je,ot),_t=p(Je,Dt);if(Ye!==_t)return al(Ye,_t);const Gt=w_e(ot),gn=w_e(Dt);return Gt.start!==gn.start?al(Gt.start,gn.start):al(Gt.length,gn.length)})}}}return pt}function p(Je,mt){const pt=mt.kind===0?Je.getSourceFile(mt.fileName):mt.node.getSourceFile();return Je.getSourceFiles().indexOf(pt)}function v(Je,mt,pt,Pt,le){N.assert(!!mt.valueDeclaration);const Fe=Vi(uwe(Je,Pt,mt),j=>{if(j.kind==="import"){const ot=j.literal.parent;if($y(ot)){const Dt=sa(ot.parent,dg);if(pt&&!Dt.qualifier)return}return _g(j.literal)}else if(j.kind==="implicit"){const ot=j.literal.text!==qy&&VC(j.referencingFile,Dt=>Dt.transformFlags&2?pg(Dt)||JS(Dt)||lE(Dt)?Dt:void 0:"skip")||j.referencingFile.statements[0]||j.referencingFile;return _g(ot)}else return{kind:0,fileName:j.referencingFile.fileName,textSpan:ob(j.ref)}});if(mt.declarations)for(const j of mt.declarations)switch(j.kind){case 312:break;case 267:le.has(j.getSourceFile().fileName)&&Fe.push(_g(j.name));break;default:N.assert(!!(mt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const dt=mt.exports.get("export=");if(dt!=null&&dt.declarations)for(const j of dt.declarations){const ot=j.getSourceFile();if(le.has(ot.fileName)){const Dt=vr(j)&&Br(j.left)?j.left.expression:zl(j)?N.checkDefined(Is(j,95,ot)):Oo(j)||j;Fe.push(_g(Dt))}}return Fe.length?[{definition:{type:0,symbol:mt},references:Fe}]:et}function f(Je){return Je.kind===148&&VS(Je.parent)&&Je.parent.operator===148}function b(Je,mt,pt){if(vP(Je.kind))return Je.kind===116&&gI(Je.parent)||Je.kind===148&&!f(Je)?void 0:Ce(mt,Je.kind,pt,Je.kind===148?f:void 0);if(h2(Je.parent)&&Je.parent.name===Je)return ge(mt,pt);if(dI(Je)&&Pl(Je.parent))return[{definition:{type:2,node:Je},references:[_g(Je)]}];if(EO(Je)){const Pt=dF(Je.parent,Je.text);return Pt&&de(Pt.parent,Pt)}else if(aX(Je))return de(Je.parent,Je);if(CR(Je))return tr(Je,mt,pt);if(Je.kind===108)return Ui(Je)}function A(Je,mt,pt,Pt,le,Fe,dt){const j=mt&&M(Je,mt,le,!On(dt))||Je,ot=mt?yi(mt,j):7,Dt=[],Ye=new U(pt,Pt,mt?R(mt):0,le,Fe,ot,dt,Dt),_t=!On(dt)||!j.declarations?void 0:un(j.declarations,$u);if(_t)At(_t.name,j,_t,Ye.createSearch(mt,Je,void 0),Ye,!0,!0);else if(mt&&mt.kind===90&&j.escapedName==="default"&&j.parent)yt(mt,j,Ye),X(mt,j,{exportingModuleSymbol:j.parent,exportKind:1},Ye);else{const Gt=Ye.createSearch(mt,j,void 0,{allSearchSymbols:mt?Kt(j,mt,le,dt.use===2,!!dt.providePrefixAndSuffixTextForRename,!!dt.implementations):[j]});I(j,Ye,Gt)}return Dt}function I(Je,mt,pt){const Pt=_e(Je);if(Pt)Se(Pt,Pt.getSourceFile(),pt,mt,!(io(Pt)&&!Mn(mt.sourceFiles,Pt)));else for(const le of mt.sourceFiles)mt.cancellationToken.throwIfCancellationRequested(),G(le,pt,mt)}function R(Je){switch(Je.kind){case 176:case 137:return 1;case 80:if(di(Je.parent))return N.assert(Je.parent.name===Je),2;default:return 0}}function M(Je,mt,pt,Pt){const{parent:le}=mt;return $u(le)&&Pt?be(mt,Je,le,pt):$t(Je.declarations,Fe=>{if(!Fe.parent){if(Je.flags&33554432)return;N.fail(`Unexpected symbol at ${N.formatSyntaxKind(mt.kind)}: ${N.formatSymbol(Je)}`)}return Ap(Fe.parent)&&Yy(Fe.parent.parent)?pt.getPropertyOfType(pt.getTypeFromTypeNode(Fe.parent.parent),Je.name):void 0})}let C;(Je=>{Je[Je.None=0]="None",Je[Je.Constructor=1]="Constructor",Je[Je.Class=2]="Class"})(C||(C={}));function W(Je){if(!(Je.flags&33555968))return;const mt=Je.declarations&&un(Je.declarations,pt=>!io(pt)&&!nc(pt));return mt&&mt.symbol}class U{constructor(mt,pt,Pt,le,Fe,dt,j,ot){this.sourceFiles=mt,this.sourceFilesSet=pt,this.specialSearchKind=Pt,this.checker=le,this.cancellationToken=Fe,this.searchMeaning=dt,this.options=j,this.result=ot,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=OI(),this.markSeenReExportRHS=OI(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(mt){return this.sourceFilesSet.has(mt.fileName)}getImportSearches(mt,pt){return this.importTracker||(this.importTracker=D_e(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(mt,pt,this.options.use===2)}createSearch(mt,pt,Pt,le={}){const{text:Fe=sm(Il(W2(pt)||W(pt)||pt)),allSearchSymbols:dt=[pt]}=le,j=bl(Fe),ot=this.options.implementations&&mt?Tn(mt,pt,this.checker):void 0;return{symbol:pt,comingFrom:Pt,text:Fe,escapedText:j,parents:ot,allSearchSymbols:dt,includes:Dt=>Mn(dt,Dt)}}referenceAdder(mt){const pt=Ia(mt);let Pt=this.symbolIdToReferences[pt];return Pt||(Pt=this.symbolIdToReferences[pt]=[],this.result.push({definition:{type:0,symbol:mt},references:Pt})),(le,Fe)=>Pt.push(_g(le,Fe))}addStringOrCommentReference(mt,pt){this.result.push({definition:void 0,references:[{kind:0,fileName:mt,textSpan:pt}]})}markSearchedSymbols(mt,pt){const Pt=fs(mt),le=this.sourceFileToSeenSymbols[Pt]||(this.sourceFileToSeenSymbols[Pt]=new Set);let Fe=!1;for(const dt of pt)Fe=Rv(le,Ia(dt))||Fe;return Fe}}function X(Je,mt,pt,Pt){const{importSearches:le,singleReferences:Fe,indirectUsers:dt}=Pt.getImportSearches(mt,pt);if(Fe.length){const j=Pt.referenceAdder(mt);for(const ot of Fe)V(ot,Pt)&&j(ot)}for(const[j,ot]of le)qe(j.getSourceFile(),Pt.createSearch(j,ot,1),Pt);if(dt.length){let j;switch(pt.exportKind){case 0:j=Pt.createSearch(Je,mt,1);break;case 1:j=Pt.options.use===2?void 0:Pt.createSearch(Je,mt,1,{text:"default"});break}if(j)for(const ot of dt)G(ot,j,Pt)}}function ee(Je,mt,pt,Pt,le,Fe,dt,j){const ot=D_e(Je,new Set(Je.map(Gt=>Gt.fileName)),mt,pt),{importSearches:Dt,indirectUsers:Ye,singleReferences:_t}=ot(Pt,{exportKind:dt?1:0,exportingModuleSymbol:le},!1);for(const[Gt]of Dt)j(Gt);for(const Gt of _t)Ue(Gt)&&dg(Gt.parent)&&j(Gt);for(const Gt of Ye)for(const gn of he(Gt,dt?"default":Fe)){const hn=mt.getSymbolAtLocation(gn),pn=St(hn==null?void 0:hn.declarations,q=>!!ni(q,zl));Ue(gn)&&!wA(gn.parent)&&(hn===Pt||pn)&&j(gn)}}e.eachExportReference=ee;function V(Je,mt){return Le(Je,mt)?mt.options.use!==2?!0:Ue(Je)?!(wA(Je.parent)&&Je.escapedText==="default"):!1:!1}function se(Je,mt){if(!!Je.declarations)for(const pt of Je.declarations){const Pt=pt.getSourceFile();qe(Pt,mt.createSearch(pt,Je,0),mt,mt.includesSourceFile(Pt))}}function G(Je,mt,pt){r$(Je).get(mt.escapedText)!==void 0&&qe(Je,mt,pt)}function re(Je,mt){return Zv(Je.parent.parent)?mt.getPropertySymbolOfDestructuringAssignment(Je):void 0}function _e(Je){const{declarations:mt,flags:pt,parent:Pt,valueDeclaration:le}=Je;if(le&&(le.kind===218||le.kind===231))return le;if(!mt)return;if(pt&8196){const j=un(mt,ot=>bp(ot,2)||ud(ot));return j?b0(j,263):void 0}if(mt.some(MO))return;const Fe=Pt&&!(Je.flags&262144);if(Fe&&!(NO(Pt)&&!Pt.globalExports))return;let dt;for(const j of mt){const ot=aT(j);if(dt&&dt!==ot||!ot||ot.kind===312&&!Bp(ot))return;if(dt=ot,Us(dt)){let Dt;for(;Dt=iU(dt);)dt=Dt}}return Fe?dt.getSourceFile():dt}function ye(Je,mt,pt,Pt=pt){return Q(Je,mt,pt,()=>!0,Pt)||!1}e.isSymbolReferencedInFile=ye;function Q(Je,mt,pt,Pt,le=pt){const Fe=gp(Je.parent,Je.parent.parent)?$a(mt.getSymbolsOfParameterPropertyDeclaration(Je.parent,Je.text)):mt.getSymbolAtLocation(Je);if(!!Fe)for(const dt of he(pt,Fe.name,le)){if(!Ue(dt)||dt===Je||dt.escapedText!==Je.escapedText)continue;const j=mt.getSymbolAtLocation(dt);if(j===Fe||mt.getShorthandAssignmentValueSymbol(dt.parent)===Fe||$u(dt.parent)&&be(dt,j,dt.parent,mt)===Fe){const ot=Pt(dt);if(ot)return ot}}}e.eachSymbolReferenceInFile=Q;function Y(Je,mt){return Vn(he(mt,Je),le=>!!GN(le)).reduce((le,Fe)=>{const dt=Pt(Fe);return!St(le.declarationNames)||dt===le.depth?(le.declarationNames.push(Fe),le.depth=dt):dt<le.depth&&(le.declarationNames=[Fe],le.depth=dt),le},{depth:1/0,declarationNames:[]}).declarationNames;function Pt(le){let Fe=0;for(;le;)le=aT(le),Fe++;return Fe}}e.getTopMostDeclarationNamesInFile=Y;function oe(Je,mt,pt,Pt){if(!Je.name||!Ue(Je.name))return!1;const le=N.checkDefined(pt.getSymbolAtLocation(Je.name));for(const Fe of mt)for(const dt of he(Fe,le.name)){if(!Ue(dt)||dt===Je.name||dt.escapedText!==Je.name.escapedText)continue;const j=uF(dt),ot=ca(j.parent)&&j.parent.expression===j?j.parent:void 0,Dt=pt.getSymbolAtLocation(dt);if(Dt&&pt.getRootSymbols(Dt).some(Ye=>Ye===le)&&Pt(dt,ot))return!0}return!1}e.someSignatureUsage=oe;function he(Je,mt,pt=Je){return Vi(Ie(Je,mt,pt),Pt=>{const le=jd(Je,Pt);return le===Je?void 0:le})}function Ie(Je,mt,pt=Je){const Pt=[];if(!mt||!mt.length)return Pt;const le=Je.text,Fe=le.length,dt=mt.length;let j=le.indexOf(mt,pt.pos);for(;j>=0&&!(j>pt.end);){const ot=j+dt;(j===0||!s0(le.charCodeAt(j-1),99))&&(ot===Fe||!s0(le.charCodeAt(ot),99))&&Pt.push(j),j=le.indexOf(mt,j+dt+1)}return Pt}function de(Je,mt){const pt=Je.getSourceFile(),Pt=mt.text,le=Vi(he(pt,Pt,Je),Fe=>Fe===mt||EO(Fe)&&dF(Fe,Pt)===mt?_g(Fe):void 0);return[{definition:{type:1,node:mt},references:le}]}function ie(Je,mt){switch(Je.kind){case 81:if(R0(Je.parent))return!0;case 80:return Je.text.length===mt.length;case 15:case 11:{const pt=Je;return(pF(pt)||uX(Je)||Vue(Je)||ca(Je.parent)&&DS(Je.parent)&&Je.parent.arguments[1]===Je)&&pt.text.length===mt.length}case 9:return pF(Je)&&Je.text.length===mt.length;case 90:return mt.length===7;default:return!1}}function ge(Je,mt){const pt=qi(Je,Pt=>(mt.throwIfCancellationRequested(),Vi(he(Pt,"meta",Pt),le=>{const Fe=le.parent;if(h2(Fe))return _g(Fe)})));return pt.length?[{definition:{type:2,node:pt[0].node},references:pt}]:void 0}function Ce(Je,mt,pt,Pt){const le=qi(Je,Fe=>(pt.throwIfCancellationRequested(),Vi(he(Fe,ma(mt),Fe),dt=>{if(dt.kind===mt&&(!Pt||Pt(dt)))return _g(dt)})));return le.length?[{definition:{type:2,node:le[0].node},references:le}]:void 0}function qe(Je,mt,pt,Pt=!0){return pt.cancellationToken.throwIfCancellationRequested(),Se(Je,Je,mt,pt,Pt)}function Se(Je,mt,pt,Pt,le){if(!!Pt.markSearchedSymbols(mt,pt.allSearchSymbols))for(const Fe of Ie(mt,pt.text,Je))Ne(mt,Fe,pt,Pt,le)}function Le(Je,mt){return!!(oT(Je)&mt.searchMeaning)}function Ne(Je,mt,pt,Pt,le){const Fe=jd(Je,mt);if(!ie(Fe,pt.text)){!Pt.options.implementations&&(Pt.options.findInStrings&&wI(Je,mt)||Pt.options.findInComments&&nde(Je,mt))&&Pt.addStringOrCommentReference(Je.fileName,Eu(mt,pt.text.length));return}if(!Le(Fe,Pt))return;let dt=Pt.checker.getSymbolAtLocation(Fe);if(!dt)return;const j=Fe.parent;if(rp(j)&&j.propertyName===Fe)return;if($u(j)){N.assert(Fe.kind===80),At(Fe,dt,j,pt,Pt,le);return}if(IN(j)&&j.isNameFirst&&j.typeExpression&&XS(j.typeExpression.type)&&j.typeExpression.type.jsDocPropertyTags&&Pe(j.typeExpression.type.jsDocPropertyTags)){Oe(j.typeExpression.type.jsDocPropertyTags,Fe,pt,Pt);return}const ot=si(pt,dt,Fe,Pt);if(!ot){Ft(dt,pt,Pt);return}switch(Pt.specialSearchKind){case 0:le&&yt(Fe,ot,Pt);break;case 1:Ze(Fe,Je,pt,Pt);break;case 2:It(Fe,pt,Pt);break;default:N.assertNever(Pt.specialSearchKind)}dr(Fe)&&os(Fe.parent)&&V1(Fe.parent.parent.parent)&&(dt=Fe.parent.symbol,!dt)||it(Fe,dt,pt,Pt)}function Oe(Je,mt,pt,Pt){const le=Pt.referenceAdder(pt.symbol);yt(mt,pt.symbol,Pt),Ve(Je,Fe=>{xd(Fe.name)&&le(Fe.name.left)})}function At(Je,mt,pt,Pt,le,Fe,dt){N.assert(!dt||!!le.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:j,propertyName:ot,name:Dt}=pt,Ye=j.parent,_t=be(Je,mt,pt,le.checker);if(!dt&&!Pt.includes(_t))return;if(ot?Je===ot?(Ye.moduleSpecifier||Gt(),Fe&&le.options.use!==2&&le.markSeenReExportRHS(Dt)&&yt(Dt,N.checkDefined(pt.symbol),le)):le.markSeenReExportRHS(Je)&&Gt():le.options.use===2&&Dt.escapedText==="default"||Gt(),!On(le.options)||dt){const hn=Je.escapedText==="default"||pt.name.escapedText==="default"?1:0,pn=N.checkDefined(pt.symbol),q=N_e(pn,hn,le.checker);q&&X(Je,pn,q,le)}if(Pt.comingFrom!==1&&Ye.moduleSpecifier&&!ot&&!On(le.options)){const gn=le.checker.getExportSpecifierLocalTargetSymbol(pt);gn&&se(gn,le)}function Gt(){Fe&&yt(Je,_t,le)}}function be(Je,mt,pt,Pt){return He(Je,pt)&&Pt.getExportSpecifierLocalTargetSymbol(pt)||mt}function He(Je,mt){const{parent:pt,propertyName:Pt,name:le}=mt;return N.assert(Pt===Je||le===Je),Pt?Pt===Je:!pt.parent.moduleSpecifier}function it(Je,mt,pt,Pt){const le=fwe(Je,mt,Pt.checker,pt.comingFrom===1);if(!le)return;const{symbol:Fe}=le;le.kind===0?On(Pt.options)||se(Fe,Pt):X(Je,Fe,le.exportInfo,Pt)}function Ft({flags:Je,valueDeclaration:mt},pt,Pt){const le=Pt.checker.getShorthandAssignmentValueSymbol(mt),Fe=mt&&Oo(mt);!(Je&33554432)&&Fe&&pt.includes(le)&&yt(Fe,le,Pt)}function yt(Je,mt,pt){const{kind:Pt,symbol:le}="kind"in mt?mt:{kind:void 0,symbol:mt};if(pt.options.use===2&&Je.kind===90)return;const Fe=pt.referenceAdder(le);pt.options.implementations?tn(Je,Fe,pt):Fe(Je,Pt)}function Ze(Je,mt,pt,Pt){_P(Je)&&yt(Je,pt.symbol,Pt);const le=()=>Pt.referenceAdder(pt.symbol);if(di(Je.parent))N.assert(Je.kind===90||Je.parent.name===Je),on(pt.symbol,mt,le());else{const Fe=Ba(Je);Fe&&(Nn(Fe,le()),yn(Fe,Pt))}}function It(Je,mt,pt){yt(Je,mt.symbol,pt);const Pt=Je.parent;if(pt.options.use===2||!di(Pt))return;N.assert(Pt.name===Je);const le=pt.referenceAdder(mt.symbol);for(const Fe of Pt.members)!(WA(Fe)&&la(Fe))||Fe.body&&Fe.body.forEachChild(function dt(j){j.kind===110?le(j):!ta(j)&&!di(j)&&j.forEachChild(dt)})}function on(Je,mt,pt){const Pt=Yt(Je);if(Pt&&Pt.declarations)for(const le of Pt.declarations){const Fe=Is(le,137,mt);N.assert(le.kind===176&&!!Fe),pt(Fe)}Je.exports&&Je.exports.forEach(le=>{const Fe=le.valueDeclaration;if(Fe&&Fe.kind===174){const dt=Fe.body;dt&&_a(dt,110,j=>{_P(j)&&pt(j)})}})}function Yt(Je){return Je.members&&Je.members.get("__constructor")}function Nn(Je,mt){const pt=Yt(Je.symbol);if(!!(pt&&pt.declarations))for(const Pt of pt.declarations){N.assert(Pt.kind===176);const le=Pt.body;le&&_a(le,108,Fe=>{rX(Fe)&&mt(Fe)})}}function Xn(Je){return!!Yt(Je.symbol)}function yn(Je,mt){if(Xn(Je))return;const pt=Je.symbol,Pt=mt.createSearch(void 0,pt,void 0);I(pt,mt,Pt)}function tn(Je,mt,pt){if(Gg(Je)&&oo(Je.parent)){mt(Je);return}if(Je.kind!==80)return;Je.parent.kind===304&&Po(Je,pt.checker,mt);const Pt=en(Je);if(Pt){mt(Pt);return}const le=jn(Je,j=>!xd(j.parent)&&!Xi(j.parent)&&!yS(j.parent)),Fe=le.parent;if(K6(Fe)&&Fe.type===le&&pt.markSeenContainingTypeReference(Fe))if(Wy(Fe))dt(Fe.initializer);else if(ta(Fe)&&Fe.body){const j=Fe.body;j.kind===241?B1(j,ot=>{ot.expression&&dt(ot.expression)}):dt(j)}else bS(Fe)&&dt(Fe.expression);function dt(j){gi(j)&&mt(j)}}function en(Je){return Ue(Je)||Br(Je)?en(Je.parent):Kv(Je)?ni(Je.parent.parent,$m(di,gd)):void 0}function gi(Je){switch(Je.kind){case 217:return gi(Je.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function bo(Je,mt,pt,Pt){if(Je===mt)return!0;const le=Ia(Je)+","+Ia(mt),Fe=pt.get(le);if(Fe!==void 0)return Fe;pt.set(le,!1);const dt=!!Je.declarations&&Je.declarations.some(j=>VN(j).some(ot=>{const Dt=Pt.getTypeAtLocation(ot);return!!Dt&&!!Dt.symbol&&bo(Dt.symbol,mt,pt,Pt)}));return pt.set(le,dt),dt}function Ui(Je){let mt=$L(Je,!1);if(!mt)return;let pt=256;switch(mt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:pt&=Vy(mt),mt=mt.parent;break;default:return}const Pt=mt.getSourceFile(),le=Vi(he(Pt,"super",mt),Fe=>{if(Fe.kind!==108)return;const dt=$L(Fe,!1);return dt&&la(dt)===!!pt&&dt.parent.symbol===mt.symbol?_g(Fe):void 0});return[{definition:{type:0,symbol:mt.symbol},references:le}]}function Co(Je){return Je.kind===80&&Je.parent.kind===169&&Je.parent.name===Je}function tr(Je,mt,pt){let Pt=zd(Je,!1,!1),le=256;switch(Pt.kind){case 174:case 173:if(Cm(Pt)){le&=Vy(Pt),Pt=Pt.parent;break}case 172:case 171:case 176:case 177:case 178:le&=Vy(Pt),Pt=Pt.parent;break;case 312:if(mc(Pt)||Co(Je))return;case 262:case 218:break;default:return}const Fe=qi(Pt.kind===312?mt:[Pt.getSourceFile()],j=>(pt.throwIfCancellationRequested(),he(j,"this",io(Pt)?j:Pt).filter(ot=>{if(!CR(ot))return!1;const Dt=zd(ot,!1,!1);if(!x_(Dt))return!1;switch(Pt.kind){case 218:case 262:return Pt.symbol===Dt.symbol;case 174:case 173:return Cm(Pt)&&Pt.symbol===Dt.symbol;case 231:case 263:case 210:return Dt.parent&&x_(Dt.parent)&&Pt.symbol===Dt.parent.symbol&&la(Dt)===!!le;case 312:return Dt.kind===312&&!mc(Dt)&&!Co(ot)}}))).map(j=>_g(j));return[{definition:{type:3,node:$t(Fe,j=>No(j.node.parent)?j.node:void 0)||Je},references:Fe}]}function Ci(Je,mt,pt,Pt){const le=hF(Je,pt),Fe=qi(mt,dt=>(Pt.throwIfCancellationRequested(),Vi(he(dt,Je.text),j=>{if(hs(j)&&j.text===Je.text)if(le){const ot=hF(j,pt);if(le!==pt.getStringType()&&(le===ot||Nr(j,pt)))return _g(j,2)}else return lI(j)&&!OS(j,dt)?void 0:_g(j,2)})));return[{definition:{type:4,node:Je},references:Fe}]}function Nr(Je,mt){if(Sp(Je.parent))return mt.getPropertyOfType(mt.getTypeAtLocation(Je.parent.parent),Je.text)}function Kt(Je,mt,pt,Pt,le,Fe){const dt=[];return nt(Je,mt,pt,Pt,!(Pt&&le),(j,ot,Dt)=>{Dt&&Dn(Je)!==Dn(Dt)&&(Dt=void 0),dt.push(Dt||ot||j)},()=>!Fe),dt}function nt(Je,mt,pt,Pt,le,Fe,dt){const j=o4(mt);if(j){const hn=pt.getShorthandAssignmentValueSymbol(mt.parent);if(hn&&Pt)return Fe(hn,void 0,void 0,3);const pn=pt.getContextualType(j.parent),q=pn&&$t(I9(j,pt,pn,!0),me=>Gt(me,4));if(q)return q;const We=re(mt,pt),Lt=We&&Fe(We,void 0,void 0,4);if(Lt)return Lt;const L=hn&&Fe(hn,void 0,void 0,3);if(L)return L}const ot=s(mt,Je,pt);if(ot){const hn=Fe(ot,void 0,void 0,1);if(hn)return hn}const Dt=Gt(Je);if(Dt)return Dt;if(Je.valueDeclaration&&gp(Je.valueDeclaration,Je.valueDeclaration.parent)){const hn=pt.getSymbolsOfParameterPropertyDeclaration(sa(Je.valueDeclaration,No),Je.name);return N.assert(hn.length===2&&!!(hn[0].flags&1)&&!!(hn[1].flags&4)),Gt(Je.flags&1?hn[1]:hn[0])}const Ye=gl(Je,281);if(!Pt||Ye&&!Ye.propertyName){const hn=Ye&&pt.getExportSpecifierLocalTargetSymbol(Ye);if(hn){const pn=Fe(hn,void 0,void 0,1);if(pn)return pn}}if(!Pt){let hn;return le?hn=MO(mt.parent)?CF(pt,mt.parent):void 0:hn=gn(Je,pt),hn&&Gt(hn,4)}if(N.assert(Pt),le){const hn=gn(Je,pt);return hn&&Gt(hn,4)}function Gt(hn,pn){return $t(pt.getRootSymbols(hn),q=>Fe(hn,q,void 0,pn)||(q.parent&&q.parent.flags&96&&dt(q)?Bt(q.parent,q.name,pt,We=>Fe(hn,q,We,pn)):void 0))}function gn(hn,pn){const q=gl(hn,208);if(q&&MO(q))return CF(pn,q)}}function Bt(Je,mt,pt,Pt){const le=new Map;return Fe(Je);function Fe(dt){if(!(!(dt.flags&96)||!Pm(le,Ia(dt))))return $t(dt.declarations,j=>$t(VN(j),ot=>{const Dt=pt.getTypeAtLocation(ot),Ye=Dt&&Dt.symbol&&pt.getPropertyOfType(Dt,mt);return Dt&&Ye&&($t(pt.getRootSymbols(Ye),Pt)||Fe(Dt.symbol))}))}}function Dn(Je){return Je.valueDeclaration?!!(fd(Je.valueDeclaration)&256):!1}function si(Je,mt,pt,Pt){const{checker:le}=Pt;return nt(mt,pt,le,!1,Pt.options.use!==2||!!Pt.options.providePrefixAndSuffixTextForRename,(Fe,dt,j,ot)=>(j&&Dn(mt)!==Dn(j)&&(j=void 0),Je.includes(j||dt||Fe)?{symbol:dt&&!(Cl(Fe)&6)?dt:Fe,kind:ot}:void 0),Fe=>!(Je.parents&&!Je.parents.some(dt=>bo(Fe.parent,dt,Pt.inheritsFromCache,le))))}function yi(Je,mt){let pt=oT(Je);const{declarations:Pt}=mt;if(Pt){let le;do{le=pt;for(const Fe of Pt){const dt=vO(Fe);dt&pt&&(pt|=dt)}}while(pt!==le)}return pt}e.getIntersectingMeaningFromDeclarations=yi;function oo(Je){return Je.flags&33554432?!(gd(Je)||Lm(Je)):g2(Je)?Wy(Je):Js(Je)?!!Je.body:di(Je)||OL(Je)}function Po(Je,mt,pt){const Pt=mt.getSymbolAtLocation(Je),le=mt.getShorthandAssignmentValueSymbol(Pt.valueDeclaration);if(le)for(const Fe of le.getDeclarations())vO(Fe)&1&&pt(Fe)}e.getReferenceEntriesForShorthandPropertyAssignment=Po;function _a(Je,mt,pt){Uo(Je,Pt=>{Pt.kind===mt&&pt(Pt),_a(Pt,mt,pt)})}function Ba(Je){return CU(uF(Je).parent)}function Tn(Je,mt,pt){const Pt=NR(Je)?Je.parent:void 0,le=Pt&&pt.getTypeAtLocation(Pt.expression),Fe=Vi(le&&(le.isUnionOrIntersection()?le.types:le.symbol===mt.parent?void 0:[le]),dt=>dt.symbol&&dt.symbol.flags&96?dt.symbol:void 0);return Fe.length===0?void 0:Fe}function On(Je){return Je.use===2&&Je.providePrefixAndSuffixTextForRename}})(JI||(JI={}))}}),Hs={};H(Hs,{Core:()=>JI,DefinitionKind:()=>W_e,EntryKind:()=>F_e,ExportKind:()=>P_e,FindReferencesUse:()=>z_e,ImportExport:()=>M_e,createImportTracker:()=>D_e,findModuleReferences:()=>uwe,findReferenceOrRenameEntries:()=>dit,findReferencedSymbols:()=>lit,getContextNode:()=>dT,getExportInfo:()=>N_e,getImplementationsAtPosition:()=>uit,getImportOrExportSymbol:()=>fwe,getReferenceEntriesForNode:()=>_we,getTextSpanOfEntry:()=>w_e,isContextWithStartAndEndNode:()=>L_e,isDeclarationOfSymbol:()=>ywe,isWriteAccessForReference:()=>O_e,nodeEntry:()=>_g,toContextSpan:()=>k_e,toHighlightSpan:()=>vit,toReferenceEntry:()=>vwe,toRenameLocation:()=>fit});var B_e=S({"src/services/_namespaces/ts.FindAllReferences.ts"(){ait(),bit()}});function bwe(e,t,r,i,o){var s;const l=Swe(t,r,e),u=l&&[Mit(l.reference.fileName,l.fileName,l.unverified)]||et;if(l!=null&&l.file)return u;const p=jd(t,r);if(p===t)return;const{parent:v}=p,f=e.getTypeChecker();if(p.kind===164||Ue(p)&&S5(v)&&v.tagName===p)return Sit(f,p)||et;if(EO(p)){const C=dF(p.parent,p.text);return C?[G_e(f,C,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:const C=jn(p.parent,U=>Pl(U)?"quit":Js(U));return C?[K9(f,C)]:void 0;case 90:if(!OC(p.parent))break;case 84:const W=jn(p.parent,LC);if(W)return[Pit(W,t)];break}if(p.kind===135){const C=jn(p,U=>Js(U));return C&&St(C.modifiers,U=>U.kind===134)?[K9(f,C)]:void 0}if(p.kind===127){const C=jn(p,U=>Js(U));return C&&C.asteriskToken?[K9(f,C)]:void 0}if(dI(p)&&Pl(p.parent)){const C=p.parent.parent,{symbol:W,failedAliasResolution:U}=eZ(C,f,o),X=Vn(C.members,Pl),ee=W?f.symbolToString(W,C):"",V=p.getSourceFile();return Wt(X,se=>{let{pos:G}=L_(se);return G=Wa(V.text,G),G_e(f,se,"constructor","static {}",ee,!1,U,{start:G,length:6})})}let{symbol:b,failedAliasResolution:A}=eZ(p,f,o),I=p;if(i&&A){const C=Ve([p,...(b==null?void 0:b.declarations)||et],U=>jn(U,Lie)),W=C&&T2(C);W&&({symbol:b,failedAliasResolution:A}=eZ(W,f,o),I=W)}if(!b&&NF(I)){const C=(s=e.getResolvedModuleFromModuleSpecifier(I))==null?void 0:s.resolvedModule;if(C)return[{name:I.text,fileName:C.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Eu(0,0),failedAliasResolution:A,isAmbient:Iu(C.resolvedFileName),unverified:I!==p}]}if(!b)return Ro(u,Dit(p,f));if(i&&Bn(b.declarations,C=>C.getSourceFile().fileName===t.fileName))return;const R=kit(f,p);if(R&&!(dd(p.parent)&&wit(R))){const C=K9(f,R,A);if(f.getRootSymbols(b).some(W=>Eit(W,R)))return[C];{const W=wP(f,b,p,A,R)||et;return p.kind===108?[C,...W]:[...W,C]}}if(p.parent.kind===304){const C=f.getShorthandAssignmentValueSymbol(b.valueDeclaration),W=C!=null&&C.declarations?C.declarations.map(U=>g4(U,f,C,p,!1,A)):et;return Ro(W,Ewe(f,p))}if(pc(p)&&os(v)&&pm(v.parent)&&p===(v.propertyName||v.name)){const C=PO(p),W=f.getTypeAtLocation(v.parent);return C===void 0?et:qi(W.isUnion()?W.types:[W],U=>{const X=U.getProperty(C);return X&&wP(f,X,p)})}const M=Ewe(f,p);return Ro(u,M.length?M:wP(f,b,p,A))}function Eit(e,t){var r;return e===t.symbol||e===t.symbol.parent||Wc(t.parent)||!O1(t.parent)&&e===((r=ni(t.parent,x_))==null?void 0:r.symbol)}function Ewe(e,t){const r=o4(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return qi(I9(r,e,i,!1),o=>wP(e,o,t))}return et}function Sit(e,t){const r=jn(t,nu);if(!(r&&r.name))return;const i=jn(r,di);if(!i)return;const o=D_(i);if(!o)return;const s=Ss(o.expression),l=iu(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;const u=Ki(f2(r.name)),p=Ec(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),u):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),u);if(!!p)return wP(e,p,t)}function Swe(e,t,r){var i,o;const s=OP(e.referencedFiles,t);if(s){const p=r.getSourceFileFromReference(e,s);return p&&{reference:s,fileName:p.fileName,file:p,unverified:!1}}const l=OP(e.typeReferenceDirectives,t);if(l){const p=(i=r.getResolvedTypeReferenceDirectives().get(l.fileName,l.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,v=p&&r.getSourceFile(p.resolvedFileName);return v&&{reference:l,fileName:v.fileName,file:v,unverified:!1}}const u=OP(e.libReferenceDirectives,t);if(u){const p=r.getLibFileFromReference(u);return p&&{reference:u,fileName:p.fileName,file:p,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const p=PR(e,t);let v;if(NF(p)&&tu(p.text)&&(v=r.getResolvedModuleFromModuleSpecifier(p))){const f=(o=v.resolvedModule)==null?void 0:o.resolvedFileName,b=f||Ny(ii(e.fileName),p.text);return{file:r.getSourceFile(b),fileName:b,reference:{pos:p.getStart(),end:p.getEnd(),fileName:p.text},unverified:!f}}}}function Tit(e,t){const r=t.symbol.name;if(!j_e.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function Twe(e,t){if(!t.aliasSymbol)return!1;const r=t.aliasSymbol.name;if(!j_e.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function Ait(e,t,r,i){var o,s;if(!!(zr(t)&4)&&Tit(e,t))return h4(e.getTypeArguments(t)[0],e,r,i);if(Twe(e,t)&&t.aliasTypeArguments)return h4(t.aliasTypeArguments[0],e,r,i);if(zr(t)&32&&t.target&&Twe(e,t.target)){const l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&Lm(l)&&Cf(l.type)&&l.type.typeArguments)return h4(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function Iit(e,t,r){const i=jd(t,r);if(i===t)return;if(h2(i.parent)&&i.parent.name===i)return h4(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:o,failedAliasResolution:s}=eZ(i,e,!1);if(!o)return;const l=e.getTypeOfSymbolAtLocation(o,i),u=xit(o,l,e),p=u&&h4(u,e,i,s),[v,f]=p&&p.length!==0?[u,p]:[l,h4(l,e,i,s)];return f.length?[...Ait(e,v,i,s),...f]:!(o.flags&111551)&&o.flags&788968?wP(e,Tu(o,e),i,s):void 0}function h4(e,t,r,i){return qi(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&wP(t,o.symbol,r,i))}function xit(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Wi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature($a(i))}}function Rit(e,t,r){const i=bwe(e,t,r);if(!i||i.length===0)return;const o=OP(t.referencedFiles,r)||OP(t.typeReferenceDirectives,r)||OP(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:ob(o)};const s=jd(t,r),l=Eu(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function Dit(e,t){return Vi(t.getIndexInfosAtLocation(e),r=>r.declaration&&K9(t,r.declaration))}function eZ(e,t,r){const i=t.getSymbolAtLocation(e);let o=!1;if((i==null?void 0:i.declarations)&&i.flags&2097152&&!r&&Nit(e,i.declarations[0])){const s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function Nit(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function Cit(e){if(!zN(e))return!1;const t=jn(e,r=>Wc(r)?!0:zN(r)?!1:"quit");return!!t&&ql(t)===5}function wP(e,t,r,i,o){const s=Vn(t.declarations,b=>b!==o),l=Vn(s,b=>!Cit(b)),u=St(l)?l:s;return p()||v()||Wt(u,b=>g4(b,e,t,r,!1,i));function p(){if(t.flags&32&&!(t.flags&19)&&(_P(r)||r.kind===137)){const b=un(s,di)||N.fail("Expected declaration to have at least one class-like declaration");return f(b.members,!0)}}function v(){return iX(r)||dX(r)?f(s,!1):void 0}function f(b,A){if(!b)return;const I=b.filter(A?Wl:ta),R=I.filter(M=>!!M.body);return I.length?R.length!==0?R.map(M=>g4(M,e,t,r)):[g4(rs(I),e,t,r,!1,i)]:void 0}}function g4(e,t,r,i,o,s){const l=t.symbolToString(r),u=iy.getSymbolKind(t,r,i),p=r.parent?t.symbolToString(r.parent,i):"";return G_e(t,e,u,l,p,o,s)}function G_e(e,t,r,i,o,s,l,u){const p=t.getSourceFile();if(!u){const v=Oo(t)||t;u=Nd(v,p)}return{fileName:p.fileName,textSpan:u,kind:r,name:i,containerKind:void 0,containerName:o,...Hs.toContextSpan(u,p,Hs.getContextNode(t)),isLocal:!V_e(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function Pit(e,t){const r=Hs.getContextNode(e),i=Nd(L_e(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Hs.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function V_e(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Wy(t.parent)&&t.parent.initializer===t)return V_e(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(bp(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return V_e(e,t.parent);default:return!1}}function K9(e,t,r){return g4(t,e,t.symbol,t,!1,r)}function OP(e,t){return un(e,r=>EL(r,t))}function Mit(e,t,r){return{fileName:t,textSpan:yc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function Lit(e){const t=jn(e,i=>!NR(i)),r=t==null?void 0:t.parent;return r&&O1(r)&&v3(r)===t?r:void 0}function kit(e,t){const r=Lit(t),i=r&&e.getResolvedSignature(r);return ni(i&&i.declaration,o=>ta(o)&&!Ah(o))}function wit(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var j_e,Oit=S({"src/services/goToDefinition.ts"(){oi(),B_e(),j_e=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),XR={};H(XR,{createDefinitionInfo:()=>g4,findReferenceInPosition:()=>OP,getDefinitionAndBoundSpan:()=>Rit,getDefinitionAtPosition:()=>bwe,getReferenceAtPosition:()=>Swe,getTypeDefinitionAtPosition:()=>Iit});var Wit=S({"src/services/_namespaces/ts.GoToDefinition.ts"(){Oit()}});function Fit(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function zit(e){return e.includeInlayParameterNameHints==="literals"}function Awe(e){return e.interactiveInlayHints===!0}function Bit(e){const{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,u=r.getCompilerOptions(),p=uf(t,s),v=r.getTypeChecker(),f=[];return b(t),f;function b(de){if(!(!de||de.getFullWidth()===0)){switch(de.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:o.throwIfCancellationRequested()}if(!!P6(i,de.pos,de.getFullWidth())&&!(Xi(de)&&!Kv(de)))return s.includeInlayVariableTypeHints&&Wi(de)||s.includeInlayPropertyDeclarationTypeHints&&qo(de)?U(de):s.includeInlayEnumMemberValueHints&&dE(de)?C(de):Fit(s)&&(ca(de)||iE(de))?X(de):(s.includeInlayFunctionParameterTypeHints&&Js(de)&&g7(de)&&_e(de),s.includeInlayFunctionLikeReturnTypeHints&&A(de)&&G(de)),Uo(de,b)}}function A(de){return Ks(de)||Us(de)||Dc(de)||Ql(de)||rf(de)}function I(de,ie,ge,Ce){let qe=`${Ce?"...":""}${de}`,Se;Awe(s)?(Se=[Ie(qe,ie),{text:":"}],qe=""):qe+=":",f.push({text:qe,position:ge,kind:"Parameter",whitespaceAfter:!0,displayParts:Se})}function R(de,ie){f.push({text:typeof de=="string"?`: ${de}`:"",displayParts:typeof de=="string"?void 0:[{text:": "},...de],position:ie,kind:"Type",whitespaceBefore:!0})}function M(de,ie){f.push({text:`= ${de}`,position:ie,kind:"Enum",whitespaceBefore:!0})}function C(de){if(de.initializer)return;const ie=v.getConstantValue(de);ie!==void 0&&M(ie.toString(),de.end)}function W(de){return de.symbol&&de.symbol.flags&1536}function U(de){if(!de.initializer||na(de.name)||Wi(de)&&!he(de)||Su(de))return;const ge=v.getTypeAtLocation(de);if(W(ge))return;const Ce=Y(ge);if(Ce){const qe=typeof Ce=="string"?Ce:Ce.map(Le=>Le.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&i0(de.name.getText(),qe))return;R(Ce,de.name.end)}}function X(de){const ie=de.arguments;if(!ie||!ie.length)return;const ge=[],Ce=v.getResolvedSignatureForSignatureHelp(de,ge);if(!Ce||!ge.length)return;let qe=0;for(const Se of ie){const Le=Ss(Se);if(zit(s)&&!se(Le)){qe++;continue}let Ne=0;if(t_(Le)){const At=v.getTypeAtLocation(Le.expression);if(v.isTupleType(At)){const{elementFlags:be,fixedLength:He}=At.target;if(He===0)continue;const it=Ji(be,yt=>!(yt&1));(it<0?He:it)>0&&(Ne=it<0?He:it)}}const Oe=v.getParameterIdentifierInfoAtPosition(Ce,qe);if(qe=qe+(Ne||1),Oe){const{parameter:At,parameterName:be,isRestParameter:He}=Oe;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!ee(Le,be))&&!He)continue;const Ft=Ki(be);if(V(Le,Ft))continue;I(Ft,At,Se.getStart(),He)}}}function ee(de,ie){return Ue(de)?de.text===ie:Br(de)?de.name.text===ie:!1}function V(de,ie){if(!tf(ie,u.target,Lk(t.scriptKind)))return!1;const ge=$h(l,de.pos);if(!(ge!=null&&ge.length))return!1;const Ce=Iwe(ie);return St(ge,qe=>Ce.test(l.substring(qe.pos,qe.end)))}function se(de){switch(de.kind){case 224:{const ie=de.operand;return w1(ie)||Ue(ie)&&hC(ie.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const ie=de.escapedText;return oe(ie)||hC(ie)}}return w1(de)}function G(de){if(Ks(de)&&!Is(de,21,t)||lm(de)||!de.body)return;const ge=v.getSignatureFromDeclaration(de);if(!ge)return;const Ce=v.getReturnTypeOfSignature(ge);if(W(Ce))return;const qe=Y(Ce);qe&&R(qe,re(de))}function re(de){const ie=Is(de,22,t);return ie?ie.end:de.parameters.end}function _e(de){const ie=v.getSignatureFromDeclaration(de);if(!!ie)for(let ge=0;ge<de.parameters.length&&ge<ie.parameters.length;++ge){const Ce=de.parameters[ge];if(!he(Ce)||Su(Ce))continue;const Se=ye(ie.parameters[ge]);!Se||R(Se,Ce.questionToken?Ce.questionToken.end:Ce.name.end)}}function ye(de){const ie=de.valueDeclaration;if(!ie||!No(ie))return;const ge=v.getTypeOfSymbolAtLocation(de,ie);if(!W(ge))return Y(ge)}function Q(de){const ge=vE();return PN(Ce=>{const qe=v.typeToTypeNode(de,void 0,71286784);N.assertIsDefined(qe,"should always get typenode"),ge.writeNode(4,qe,t,Ce)})}function Y(de){if(!Awe(s))return Q(de);const ie=71286784,ge=v.typeToTypeNode(de,void 0,ie);N.assertIsDefined(ge,"should always get typenode");const Ce=[];return qe(ge),Ce;function qe(Oe){var At,be;if(!Oe)return;const He=ma(Oe.kind);if(He){Ce.push({text:He});return}if(w1(Oe)){Ce.push({text:Ne(Oe)});return}switch(Oe.kind){case 80:N.assertNode(Oe,Ue);const it=Rr(Oe),Ft=Oe.symbol&&Oe.symbol.declarations&&Oe.symbol.declarations.length&&Oo(Oe.symbol.declarations[0]);Ft?Ce.push(Ie(it,Ft)):Ce.push({text:it});break;case 166:N.assertNode(Oe,xd),qe(Oe.left),Ce.push({text:"."}),qe(Oe.right);break;case 182:N.assertNode(Oe,lw),Oe.assertsModifier&&Ce.push({text:"asserts "}),qe(Oe.parameterName),Oe.type&&(Ce.push({text:" is "}),qe(Oe.type));break;case 183:N.assertNode(Oe,Cf),qe(Oe.typeName),Oe.typeArguments&&(Ce.push({text:"<"}),Le(Oe.typeArguments,", "),Ce.push({text:">"}));break;case 168:N.assertNode(Oe,El),Oe.modifiers&&Le(Oe.modifiers," "),qe(Oe.name),Oe.constraint&&(Ce.push({text:" extends "}),qe(Oe.constraint)),Oe.default&&(Ce.push({text:" = "}),qe(Oe.default));break;case 169:N.assertNode(Oe,No),Oe.modifiers&&Le(Oe.modifiers," "),Oe.dotDotDotToken&&Ce.push({text:"..."}),qe(Oe.name),Oe.questionToken&&Ce.push({text:"?"}),Oe.type&&(Ce.push({text:": "}),qe(Oe.type));break;case 185:N.assertNode(Oe,Y2),Ce.push({text:"new "}),Se(Oe),Ce.push({text:" => "}),qe(Oe.type);break;case 186:N.assertNode(Oe,fI),Ce.push({text:"typeof "}),qe(Oe.exprName),Oe.typeArguments&&(Ce.push({text:"<"}),Le(Oe.typeArguments,", "),Ce.push({text:">"}));break;case 187:N.assertNode(Oe,Ap),Ce.push({text:"{"}),Oe.members.length&&(Ce.push({text:" "}),Le(Oe.members,"; "),Ce.push({text:" "})),Ce.push({text:"}"});break;case 188:N.assertNode(Oe,cw),qe(Oe.elementType),Ce.push({text:"[]"});break;case 189:N.assertNode(Oe,mI),Ce.push({text:"["}),Le(Oe.elements,", "),Ce.push({text:"]"});break;case 202:N.assertNode(Oe,$2),Oe.dotDotDotToken&&Ce.push({text:"..."}),qe(Oe.name),Oe.questionToken&&Ce.push({text:"?"}),Ce.push({text:": "}),qe(Oe.type);break;case 190:N.assertNode(Oe,m5),qe(Oe.type),Ce.push({text:"?"});break;case 191:N.assertNode(Oe,_5),Ce.push({text:"..."}),qe(Oe.type);break;case 192:N.assertNode(Oe,Yy),Le(Oe.types," | ");break;case 193:N.assertNode(Oe,_I),Le(Oe.types," & ");break;case 194:N.assertNode(Oe,hI),qe(Oe.checkType),Ce.push({text:" extends "}),qe(Oe.extendsType),Ce.push({text:" ? "}),qe(Oe.trueType),Ce.push({text:" : "}),qe(Oe.falseType);break;case 195:N.assertNode(Oe,BS),Ce.push({text:"infer "}),qe(Oe.typeParameter);break;case 196:N.assertNode(Oe,GS),Ce.push({text:"("}),qe(Oe.type),Ce.push({text:")"});break;case 198:N.assertNode(Oe,VS),Ce.push({text:`${ma(Oe.operator)} `}),qe(Oe.type);break;case 199:N.assertNode(Oe,jS),qe(Oe.objectType),Ce.push({text:"["}),qe(Oe.indexType),Ce.push({text:"]"});break;case 200:N.assertNode(Oe,Q2),Ce.push({text:"{ "}),Oe.readonlyToken&&(Oe.readonlyToken.kind===40?Ce.push({text:"+"}):Oe.readonlyToken.kind===41&&Ce.push({text:"-"}),Ce.push({text:"readonly "})),Ce.push({text:"["}),qe(Oe.typeParameter),Oe.nameType&&(Ce.push({text:" as "}),qe(Oe.nameType)),Ce.push({text:"]"}),Oe.questionToken&&(Oe.questionToken.kind===40?Ce.push({text:"+"}):Oe.questionToken.kind===41&&Ce.push({text:"-"}),Ce.push({text:"?"})),Ce.push({text:": "}),Oe.type&&qe(Oe.type),Ce.push({text:"; }"});break;case 201:N.assertNode(Oe,$y),qe(Oe.literal);break;case 184:N.assertNode(Oe,Ah),Se(Oe),Ce.push({text:" => "}),qe(Oe.type);break;case 205:N.assertNode(Oe,dg),Oe.isTypeOf&&Ce.push({text:"typeof "}),Ce.push({text:"import("}),qe(Oe.argument),Oe.assertions&&(Ce.push({text:", { assert: "}),Le(Oe.assertions.assertClause.elements,", "),Ce.push({text:" }"})),Ce.push({text:")"}),Oe.qualifier&&(Ce.push({text:"."}),qe(Oe.qualifier)),Oe.typeArguments&&(Ce.push({text:"<"}),Le(Oe.typeArguments,", "),Ce.push({text:">"}));break;case 171:N.assertNode(Oe,Sp),(At=Oe.modifiers)!=null&&At.length&&(Le(Oe.modifiers," "),Ce.push({text:" "})),qe(Oe.name),Oe.questionToken&&Ce.push({text:"?"}),Oe.type&&(Ce.push({text:": "}),qe(Oe.type));break;case 181:N.assertNode(Oe,nE),Ce.push({text:"["}),Le(Oe.parameters,", "),Ce.push({text:"]"}),Oe.type&&(Ce.push({text:": "}),qe(Oe.type));break;case 173:N.assertNode(Oe,Th),(be=Oe.modifiers)!=null&&be.length&&(Le(Oe.modifiers," "),Ce.push({text:" "})),qe(Oe.name),Oe.questionToken&&Ce.push({text:"?"}),Se(Oe),Oe.type&&(Ce.push({text:": "}),qe(Oe.type));break;case 179:N.assertNode(Oe,pI),Se(Oe),Oe.type&&(Ce.push({text:": "}),qe(Oe.type));break;case 207:N.assertNode(Oe,rE),Ce.push({text:"["}),Le(Oe.elements,", "),Ce.push({text:"]"});break;case 206:N.assertNode(Oe,pm),Ce.push({text:"{"}),Oe.elements.length&&(Ce.push({text:" "}),Le(Oe.elements,", "),Ce.push({text:" "})),Ce.push({text:"}"});break;case 208:N.assertNode(Oe,os),qe(Oe.name);break;case 224:N.assertNode(Oe,Zy),Ce.push({text:ma(Oe.operator)}),qe(Oe.operand);break;case 203:N.assertNode(Oe,tse),qe(Oe.head),Oe.templateSpans.forEach(qe);break;case 16:N.assertNode(Oe,cI),Ce.push({text:Ne(Oe)});break;case 204:N.assertNode(Oe,BH),qe(Oe.type),qe(Oe.literal);break;case 17:N.assertNode(Oe,OH),Ce.push({text:Ne(Oe)});break;case 18:N.assertNode(Oe,u5),Ce.push({text:Ne(Oe)});break;case 197:N.assertNode(Oe,uw),Ce.push({text:"this"});break;default:N.failBadSyntaxKind(Oe)}}function Se(Oe){Oe.typeParameters&&(Ce.push({text:"<"}),Le(Oe.typeParameters,", "),Ce.push({text:">"})),Ce.push({text:"("}),Le(Oe.parameters,", "),Ce.push({text:")"})}function Le(Oe,At){Oe.forEach((be,He)=>{He>0&&Ce.push({text:At}),qe(be)})}function Ne(Oe){var At;switch(Oe.kind){case 11:return p===0?`'${ag(Oe.text,39)}'`:`"${ag(Oe.text,34)}"`;case 16:case 17:case 18:{const be=(At=Oe.rawText)!=null?At:yU(ag(Oe.text,96));switch(Oe.kind){case 16:return"`"+be+"${";case 17:return"}"+be+"${";case 18:return"}"+be+"`"}}}return Oe.text}}function oe(de){return de==="undefined"}function he(de){if((q1(de)||Wi(de)&&_2(de))&&de.initializer){const ie=Ss(de.initializer);return!(se(ie)||iE(ie)||za(ie)||bS(ie))}return!0}function Ie(de,ie){const ge=ie.getSourceFile();return{text:de,span:Nd(ie,ge),file:ge.fileName}}}var Iwe,Git=S({"src/services/inlayHints.ts"(){oi(),Iwe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),tZ={};H(tZ,{provideInlayHints:()=>Bit});var Vit=S({"src/services/_namespaces/ts.InlayHints.ts"(){Git()}});function jit(e,t){const r=[];return kX(e,i=>{for(const o of Hit(i)){const s=r_(o)&&o.tags&&un(o.tags,u=>u.kind===334&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||r_(o)&&i.kind!==353&&i.kind!==345&&o.tags&&o.tags.some(u=>u.kind===353||u.kind===345)&&!o.tags.some(u=>u.kind===348||u.kind===349))continue;let l=o.comment?YR(o.comment,t):[];s&&s.comment&&(l=l.concat(YR(s.comment,t))),Mn(r,l,Uit)||r.push(l)}}),Oa(Oi(r,[wR()]))}function Uit(e,t){return Ni(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function Hit(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(iR(e.parent))return[e.parent.parent];default:return rU(e)}}function qit(e,t){const r=[];return kX(e,i=>{const o=f0(i);if(!(o.some(s=>s.kind===353||s.kind===345)&&!o.some(s=>s.kind===348||s.kind===349)))for(const s of o)r.push({name:s.tagName.text,text:Dwe(s,t)}),r.push(...xwe(Rwe(s),t))}),r}function xwe(e,t){return qi(e,r=>Ro([{name:r.tagName.text,text:Dwe(r,t)}],xwe(Rwe(r),t)))}function Rwe(e){return IN(e)&&e.isNameFirst&&e.typeExpression&&XS(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function YR(e,t){return typeof e=="string"?[df(e)]:qi(e,r=>r.kind===328?[df(r.text)]:fde(r,t))}function Dwe(e,t){const{comment:r,kind:i}=e,o=Jit(i);switch(i){case 356:const u=e.typeExpression;return u?s(u):r===void 0?void 0:YR(r,t);case 336:return s(e.class);case 335:return s(e.class);case 352:const p=e,v=[];if(p.constraint&&v.push(df(p.constraint.getText())),Pe(p.typeParameters)){Pe(v)&&v.push(Bl());const b=p.typeParameters[p.typeParameters.length-1];Ve(p.typeParameters,A=>{v.push(o(A.getText())),b!==A&&v.push(ed(28),Bl())})}return r&&v.push(Bl(),...YR(r,t)),v;case 351:case 357:return s(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:f}=e;return f?s(f):r===void 0?void 0:YR(r,t);default:return r===void 0?void 0:YR(r,t)}function s(u){return l(u.getText())}function l(u){return r?u.match(/^https?$/)?[df(u),...YR(r,t)]:[o(u),Bl(),...YR(r,t)]:[df(u)]}}function Jit(e){switch(e){case 348:return lde;case 355:return cde;case 352:return dde;case 353:case 345:return ude;default:return df}}function Kit(){return Cwe||(Cwe=Wt(H_e,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:qI.SortText.LocationPriority})))}function Xit(){return Pwe||(Pwe=Wt(H_e,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:qI.SortText.LocationPriority})))}function Nwe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[df(e)],documentation:et,tags:void 0,codeActions:void 0}}function Yit(e){if(!Ue(e.name))return et;const t=e.name.text,r=e.parent,i=r.parent;return ta(i)?Vi(i.parameters,o=>{if(!Ue(o.name))return;const s=o.name.text;if(!(r.tags.some(l=>l!==e&&i_(l)&&Ue(l.name)&&l.name.escapedText===s)||t!==void 0&&!ho(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:qI.SortText.LocationPriority}}):[]}function $it(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[df(e)],documentation:et,tags:void 0,codeActions:void 0}}function Qit(e,t,r,i){const o=go(t,r),s=jn(o,r_);if(s&&(s.comment!==void 0||Pe(s.tags)))return;const l=o.getStart(t);if(!s&&l<r)return;const u=not(o,i);if(!u)return;const{commentOwner:p,parameters:v,hasReturn:f}=u,b=zp(p)&&p.jsDoc?p.jsDoc:void 0,A=il(b);if(p.getStart(t)<r||A&&s&&A!==s)return;const I=Zit(t,r),R=$1(t.fileName),M=(v?eot(v||[],R,I,e):"")+(f?tot(I,e):""),C="/**",W=" */",U=Pe(f0(p))>0;if(M&&!U){const X=C+e+I+" * ",ee=l===r?e+I:"";return{newText:X+e+M+I+W+ee,caretOffset:X.length}}return{newText:C+W,caretOffset:3}}function Zit(e,t){const{text:r}=e,i=mm(t,e);let o=i;for(;o<=t&&A_(r.charCodeAt(o));o++);return r.slice(i,o)}function eot(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},l)=>{const u=o.kind===80?o.text:"param"+l;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${u}${i}`}).join("")}function tot(e,t){return`${e} * @returns${t}`}function not(e,t){return Sie(e,r=>U_e(r,t))}function U_e(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:X9(r,t)};case 303:return U_e(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const o=e;return o.type&&Ah(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:X9(o.type,t)}:{commentOwner:e}}case 243:{const s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?rot(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:X9(l,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return U_e(e.expression,t);case 226:{const o=e;return ql(o)===0?"quit":ta(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:X9(o.right,t)}:{commentOwner:e}}case 172:const i=e.initializer;if(i&&(Us(i)||Ks(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:X9(i,t)}}}function X9(e,t){return!!(t!=null&&t.generateReturnInDocTemplate)&&(Ah(e)||Ks(e)&&bt(e.body)||Js(e)&&e.body&&Yo(e.body)&&!!B1(e.body,r=>r))}function rot(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return un(e.members,Wl)}}var H_e,Cwe,Pwe,Mwe,iot=S({"src/services/jsDoc.ts"(){oi(),H_e=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],Mwe=Nwe}}),G0={};H(G0,{getDocCommentTemplateAtPosition:()=>Qit,getJSDocParameterNameCompletionDetails:()=>$it,getJSDocParameterNameCompletions:()=>Yit,getJSDocTagCompletionDetails:()=>Nwe,getJSDocTagCompletions:()=>Xit,getJSDocTagNameCompletionDetails:()=>Mwe,getJSDocTagNameCompletions:()=>Kit,getJsDocCommentsFromDeclarations:()=>jit,getJsDocTagsFromDeclarations:()=>qit});var oot=S({"src/services/_namespaces/ts.JsDoc.ts"(){iot()}});function aot(e,t,r,i,o,s){const l=yr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),u=s==="SortAndCombine"||s==="All",p=u,v=s==="RemoveUnused"||s==="All",f=nZ(e,e.statements.filter(Fc)),b=Tot(o,u?()=>wwe(f,o)===2:void 0),A=R=>(v&&(R=lot(R,e,i)),p&&(R=Lwe(R,b,e,o)),u&&(R=Dv(R,(M,C)=>Y_e(M,C,b))),R);f.forEach(R=>I(R,A)),s!=="RemoveUnused"&&Aot(e).forEach(R=>I(R,M=>q_e(M,b,o)));for(const R of e.statements.filter(Ou)){if(!R.body)continue;if(nZ(e,R.body.statements.filter(Fc)).forEach(C=>I(C,A)),s!=="RemoveUnused"){const C=R.body.statements.filter(rc);I(C,W=>q_e(W,b,o))}}return l.getChanges();function I(R,M){if(Pe(R)===0)return;hr(R[0],1024);const C=p?lN(R,X=>Y9(X.moduleSpecifier)):[R],W=u?Dv(C,(X,ee)=>K_e(X[0].moduleSpecifier,ee[0].moduleSpecifier,b)):C,U=qi(W,X=>Y9(X[0].moduleSpecifier)||X[0].moduleSpecifier===void 0?M(X):X);if(U.length===0)l.deleteNodes(e,R,{leadingTriviaOption:yr.LeadingTriviaOption.Exclude,trailingTriviaOption:yr.TrailingTriviaOption.Include},!0);else{const X={leadingTriviaOption:yr.LeadingTriviaOption.Exclude,trailingTriviaOption:yr.TrailingTriviaOption.Include,suffix:ty(r,t.options)};l.replaceNodeWithNodes(e,R[0],U,X);const ee=l.nodeHasTrailingComment(e,R[0],X);l.deleteNodes(e,R.slice(1),{trailingTriviaOption:yr.TrailingTriviaOption.Include},ee)}}}function nZ(e,t){const r=wv(e.languageVersion,!1,e.languageVariant),i=[];let o=0;for(const s of t)i[o]&&sot(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function sot(e,t,r){const i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenStart()<o;)if(r.scan()===4&&(s++,s>=2))return!0;return!1}function lot(e,t,r){const i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),p=[];for(const f of e){const{importClause:b,moduleSpecifier:A}=f;if(!b){p.push(f);continue}let{name:I,namedBindings:R}=b;if(I&&!v(I)&&(I=void 0),R)if(eb(R))v(R.name)||(R=void 0);else{const M=R.elements.filter(C=>v(C.name));M.length<R.elements.length&&(R=M.length?O.updateNamedImports(R,M):void 0)}I||R?p.push(v4(f,I,R)):cot(t,A)&&(t.isDeclarationFile?p.push(O.createImportDeclaration(f.modifiers,void 0,A,void 0)):p.push(f))}return p;function v(f){return u&&(f.text===s||l&&f.text===l)&&eY(o.jsx)||Hs.Core.isSymbolReferencedInFile(f,i,t)}}function cot(e,t){const r=La(t)&&t.text;return wo(r)&&St(e.moduleAugmentations,i=>La(i)&&i.text===r)}function Y9(e){return e!==void 0&&hs(e)?e.text:void 0}function uot(e,t,r,i){const o=rZ(t);return Lwe(e,o,r,i)}function Lwe(e,t,r,i){if(e.length===0)return e;const o=K8(e,l=>{if(l.attributes){let u=l.attributes.token+" ";for(const p of uS(l.attributes.elements,(v,f)=>Ju(v.name.text,f.name.text)))u+=p.name.text+":",u+=hs(p.value)?`"${p.value.text}"`:p.value.getText()+" ";return u}return""}),s=[];for(const l in o){const u=o[l],{importWithoutClause:p,typeOnlyImports:v,regularImports:f}=dot(u);p&&s.push(p);for(const b of[f,v]){const A=b===v,{defaultImports:I,namespaceImports:R,namedImports:M}=b;if(!A&&I.length===1&&R.length===1&&M.length===0){const re=I[0];s.push(v4(re,re.importClause.name,R[0].importClause.namedBindings));continue}const C=Dv(R,(re,_e)=>t(re.importClause.namedBindings.name.text,_e.importClause.namedBindings.name.text));for(const re of C)s.push(v4(re,void 0,re.importClause.namedBindings));const W=eu(I),U=eu(M),X=W!=null?W:U;if(!X)continue;let ee;const V=[];if(I.length===1)ee=I[0].importClause.name;else for(const re of I)V.push(O.createImportSpecifier(!1,O.createIdentifier("default"),re.importClause.name));V.push(...yot(M));const se=O.createNodeArray(kwe(V,t,i),U==null?void 0:U.importClause.namedBindings.elements.hasTrailingComma),G=se.length===0?ee?void 0:O.createNamedImports(et):U?O.updateNamedImports(U.importClause.namedBindings,se):O.createNamedImports(se);r&&G&&(U==null?void 0:U.importClause.namedBindings)&&!OS(U.importClause.namedBindings,r)&&hr(G,2),A&&ee&&G?(s.push(v4(X,ee,void 0)),s.push(v4(U!=null?U:X,void 0,G))):s.push(v4(X,ee,G))}}return s}function dot(e){let t;const r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(const o of e){if(o.importClause===void 0){t=t||o;continue}const s=o.importClause.isTypeOnly?r:i,{name:l,namedBindings:u}=o.importClause;l&&s.defaultImports.push(o),u&&(eb(u)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function pot(e,t,r){const i=rZ(t);return q_e(e,i,r)}function q_e(e,t,r){if(e.length===0)return e;const{exportWithoutClause:i,namedExports:o,typeOnlyExports:s}=u(e),l=[];i&&l.push(i);for(const p of[o,s]){if(p.length===0)continue;const v=[];v.push(...qi(p,A=>A.exportClause&&Pf(A.exportClause)?A.exportClause.elements:et));const f=kwe(v,t,r),b=p[0];l.push(O.updateExportDeclaration(b,b.modifiers,b.isTypeOnly,b.exportClause&&(Pf(b.exportClause)?O.updateNamedExports(b.exportClause,f):O.updateNamespaceExport(b.exportClause,b.exportClause.name)),b.moduleSpecifier,b.attributes))}return l;function u(p){let v;const f=[],b=[];for(const A of p)A.exportClause===void 0?v=v||A:A.isTypeOnly?b.push(A):f.push(A);return{exportWithoutClause:v,namedExports:f,typeOnlyExports:b}}}function v4(e,t,r){return O.updateImportDeclaration(e,e.modifiers,O.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function kwe(e,t,r){return Dv(e,(i,o)=>J_e(i,o,t,r))}function J_e(e,t,r,i){switch(i==null?void 0:i.organizeImportsTypeOrder){case"first":return Iy(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return Iy(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function fot(e,t,r){const i=rZ(!!r);return K_e(e,t,i)}function K_e(e,t,r){const i=e===void 0?void 0:Y9(e),o=t===void 0?void 0:Y9(t);return Iy(i===void 0,o===void 0)||Iy(tu(i),tu(o))||r(i,o)}function X_e(e){var t;switch(e.kind){case 271:return(t=ni(e.moduleReference,Rh))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function mot(e,t){return wwe(nZ(e,e.statements.filter(Fc)),t)}function wwe(e,t){const r=$R(t,!1),i=$R(t,!0);let o=3,s=!1;for(const l of e){if(l.length>1){const p=sN(l,v=>{var b;var f;return(b=(f=ni(v.moduleSpecifier,La))==null?void 0:f.text)!=null?b:""},r,i);if(p&&(o&=p,s=!0),!o)return o}const u=un(l,p=>{var v,f;return((f=ni((v=p.importClause)==null?void 0:v.namedBindings,qg))==null?void 0:f.elements.length)>1});if(u){const p=$_e(u.importClause.namedBindings.elements,t);if(p&&(o&=p,s=!0),!o)return o}if(o!==3)return o}return s?0:o}function _ot(e,t){const r=$R(t,!1),i=$R(t,!0);return sN(e,o=>Y9(X_e(o))||"",r,i)}function hot(e,t,r){const i=Nv(e,t,ol,(o,s)=>Y_e(o,s,r));return i<0?~i:i}function got(e,t,r,i){const o=Nv(e,t,ol,(s,l)=>J_e(s,l,r,i));return o<0?~o:o}function Y_e(e,t,r){return K_e(X_e(e),X_e(t),r)||vot(e,t)}function vot(e,t){return al(Owe(e),Owe(t))}function Owe(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function yot(e){return qi(e,t=>Wt(bot(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?O.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function bot(e){var t;return((t=e.importClause)==null?void 0:t.namedBindings)&&qg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function rZ(e){return e?Jne:Ju}function Eot(e,t){var p,v,f;const r=Sot(t),i=(p=t.organizeImportsCaseFirst)!=null?p:!1,o=(v=t.organizeImportsNumericCollation)!=null?v:!1,s=(f=t.organizeImportsAccentCollation)!=null?f:!0,l=e?s?"accent":"base":s?"variant":"case";return new Intl.Collator(r,{usage:"sort",caseFirst:i||"false",sensitivity:l,numeric:o}).compare}function Sot(e){let t=e.organizeImportsLocale;t==="auto"&&(t=Kne()),t===void 0&&(t="en");const r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function $R(e,t){var i;return((i=e.organizeImportsCollation)!=null?i:"ordinal")==="unicode"?Eot(t,e):rZ(t)}function Tot(e,t){var i;const r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(i=t==null?void 0:t())!=null?i:!1;return $R(e,r)}function Aot(e){const t=[],r=e.statements,i=Pe(r);let o=0,s=0;for(;o<i;)if(rc(r[o])){t[s]===void 0&&(t[s]=[]);const l=r[o];if(l.moduleSpecifier)t[s].push(l),o++;else{for(;o<i&&rc(r[o]);)t[s].push(r[o++]);s++}}else o++;return qi(t,l=>nZ(e,l))}var Wwe,$_e,Iot=S({"src/services/organizeImports.ts"(){oi(),Wwe=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)}},$_e=qne((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!H8(e,(o,s)=>Iy(s.isTypeOnly,o.isTypeOnly)))return 0;break;case"inline":if(!H8(e,(o,s)=>Ux(!0)(o.name.text,s.name.text)))return 0;break;default:if(!H8(e,(o,s)=>Iy(o.isTypeOnly,s.isTypeOnly)))return 0;break}const r=$R(t,!1),i=$R(t,!0);if(t.organizeImportsTypeOrder!=="inline"){const{type:o,regular:s}=K8(e,p=>p.isTypeOnly?"type":"regular"),l=o!=null&&o.length?sN(o,p=>p.name.text,r,i):void 0,u=s!=null&&s.length?sN(s,p=>{var v;return(v=p.name.text)!=null?v:""},r,i):void 0;return l===void 0?u!=null?u:0:u===void 0?l:l===0||u===0?0:u&l}return sN(e,o=>o.name.text,r,i)},new Wwe)}}),Wm={};H(Wm,{coalesceExports:()=>pot,coalesceImports:()=>uot,compareImportOrExportSpecifiers:()=>J_e,compareImportsOrRequireStatements:()=>Y_e,compareModuleSpecifiers:()=>fot,detectImportDeclarationSorting:()=>_ot,detectImportSpecifierSorting:()=>$_e,detectSorting:()=>mot,getImportDeclarationInsertionIndex:()=>hot,getImportSpecifierInsertionIndex:()=>got,getOrganizeImportsComparer:()=>$R,organizeImports:()=>aot});var xot=S({"src/services/_namespaces/ts.OrganizeImports.ts"(){Iot()}});function Rot(e,t){const r=[];return Dot(e,t,r),Not(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function Dot(e,t,r){let i=40,o=0;const s=[...e.statements,e.endOfFileToken],l=s.length;for(;o<l;){for(;o<l&&!TS(s[o]);)u(s[o]),o++;if(o===l)break;const p=o;for(;o<l&&TS(s[o]);)u(s[o]),o++;const v=o-1;v!==p&&r.push($9(Is(s[p],102,e).getStart(e),s[v].getEnd(),"imports"))}function u(p){var v;if(i===0)return;t.throwIfCancellationRequested(),(Yu(p)||Fl(p)||Mm(p)||I_(p)||p.kind===1)&&zwe(p,e,t,r),ta(p)&&vr(p.parent)&&Br(p.parent.left)&&zwe(p.parent.left,e,t,r),(Yo(p)||O_(p))&&Q_e(p.statements.end,e,t,r),(di(p)||gd(p))&&Q_e(p.members.end,e,t,r);const f=Cot(p,e);f&&r.push(f),i--,ca(p)?(i++,u(p.expression),i--,p.arguments.forEach(u),(v=p.typeArguments)==null||v.forEach(u)):US(p)&&p.elseStatement&&US(p.elseStatement)?(u(p.expression),u(p.thenStatement),i++,u(p.elseStatement),i--):p.forEachChild(u),i++}}function Not(e,t){const r=[],i=e.getLineStarts();for(const o of i){const s=e.getLineEndOfPosition(o),l=e.text.substring(o,s),u=Fwe(l);if(!(!u||Qv(e,o)))if(u[1]){const p=r.pop();p&&(p.textSpan.length=s-p.textSpan.start,p.hintSpan.length=s-p.textSpan.start,t.push(p))}else{const p=yc(e.text.indexOf("//",o),s);r.push(KI(p,"region",p,!1,u[2]||"#region"))}}}function Fwe(e){return e=e.trimStart(),ho(e,"//")?(e=e.slice(2).trim(),Bwe.exec(e)):null}function Q_e(e,t,r,i){const o=$h(t.text,e);if(!o)return;let s=-1,l=-1,u=0;const p=t.getFullText();for(const{kind:f,pos:b,end:A}of o)switch(r.throwIfCancellationRequested(),f){case 2:const I=p.slice(b,A);if(Fwe(I)){v(),u=0;break}u===0&&(s=b),l=A,u++;break;case 3:v(),i.push($9(b,A,"comment")),u=0;break;default:N.assertNever(f)}v();function v(){u>1&&i.push($9(s,l,"comment"))}}function zwe(e,t,r,i){sI(e)||Q_e(e.pos,t,r,i)}function $9(e,t,r){return KI(yc(e,t),r)}function Cot(e,t){switch(e.kind){case 241:if(ta(e.parent))return Pot(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return f(e.parent);case 258:const I=e.parent;if(I.tryBlock===e)return f(e.parent);if(I.finallyBlock===e){const R=Is(I,98,t);if(R)return f(R)}default:return KI(Nd(e,t),"code")}case 268:return f(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return f(e);case 189:return f(e,!1,!mI(e.parent),23);case 296:case 297:return b(e.statements);case 210:return v(e);case 209:return v(e,23);case 284:return s(e);case 288:return l(e);case 285:case 286:return u(e.attributes);case 228:case 15:return p(e);case 207:return f(e,!1,!os(e.parent),23);case 219:return o(e);case 213:return i(e);case 217:return A(e);case 275:case 279:case 300:return r(e)}function r(I){if(!I.elements.length)return;const R=Is(I,19,t),M=Is(I,20,t);if(!(!R||!M||Rf(R.pos,M.pos,t)))return iZ(R,M,I,t,!1,!1)}function i(I){if(!I.arguments.length)return;const R=Is(I,21,t),M=Is(I,22,t);if(!(!R||!M||Rf(R.pos,M.pos,t)))return iZ(R,M,I,t,!1,!0)}function o(I){if(Yo(I.body)||Vd(I.body)||Rf(I.body.getFullStart(),I.body.getEnd(),t))return;const R=yc(I.body.getFullStart(),I.body.getEnd());return KI(R,"code",Nd(I))}function s(I){const R=yc(I.openingElement.getStart(t),I.closingElement.getEnd()),M=I.openingElement.tagName.getText(t),C="<"+M+">...</"+M+">";return KI(R,"code",R,!1,C)}function l(I){const R=yc(I.openingFragment.getStart(t),I.closingFragment.getEnd());return KI(R,"code",R,!1,"<>...</>")}function u(I){if(I.properties.length!==0)return $9(I.getStart(t),I.getEnd(),"code")}function p(I){if(!(I.kind===15&&I.text.length===0))return $9(I.getStart(t),I.getEnd(),"code")}function v(I,R=19){return f(I,!1,!hd(I.parent)&&!ca(I.parent),R)}function f(I,R=!1,M=!0,C=19,W=C===19?20:24){const U=Is(e,C,t),X=Is(e,W,t);return U&&X&&iZ(U,X,I,t,R,M)}function b(I){return I.length?KI(ob(I),"code"):void 0}function A(I){if(Rf(I.getStart(),I.getEnd(),t))return;const R=yc(I.getStart(),I.getEnd());return KI(R,"code",Nd(I))}}function Pot(e,t,r){const i=Mot(e,t,r),o=Is(t,20,r);return i&&o&&iZ(i,o,e,r,e.kind!==219)}function iZ(e,t,r,i,o=!1,s=!0){const l=yc(s?e.getFullStart():e.getStart(i),t.getEnd());return KI(l,"code",Nd(r,i),o)}function KI(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function Mot(e,t,r){if(Goe(e.parameters,r)){const i=Is(e,21,r);if(i)return i}return Is(t,19,r)}var Bwe,Lot=S({"src/services/outliningElementsCollector.ts"(){oi(),Bwe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),oZ={};H(oZ,{collectElements:()=>Rot});var kot=S({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){Lot()}});function wot(e,t,r,i){const o=gF(jd(t,r));if(Vwe(o)){const s=Oot(o,e.getTypeChecker(),t,e,i);if(s)return s}return aZ(m.You_cannot_rename_this_element)}function Oot(e,t,r,i,o){const s=t.getSymbolAtLocation(e);if(!s){if(hs(e)){const A=hF(e,t);if(A&&(A.flags&128||A.flags&1048576&&Bn(A.types,I=>!!(I.flags&128))))return Z_e(e.text,e.text,"string","",e,r)}else if(sX(e)){const A=bc(e);return Z_e(A,A,"label","",e,r)}return}const{declarations:l}=s;if(!l||l.length===0)return;if(l.some(A=>Wot(i,A)))return aZ(m.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Ue(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(hs(e)&&dk(e))return o.allowRenameOfImportPath?zot(e,r,s):void 0;const u=Fot(r,s,t,o);if(u)return aZ(u);const p=iy.getSymbolKind(t,s,e),v=mde(e)||nf(e)&&e.parent.kind===167?sm(am(e)):void 0,f=v||t.symbolToString(s),b=v||t.getFullyQualifiedName(s);return Z_e(f,b,p,iy.getSymbolModifiers(t,s),e,r)}function Wot(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Nl(r.fileName,".d.ts")}function Fot(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const l=t.declarations&&un(t.declarations,u=>rp(u));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:o}=t;if(!o)return;const s=Gwe(e.path);if(s===void 0)return St(o,l=>BO(l.getSourceFile().path))?m.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const l of o){const u=Gwe(l.getSourceFile().path);if(u){const p=Math.min(s.length,u.length);for(let v=0;v<=p;v++)if(Ju(s[v],u[v])!==0)return m.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function Gwe(e){const t=Uc(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function zot(e,t,r){if(!tu(e.text))return aZ(m.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&un(r.declarations,io);if(!i)return;const o=Dl(e.text,"/index")||Dl(e.text,"/index.js")?void 0:$ne(Id(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,p=Eu(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:e.text,kindModifiers:"",triggerSpan:p}}function Z_e(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:Bot(o,s)}}function aZ(e){return{canRename:!1,localizedErrorMessage:zo(e)}}function Bot(e,t){let r=e.getStart(t),i=e.getWidth(t);return hs(e)&&(r+=1,i-=2),Eu(r,i)}function Vwe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return pF(e);default:return!1}}var Got=S({"src/services/rename.ts"(){oi()}}),Q9={};H(Q9,{getRenameInfo:()=>wot,nodeIsEligibleForRename:()=>Vwe});var Vot=S({"src/services/_namespaces/ts.Rename.ts"(){Got()}});function jot(e,t,r,i,o){const s=e.getTypeChecker(),l=vF(t,r);if(!l)return;const u=!!i&&i.kind==="characterTyped";if(u&&(wI(t,r,l)||Qv(t,r)))return;const p=!!i&&i.kind==="invoked",v=aat(l,r,t,s,p);if(!v)return;o.throwIfCancellationRequested();const f=Uot(v,s,t,l,u);return o.throwIfCancellationRequested(),f?s.runWithCancellationToken(o,b=>f.kind===0?Ywe(f.candidates,f.resolvedSignature,v,t,b):lat(f.symbol,v,t,b)):pd(t)?qot(v,e,o):void 0}function Uot({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!Hot(o,e.node,i))return;const l=[],u=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:u}}case 1:{const{called:l}=e;if(s&&!jwe(o,i,Ue(l)?l.parent:l))return;const u=gX(l,t,r);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:$a(u)};const p=r.getSymbolAtLocation(l);return p&&{kind:1,symbol:p}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return N.assertNever(e)}}function Hot(e,t,r){if(!I_(t))return!1;const i=t.getChildren(r);switch(e.kind){case 21:return Mn(i,e);case 28:{const o=_F(e);return!!o&&Mn(i,o)}case 30:return jwe(e,r,t.expression);default:return!1}}function qot(e,t,r){if(e.invocation.kind===2)return;const i=Kwe(e.invocation),o=Br(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:$t(t.getSourceFiles(),l=>$t(l.getNamedDeclarations().get(o),u=>{const p=u.symbol&&s.getTypeOfSymbolAtLocation(u.symbol,u),v=p&&p.getCallSignatures();if(v&&v.length)return s.runWithCancellationToken(r,f=>Ywe(v,v[0],e,l,f,!0))}))}function jwe(e,t,r){const i=e.getFullStart();let o=e.parent;for(;o;){const s=Cc(i,t,o,!0);if(s)return cf(r,s);o=o.parent}return N.fail("Could not find preceding token")}function Jot(e,t,r,i){const o=Hwe(e,t,r,i);return!o||o.isTypeParameterList||o.invocation.kind!==0?void 0:{invocation:o.invocation.node,argumentCount:o.argumentCount,argumentIndex:o.argumentIndex}}function Uwe(e,t,r,i){const o=Kot(e,r,i);if(!o)return;const{list:s,argumentIndex:l}=o,u=nat(i,s);l!==0&&N.assertLessThan(l,u);const p=iat(s,r);return{list:s,argumentIndex:l,argumentCount:u,argumentsSpan:p}}function Kot(e,t,r){if(e.kind===30||e.kind===21)return{list:sat(e.parent,e,t),argumentIndex:0};{const i=_F(e);return i&&{list:i,argumentIndex:tat(r,i,e)}}}function Hwe(e,t,r,i){const{parent:o}=e;if(I_(o)){const s=o,l=Uwe(e,t,r,i);if(!l)return;const{list:u,argumentIndex:p,argumentCount:v,argumentsSpan:f}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===u.pos,invocation:{kind:0,node:s},argumentsSpan:f,argumentIndex:p,argumentCount:v}}else{if(lI(e)&&oE(o))return RO(e,t,r)?the(o,0,r):void 0;if(cI(e)&&o.parent.kind===215){const s=o,l=s.parent;N.assert(s.kind===228);const u=RO(e,t,r)?0:1;return the(l,u,r)}else if(MC(o)&&oE(o.parent.parent)){const s=o,l=o.parent.parent;if(u5(e)&&!RO(e,t,r))return;const u=s.parent.templateSpans.indexOf(s),p=rat(u,e,t,r);return the(l,p,r)}else if(dd(o)){const s=o.attributes.pos,l=Wa(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:Eu(s,l-s),argumentIndex:0,argumentCount:1}}else{const s=vX(e,r);if(s){const{called:l,nTypeArguments:u}=s,p={kind:1,called:l},v=yc(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:p,argumentsSpan:v,argumentIndex:u,argumentCount:u+1}}return}}}function Xot(e,t,r,i){return Yot(e,t,r,i)||Hwe(e,t,r,i)}function qwe(e){return vr(e.parent)?qwe(e.parent):e}function ehe(e){return vr(e.left)?ehe(e.left)+1:2}function Yot(e,t,r,i){const o=$ot(e);if(o===void 0)return;const s=Qot(o,r,t,i);if(s===void 0)return;const{contextualType:l,argumentIndex:u,argumentCount:p,argumentsSpan:v}=s,f=l.getNonNullableType(),b=f.symbol;if(b===void 0)return;const A=il(f.getCallSignatures());return A===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:A,node:e,symbol:Zot(b)},argumentsSpan:v,argumentIndex:u,argumentCount:p}}function $ot(e){switch(e.kind){case 21:case 28:return e;default:return jn(e.parent,t=>No(t)?!0:os(t)||pm(t)||rE(t)?!1:"quit")}}function Qot(e,t,r,i){const{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:const s=Uwe(e,r,t,i);if(!s)return;const{argumentIndex:l,argumentCount:u,argumentsSpan:p}=s,v=Ql(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return v&&{contextualType:v,argumentIndex:l,argumentCount:u,argumentsSpan:p};case 226:{const f=qwe(o),b=i.getContextualType(f),A=e.kind===21?0:ehe(o)-1,I=ehe(f);return b&&{contextualType:b,argumentIndex:A,argumentCount:I,argumentsSpan:Nd(o)}}default:return}}function Zot(e){return e.name==="__type"&&$t(e.declarations,t=>{var r;return Ah(t)?(r=ni(t.parent,x_))==null?void 0:r.symbol:void 0})||e}function eat(e,t){const r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){const{elementFlags:i,fixedLength:o}=r.target;if(o===0)return 0;const s=Ji(i,l=>!(l&1));return s<0?o:s}return 0}function tat(e,t,r){return Jwe(e,t,r)}function nat(e,t){return Jwe(e,t,void 0)}function Jwe(e,t,r){const i=t.getChildren();let o=0,s=!1;for(const l of i){if(r&&l===r)return!s&&l.kind===28&&o++,o;if(t_(l)){o+=eat(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&rs(i).kind===28?o+1:o}function rat(e,t,r,i){return N.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),Qre(t)?RO(t,r,i)?0:e+2:e+1}function the(e,t,r){const i=lI(e.template)?1:e.template.templateSpans.length+1;return t!==0&&N.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:oat(e,r),argumentIndex:t,argumentCount:i}}function iat(e,t){const r=e.getFullStart(),i=Wa(t.text,e.getEnd(),!1);return Eu(r,i-r)}function oat(e,t){const r=e.template,i=r.getStart();let o=r.getEnd();return r.kind===228&&rs(r.templateSpans).literal.getFullWidth()===0&&(o=Wa(t.text,o,!1)),Eu(i,o-i)}function aat(e,t,r,i,o){for(let s=e;!io(s)&&(o||!Yo(s));s=s.parent){N.assert(cf(s.parent,s),"Not a subspan",()=>`Child: ${N.formatSyntaxKind(s.kind)}, parent: ${N.formatSyntaxKind(s.parent.kind)}`);const l=Xot(s,t,r,i);if(l)return l}}function sat(e,t,r){const i=e.getChildren(r),o=i.indexOf(t);return N.assert(o>=0&&i.length>o+1),i[o+1]}function Kwe(e){return e.kind===0?v3(e.node):e.called}function Xwe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function Ywe(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},u,p,v){var f;const b=Xwe(s),A=s.kind===2?s.symbol:p.getSymbolAtLocation(Kwe(s))||v&&((f=t.declaration)==null?void 0:f.symbol),I=A?SP(p,A,v?u:void 0,void 0):et,R=Wt(e,X=>uat(X,I,r,p,b,u));l!==0&&N.assertLessThan(l,i);let M=0,C=0;for(let X=0;X<R.length;X++){const ee=R[X];if(e[X]===t&&(M=C,ee.length>1)){let V=0;for(const se of ee){if(se.isVariadic||se.parameters.length>=i){M=C+V;break}V++}}C+=ee.length}N.assert(M!==-1);const W={items:Zd(R,ol),applicableSpan:o,selectedItemIndex:M,argumentIndex:l,argumentCount:i},U=W.items[M];if(U.isVariadic){const X=Ji(U.parameters,ee=>!!ee.isRest);-1<X&&X<U.parameters.length-1?W.argumentIndex=U.parameters.length:W.argumentIndex=Math.min(W.argumentIndex,U.parameters.length-1)}return W}function lat(e,{argumentCount:t,argumentsSpan:r,invocation:i,argumentIndex:o},s,l){const u=l.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return u?{items:[cat(e,u,l,Xwe(i),s)],applicableSpan:r,selectedItemIndex:0,argumentIndex:o,argumentCount:t}:void 0}function cat(e,t,r,i,o){const s=SP(r,e),l=vE(),u=t.map(b=>$we(b,r,i,o,l)),p=e.getDocumentationComment(r),v=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,ed(30)],suffixDisplayParts:[ed(32)],separatorDisplayParts:nhe,parameters:u,documentation:p,tags:v}}function uat(e,t,r,i,o,s){const l=(r?pat:fat)(e,i,o,s);return Wt(l,({isVariadic:u,parameters:p,prefix:v,suffix:f})=>{const b=[...t,...v],A=[...f,...dat(e,o,i)],I=e.getDocumentationComment(i),R=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:b,suffixDisplayParts:A,separatorDisplayParts:nhe,parameters:p,documentation:I,tags:R}})}function dat(e,t,r){return ab(i=>{i.writePunctuation(":"),i.writeSpace(" ");const o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function pat(e,t,r,i){const o=(e.target||e).typeParameters,s=vE(),l=(o||et).map(p=>$we(p,t,r,i,s)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,y4)]:[];return t.getExpandedParameters(e).map(p=>{const v=O.createNodeArray([...u,...Wt(p,b=>t.symbolToParameterDeclaration(b,r,y4))]),f=ab(b=>{s.writeList(2576,v,i,b)});return{isVariadic:!1,parameters:l,prefix:[ed(30)],suffix:[ed(32),...f]}})}function fat(e,t,r,i){const o=vE(),s=ab(p=>{if(e.typeParameters&&e.typeParameters.length){const v=O.createNodeArray(e.typeParameters.map(f=>t.typeParameterToDeclaration(f,r,y4)));o.writeList(53776,v,i,p)}}),l=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?l.length===1?p=>!0:p=>{var v;return!!(p.length&&((v=ni(p[p.length-1],gh))==null?void 0:v.links.checkFlags)&32768)}:p=>!1;return l.map(p=>({isVariadic:u(p),parameters:p.map(v=>mat(v,t,r,i,o)),prefix:[...s,ed(21)],suffix:[ed(22)]}))}function mat(e,t,r,i,o){const s=ab(p=>{const v=t.symbolToParameterDeclaration(e,r,y4);o.writeNode(4,v,i,p)}),l=t.isOptionalParameter(e.valueDeclaration),u=gh(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:u}}function $we(e,t,r,i,o){const s=ab(l=>{const u=t.typeParameterToDeclaration(e,r,y4);o.writeNode(4,u,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var y4,nhe,_at=S({"src/services/signatureHelp.ts"(){oi(),y4=70246400,nhe=[ed(28),Bl()]}}),b4={};H(b4,{getArgumentInfoForCompletions:()=>Jot,getSignatureHelpItems:()=>jot});var hat=S({"src/services/_namespaces/ts.SignatureHelp.ts"(){_at()}});function gat(e,t){var r,i;let o={textSpan:yc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){const p=yat(s);if(!p.length)break;for(let v=0;v<p.length;v++){const f=p[v-1],b=p[v],A=p[v+1];if(_0(b,t,!0)>e)break e;const I=uh(a0(t.text,b.end));if(I&&I.kind===2&&u(I.pos,I.end),vat(t,e,b)){if(Ej(b)&&Js(s)&&!Rf(b.getStart(t),b.getEnd(),t)&&l(b.getStart(t),b.getEnd()),Yo(b)||MC(b)||cI(b)||u5(b)||f&&cI(f)||Xc(b)&&Fl(s)||oR(b)&&Xc(s)||Wi(b)&&oR(s)&&p.length===1||pE(b)||D0(b)||XS(b)){s=b;break}if(MC(s)&&A&&B6(A)){const W=b.getFullStart()-2,U=A.getStart()+1;l(W,U)}const R=oR(b)&&bat(f)&&Eat(A)&&!Rf(f.getStart(),A.getStart(),t);let M=R?f.getEnd():b.getStart();const C=R?A.getStart():Sat(t,b);if(zp(b)&&((r=b.jsDoc)==null?void 0:r.length)&&l($a(b.jsDoc).getStart(),C),oR(b)){const W=b.getChildren()[0];W&&zp(W)&&((i=W.jsDoc)==null?void 0:i.length)&&W.getStart()!==b.pos&&(M=Math.min(M,$a(W.jsDoc).getStart()))}l(M,C),(La(b)||FA(b))&&l(M+1,C-1),s=b;break}if(v===p.length-1)break e}}return o;function l(p,v){if(p!==v){const f=yc(p,v);(!o||!kR(f,o.textSpan)&&Cre(f,e))&&(o={textSpan:f,...o&&{parent:o}})}}function u(p,v){l(p,v);let f=p;for(;t.text.charCodeAt(f)===47;)f++;l(f,v)}}function vat(e,t,r){return N.assert(r.pos<=t),t<r.end?!0:r.getEnd()===t?jd(e,t).pos<r.end:!1}function yat(e){var t;if(io(e))return E4(e.getChildAt(0).getChildren(),Qwe);if(Q2(e)){const[r,...i]=e.getChildren(),o=N.checkDefined(i.pop());N.assertEqual(r.kind,19),N.assertEqual(o.kind,20);const s=E4(i,u=>u===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),l=E4(s,({kind:u})=>u===23||u===168||u===24);return[r,S4(sZ(l,({kind:u})=>u===59)),o]}if(Sp(e)){const r=E4(e.getChildren(),l=>l===e.name||Mn(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===327?r[0]:void 0,o=i?r.slice(1):r,s=sZ(o,({kind:l})=>l===59);return i?[i,S4(s)]:s}if(No(e)){const r=E4(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=E4(r,o=>o===r[0]||o===e.questionToken);return sZ(i,({kind:o})=>o===64)}return os(e)?sZ(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function E4(e,t){const r=[];let i;for(const o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(S4(i)),i=void 0),r.push(o));return i&&r.push(S4(i)),r}function sZ(e,t,r=!0){if(e.length<2)return e;const i=Ji(e,t);if(i===-1)return e;const o=e.slice(0,i),s=e[i],l=rs(e),u=r&&l.kind===27,p=e.slice(i+1,u?e.length-1:void 0),v=$M([o.length?S4(o):void 0,s,p.length?S4(p):void 0]);return u?v.concat(l):v}function S4(e){return N.assertGreaterThanOrEqual(e.length,1),Eh(Dh.createSyntaxList(e),e[0].pos,rs(e).end)}function bat(e){const t=e&&e.kind;return t===19||t===23||t===21||t===286}function Eat(e){const t=e&&e.kind;return t===20||t===24||t===22||t===287}function Sat(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var Qwe,Tat=S({"src/services/smartSelection.ts"(){oi(),Qwe=$m(Fc,au)}}),lZ={};H(lZ,{getSmartSelectionRange:()=>gat});var Aat=S({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){Tat()}});function Zwe(e,t,r){const i=eOe(e,t,r);if(i!=="")return i;const o=F2(t);return o&32?gl(t,231)?"local class":"class":o&384?"enum":o&524288?"type":o&64?"interface":o&262144?"type parameter":o&8?"enum member":o&2097152?"alias":o&1536?"module":i}function eOe(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&$a(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===110&&bt(r)||JA(r))return"parameter";const o=F2(t);if(o&3)return OX(t)?"parameter":t.valueDeclaration&&_2(t.valueDeclaration)?"const":t.valueDeclaration&&KL(t.valueDeclaration)?"using":t.valueDeclaration&&JL(t.valueDeclaration)?"await using":Ve(t.declarations,l3)?"let":rOe(t)?"local var":"var";if(o&16)return rOe(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=Ve(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function tOe(e){if(e.declarations&&e.declarations.length){const[t,...r]=e.declarations,i=Pe(r)&&HF(t)&&St(r,s=>!HF(s))?65536:0,o=gP(t,i);if(o)return o.split(",")}return[]}function Iat(e,t){if(!t)return"";const r=new Set(tOe(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&Ve(tOe(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Go(r.values()).join(","):""}function nOe(e,t,r,i,o,s,l,u){var p;const v=[];let f=[],b=[];const A=F2(t);let I=l&1?eOe(e,t,o):"",R=!1;const M=o.kind===110&&b3(o)||JA(o);let C,W,U=!1;if(o.kind===110&&!M)return{displayParts:[xp(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(I!==""||A&32||A&2097152){if(I==="getter"||I==="setter"){const he=un(t.declarations,Ie=>Ie.name===o);if(he)switch(he.kind){case 177:I="getter";break;case 178:I="setter";break;case 172:I="accessor";break;default:N.assertNever(he)}else I="property"}let Y;if(s!=null||(s=M?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===211){const he=o.parent.name;(he===o||he&&he.getFullWidth()===0)&&(o=o.parent)}let oe;if(I_(o)?oe=o:(rX(o)||_P(o)||o.parent&&(dd(o.parent)||oE(o.parent))&&ta(t.valueDeclaration))&&(oe=o.parent),oe){Y=e.getResolvedSignature(oe);const he=oe.kind===214||ca(oe)&&oe.expression.kind===108,Ie=he?s.getConstructSignatures():s.getCallSignatures();if(Y&&!Mn(Ie,Y.target)&&!Mn(Ie,Y)&&(Y=Ie.length?Ie[0]:void 0),Y){switch(he&&A&32?(I="constructor",re(s.symbol,I)):A&2097152?(I="alias",_e(I),v.push(Bl()),he&&(Y.flags&4&&(v.push(xp(128)),v.push(Bl())),v.push(xp(105)),v.push(Bl())),G(t)):re(t,I),I){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":v.push(ed(59)),v.push(Bl()),!(zr(s)&16)&&s.symbol&&(Hr(v,SP(e,s.symbol,i,void 0,5)),v.push(wR())),he&&(Y.flags&4&&(v.push(xp(128)),v.push(Bl())),v.push(xp(105)),v.push(Bl())),ye(Y,Ie,262144);break;default:ye(Y,Ie)}R=!0,U=Ie.length>1}}else if(dX(o)&&!(A&98304)||o.kind===137&&o.parent.kind===176){const he=o.parent;if(t.declarations&&un(t.declarations,de=>de===(o.kind===137?he.parent:he))){const de=he.kind===176?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(he)?Y=de[0]:Y=e.getSignatureFromDeclaration(he),he.kind===176?(I="constructor",re(s.symbol,I)):re(he.kind===179&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,I),Y&&ye(Y,de),R=!0,U=de.length>1}}}if(A&32&&!R&&!M&&(V(),gl(t,231)?_e("local class"):v.push(xp(86)),v.push(Bl()),G(t),Q(t,r)),A&64&&l&2&&(ee(),v.push(xp(120)),v.push(Bl()),G(t),Q(t,r)),A&524288&&l&2&&(ee(),v.push(xp(156)),v.push(Bl()),G(t),Q(t,r),v.push(Bl()),v.push(EP(64)),v.push(Bl()),Hr(v,kO(e,o.parent&&Wg(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),A&384&&(ee(),St(t.declarations,Y=>x0(Y)&&z1(Y))&&(v.push(xp(87)),v.push(Bl())),v.push(xp(94)),v.push(Bl()),G(t)),A&1536&&!M){ee();const Y=gl(t,267),oe=Y&&Y.name&&Y.name.kind===80;v.push(xp(oe?145:144)),v.push(Bl()),G(t)}if(A&262144&&l&2)if(ee(),v.push(ed(21)),v.push(df("type parameter")),v.push(ed(22)),v.push(Bl()),G(t),t.parent)se(),G(t.parent,i),Q(t.parent,i);else{const Y=gl(t,168);if(Y===void 0)return N.fail();const oe=Y.parent;if(oe)if(ta(oe)){se();const he=e.getSignatureFromDeclaration(oe);oe.kind===180?(v.push(xp(105)),v.push(Bl())):oe.kind!==179&&oe.name&&G(oe.symbol),Hr(v,zX(e,he,r,32))}else Lm(oe)&&(se(),v.push(xp(156)),v.push(Bl()),G(oe.symbol),Q(oe.symbol,r))}if(A&8){I="enum member",re(t,"enum member");const Y=(p=t.declarations)==null?void 0:p[0];if((Y==null?void 0:Y.kind)===306){const oe=e.getConstantValue(Y);oe!==void 0&&(v.push(Bl()),v.push(EP(64)),v.push(Bl()),v.push(op(Nie(oe),typeof oe=="number"?7:8)))}}if(t.flags&2097152){if(ee(),!R||f.length===0&&b.length===0){const Y=e.getAliasedSymbol(t);if(Y!==t&&Y.declarations&&Y.declarations.length>0){const oe=Y.declarations[0],he=Oo(oe);if(he&&!R){const Ie=i3(oe)&&Qr(oe,128),de=t.name!=="default"&&!Ie,ie=nOe(e,Y,Jn(oe),oe,he,s,l,de?t:Y);v.push(...ie.displayParts),v.push(wR()),C=ie.documentation,W=ie.tags}else C=Y.getContextualDocumentationComment(oe,e),W=Y.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:v.push(xp(95)),v.push(Bl()),v.push(xp(145));break;case 277:v.push(xp(95)),v.push(Bl()),v.push(xp(t.declarations[0].isExportEquals?64:90));break;case 281:v.push(xp(95));break;default:v.push(xp(102))}v.push(Bl()),G(t),Ve(t.declarations,Y=>{if(Y.kind===271){const oe=Y;if(h0(oe))v.push(Bl()),v.push(EP(64)),v.push(Bl()),v.push(xp(149)),v.push(ed(21)),v.push(op(bc(FN(oe)),8)),v.push(ed(22));else{const he=e.getSymbolAtLocation(oe.moduleReference);he&&(v.push(Bl()),v.push(EP(64)),v.push(Bl()),G(he,i))}return!0}})}if(!R)if(I!==""){if(s){if(M?(ee(),v.push(xp(110))):re(t,I),I==="property"||I==="accessor"||I==="getter"||I==="setter"||I==="JSX attribute"||A&3||I==="local var"||I==="index"||I==="using"||I==="await using"||M){if(v.push(ed(59)),v.push(Bl()),s.symbol&&s.symbol.flags&262144&&I!=="index"){const Y=ab(oe=>{const he=e.typeParameterToDeclaration(s,i,rhe);X().writeNode(4,he,Jn(Lo(i)),oe)});Hr(v,Y)}else Hr(v,kO(e,s,i));if(gh(t)&&t.links.target&&gh(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const Y=t.links.target.links.tupleLabelDeclaration;N.assertNode(Y.name,Ue),v.push(Bl()),v.push(ed(21)),v.push(df(Rr(Y.name))),v.push(ed(22))}}else if(A&16||A&8192||A&16384||A&131072||A&98304||I==="method"){const Y=s.getNonNullableType().getCallSignatures();Y.length&&(ye(Y[0],Y),U=Y.length>1)}}}else I=Zwe(e,t,o);if(f.length===0&&!U&&(f=t.getContextualDocumentationComment(i,e)),f.length===0&&A&4&&t.parent&&t.declarations&&Ve(t.parent.declarations,Y=>Y.kind===312))for(const Y of t.declarations){if(!Y.parent||Y.parent.kind!==226)continue;const oe=e.getSymbolAtLocation(Y.parent.right);if(!!oe&&(f=oe.getDocumentationComment(e),b=oe.getJsDocTags(e),f.length>0))break}if(f.length===0&&Ue(o)&&t.valueDeclaration&&os(t.valueDeclaration)){const Y=t.valueDeclaration,oe=Y.parent,he=Y.propertyName||Y.name;if(Ue(he)&&pm(oe)){const Ie=am(he),de=e.getTypeAtLocation(oe);f=$t(de.isUnion()?de.types:[de],ie=>{const ge=ie.getProperty(Ie);return ge?ge.getDocumentationComment(e):void 0})||et}}return b.length===0&&!U&&(b=t.getContextualJsDocTags(i,e)),f.length===0&&C&&(f=C),b.length===0&&W&&(b=W),{displayParts:v,documentation:f,symbolKind:I,tags:b.length===0?void 0:b};function X(){return vE()}function ee(){v.length&&v.push(wR()),V()}function V(){u&&(_e("alias"),v.push(Bl()))}function se(){v.push(Bl()),v.push(xp(103)),v.push(Bl())}function G(Y,oe){let he;u&&Y===t&&(Y=u),I==="index"&&(he=e.getIndexInfosOfIndexSymbol(Y));let Ie=[];Y.flags&131072&&he?(Y.parent&&(Ie=SP(e,Y.parent)),Ie.push(ed(23)),he.forEach((de,ie)=>{Ie.push(...kO(e,de.keyType)),ie!==he.length-1&&(Ie.push(Bl()),Ie.push(ed(52)),Ie.push(Bl()))}),Ie.push(ed(24))):Ie=SP(e,Y,oe||r,void 0,7),Hr(v,Ie),t.flags&16777216&&v.push(ed(58))}function re(Y,oe){ee(),oe&&(_e(oe),Y&&!St(Y.declarations,he=>Ks(he)||(Us(he)||iu(he))&&!he.name)&&(v.push(Bl()),G(Y)))}function _e(Y){switch(Y){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":v.push(WX(Y));return;default:v.push(ed(21)),v.push(WX(Y)),v.push(ed(22));return}}function ye(Y,oe,he=0){Hr(v,zX(e,Y,i,he|32)),oe.length>1&&(v.push(Bl()),v.push(ed(21)),v.push(EP(40)),v.push(op((oe.length-1).toString(),7)),v.push(Bl()),v.push(df(oe.length===2?"overload":"overloads")),v.push(ed(22))),f=Y.getDocumentationComment(e),b=Y.getJsDocTags(),oe.length>1&&f.length===0&&b.length===0&&(f=oe[0].getDocumentationComment(e),b=oe[0].getJsDocTags().filter(Ie=>Ie.name!=="deprecated"))}function Q(Y,oe){const he=ab(Ie=>{const de=e.symbolToTypeParameterDeclarations(Y,oe,rhe);X().writeList(53776,de,Jn(Lo(oe)),Ie)});Hr(v,he)}}function xat(e,t,r,i,o,s=oT(o),l){return nOe(e,t,r,i,o,void 0,s,l)}function rOe(e){return e.parent?!1:Ve(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!G1(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var rhe,Rat=S({"src/services/symbolDisplay.ts"(){oi(),rhe=70246400}}),iy={};H(iy,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>xat,getSymbolKind:()=>Zwe,getSymbolModifiers:()=>Iat});var Dat=S({"src/services/_namespaces/ts.SymbolDisplay.ts"(){Rat()}});function iOe(e){const t=e.__pos;return N.assert(typeof t=="number"),t}function ihe(e,t){N.assert(typeof t=="number"),e.__pos=t}function oOe(e){const t=e.__end;return N.assert(typeof t=="number"),t}function ohe(e,t){N.assert(typeof t=="number"),e.__end=t}function aOe(e,t){return Wa(e,t,!1,!0)}function Nat(e,t){let r=t;for(;r<e.length;){const i=e.charCodeAt(r);if(A_(i)){r++;continue}return i===47}return!1}function T4(e,t,r,i){return{pos:pT(e,t,i),end:QR(e,r,i)}}function pT(e,t,r,i=!1){var o,s;const{leadingTriviaOption:l}=r;if(l===0)return t.getStart(e);if(l===3){const I=t.getStart(e),R=mm(I,e);return SO(t,R)?R:I}if(l===2){const I=Hj(t,e.text);if(I!=null&&I.length)return mm(I[0].pos,e)}const u=t.getFullStart(),p=t.getStart(e);if(u===p)return p;const v=mm(u,e);if(mm(p,e)===v)return l===1?u:p;if(i){const I=((o=$h(e.text,u))==null?void 0:o[0])||((s=a0(e.text,u))==null?void 0:s[0]);if(I)return Wa(e.text,I.end,!0,!0)}const b=u>0?1:0;let A=zy(XN(e,v)+b,e);return A=aOe(e.text,A),zy(XN(e,A),e)}function ahe(e,t,r){const{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){const s=a0(e.text,i);if(s){const l=XN(e,t.end);for(const u of s){if(u.kind===2||XN(e,u.pos)>l)break;if(XN(e,u.end)>l)return Wa(e.text,u.end,!0,!0)}}}}function QR(e,t,r){var i;const{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){const p=Ro(a0(e.text,o),$h(e.text,o)),v=(i=p==null?void 0:p[p.length-1])==null?void 0:i.end;return v||o}const l=ahe(e,t,r);if(l)return l;const u=Wa(e.text,o,!0);return u!==o&&(s===2||Ku(e.text.charCodeAt(u-1)))?u:o}function cZ(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function Cat(e){return Us(e)||Dc(e)}function Pat(e){if(e.kind!==219)return e;const t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function Mat(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{const r=e,i=t;return Ue(r.name)&&Ue(i.name)&&r.name.escapedText===i.name.escapedText?O.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 349:return O.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return O.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function she(e,t){return Wa(e.text,pT(e,t,{leadingTriviaOption:1}),!1,!0)}function Lat(e,t,r,i){const o=she(e,i);if(r===void 0||Rf(QR(e,t,{}),o,e))return o;const s=Cc(i.getStart(e),e);if(cZ(t,s)){const l=Cc(t.getStart(e),e);if(cZ(r,l)){const u=Wa(e.text,s.getEnd(),!0,!0);if(Rf(l.getStart(e),s.getStart(e),e))return Ku(e.text.charCodeAt(u-1))?u-1:u;if(Ku(e.text.charCodeAt(u)))return u}}return o}function kat(e,t){const r=Is(e,19,t),i=Is(e,20,t);return[r==null?void 0:r.end,i==null?void 0:i.end]}function uZ(e){return za(e)?e.properties:e.members}function lhe(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(tc(i))}`}return e}function wat(e){return Wa(e,0)===e.length}function dZ(e){const t=xn(e,dZ,uOe,Oat,dZ),r=Zs(t)?t:Object.create(t);return Eh(r,iOe(e),oOe(e)),r}function Oat(e,t,r,i,o){const s=Un(e,t,r,i,o);if(!s)return s;N.assert(e);const l=s===e?O.createNodeArray(s.slice(0)):s;return Eh(l,iOe(e),oOe(e)),l}function sOe(e){let t=0;const r=xk(e),i=ie=>{ie&&ihe(ie,t)},o=ie=>{ie&&ohe(ie,t)},s=ie=>{ie&&ihe(ie,t)},l=ie=>{ie&&ohe(ie,t)},u=ie=>{ie&&ihe(ie,t)},p=ie=>{ie&&ohe(ie,t)};function v(ie,ge){if(ge||!wat(ie)){t=r.getTextPos();let Ce=0;for(;Og(ie.charCodeAt(ie.length-Ce-1));)Ce++;t-=Ce}}function f(ie){r.write(ie),v(ie,!1)}function b(ie){r.writeComment(ie)}function A(ie){r.writeKeyword(ie),v(ie,!1)}function I(ie){r.writeOperator(ie),v(ie,!1)}function R(ie){r.writePunctuation(ie),v(ie,!1)}function M(ie){r.writeTrailingSemicolon(ie),v(ie,!1)}function C(ie){r.writeParameter(ie),v(ie,!1)}function W(ie){r.writeProperty(ie),v(ie,!1)}function U(ie){r.writeSpace(ie),v(ie,!1)}function X(ie){r.writeStringLiteral(ie),v(ie,!1)}function ee(ie,ge){r.writeSymbol(ie,ge),v(ie,!1)}function V(ie){r.writeLine(ie)}function se(){r.increaseIndent()}function G(){r.decreaseIndent()}function re(){return r.getText()}function _e(ie){r.rawWrite(ie),v(ie,!1)}function ye(ie){r.writeLiteral(ie),v(ie,!0)}function Q(){return r.getTextPos()}function Y(){return r.getLine()}function oe(){return r.getColumn()}function he(){return r.getIndent()}function Ie(){return r.isAtStartOfLine()}function de(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:u,onAfterEmitToken:p,write:f,writeComment:b,writeKeyword:A,writeOperator:I,writePunctuation:R,writeTrailingSemicolon:M,writeParameter:C,writeProperty:W,writeSpace:U,writeStringLiteral:X,writeSymbol:ee,writeLine:V,increaseIndent:se,decreaseIndent:G,getText:re,rawWrite:_e,writeLiteral:ye,getTextPos:Q,getLine:Y,getColumn:oe,getIndent:he,isAtStartOfLine:Ie,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:de}}function Wat(e){let t;for(const v of e.statements)if(Nm(v))t=v;else break;let r=0;const i=e.text;if(t)return r=t.end,p(),r;const o=N6(i);o!==void 0&&(r=o.length,p());const s=$h(i,r);if(!s)return r;let l,u;for(const v of s){if(v.kind===3){if(n3(i,v.pos)){l={range:v,pinnedOrTripleSlash:!0};continue}}else if(Cj(i,v.pos,v.end)){l={range:v,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;const f=e.getLineAndCharacterOfPosition(v.pos).line,b=e.getLineAndCharacterOfPosition(l.range.end).line;if(f>=b+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const f=e.getLineAndCharacterOfPosition(v.end).line;if(u<f+2)break}l={range:v,pinnedOrTripleSlash:!1}}return l&&(r=l.range.end,p()),r;function p(){if(r<i.length){const v=i.charCodeAt(r);Ku(v)&&(r++,r<i.length&&v===13&&i.charCodeAt(r)===10&&r++)}}}function lOe(e,t){return!Qv(e,t)&&!wI(e,t)&&!hX(e,t)&&!Xue(e,t)}function Fat(e,t){return(Sp(e)||qo(e))&&G6(t)&&t.name.kind===167||WL(e)&&WL(t)}function $g(e,t,r,i={leadingTriviaOption:1}){const o=pT(t,r,i),s=QR(t,r,i);e.deleteRange(t,{pos:o,end:s})}function A4(e,t,r,i){const o=N.checkDefined(Bc.SmartIndenter.getContainingList(i,r)),s=p2(o,i);if(N.assert(s!==-1),o.length===1){$g(e,r,i);return}N.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(r,{pos:she(r,i),end:s===o.length-1?QR(r,i,{}):Lat(r,i,o[s-1],o[s+1])})}var che,uhe,WP,cOe,pZ,uOe,dhe,zat=S({"src/services/textChanges.ts"(){oi(),che=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(che||{}),uhe=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(uhe||{}),WP={leadingTriviaOption:0,trailingTriviaOption:0},cOe=class i0e{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new i0e(ty(t.host,t.formatContext.options),t.formatContext)}static with(t,r){const i=i0e.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){N.assertEqual(t.fileName,r.fileName);for(const i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:TF(i.span)})}deleteRange(t,r){this.changes.push({kind:0,sourceFile:t,range:r})}delete(t,r){this.deletedNodes.push({sourceFile:t,node:r})}deleteNode(t,r,i={leadingTriviaOption:1}){this.deleteRange(t,T4(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(const s of r){const l=pT(t,s,i,o),u=QR(t,s,i);this.deleteRange(t,{pos:l,end:u}),o=!!ahe(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:Wa(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){const s=pT(t,r,o),l=QR(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){const s=pT(t,r,o),l=i===void 0?t.text.length:pT(t,i,o);this.deleteRange(t,{pos:s,end:l})}replaceRange(t,r,i,o={}){this.changes.push({kind:1,sourceFile:t,range:r,options:o,node:i})}replaceNode(t,r,i,o=WP){this.replaceRange(t,T4(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=WP){this.replaceRange(t,T4(t,r,i,s),o,s)}replaceRangeWithNodes(t,r,i,o={}){this.changes.push({kind:2,sourceFile:t,range:r,options:o,nodes:i})}replaceNodeWithNodes(t,r,i,o=WP){this.replaceRangeWithNodes(t,T4(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,T4(t,r,r,WP),i)}replaceNodeRangeWithNodes(t,r,i,o,s=WP){this.replaceRangeWithNodes(t,T4(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=WP){return!!ahe(t,r,i)}nextCommaToken(t,r){const i=EE(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){const o=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:o})}insertNodeAt(t,r,i,o={}){this.replaceRange(t,xf(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,xf(r),i,o)}insertNodeAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertNodesAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertAtTopOfFile(t,r,i){const o=Wat(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(Ku(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};Do(r)?this.insertNodesAt(t,o,r,s):this.insertNodeAt(t,o,r,s)}insertNodesAtEndOfFile(t,r,i){this.insertAtEndOfFile(t,r,i)}insertAtEndOfFile(t,r,i){const o=t.end+1,s={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,o,r,s)}insertStatementsInNewFile(t,r,i){this.newFileChanges||(this.newFileChanges=Zp()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){const o=eu(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,pT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,pT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,$a(i),o))}insertModifierAt(t,r,i,o={}){this.insertNodeAt(t,r,O.createToken(i),o)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,o){const s=zy(r,t),l=hde(t.text,s),u=lOe(t,l),p=PR(t,u?l:i),v=t.text.slice(s,l),f=`${u?"":this.newLineCharacter}//${o}${this.newLineCharacter}${v}`;this.insertText(t,p.getStart(t),f)}insertJsdocCommentBefore(t,r,i){const o=r.getStart(t);if(r.jsDoc)for(const u of r.jsDoc)this.deleteRange(t,{pos:mm(u.getStart(t),t),end:QR(t,u,{})});const s=LF(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){const i=qi(r.jsDoc,s=>wo(s.comment)?O.createJSDocText(s.comment):s.comment),o=uh(r.jsDoc);return o&&Rf(o.pos,o.end,t)&&Pe(i)===0?void 0:O.createNodeArray(Oi(i,O.createJSDocText(`
`)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,Pat(r),O.createJSDocComment(this.createJSDocText(t,r),O.createNodeArray(i)))}addJSDocTags(t,r,i){const o=Zd(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((u,p)=>{const v=Mat(u,l);return v&&(o[p]=v),!!v}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,Vn(Zd(r.jsDoc,o=>o.tags),i))}replaceRangeWithText(t,r,i){this.changes.push({kind:3,sourceFile:t,range:r,text:i})}insertText(t,r,i){this.replaceRangeWithText(t,xf(r),i)}tryInsertTypeAnnotation(t,r,i){var s;let o;if(ta(r)){if(o=Is(r,22,t),!o){if(!Ks(r))return!1;o=$a(r.parameters)}}else o=(s=r.kind===260?r.exclamationToken:r.questionToken)!=null?s:r.name;return this.insertNodeAt(t,o.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){const o=Is(r,21,t).getStart(t)+1,s=r.parameters.length?", ":"";this.insertNodeAt(t,o,i,{prefix:"this: ",suffix:s})}insertTypeParameters(t,r,i){const o=(Is(r,21,t)||$a(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return $i(t)||nu(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Wi(t)?{suffix:", "}:No(t)?No(r)?{suffix:", "}:{}:La(t)&&Fc(t.parent)||qg(t)?{suffix:", "}:rp(t)?{suffix:","+(i?this.newLineCharacter:" ")}:N.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){const o=eu(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,o,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){const o=un(r.body.statements,s=>ou(s)&&IS(s.expression));!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}insertNodeAtConstructorEnd(t,r,i){const o=il(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,O.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){const o=pT(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:Ku(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtObjectStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtStartWorker(t,r,i){var s;const o=(s=this.guessIndentationFromExistingMembers(t,r))!=null?s:this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,uZ(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(const s of uZ(r)){if(Y3(o,s,t))return;const l=s.getStart(t),u=Bc.SmartIndenter.findFirstNonWhitespaceColumn(mm(l,t),l,t,this.formatContext.options);if(i===void 0)i=u;else if(u!==i)return;o=s}return i}computeIndentationForNewMember(t,r){var o;const i=r.getStart(t);return Bc.SmartIndenter.findFirstNonWhitespaceColumn(mm(i,t),i,t,this.formatContext.options)+((o=this.formatContext.options.indentSize)!=null?o:4)}getInsertNodeAtStartInsertOptions(t,r,i){const s=uZ(r).length===0,l=Pm(this.classesWithNodesInsertedAtStart,fs(r),{node:r,sourceFile:t}),u=za(r)&&(!im(t)||!s),p=za(r)&&im(t)&&s&&!l;return{indentation:i,prefix:(p?",":"")+this.newLineCharacter,suffix:u?",":gd(r)&&s?";":""}}insertNodeAfterComma(t,r,i){const o=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){const o=this.insertNodeAfterWorker(t,r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,i){this.insertNodeAt(t,r.end,i,{prefix:", "})}insertNodesAfter(t,r,i){const o=this.insertNodeAfterWorker(t,r,$a(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return Fat(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,xf(r.end),O.createToken(27)),QR(t,r,{})}getInsertNodeAfterOptions(t,r){const i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&$i(r)?i.prefix?`
${i.prefix}`:`
`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return N.assert($i(t)||G6(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(N.assert(!r.name),r.kind===219){const o=Is(r,39,t),s=Is(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[O.createToken(100),O.createIdentifier(i)],{joiner:" "}),$g(this,t,o)):(this.insertText(t,$a(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,o,O.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[O.createToken(19),O.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[O.createToken(27),O.createToken(20)],{joiner:" "}))}else{const o=Is(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,o,O.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,o){const s=i.elements[o-1];s?this.insertNodeInListAfter(t,s,r):this.insertNodeBefore(t,i.elements[0],r,!Rf(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=Bc.SmartIndenter.getContainingList(r,t)){if(!o){N.fail("node is not a list element");return}const s=p2(o,r);if(s<0)return;const l=r.getEnd();if(s!==o.length-1){const u=go(t,r.end);if(u&&cZ(r,u)){const p=o[s+1],v=aOe(t.text,p.getFullStart()),f=`${ma(u.kind)}${t.text.substring(u.end,v)}`;this.insertNodesAt(t,v,[i],{suffix:f})}}else{const u=r.getStart(t),p=mm(u,t);let v,f=!1;if(o.length===1)v=28;else{const b=Cc(r.pos,t);v=cZ(r,b)?b.kind:28,f=mm(o[s-1].getStart(t),t)!==p}if((Nat(t.text,r.end)||!Rf(o.pos,o.end,t))&&(f=!0),f){this.replaceRange(t,xf(l),O.createToken(v));const b=Bc.SmartIndenter.findFirstNonWhitespaceColumn(p,u,t,this.formatContext.options);let A=Wa(t.text,l,!0,!1);for(;A!==l&&Ku(t.text.charCodeAt(A-1));)A--;this.replaceRange(t,xf(A),i,{indentation:b,prefix:this.newLineCharacter})}else this.replaceRange(t,xf(l),i,{prefix:`${ma(v)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,$U(r),O.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{const[i,o]=kat(t,r);if(i!==void 0&&o!==void 0){const s=uZ(t).length===0,l=Rf(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,xf(i,o-1)),l&&this.insertText(r,o-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const t=new Set;for(const{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(o=>o.sourceFile===r&&jue(o.node,i))||(Do(i)?this.deleteRange(r,QU(r,i)):dhe.deleteDeclaration(this,t,r,i));t.forEach(r=>{const i=r.getSourceFile(),o=Bc.SmartIndenter.getContainingList(r,i);if(r!==rs(o))return;const s=as(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:she(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const r=pZ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(pZ.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}},(e=>{function t(u,p,v,f){return Vi(lN(u,b=>b.sourceFile.path),b=>{const A=b[0].sourceFile,I=Dv(b,(M,C)=>M.range.pos-C.range.pos||M.range.end-C.range.end);for(let M=0;M<I.length-1;M++)N.assert(I[M].range.end<=I[M+1].range.pos,"Changes overlap",()=>`${JSON.stringify(I[M].range)} and ${JSON.stringify(I[M+1].range)}`);const R=Vi(I,M=>{var X,ee;const C=ob(M.range),W=M.kind===1?(X=Jn(Ol(M.node)))!=null?X:M.sourceFile:M.kind===2&&(ee=Jn(Ol(M.nodes[0])))!=null?ee:M.sourceFile,U=o(M,W,A,p,v,f);if(!(C.length===U.length&&Dde(W.text,U,C.start)))return DO(C,U)});return R.length>0?{fileName:A.fileName,textChanges:R}:void 0})}e.getTextChangesFromChanges=t;function r(u,p,v,f){const b=i(p7(u),p,v,f);return{fileName:u,textChanges:[DO(Eu(0,0),b)],isNewFile:!0}}e.newFileChanges=r;function i(u,p,v,f){const b=qi(p,R=>R.statements.map(M=>M===4?"":l(M,R.oldFile,v).text)).join(v),A=Iw("any file name",b,{languageVersion:99,jsDocParsingMode:1},!0,u),I=Bc.formatDocument(A,f);return lhe(b,I)+v}e.newFileChangesWorker=i;function o(u,p,v,f,b,A){var I;if(u.kind===0)return"";if(u.kind===3)return u.text;const{options:R={},range:{pos:M}}=u,C=X=>s(X,p,v,M,R,f,b,A),W=u.kind===2?u.nodes.map(X=>Hx(C(X),f)).join(((I=u.options)==null?void 0:I.joiner)||f):C(u.node),U=R.indentation!==void 0||mm(M,p)===M?W:W.replace(/^\s+/,"");return(R.prefix||"")+U+(!R.suffix||Dl(U,R.suffix)?"":R.suffix)}function s(u,p,v,f,{indentation:b,prefix:A,delta:I},R,M,C){const{node:W,text:U}=l(u,p,R);C&&C(W,U);const X=JF(M,p),ee=b!==void 0?b:Bc.SmartIndenter.getIndentation(f,v,X,A===R||mm(f,p)===f);I===void 0&&(I=Bc.SmartIndenter.shouldIndentChildNode(X,u)&&X.indentSize||0);const V={text:U,getLineAndCharacterOfPosition(G){return Rs(this,G)}},se=Bc.formatNodeGivenIndentation(W,V,p.languageVariant,ee,I,{...M,options:X});return lhe(U,se)}function l(u,p,v){const f=sOe(v),b=GO(v);return k0({newLine:b,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},f).writeNode(4,u,p,f),{text:f.getText(),node:dZ(u)}}e.getNonformattedText=l})(pZ||(pZ={})),uOe={...oP,factory:Xk(oP.factory.flags|1,oP.factory.baseFactory)},(e=>{function t(s,l,u,p){switch(p.kind){case 169:{const I=p.parent;Ks(I)&&I.parameters.length===1&&!Is(I,21,u)?s.replaceNodeWithText(u,p,"()"):A4(s,l,u,p);break}case 272:case 271:const v=u.imports.length&&p===$a(u.imports).parent||p===un(u.statements,TS);$g(s,u,p,{leadingTriviaOption:v?0:zp(p)?2:3});break;case 208:const f=p.parent;f.kind===207&&p!==rs(f.elements)?$g(s,u,p):A4(s,l,u,p);break;case 260:o(s,l,u,p);break;case 168:A4(s,l,u,p);break;case 276:const A=p.parent;A.elements.length===1?i(s,u,A):A4(s,l,u,p);break;case 274:i(s,u,p);break;case 27:$g(s,u,p,{trailingTriviaOption:0});break;case 100:$g(s,u,p,{leadingTriviaOption:0});break;case 263:case 262:$g(s,u,p,{leadingTriviaOption:zp(p)?2:3});break;default:p.parent?Ih(p.parent)&&p.parent.name===p?r(s,u,p.parent):ca(p.parent)&&Mn(p.parent.arguments,p)?A4(s,l,u,p):$g(s,u,p):$g(s,u,p)}}e.deleteDeclaration=t;function r(s,l,u){if(!u.namedBindings)$g(s,l,u.parent);else{const p=u.name.getStart(l),v=go(l,u.name.end);if(v&&v.kind===28){const f=Wa(l.text,v.end,!1,!0);s.deleteRange(l,{pos:p,end:f})}else $g(s,l,u.name)}}function i(s,l,u){if(u.parent.name){const p=N.checkDefined(go(l,u.pos-1));s.deleteRange(l,{pos:p.getStart(l),end:u.end})}else{const p=b0(u,272);$g(s,l,p)}}function o(s,l,u,p){const{parent:v}=p;if(v.kind===299){s.deleteNodeRange(u,Is(v,21,u),Is(v,22,u));return}if(v.declarations.length!==1){A4(s,l,u,p);return}const f=v.parent;switch(f.kind){case 250:case 249:s.replaceNode(u,p,O.createObjectLiteralExpression());break;case 248:$g(s,u,v);break;case 243:$g(s,u,f,{leadingTriviaOption:zp(f)?2:3});break;default:N.assertNever(f)}}})(dhe||(dhe={}))}}),yr={};H(yr,{ChangeTracker:()=>cOe,LeadingTriviaOption:()=>che,TrailingTriviaOption:()=>uhe,applyChanges:()=>lhe,assignPositionsToNode:()=>dZ,createWriter:()=>sOe,deleteNode:()=>$g,isThisTypeAnnotatable:()=>Cat,isValidLocationToAddComment:()=>lOe});var Bat=S({"src/services/_namespaces/ts.textChanges.ts"(){zat()}}),phe,fhe,Gat=S({"src/services/formatting/formattingContext.ts"(){oi(),phe=(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))(phe||{}),fhe=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=N.checkDefined(e),this.currentTokenParent=N.checkDefined(t),this.nextTokenSpan=N.checkDefined(r),this.nextTokenParent=N.checkDefined(i),this.contextNode=N.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){const t=Is(e,19,this.sourceFile),r=Is(e,20,this.sourceFile);if(t&&r){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}}}});function mhe(e,t,r,i,o){const s=t===1?pOe:dOe;s.setText(e),s.resetTokenState(r);let l=!0,u,p,v,f,b;const A=o({advance:I,readTokenInfo:V,readEOFTokenRange:G,isOnToken:re,isOnEOF:_e,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:Q,skipToStartOf:Y,getTokenFullStart:()=>{var oe;return(oe=b==null?void 0:b.token.pos)!=null?oe:s.getTokenStart()},getStartPos:()=>{var oe;return(oe=b==null?void 0:b.token.pos)!=null?oe:s.getTokenStart()}});return b=void 0,s.setText(void 0),A;function I(){b=void 0,s.getTokenFullStart()!==r?l=!!p&&rs(p).kind===4:s.scan(),u=void 0,p=void 0;let he=s.getTokenFullStart();for(;he<i;){const Ie=s.getToken();if(!C2(Ie))break;s.scan();const de={pos:he,end:s.getTokenFullStart(),kind:Ie};he=s.getTokenFullStart(),u=Rn(u,de)}v=s.getTokenFullStart()}function R(oe){switch(oe.kind){case 34:case 72:case 73:case 50:case 49:return!0}return!1}function M(oe){if(oe.parent)switch(oe.parent.kind){case 291:case 286:case 287:case 285:return Gd(oe.kind)||oe.kind===80}return!1}function C(oe){return sI(oe)||pg(oe)&&(b==null?void 0:b.token.kind)===12}function W(oe){return oe.kind===14}function U(oe){return oe.kind===17||oe.kind===18}function X(oe){return oe.parent&&F_(oe.parent)&&oe.parent.initializer===oe}function ee(oe){return oe===44||oe===69}function V(oe){N.assert(re());const he=R(oe)?1:W(oe)?2:U(oe)?3:M(oe)?4:C(oe)?5:X(oe)?6:0;if(b&&he===f)return ye(b,oe);s.getTokenFullStart()!==v&&(N.assert(b!==void 0),s.resetTokenState(v),s.scan());let Ie=se(oe,he);const de=hZ(s.getTokenFullStart(),s.getTokenEnd(),Ie);for(p&&(p=void 0);s.getTokenFullStart()<i&&(Ie=s.scan(),!!C2(Ie));){const ie=hZ(s.getTokenFullStart(),s.getTokenEnd(),Ie);if(p||(p=[]),p.push(ie),Ie===4){s.scan();break}}return b={leadingTrivia:u,trailingTrivia:p,token:de},ye(b,oe)}function se(oe,he){const Ie=s.getToken();switch(f=0,he){case 1:if(Ie===32){f=1;const de=s.reScanGreaterToken();return N.assert(oe.kind===de),de}break;case 2:if(ee(Ie)){f=2;const de=s.reScanSlashToken();return N.assert(oe.kind===de),de}break;case 3:if(Ie===20)return f=3,s.reScanTemplateToken(!1);break;case 4:return f=4,s.scanJsxIdentifier();case 5:return f=5,s.reScanJsxToken(!1);case 6:return f=6,s.reScanJsxAttributeValue();case 0:break;default:N.assertNever(he)}return Ie}function G(){return N.assert(_e()),hZ(s.getTokenFullStart(),s.getTokenEnd(),1)}function re(){const oe=b?b.token.kind:s.getToken();return oe!==1&&!C2(oe)}function _e(){return(b?b.token.kind:s.getToken())===1}function ye(oe,he){return kA(he)&&oe.token.kind!==he.kind&&(oe.token.kind=he.kind),oe}function Q(oe){s.resetTokenState(oe.end),v=s.getTokenFullStart(),f=void 0,b=void 0,l=!1,u=void 0,p=void 0}function Y(oe){s.resetTokenState(oe.pos),v=s.getTokenFullStart(),f=void 0,b=void 0,l=!1,u=void 0,p=void 0}}var dOe,pOe,Vat=S({"src/services/formatting/formattingScanner.ts"(){oi(),R4(),dOe=wv(99,!1,0),pOe=wv(99,!1,1)}}),Z9,_he,hhe,jat=S({"src/services/formatting/rule.ts"(){oi(),Z9=et,_he=(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))(_he||{}),hhe=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(hhe||{})}});function fOe(){const e=[];for(let se=0;se<=165;se++)se!==1&&e.push(se);function t(...se){return{tokens:e.filter(G=>!se.some(re=>re===G)),isSpecific:!1}}const r={tokens:e,isSpecific:!1},i=FP([...e,3]),o=FP([...e,1]),s=_Oe(83,165),l=_Oe(30,79),u=[103,104,165,130,142,152],p=[46,47,55,54],v=[9,10,80,21,23,19,110,105],f=[80,21,110,105],b=[80,22,24,105],A=[80,21,110,105],I=[80,22,24,105],R=[2,3],M=[80,...XF],C=i,W=FP([80,32,3,86,95,102]),U=FP([22,3,92,113,98,93,85]),X=[Xr("IgnoreBeforeComment",r,R,Z9,1),Xr("IgnoreAfterLineComment",2,r,Z9,1),Xr("NotSpaceBeforeColon",r,59,[Zi,ez,vOe],16),Xr("SpaceAfterColon",59,r,[Zi,ez,ast],4),Xr("NoSpaceBeforeQuestionMark",r,58,[Zi,ez,vOe],16),Xr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Zi,Jat],4),Xr("NoSpaceAfterQuestionMark",58,r,[Zi,qat],16),Xr("NoSpaceBeforeDot",r,[25,29],[Zi,yst],16),Xr("NoSpaceAfterDot",[25,29],r,[Zi],16),Xr("NoSpaceBetweenImportParenInImportType",102,21,[Zi,ist],16),Xr("NoSpaceAfterUnaryPrefixOperator",p,v,[Zi,ez],16),Xr("NoSpaceAfterUnaryPreincrementOperator",46,f,[Zi],16),Xr("NoSpaceAfterUnaryPredecrementOperator",47,A,[Zi],16),Xr("NoSpaceBeforeUnaryPostincrementOperator",b,46,[Zi,kOe],16),Xr("NoSpaceBeforeUnaryPostdecrementOperator",I,47,[Zi,kOe],16),Xr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Zi,lb],4),Xr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Zi,lb],4),Xr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Zi,lb],4),Xr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Zi,lb],4),Xr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Zi,lb],4),Xr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Zi,lb],4),Xr("NoSpaceAfterCloseBrace",20,[28,27],[Zi],16),Xr("NewLineBeforeCloseBraceInBlockContext",i,20,[bOe],8),Xr("SpaceAfterCloseBrace",20,t(22),[Zi,Yat],4),Xr("SpaceBetweenCloseBraceAndElse",20,93,[Zi],4),Xr("SpaceBetweenCloseBraceAndWhile",20,117,[Zi],4),Xr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Zi,xOe],16),Xr("SpaceAfterConditionalClosingParen",22,23,[tz],4),Xr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[TOe],16),Xr("SpaceAfterStarInGeneratorDeclaration",42,80,[TOe],4),Xr("SpaceAfterFunctionInFuncDecl",100,r,[fT],4),Xr("NewLineAfterOpenBraceInBlockContext",19,r,[bOe],8),Xr("SpaceAfterGetSetInMember",[139,153],80,[fT],4),Xr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Zi,LOe],16),Xr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Zi,LOe],4),Xr("NoSpaceBetweenReturnAndSemicolon",107,27,[Zi],16),Xr("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[Zi],4),Xr("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[Zi,cst],4),Xr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Zi,Zat,est],16),Xr("SpaceBeforeBinaryKeywordOperator",r,u,[Zi,lb],4),Xr("SpaceAfterBinaryKeywordOperator",u,r,[Zi,lb],4),Xr("SpaceAfterVoidOperator",116,r,[Zi,mst],4),Xr("SpaceBetweenAsyncAndOpenParen",134,21,[rst,Zi],4),Xr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Zi],4),Xr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Zi],16),Xr("SpaceBeforeJsxAttribute",r,80,[ost,Zi],4),Xr("SpaceBeforeSlashInJsxOpeningElement",r,44,[COe,Zi],4),Xr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[COe,Zi],16),Xr("NoSpaceBeforeEqualInJsxAttribute",r,64,[DOe,Zi],16),Xr("NoSpaceAfterEqualInJsxAttribute",64,r,[DOe,Zi],16),Xr("NoSpaceBeforeJsxNamespaceColon",80,59,[NOe],16),Xr("NoSpaceAfterJsxNamespaceColon",59,80,[NOe],16),Xr("NoSpaceAfterModuleImport",[144,149],21,[Zi],16),Xr("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],r,[Zi],4),Xr("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[Zi],4),Xr("SpaceAfterModuleName",11,19,[ust],4),Xr("SpaceBeforeArrow",r,39,[Zi],4),Xr("SpaceAfterArrow",39,r,[Zi],4),Xr("NoSpaceAfterEllipsis",26,80,[Zi],16),Xr("NoSpaceAfterOptionalParameters",58,[22,28],[Zi,ez],16),Xr("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Zi,dst],16),Xr("NoSpaceBeforeOpenAngularBracket",M,30,[Zi,nz],16),Xr("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Zi,nz],16),Xr("NoSpaceAfterOpenAngularBracket",30,r,[Zi,nz],16),Xr("NoSpaceBeforeCloseAngularBracket",r,32,[Zi,nz],16),Xr("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Zi,nz,Xat,fst],16),Xr("SpaceBeforeAt",[22,80],60,[Zi],4),Xr("NoSpaceAfterAt",60,r,[Zi],16),Xr("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[lst],4),Xr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Zi,_st],16),Xr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Zi,pst],16),Xr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Zi],4)],ee=[Xr("SpaceAfterConstructor",137,21,[pf("insertSpaceAfterConstructor"),Zi],4),Xr("NoSpaceAfterConstructor",137,21,[j_("insertSpaceAfterConstructor"),Zi],16),Xr("SpaceAfterComma",28,r,[pf("insertSpaceAfterCommaDelimiter"),Zi,The,tst,nst],4),Xr("NoSpaceAfterComma",28,r,[j_("insertSpaceAfterCommaDelimiter"),Zi,The],16),Xr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[pf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),fT],4),Xr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[j_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),fT],16),Xr("SpaceAfterKeywordInControl",s,21,[pf("insertSpaceAfterKeywordsInControlFlowStatements"),tz],4),Xr("NoSpaceAfterKeywordInControl",s,21,[j_("insertSpaceAfterKeywordsInControlFlowStatements"),tz],16),Xr("SpaceAfterOpenParen",21,r,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Zi],4),Xr("SpaceBeforeCloseParen",r,22,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Zi],4),Xr("SpaceBetweenOpenParens",21,21,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Zi],4),Xr("NoSpaceBetweenParens",21,22,[Zi],16),Xr("NoSpaceAfterOpenParen",21,r,[j_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Zi],16),Xr("NoSpaceBeforeCloseParen",r,22,[j_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Zi],16),Xr("SpaceAfterOpenBracket",23,r,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Zi],4),Xr("SpaceBeforeCloseBracket",r,24,[pf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Zi],4),Xr("NoSpaceBetweenBrackets",23,24,[Zi],16),Xr("NoSpaceAfterOpenBracket",23,r,[j_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Zi],16),Xr("NoSpaceBeforeCloseBracket",r,24,[j_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Zi],16),Xr("SpaceAfterOpenBrace",19,r,[gOe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),yOe],4),Xr("SpaceBeforeCloseBrace",r,20,[gOe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),yOe],4),Xr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Zi,xOe],16),Xr("NoSpaceAfterOpenBrace",19,r,[ghe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Zi],16),Xr("NoSpaceBeforeCloseBrace",r,20,[ghe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Zi],16),Xr("SpaceBetweenEmptyBraceBrackets",19,20,[pf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Xr("NoSpaceBetweenEmptyBraceBrackets",19,20,[ghe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Zi],16),Xr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[pf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ROe],4,1),Xr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[pf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Zi],4),Xr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[j_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ROe],16,1),Xr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[j_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Zi],16),Xr("SpaceAfterOpenBraceInJsxExpression",19,r,[pf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Zi,mZ],4),Xr("SpaceBeforeCloseBraceInJsxExpression",r,20,[pf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Zi,mZ],4),Xr("NoSpaceAfterOpenBraceInJsxExpression",19,r,[j_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Zi,mZ],16),Xr("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[j_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Zi,mZ],16),Xr("SpaceAfterSemicolonInFor",27,r,[pf("insertSpaceAfterSemicolonInForStatements"),Zi,yhe],4),Xr("NoSpaceAfterSemicolonInFor",27,r,[j_("insertSpaceAfterSemicolonInForStatements"),Zi,yhe],16),Xr("SpaceBeforeBinaryOperator",r,l,[pf("insertSpaceBeforeAndAfterBinaryOperators"),Zi,lb],4),Xr("SpaceAfterBinaryOperator",l,r,[pf("insertSpaceBeforeAndAfterBinaryOperators"),Zi,lb],4),Xr("NoSpaceBeforeBinaryOperator",r,l,[j_("insertSpaceBeforeAndAfterBinaryOperators"),Zi,lb],16),Xr("NoSpaceAfterBinaryOperator",l,r,[j_("insertSpaceBeforeAndAfterBinaryOperators"),Zi,lb],16),Xr("SpaceBeforeOpenParenInFuncDecl",r,21,[pf("insertSpaceBeforeFunctionParenthesis"),Zi,fT],4),Xr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[j_("insertSpaceBeforeFunctionParenthesis"),Zi,fT],16),Xr("NewLineBeforeOpenBraceInControl",U,19,[pf("placeOpenBraceOnNewLineForControlBlocks"),tz,She],8,1),Xr("NewLineBeforeOpenBraceInFunction",C,19,[pf("placeOpenBraceOnNewLineForFunctions"),fT,She],8,1),Xr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",W,19,[pf("placeOpenBraceOnNewLineForFunctions"),AOe,She],8,1),Xr("SpaceAfterTypeAssertion",32,r,[pf("insertSpaceAfterTypeAssertion"),Zi,Ihe],4),Xr("NoSpaceAfterTypeAssertion",32,r,[j_("insertSpaceAfterTypeAssertion"),Zi,Ihe],16),Xr("SpaceBeforeTypeAnnotation",r,[58,59],[pf("insertSpaceBeforeTypeAnnotation"),Zi,bhe],4),Xr("NoSpaceBeforeTypeAnnotation",r,[58,59],[j_("insertSpaceBeforeTypeAnnotation"),Zi,bhe],16),Xr("NoOptionalSemicolon",27,o,[hOe("semicolons","remove"),gst],32),Xr("OptionalSemicolon",r,o,[hOe("semicolons","insert"),vst],64)],V=[Xr("NoSpaceBeforeSemicolon",r,27,[Zi],16),Xr("SpaceBeforeOpenBraceInControl",U,19,[vhe("placeOpenBraceOnNewLineForControlBlocks"),tz,Ahe,Ehe],4,1),Xr("SpaceBeforeOpenBraceInFunction",C,19,[vhe("placeOpenBraceOnNewLineForFunctions"),fT,fZ,Ahe,Ehe],4,1),Xr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",W,19,[vhe("placeOpenBraceOnNewLineForFunctions"),AOe,Ahe,Ehe],4,1),Xr("NoSpaceBeforeComma",r,28,[Zi],16),Xr("NoSpaceBeforeOpenBracket",t(134,84),23,[Zi],16),Xr("NoSpaceAfterCloseBracket",24,r,[Zi,sst],16),Xr("SpaceAfterSemicolon",27,r,[Zi],4),Xr("SpaceBetweenForAndAwaitKeyword",99,135,[Zi],4),Xr("SpaceBetweenStatements",[22,92,93,84],r,[Zi,The,Uat],4),Xr("SpaceAfterTryCatchFinally",[113,85,98],19,[Zi],4)];return[...X,...ee,...V]}function Xr(e,t,r,i,o,s=0){return{leftTokenRange:mOe(t),rightTokenRange:mOe(r),rule:{debugName:e,context:i,action:o,flags:s}}}function FP(e){return{tokens:e,isSpecific:!0}}function mOe(e){return typeof e=="number"?FP([e]):Do(e)?FP(e):e}function _Oe(e,t,r=[]){const i=[];for(let o=e;o<=t;o++)Mn(r,o)||i.push(o);return FP(i)}function hOe(e,t){return r=>r.options&&r.options[e]===t}function pf(e){return t=>t.options&&Ls(t.options,e)&&!!t.options[e]}function ghe(e){return t=>t.options&&Ls(t.options,e)&&!t.options[e]}function j_(e){return t=>!t.options||!Ls(t.options,e)||!t.options[e]}function vhe(e){return t=>!t.options||!Ls(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function gOe(e){return t=>!t.options||!Ls(t.options,e)||!!t.options[e]}function yhe(e){return e.contextNode.kind===248}function Uat(e){return!yhe(e)}function lb(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function ez(e){return!lb(e)}function vOe(e){return!bhe(e)}function bhe(e){const t=e.contextNode.kind;return t===172||t===171||t===169||t===260||OA(t)}function Hat(e){return qo(e.contextNode)&&e.contextNode.questionToken}function qat(e){return!Hat(e)}function Jat(e){return e.contextNode.kind===227||e.contextNode.kind===194}function Ehe(e){return e.TokensAreOnSameLine()||fZ(e)}function yOe(e){return e.contextNode.kind===206||e.contextNode.kind===200||Kat(e)}function She(e){return fZ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function bOe(e){return EOe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Kat(e){return EOe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function EOe(e){return SOe(e.contextNode)}function fZ(e){return SOe(e.nextTokenParent)}function SOe(e){if(IOe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function fT(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function Xat(e){return!fT(e)}function TOe(e){return e.contextNode.kind===262||e.contextNode.kind===218}function AOe(e){return IOe(e.contextNode)}function IOe(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function Yat(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function tz(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function xOe(e){return e.contextNode.kind===210}function $at(e){return e.contextNode.kind===213}function Qat(e){return e.contextNode.kind===214}function Zat(e){return $at(e)||Qat(e)}function est(e){return e.currentTokenSpan.kind!==28}function tst(e){return e.nextTokenSpan.kind!==24}function nst(e){return e.nextTokenSpan.kind!==22}function rst(e){return e.contextNode.kind===219}function ist(e){return e.contextNode.kind===205}function Zi(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function ROe(e){return e.contextNode.kind!==12}function The(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function mZ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function ost(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function DOe(e){return e.contextNode.kind===291}function ast(e){return e.nextTokenParent.kind!==295}function NOe(e){return e.nextTokenParent.kind===295}function COe(e){return e.contextNode.kind===285}function sst(e){return!fT(e)&&!fZ(e)}function lst(e){return e.TokensAreOnSameLine()&&If(e.contextNode)&&POe(e.currentTokenParent)&&!POe(e.nextTokenParent)}function POe(e){for(;e&&bt(e);)e=e.parent;return e&&e.kind===170}function cst(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Ahe(e){return e.formattingRequestKind!==2}function ust(e){return e.contextNode.kind===267}function dst(e){return e.contextNode.kind===187}function pst(e){return e.contextNode.kind===180}function MOe(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function nz(e){return MOe(e.currentTokenSpan,e.currentTokenParent)||MOe(e.nextTokenSpan,e.nextTokenParent)}function Ihe(e){return e.contextNode.kind===216}function fst(e){return!Ihe(e)}function mst(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function LOe(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function _st(e){return e.contextNode.kind===235}function kOe(e){return!hst(e)}function hst(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function gst(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(C2(t)){const s=e.nextTokenParent===e.currentTokenParent?EE(e.currentTokenParent,jn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}const i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,o=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===o?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!Sp(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:qo(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function vst(e){return FF(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function yst(e){return!Br(e.contextNode)||!Ep(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var bst=S({"src/services/formatting/rules.ts"(){oi(),R4()}});function Est(e,t){return{options:e,getRules:Sst(),host:t}}function Sst(){return xhe===void 0&&(xhe=Ast(fOe())),xhe}function Tst(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function Ast(e){const t=Ist(e);return r=>{const i=t[wOe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const o=[];let s=0;for(const l of i){const u=~Tst(s);l.action&u&&Bn(l.context,p=>p(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function Ist(e){const t=new Array(_Z*_Z),r=new Array(t.length);for(const i of e){const o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const s of i.leftTokenRange.tokens)for(const l of i.rightTokenRange.tokens){const u=wOe(s,l);let p=t[u];p===void 0&&(p=t[u]=[]),xst(p,i.rule,o,r,u)}}return t}function wOe(e,t){return N.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*_Z+t}function xst(e,t,r,i,o){const s=t.action&3?r?0:zP.StopRulesAny:t.context!==Z9?r?zP.ContextRulesSpecific:zP.ContextRulesAny:r?zP.NoContextRulesSpecific:zP.NoContextRulesAny,l=i[o]||0;e.splice(Rst(l,s),0,t),i[o]=Dst(l,s)}function Rst(e,t){let r=0;for(let i=0;i<=t;i+=ZR)r+=e&rz,e>>=ZR;return r}function Dst(e,t){const r=(e>>t&rz)+1;return N.assert((r&rz)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(rz<<t)|r<<t}var xhe,ZR,rz,_Z,zP,Nst=S({"src/services/formatting/rulesMap.ts"(){oi(),R4(),ZR=5,rz=31,_Z=165+1,zP=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=ZR*1]="StopRulesAny",e[e.ContextRulesSpecific=ZR*2]="ContextRulesSpecific",e[e.ContextRulesAny=ZR*3]="ContextRulesAny",e[e.NoContextRulesSpecific=ZR*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=ZR*5]="NoContextRulesAny",e))(zP||{})}});function hZ(e,t,r){const i={pos:e,end:t,kind:r};return N.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>N.formatSyntaxKind(r)}),i}function Cst(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=VL(i,t);for(;A_(t.text.charCodeAt(o));)o--;Ku(t.text.charCodeAt(o))&&o--;const s={pos:zy(i-1,t),end:o+1};return iz(s,t,r,2)}function Pst(e,t,r){const i=Rhe(e,27,t);return OOe(Dhe(i),t,r,3)}function Mst(e,t,r){const i=Rhe(e,19,t);if(!i)return[];const o=i.parent,s=Dhe(o),l={pos:mm(s.getStart(t),t),end:e};return iz(l,t,r,4)}function Lst(e,t,r){const i=Rhe(e,20,t);return OOe(Dhe(i),t,r,5)}function kst(e,t){const r={pos:0,end:e.text.length};return iz(r,e,t,0)}function wst(e,t,r,i){const o={pos:mm(e,r),end:t};return iz(o,r,i,1)}function Rhe(e,t,r){const i=Cc(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function Dhe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!Ost(t.parent,t);)t=t.parent;return t}function Ost(e,t){switch(e.kind){case 263:case 264:return cf(e.members,t);case 267:const r=e.body;return!!r&&r.kind===268&&cf(r.statements,t);case 312:case 241:case 268:return cf(e.statements,t);case 299:return cf(e.block.statements,t)}return!1}function Wst(e,t){return r(t);function r(i){const o=Uo(i,s=>pX(s.getStart(t),s.end,e)&&s);if(o){const s=r(o);if(s)return s}return i}}function Fst(e,t){if(!e.length)return o;const r=e.filter(s=>hP(t,s.start,s.start+s.length)).sort((s,l)=>s.start-l.start);if(!r.length)return o;let i=0;return s=>{for(;;){if(i>=r.length)return!1;const l=r[i];if(s.end<=l.start)return!1;if(mF(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function zst(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 Bst(e,t,r){let i=-1,o;for(;e;){const s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(U_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function Gst(e,t,r,i,o,s){const l={pos:e.pos,end:e.end};return mhe(t.text,r,l.pos,l.end,u=>WOe(l,e,i,o,u,s,1,p=>!1,t))}function OOe(e,t,r,i){if(!e)return[];const o={pos:mm(e.getStart(t),t),end:e.end};return iz(o,t,r,i)}function iz(e,t,r,i){const o=Wst(e,t);return mhe(t.text,t.languageVariant,zst(o,e,t),e.end,s=>WOe(e,o,U_.getIndentationForNode(o,e,t,r.options),Bst(o,r.options,t),s,r,i,Fst(t.parseDiagnostics,e),t))}function WOe(e,t,r,i,o,{options:s,getRules:l,host:u},p,v,f){var b;const A=new fhe(f,p,s);let I,R,M,C,W,U=-1;const X=[];if(o.advance(),o.isOnToken()){const be=f.getLineAndCharacterOfPosition(t.getStart(f)).line;let He=be;If(t)&&(He=f.getLineAndCharacterOfPosition(Pj(t,f)).line),_e(t,t,be,He,r,i)}const ee=o.getCurrentLeadingTrivia();if(ee){const be=U_.nodeWillIndentChild(s,t,void 0,f,!1)?r+s.indentSize:r;ye(ee,be,!0,He=>{Y(He,f.getLineAndCharacterOfPosition(He.pos),t,t,void 0),he(He.pos,be,!1)}),s.trimTrailingWhitespace!==!1&&qe(ee)}if(R&&o.getTokenFullStart()>=e.end){const be=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(be&&be.pos===I){const He=((b=Cc(be.end,f,t))==null?void 0:b.parent)||M;oe(be,f.getLineAndCharacterOfPosition(be.pos).line,He,R,C,M,He,void 0)}}return X;function V(be,He,it,Ft,yt){if(hP(Ft,be,He)||AO(Ft,be,He)){if(yt!==-1)return yt}else{const Ze=f.getLineAndCharacterOfPosition(be).line,It=mm(be,f),on=U_.findFirstNonWhitespaceColumn(It,be,f,s);if(Ze!==it||be===on){const Yt=U_.getBaseIndentation(s);return Yt>on?Yt:on}}return-1}function se(be,He,it,Ft,yt,Ze){const It=U_.shouldIndentChildNode(s,be)?s.indentSize:0;return Ze===He?{indentation:He===W?U:yt.getIndentation(),delta:Math.min(s.indentSize,yt.getDelta(be)+It)}:it===-1?be.kind===21&&He===W?{indentation:U,delta:yt.getDelta(be)}:U_.childStartsOnTheSameLineWithElseInIfStatement(Ft,be,He,f)||U_.childIsUnindentedBranchOfConditionalExpression(Ft,be,He,f)||U_.argumentStartsOnSameLineAsPreviousArgument(Ft,be,He,f)?{indentation:yt.getIndentation(),delta:It}:{indentation:yt.getIndentation()+yt.getDelta(be),delta:It}:{indentation:it,delta:It}}function G(be){if(km(be)){const He=un(be.modifiers,Ra,Ji(be.modifiers,Au));if(He)return He.kind}switch(be.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(be.asteriskToken)return 42;case 172:case 169:const He=Oo(be);if(He)return He.kind}}function re(be,He,it,Ft){return{getIndentationForComment:(It,on,Yt)=>{switch(It){case 20:case 24:case 22:return it+Ze(Yt)}return on!==-1?on:it},getIndentationForToken:(It,on,Yt,Nn)=>!Nn&&yt(It,on,Yt)?it+Ze(Yt):it,getIndentation:()=>it,getDelta:Ze,recomputeIndentation:(It,on)=>{U_.shouldIndentChildNode(s,on,be,f)&&(it+=It?s.indentSize:-s.indentSize,Ft=U_.shouldIndentChildNode(s,be)?s.indentSize:0)}};function yt(It,on,Yt){switch(on){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(Yt.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(Yt.kind!==200)return!1;break}return He!==It&&!(If(be)&&on===G(be))}function Ze(It){return U_.nodeWillIndentChild(s,be,It,f,!0)?Ft:0}}function _e(be,He,it,Ft,yt,Ze){if(!hP(e,be.getStart(f),be.getEnd()))return;const It=re(be,it,yt,Ze);let on=He;for(Uo(be,yn=>{Yt(yn,-1,be,It,it,Ft,!1)},yn=>{Nn(yn,be,it,It)});o.isOnToken()&&o.getTokenFullStart()<e.end;){const yn=o.readTokenInfo(be);if(yn.token.end>Math.min(be.end,e.end))break;Xn(yn,be,It,be)}function Yt(yn,tn,en,gi,bo,Ui,Co,tr){if(N.assert(!Zs(yn)),Hl(yn)||xie(en,yn))return tn;const Ci=yn.getStart(f),Nr=f.getLineAndCharacterOfPosition(Ci).line;let Kt=Nr;If(yn)&&(Kt=f.getLineAndCharacterOfPosition(Pj(yn,f)).line);let nt=-1;if(Co&&cf(e,en)&&(nt=V(Ci,yn.end,bo,e,tn),nt!==-1&&(tn=nt)),!hP(e,yn.pos,yn.end))return yn.end<e.pos&&o.skipToEndOf(yn),tn;if(yn.getFullWidth()===0)return tn;for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){const si=o.readTokenInfo(be);if(si.token.end>e.end)return tn;if(si.token.end>Ci){si.token.pos>Ci&&o.skipToStartOf(yn);break}Xn(si,be,gi,be)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return tn;if(kA(yn)){const si=o.readTokenInfo(yn);if(yn.kind!==12)return N.assert(si.token.end===yn.end,"Token end is child end"),Xn(si,be,gi,yn),tn}const Bt=yn.kind===170?Nr:Ui,Dn=se(yn,Nr,nt,be,gi,Bt);return _e(yn,on,Nr,Kt,Dn.indentation,Dn.delta),on=be,tr&&en.kind===209&&tn===-1&&(tn=Dn.indentation),tn}function Nn(yn,tn,en,gi){N.assert(k1(yn)),N.assert(!Zs(yn));const bo=Vst(tn,yn);let Ui=gi,Co=en;if(!hP(e,yn.pos,yn.end)){yn.end<e.pos&&o.skipToEndOf(yn);return}if(bo!==0)for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){const Nr=o.readTokenInfo(tn);if(Nr.token.end>yn.pos)break;if(Nr.token.kind===bo){Co=f.getLineAndCharacterOfPosition(Nr.token.pos).line,Xn(Nr,tn,gi,tn);let Kt;if(U!==-1)Kt=U;else{const nt=mm(Nr.token.pos,f);Kt=U_.findFirstNonWhitespaceColumn(nt,Nr.token.pos,f,s)}Ui=re(tn,en,Kt,s.indentSize)}else Xn(Nr,tn,gi,tn)}let tr=-1;for(let Nr=0;Nr<yn.length;Nr++){const Kt=yn[Nr];tr=Yt(Kt,tr,be,Ui,Co,Co,!0,Nr===0)}const Ci=jst(bo);if(Ci!==0&&o.isOnToken()&&o.getTokenFullStart()<e.end){let Nr=o.readTokenInfo(tn);Nr.token.kind===28&&(Xn(Nr,tn,Ui,tn),Nr=o.isOnToken()?o.readTokenInfo(tn):void 0),Nr&&Nr.token.kind===Ci&&cf(tn,Nr.token)&&Xn(Nr,tn,Ui,tn,!0)}}function Xn(yn,tn,en,gi,bo){N.assert(cf(tn,yn.token));const Ui=o.lastTrailingTriviaWasNewLine();let Co=!1;yn.leadingTrivia&&Q(yn.leadingTrivia,tn,on,en);let tr=0;const Ci=cf(e,yn.token),Nr=f.getLineAndCharacterOfPosition(yn.token.pos);if(Ci){const Kt=v(yn.token),nt=R;if(tr=Y(yn.token,Nr,tn,on,en),!Kt)if(tr===0){const Bt=nt&&f.getLineAndCharacterOfPosition(nt.end).line;Co=Ui&&Nr.line!==Bt}else Co=tr===1}if(yn.trailingTrivia&&(I=rs(yn.trailingTrivia).end,Q(yn.trailingTrivia,tn,on,en)),Co){const Kt=Ci&&!v(yn.token)?en.getIndentationForToken(Nr.line,yn.token.kind,gi,!!bo):-1;let nt=!0;if(yn.leadingTrivia){const Bt=en.getIndentationForComment(yn.token.kind,Kt,gi);nt=ye(yn.leadingTrivia,Bt,nt,Dn=>he(Dn.pos,Bt,!1))}Kt!==-1&&nt&&(he(yn.token.pos,Kt,tr===1),W=Nr.line,U=Kt)}o.advance(),on=tn}}function ye(be,He,it,Ft){for(const yt of be){const Ze=cf(e,yt);switch(yt.kind){case 3:Ze&&ie(yt,He,!it),it=!1;break;case 2:it&&Ze&&Ft(yt),it=!1;break;case 4:it=!0;break}}return it}function Q(be,He,it,Ft){for(const yt of be)if(SF(yt.kind)&&cf(e,yt)){const Ze=f.getLineAndCharacterOfPosition(yt.pos);Y(yt,Ze,He,it,Ft)}}function Y(be,He,it,Ft,yt){const Ze=v(be);let It=0;if(!Ze)if(R)It=oe(be,He.line,it,R,C,M,Ft,yt);else{const on=f.getLineAndCharacterOfPosition(e.pos);ge(on.line,He.line)}return R=be,I=be.end,M=it,C=He.line,It}function oe(be,He,it,Ft,yt,Ze,It,on){A.updateContext(Ft,Ze,be,it,It);const Yt=l(A);let Nn=A.options.trimTrailingWhitespace!==!1,Xn=0;return Yt?Ht(Yt,yn=>{if(Xn=At(yn,Ft,yt,be,He),on)switch(Xn){case 2:it.getStart(f)===be.pos&&on.recomputeIndentation(!1,It);break;case 1:it.getStart(f)===be.pos&&on.recomputeIndentation(!0,It);break;default:N.assert(Xn===0)}Nn=Nn&&!(yn.action&16)&&yn.flags!==1}):Nn=Nn&&be.kind!==1,He!==yt&&Nn&&ge(yt,He,Ft),Xn}function he(be,He,it){const Ft=Nhe(He,s);if(it)Ne(be,0,Ft);else{const yt=f.getLineAndCharacterOfPosition(be),Ze=zy(yt.line,f);(He!==Ie(Ze,yt.character)||de(Ft,Ze))&&Ne(Ze,yt.character,Ft)}}function Ie(be,He){let it=0;for(let Ft=0;Ft<He;Ft++)f.text.charCodeAt(be+Ft)===9?it+=s.tabSize-it%s.tabSize:it++;return it}function de(be,He){return be!==f.text.substr(He,be.length)}function ie(be,He,it,Ft=!0){let yt=f.getLineAndCharacterOfPosition(be.pos).line;const Ze=f.getLineAndCharacterOfPosition(be.end).line;if(yt===Ze){it||he(be.pos,He,!1);return}const It=[];let on=be.pos;for(let tn=yt;tn<Ze;tn++){const en=VL(tn,f);It.push({pos:on,end:en}),on=zy(tn+1,f)}if(Ft&&It.push({pos:on,end:be.end}),It.length===0)return;const Yt=zy(yt,f),Nn=U_.findFirstNonWhitespaceCharacterAndColumn(Yt,It[0].pos,f,s);let Xn=0;it&&(Xn=1,yt++);const yn=He-Nn.column;for(let tn=Xn;tn<It.length;tn++,yt++){const en=zy(yt,f),gi=tn===0?Nn:U_.findFirstNonWhitespaceCharacterAndColumn(It[tn].pos,It[tn].end,f,s),bo=gi.column+yn;if(bo>0){const Ui=Nhe(bo,s);Ne(en,gi.character,Ui)}else Le(en,gi.character)}}function ge(be,He,it){for(let Ft=be;Ft<He;Ft++){const yt=zy(Ft,f),Ze=VL(Ft,f);if(it&&(SF(it.kind)||yX(it.kind))&&it.pos<=Ze&&it.end>Ze)continue;const It=Ce(yt,Ze);It!==-1&&(N.assert(It===yt||!A_(f.text.charCodeAt(It-1))),Le(It,Ze+1-It))}}function Ce(be,He){let it=He;for(;it>=be&&A_(f.text.charCodeAt(it));)it--;return it!==He?it+1:-1}function qe(be){let He=R?R.end:e.pos;for(const it of be)SF(it.kind)&&(He<it.pos&&Se(He,it.pos-1,R),He=it.end+1);He<e.end&&Se(He,e.end,R)}function Se(be,He,it){const Ft=f.getLineAndCharacterOfPosition(be).line,yt=f.getLineAndCharacterOfPosition(He).line;ge(Ft,yt+1,it)}function Le(be,He){He&&X.push(AF(be,He,""))}function Ne(be,He,it){(He||it)&&X.push(AF(be,He,it))}function Oe(be,He){He&&X.push(AF(be,0,He))}function At(be,He,it,Ft,yt){const Ze=yt!==it;switch(be.action){case 1:return 0;case 16:if(He.end!==Ft.pos)return Le(He.end,Ft.pos-He.end),Ze?2:0;break;case 32:Le(He.pos,He.end-He.pos);break;case 8:if(be.flags!==1&&it!==yt)return 0;if(yt-it!==1)return Ne(He.end,Ft.pos-He.end,ty(u,s)),Ze?0:1;break;case 4:if(be.flags!==1&&it!==yt)return 0;if(Ft.pos-He.end!==1||f.text.charCodeAt(He.end)!==32)return Ne(He.end,Ft.pos-He.end," "),Ze?2:0;break;case 64:Oe(He.end,";")}return 0}}function FOe(e,t,r,i=go(e,t)){const o=jn(i,r_);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 l=r&&a0(e.text,r.end),u=Uj(i,e),p=Ro(l,u);return p&&un(p,v=>TO(v,t)||t===v.end&&(v.kind===2||t===e.getFullWidth()))}function Vst(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function jst(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function Nhe(e,t){if((!gZ||gZ.tabSize!==t.tabSize||gZ.indentSize!==t.indentSize)&&(gZ={tabSize:t.tabSize,indentSize:t.indentSize},I4=x4=void 0),t.convertTabsToSpaces){let i;const o=Math.floor(e/t.indentSize),s=e%t.indentSize;return x4||(x4=[]),x4[o]===void 0?(i=CO(" ",t.indentSize*o),x4[o]=i):i=x4[o],s?i+CO(" ",s):i}else{const i=Math.floor(e/t.tabSize),o=e-i*t.tabSize;let s;return I4||(I4=[]),I4[i]===void 0?I4[i]=s=CO(" ",i):s=I4[i],o?s+CO(" ",o):s}}var gZ,I4,x4,Ust=S({"src/services/formatting/formatting.ts"(){oi(),R4()}}),U_,Hst=S({"src/services/formatting/smartIndenter.ts"(){oi(),R4(),(e=>{let t;(ie=>{ie[ie.Unknown=-1]="Unknown"})(t||(t={}));function r(ie,ge,Ce,qe=!1){if(ie>ge.text.length)return u(Ce);if(Ce.indentStyle===0)return 0;const Se=Cc(ie,ge,void 0,!0),Le=FOe(ge,ie,Se||null);if(Le&&Le.kind===3)return i(ge,ie,Ce,Le);if(!Se)return u(Ce);if(yX(Se.kind)&&Se.getStart(ge)<=ie&&ie<Se.end)return 0;const Oe=ge.getLineAndCharacterOfPosition(ie).line,At=go(ge,ie),be=At.kind===19&&At.parent.kind===210;if(Ce.indentStyle===1||be)return o(ge,ie,Ce);if(Se.kind===28&&Se.parent.kind!==226){const it=f(Se,ge,Ce);if(it!==-1)return it}const He=ee(ie,Se.parent,ge);if(He&&!cf(He,Se)){const Ft=[218,219].includes(At.parent.kind)?0:Ce.indentSize;return G(He,ge,Ce)+Ft}return s(ge,ie,Se,Oe,qe,Ce)}e.getIndentation=r;function i(ie,ge,Ce,qe){const Se=Rs(ie,ge).line-1,Le=Rs(ie,qe.pos).line;if(N.assert(Le>=0),Se<=Le)return Y(zy(Le,ie),ge,ie,Ce);const Ne=zy(Se,ie),{column:Oe,character:At}=Q(Ne,ge,ie,Ce);return Oe===0?Oe:ie.text.charCodeAt(Ne+At)===42?Oe-1:Oe}function o(ie,ge,Ce){let qe=ge;for(;qe>0;){const Le=ie.text.charCodeAt(qe);if(!Og(Le))break;qe--}const Se=mm(qe,ie);return Y(Se,qe,ie,Ce)}function s(ie,ge,Ce,qe,Se,Le){let Ne,Oe=Ce;for(;Oe;){if(fX(Oe,ge,ie)&&Ie(Le,Oe,Ne,ie,!0)){const be=R(Oe,ie),He=I(Ce,Oe,qe,ie),it=He!==0?Se&&He===2?Le.indentSize:0:qe!==be.line?Le.indentSize:0;return p(Oe,be,void 0,it,ie,!0,Le)}const At=re(Oe,ie,Le,!0);if(At!==-1)return At;Ne=Oe,Oe=Oe.parent}return u(Le)}function l(ie,ge,Ce,qe){const Se=Ce.getLineAndCharacterOfPosition(ie.getStart(Ce));return p(ie,Se,ge,0,Ce,!1,qe)}e.getIndentationForNode=l;function u(ie){return ie.baseIndentSize||0}e.getBaseIndentation=u;function p(ie,ge,Ce,qe,Se,Le,Ne){var Oe;let At=ie.parent;for(;At;){let be=!0;if(Ce){const yt=ie.getStart(Se);be=yt<Ce.pos||yt>Ce.end}const He=v(At,ie,Se),it=He.line===ge.line||C(At,ie,ge.line,Se);if(be){const yt=(Oe=X(ie,Se))==null?void 0:Oe[0],Ze=!!yt&&R(yt,Se).line>He.line;let It=re(ie,Se,Ne,Ze);if(It!==-1||(It=b(ie,At,ge,it,Se,Ne),It!==-1))return It+qe}Ie(Ne,At,ie,Se,Le)&&!it&&(qe+=Ne.indentSize);const Ft=M(At,ie,ge.line,Se);ie=At,At=ie.parent,ge=Ft?Se.getLineAndCharacterOfPosition(ie.getStart(Se)):He}return qe+u(Ne)}function v(ie,ge,Ce){const qe=X(ge,Ce),Se=qe?qe.pos:ie.getStart(Ce);return Ce.getLineAndCharacterOfPosition(Se)}function f(ie,ge,Ce){const qe=Uue(ie);return qe&&qe.listItemIndex>0?_e(qe.list.getChildren(),qe.listItemIndex-1,ge,Ce):-1}function b(ie,ge,Ce,qe,Se,Le){return(Yu(ie)||WL(ie))&&(ge.kind===312||!qe)?ye(Ce,Se,Le):-1}let A;(ie=>{ie[ie.Unknown=0]="Unknown",ie[ie.OpenBrace=1]="OpenBrace",ie[ie.CloseBrace=2]="CloseBrace"})(A||(A={}));function I(ie,ge,Ce,qe){const Se=EE(ie,ge,qe);if(!Se)return 0;if(Se.kind===19)return 1;if(Se.kind===20){const Le=R(Se,qe).line;return Ce===Le?2:0}return 0}function R(ie,ge){return ge.getLineAndCharacterOfPosition(ie.getStart(ge))}function M(ie,ge,Ce,qe){if(!(ca(ie)&&Mn(ie.arguments,ge)))return!1;const Se=ie.expression.getEnd();return Rs(qe,Se).line===Ce}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=M;function C(ie,ge,Ce,qe){if(ie.kind===245&&ie.elseStatement===ge){const Se=Is(ie,93,qe);return N.assert(Se!==void 0),R(Se,qe).line===Ce}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=C;function W(ie,ge,Ce,qe){if(eR(ie)&&(ge===ie.whenTrue||ge===ie.whenFalse)){const Se=Rs(qe,ie.condition.end).line;if(ge===ie.whenTrue)return Ce===Se;{const Le=R(ie.whenTrue,qe).line,Ne=Rs(qe,ie.whenTrue.end).line;return Se===Le&&Ne===Ce}}return!1}e.childIsUnindentedBranchOfConditionalExpression=W;function U(ie,ge,Ce,qe){if(I_(ie)){if(!ie.arguments)return!1;const Se=un(ie.arguments,At=>At.pos===ge.pos);if(!Se)return!1;const Le=ie.arguments.indexOf(Se);if(Le===0)return!1;const Ne=ie.arguments[Le-1],Oe=Rs(qe,Ne.getEnd()).line;if(Ce===Oe)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=U;function X(ie,ge){return ie.parent&&V(ie.getStart(ge),ie.getEnd(),ie.parent,ge)}e.getContainingList=X;function ee(ie,ge,Ce){return ge&&V(ie,ie,ge,Ce)}function V(ie,ge,Ce,qe){switch(Ce.kind){case 183:return Se(Ce.typeArguments);case 210:return Se(Ce.properties);case 209:return Se(Ce.elements);case 187:return Se(Ce.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return Se(Ce.typeParameters)||Se(Ce.parameters);case 177:return Se(Ce.parameters);case 263:case 231:case 264:case 265:case 352:return Se(Ce.typeParameters);case 214:case 213:return Se(Ce.typeArguments)||Se(Ce.arguments);case 261:return Se(Ce.declarations);case 275:case 279:return Se(Ce.elements);case 206:case 207:return Se(Ce.elements)}function Se(Le){return Le&&AO(se(Ce,Le,qe),ie,ge)?Le:void 0}}function se(ie,ge,Ce){const qe=ie.getChildren(Ce);for(let Se=1;Se<qe.length-1;Se++)if(qe[Se].pos===ge.pos&&qe[Se].end===ge.end)return{pos:qe[Se-1].end,end:qe[Se+1].getStart(Ce)};return ge}function G(ie,ge,Ce){return ie?ye(ge.getLineAndCharacterOfPosition(ie.pos),ge,Ce):-1}function re(ie,ge,Ce,qe){if(ie.parent&&ie.parent.kind===261)return-1;const Se=X(ie,ge);if(Se){const Le=Se.indexOf(ie);if(Le!==-1){const Ne=_e(Se,Le,ge,Ce);if(Ne!==-1)return Ne}return G(Se,ge,Ce)+(qe?Ce.indentSize:0)}return-1}function _e(ie,ge,Ce,qe){N.assert(ge>=0&&ge<ie.length);const Se=ie[ge];let Le=R(Se,Ce);for(let Ne=ge-1;Ne>=0;Ne--){if(ie[Ne].kind===28)continue;if(Ce.getLineAndCharacterOfPosition(ie[Ne].end).line!==Le.line)return ye(Le,Ce,qe);Le=R(ie[Ne],Ce)}return-1}function ye(ie,ge,Ce){const qe=ge.getPositionOfLineAndCharacter(ie.line,0);return Y(qe,qe+ie.character,ge,Ce)}function Q(ie,ge,Ce,qe){let Se=0,Le=0;for(let Ne=ie;Ne<ge;Ne++){const Oe=Ce.text.charCodeAt(Ne);if(!A_(Oe))break;Oe===9?Le+=qe.tabSize+Le%qe.tabSize:Le++,Se++}return{column:Le,character:Se}}e.findFirstNonWhitespaceCharacterAndColumn=Q;function Y(ie,ge,Ce,qe){return Q(ie,ge,Ce,qe).column}e.findFirstNonWhitespaceColumn=Y;function oe(ie,ge,Ce,qe,Se){var Ne;const Le=Ce?Ce.kind:0;switch(ge.kind){case 244:case 263:case 231:case 264:case 266:case 265:case 209:case 241:case 268:case 210:case 187:case 200:case 189:case 217:case 211:case 213:case 214:case 243:case 277:case 253:case 227:case 207:case 206:case 286:case 289:case 285:case 294:case 173:case 179:case 180:case 169:case 184:case 185:case 196:case 215:case 223:case 279:case 275:case 281:case 276:case 172:case 296:case 297:return!0;case 269:return(Ne=ie.indentSwitchCase)!=null?Ne:!0;case 260:case 303:case 226:if(!ie.indentMultiLineObjectLiteralBeginningOnBlankLine&&qe&&Le===210)return de(qe,Ce);if(ge.kind===226&&qe&&Ce&&Le===284){const Oe=qe.getLineAndCharacterOfPosition(Wa(qe.text,ge.pos)).line,At=qe.getLineAndCharacterOfPosition(Wa(qe.text,Ce.pos)).line;return Oe!==At}if(ge.kind!==226)return!0;break;case 246:case 247:case 249:case 250:case 248:case 245:case 262:case 218:case 174:case 176:case 177:case 178:return Le!==241;case 219:return qe&&Le===217?de(qe,Ce):Le!==241;case 278:return Le!==279;case 272:return Le!==273||!!Ce.namedBindings&&Ce.namedBindings.kind!==275;case 284:return Le!==287;case 288:return Le!==290;case 193:case 192:if(Le===187||Le===189)return!1;break}return Se}e.nodeWillIndentChild=oe;function he(ie,ge){switch(ie){case 253:case 257:case 251:case 252:return ge.kind!==241;default:return!1}}function Ie(ie,ge,Ce,qe,Se=!1){return oe(ie,ge,Ce,qe,!1)&&!(Se&&Ce&&he(Ce.kind,ge))}e.shouldIndentChildNode=Ie;function de(ie,ge){const Ce=Wa(ie.text,ge.pos),qe=ie.getLineAndCharacterOfPosition(Ce).line,Se=ie.getLineAndCharacterOfPosition(ge.end).line;return qe===Se}})(U_||(U_={}))}}),Bc={};H(Bc,{FormattingContext:()=>fhe,FormattingRequestKind:()=>phe,RuleAction:()=>_he,RuleFlags:()=>hhe,SmartIndenter:()=>U_,anyContext:()=>Z9,createTextRangeWithKind:()=>hZ,formatDocument:()=>kst,formatNodeGivenIndentation:()=>Gst,formatOnClosingCurly:()=>Lst,formatOnEnter:()=>Cst,formatOnOpeningCurly:()=>Mst,formatOnSemicolon:()=>Pst,formatSelection:()=>wst,getAllRules:()=>fOe,getFormatContext:()=>Est,getFormattingScanner:()=>mhe,getIndentationString:()=>Nhe,getRangeOfEnclosingComment:()=>FOe});var R4=S({"src/services/_namespaces/ts.formatting.ts"(){Gat(),Vat(),jat(),bst(),Nst(),Ust(),Hst()}}),oi=S({"src/services/_namespaces/ts.ts"(){ia(),hO(),Qqe(),SJe(),xJe(),pDe(),FJe(),zJe(),qJe(),nKe(),rKe(),oKe(),fKe(),mKe(),w$e(),O$e(),z$e(),oQe(),sQe(),Da(),R_e(),B_e(),Wit(),Vit(),oot(),ODe(),rNe(),xot(),kot(),Ch(),Vot(),hat(),Aat(),Dat(),Bat(),R4()}});function qst(){return vZ!=null?vZ:vZ=new Tm(Ae)}function zOe(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?` ${cg(o,[e])}`:"",s}function Jst(e,t,r,i){const o=zOe(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function Kst(e,t,r,i){let o=!1;return()=>{BOe&&!o&&(N.log.warn(zOe(e,!1,t,r,i)),o=!0)}}function Xst(e,t={}){var p,v;const r=typeof t.typeScriptVersion=="string"?new Tm(t.typeScriptVersion):(p=t.typeScriptVersion)!=null?p:qst(),i=typeof t.errorAfter=="string"?new Tm(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new Tm(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new Tm(t.since):(v=t.since)!=null?v:o,l=t.error||i&&r.compareTo(i)>=0,u=!o||r.compareTo(o)>=0;return l?Jst(e,i,s,t.message):u?Kst(e,i,s,t.message):is}function Yst(e,t){return function(){return e(),t.apply(this,arguments)}}function Che(e,t){var i;const r=Xst((i=t==null?void 0:t.name)!=null?i:N.getFunctionName(e),t);return Yst(r,e)}var BOe,vZ,GOe=S({"src/deprecatedCompat/deprecate.ts"(){bZ(),BOe=!0}});function yZ(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(const l of Object.keys(i)){const u=+l;!isNaN(u)&&Ls(t,`${u}`)&&(t[u]=Che(t[u],{...i[u],name:e}))}const o=$st(t,r);return s;function s(...l){const u=o(l),p=u!==void 0?t[u]:void 0;if(typeof p=="function")return p(...l);throw new TypeError("Invalid arguments")}}function $st(e,t){return r=>{for(let i=0;Ls(e,`${i}`)&&Ls(t,`${i}`);i++){const o=t[i];if(o(r))return i}}}function VOe(e){return{overload:t=>({bind:r=>({finish:()=>yZ(e,t,r),deprecate:i=>({finish:()=>yZ(e,t,r,i)})})})}}var Qst=S({"src/deprecatedCompat/deprecations.ts"(){bZ(),GOe()}}),Zst=S({"src/deprecatedCompat/5.0/identifierProperties.ts"(){bZ(),GOe(),Xoe(e=>{const t=e.getIdentifierConstructor();Ls(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:Che(function(){return u0(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Ls(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:Che(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),bZ=S({"src/deprecatedCompat/_namespaces/ts.ts"(){ia(),Qst(),Zst()}}),elt=S({"src/typingsInstallerCore/_namespaces/ts.ts"(){ia(),hO(),Mhe()}});function jOe(e,t,r,i){try{const o=_R(t,$r(e,"index.d.ts"),{moduleResolution:2},r);return o.resolvedModule&&o.resolvedModule.resolvedFileName}catch(o){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${o.message}`);return}}function tlt(e,t,r,i){let o=!1;for(let s=r.length;s>0;){const l=UOe(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function UOe(e,t,r,i){const o=r.length-i;let s,l=i;for(;s=`${e} install --ignore-scripts ${(l===r.length?r:r.slice(o,o+l)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(s.length<8e3);)l=l-Math.floor(l/2);return{command:s,remaining:i-l}}function HOe(e){return`@types/${e}@ts${ue}`}var qOe,JOe,nlt=S({"src/typingsInstallerCore/typingsInstaller.ts"(){elt(),Mhe(),qOe={isEnabled:()=>!1,writeLine:is},JOe=class{constructor(e,t,r,i,o,s=qOe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=r,this.typesMapLocation=i,this.throttleLimit=o,this.log=s,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${r}', types map path ${i}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{const t={};this.typesRegistry.forEach((i,o)=>{t[o]=i});const r={kind:rF,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:N.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:mP,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${O0(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();const t=V_.discoverTypings(this.installTypingHost,this.log.isEnabled()?r=>this.log.writeLine(r):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){const{fileName:t,packageName:r,projectName:i,projectRootPath:o,id:s}=e,l=xm(ii(t),u=>{if(this.installTypingHost.fileExists($r(u,"package.json")))return u})||o;if(l)this.installWorker(-1,[r],l,u=>{const p=u?`Package ${r} installed.`:`There was an error installing ${r}.`,v={kind:_O,projectName:i,id:s,success:u,message:p};this.sendResponse(v)});else{const u={kind:_O,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(u)}}initializeSafeList(){if(this.typesMapLocation){const e=V_.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=V_.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}const t=$r(e,"package.json"),r=$r(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){const i=JSON.parse(this.installTypingHost.readFile(t)),o=JSON.parse(this.installTypingHost.readFile(r));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${O0(i)}`),this.log.writeLine(`Loaded content of '${r}':${O0(o)}`)),i.devDependencies&&o.dependencies)for(const s in i.devDependencies){if(!Ls(o.dependencies,s))continue;const l=dc(s);if(!l)continue;const u=jOe(e,l,this.installTypingHost,this.log);if(!u){this.missingTypingsSet.add(l);continue}const p=this.packageNameToTypingLocation.get(l);if(p){if(p.typingLocation===u)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${l} from '${u}' conflicts with existing typing file '${p}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${l}' => '${u}'`);const v=J8(o.dependencies,s),f=v&&v.version;if(!f)continue;const b={typingLocation:u,version:new Tm(f)};this.packageNameToTypingLocation.set(l,b)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Vi(e,t=>{const r=gR(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}const i=V_.validatePackageName(t);if(i!==V_.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(V_.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${r}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(r)&&V_.isTypingUpToDate(this.packageNameToTypingLocation.get(r),this.typesRegistry.get(r))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' already has an up-to-date typing - skipping...`);return}return r})}ensurePackageDirectoryExists(e){const t=$r(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,r,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);const o=this.filterTypings(i);if(o.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,r));return}this.ensurePackageDirectoryExists(t);const s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:iF,eventId:s,typingsInstallerVersion:Ae,projectName:e.projectName});const l=o.map(HOe);this.installTypingsAsync(s,l,t,u=>{try{if(!u){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(o)}`);for(const v of o)this.missingTypingsSet.add(v);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);const p=[];for(const v of o){const f=jOe(t,v,this.installTypingHost,this.log);if(!f){this.missingTypingsSet.add(v);continue}const b=this.typesRegistry.get(v),A=new Tm(b[`ts${ue}`]||b[this.latestDistTag]),I={typingLocation:f,version:A};this.packageNameToTypingLocation.set(v,I),p.push(f)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(p)}`),this.sendResponse(this.createSetTypings(e,r.concat(p)))}finally{const p={kind:oF,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:u,typingsInstallerVersion:Ae};this.sendResponse(p)}})}ensureDirectoryExists(e,t){const r=ii(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}const r=this.projectWatchers.get(e),i=new Set(t);!r||vh(i,o=>!r.has(o))||vh(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:mP,projectName:e,files:t})):this.sendResponse({kind:mP,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:fO}}installTypingsAsync(e,t,r,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:r,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount<this.throttleLimit&&this.pendingRunRequests.length;){this.inFlightRequestCount++;const e=this.pendingRunRequests.pop();this.installWorker(e.requestId,e.packageNames,e.cwd,t=>{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}}}}),Phe={};H(Phe,{TypingsInstaller:()=>JOe,getNpmCommandForInstallation:()=>UOe,installNpmPackages:()=>tlt,typingsName:()=>HOe});var rlt=S({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){nlt()}}),Mhe=S({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){aF(),rlt()}}),ilt=S({"src/server/types.ts"(){}});function Lhe(e,t,r,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:r,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}function vl(e){return va(e)}function D4(e,t,r){const i=hp(e)?e:To(e,t);return r(i)}function KOe(e){return e}function XOe(){const e=new Map;return{get(t){return e.get(t)},set(t,r){e.set(t,r)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function khe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function whe(e){return`/dev/null/inferredProject${e}*`}function Ohe(e){return`/dev/null/autoImportProviderProject${e}*`}function Whe(e){return`/dev/null/auxiliaryProject${e}*`}function Fhe(){return[]}var EZ,Ac,SZ,oy,olt=S({"src/server/utilitiesPublic.ts"(){cb(),EZ=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(EZ||{}),Ac=Fhe(),SZ=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(SZ||{}),(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function r(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=r;function i(o,s){throw new Error(`Project '${s.getProjectName()}' does not contain document '${o}'`)}e.ThrowProjectDoesNotContainDocument=i})(oy||(oy={}))}});function TZ(e){const t=dc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function YOe(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}const i=Nv(e,t,ol,r);i>=0&&e.splice(i,1)}var AZ,IZ,alt=S({"src/server/utilities.ts"(){cb(),_T(),AZ=class jWe{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,i){const o=this.pendingTimeouts.get(t);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(t,this.host.setTimeout(jWe.run,r,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${o?", Cancelled earlier one":""}`)}cancel(t){const r=this.pendingTimeouts.get(t);return r?(this.host.clearTimeout(r),this.pendingTimeouts.delete(t)):!1}static run(t,r,i){var o,s;(o=sd)==null||o.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i(),(s=sd)==null||s.logStopScheduledOperation()}},IZ=class UWe{constructor(t,r,i){this.host=t,this.delay=r,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(UWe.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=sd)==null||r.logStartScheduledOperation("GC collect");const o=t.logger.hasLevel(2),s=o&&t.host.getMemoryUsage();if(t.host.gc(),o){const l=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${s}, after ${l}`)}(i=sd)==null||i.logStopScheduledOperation()}}}}),xZ,zhe,Bhe,Ghe,Vhe,jhe,Uhe,Hhe,qhe,Jhe,Khe,Xhe,Yhe,$he,Qhe=S({"src/server/protocol.ts"(){xZ=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e))(xZ||{}),zhe=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(zhe||{}),Bhe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Bhe||{}),Ghe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(Ghe||{}),Vhe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(Vhe||{}),jhe=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(jhe||{}),Uhe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(Uhe||{}),Hhe=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(Hhe||{}),qhe=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(qhe||{}),Jhe=(e=>(e.None="None",e.CommonJS="CommonJS",e.false="false",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e.Node16="Node16",e.NodeNext="NodeNext",e.Preserve="Preserve",e))(Jhe||{}),Khe=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(Khe||{}),Xhe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(Xhe||{}),Yhe=(e=>(e.ES3="ES3",e.ES5="ES5",e.ES6="ES6",e.ES2015="ES2015",e.ES2016="ES2016",e.ES2017="ES2017",e.ES2018="ES2018",e.ES2019="ES2019",e.ES2020="ES2020",e.ES2021="ES2021",e.ES2022="ES2022",e.ESNext="ESNext",e))(Yhe||{}),$he=(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))($he||{})}}),Zhe={};H(Zhe,{ClassificationType:()=>$he,CommandTypes:()=>xZ,CompletionTriggerKind:()=>jhe,IndentStyle:()=>Uhe,JsxEmit:()=>qhe,ModuleKind:()=>Jhe,ModuleResolutionKind:()=>Khe,NewLineKind:()=>Xhe,OrganizeImportsMode:()=>zhe,PollingWatchKind:()=>Vhe,ScriptTarget:()=>Yhe,SemicolonPreference:()=>Hhe,WatchDirectoryKind:()=>Ghe,WatchFileKind:()=>Bhe});var slt=S({"src/server/_namespaces/ts.server.protocol.ts"(){Qhe()}});function N4(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&dc(e)[0]==="^"||e.includes(":^")&&!e.includes(cl)}function $Oe(e){return!e||P4(e)?oy.ThrowNoProject():e}function llt(e){N.assert(typeof e=="number",`Expected position ${e} to be a number.`),N.assert(e>=0,"Expected position to be non-negative.")}function clt(e){N.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),N.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),N.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),N.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var RZ,DZ,ult=S({"src/server/scriptInfo.ts"(){cb(),_T(),RZ=class{constructor(e,t,r){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=r||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,r){this.switchToScriptVersionCache().edit(e,t-e,r),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return N.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=MR(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){const{text:t,fileSize:r}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=r,this.ownFileText=!e||e===this.info.fileName,i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var t;var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||((t=this.textSnapshot)!=null?t:this.textSnapshot=lF.fromString(N.checkDefined(this.text)))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const r=this.getLineMap();return e<=r.length?{absolutePosition:r[e-1],lineText:this.text.substring(r[e-1],r[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const r=this.getLineMap(),i=r[e],o=e+1<r.length?r[e+1]:this.text.length;return yc(i,o)}lineOffsetToPosition(e,t,r){const i=this.tryUseScriptVersionCache();return i?i.lineOffsetToPosition(e,t):R6(this.getLineMap(),e-1,t-1,this.text,r)}positionToLineOffset(e){const t=this.tryUseScriptVersionCache();if(t)return t.positionToLineOffset(e);const{line:r,character:i}=Zx(this.getLineMap(),e);return{line:r+1,offset:i+1}}getFileTextAndSize(e){let t;const r=e||this.info.fileName,i=()=>t===void 0?t=this.host.readFile(r)||"":t;if(!eI(this.info.fileName)){const o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>cz)return N.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${r} for info ${this.info.fileName}: fileSize: ${o}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(r,o),{text:"",fileSize:o}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=Sz.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=Sz.fromString(N.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(N.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return N.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=LA(N.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};const t=this.getLineMap();return uJ(this.text,t)}},DZ=class{constructor(e,t,r,i,o,s){this.host=e,this.fileName=t,this.scriptKind=r,this.hasMixedContent=i,this.path=o,this.containingProjects=[],this.isDynamic=N4(t),this.textStorage=new RZ(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||p7(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){N.assert(!!this.containingProjects.length);const e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return Mn(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:qx(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const e of this.containingProjects){V0(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!eD(e)&&e.addMissingFileRoot(t.fileName)}Yi(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return oy.ThrowNoProject();case 1:return $Oe(this.containingProjects[0]);default:let e,t,r,i,o;for(let s=0;s<this.containingProjects.length;s++){const l=this.containingProjects[s];if(V0(l)){if(!l.isSourceOfProjectReferenceRedirect(this.fileName)){if(o===void 0&&s!==this.containingProjects.length-1&&(o=l.projectService.findDefaultConfiguredProject(this)||!1),o===l)return l;i||(i=l)}t||(t=l)}else!e&&CZ(l)?e=l:!r&&eD(l)&&(r=l)}return $Oe(o||i||t||e||r)}}registerFileUpdate(){for(const e of this.containingProjects)e.registerFileUpdate(this.path)}setOptions(e,t){e&&(this.formatSettings?this.formatSettings={...this.formatSettings,...e}:(this.formatSettings=sF(this.host.newLine),jx(this.formatSettings,e))),t&&(this.preferences||(this.preferences=kf),this.preferences={...this.preferences,...t})}getLatestVersion(){return this.textStorage.getSnapshot(),this.textStorage.getVersion()}saveTo(e){this.host.writeFile(e,MR(this.textStorage.getSnapshot()))}delayReloadNonMixedContentFile(){N.assert(!this.isDynamicOrHasMixedContent()),this.textStorage.delayReloadFromFileIntoText(),this.markContainingProjectsAsDirty()}reloadFromFile(e){return this.textStorage.reloadWithFileText(e)?(this.markContainingProjectsAsDirty(),!0):!1}editContent(e,t,r){this.textStorage.edit(e,t,r),this.markContainingProjectsAsDirty()}markContainingProjectsAsDirty(){for(const e of this.containingProjects)e.markFileAsDirty(this.path)}isOrphan(){return!Ve(this.containingProjects,e=>!e.isOrphan())}isContainedByBackgroundProject(){return St(this.containingProjects,P4)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){llt(e);const t=this.textStorage.positionToLineOffset(e);return clt(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!wo(this.sourceMapFilePath)&&(Mf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function QOe(e,t){if(e===t||(e||Ac).length===0&&(t||Ac).length===0)return!0;const r=new Map;let i=0;for(const o of e)r.get(o)!==!0&&(r.set(o,!0),i++);for(const o of t){const s=r.get(o);if(s===void 0)return!1;s===!0&&(r.set(o,!1),i--)}return i===0}function dlt(e,t){return e.enable!==t.enable||!QOe(e.include,t.include)||!QOe(e.exclude,t.exclude)}function plt(e,t){return Jy(e)!==Jy(t)}function flt(e,t){return e===t?!1:!Xm(e,t)}var oz,NZ,mlt=S({"src/server/typingsCache.ts"(){cb(),_T(),oz={isKnownTypesPackageName:Ym,installPackage:Ko,enqueueInstallTypingsRequest:is,attach:is,onProjectClosed:is,globalTypingsCacheLocation:void 0},NZ=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,r){const i=e.getTypeAcquisition();if(!i||!i.enable)return;const o=this.perProjectCache.get(e.getProjectName());(r||!o||dlt(i,o.typeAcquisition)||plt(e.getCompilationSettings(),o.compilerOptions)||flt(t,o.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:o?o.typings:Ac,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,r,i,o){const s=uS(o);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:r,typings:s,unresolvedImports:i,poisoned:!1}),!r||!r.enable?Ac:s}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function C4(e,t=!1){const r={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const i of e){const o=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:r.js+=1,r.jsSize+=o;break;case 2:r.jsx+=1,r.jsxSize+=o;break;case 3:Iu(i.fileName)?(r.dts+=1,r.dtsSize+=o):(r.ts+=1,r.tsSize+=o);break;case 4:r.tsx+=1,r.tsxSize+=o;break;case 7:r.deferred+=1,r.deferredSize+=o;break}}return r}function _lt(e){const t=C4(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function ege(e){const t=C4(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function tge(e){const t=C4(e.getScriptInfos());return t.ts===0&&t.tsx===0}function nge(e){return!e.some(t=>Nl(t,".ts")&&!Iu(t)||Nl(t,".tsx"))}function rge(e){return e.generatedFilePath!==void 0}function hlt(e,t){var r,i;const o=e.getSourceFiles();(r=ur)==null||r.push(ur.Phase.Session,"getUnresolvedImports",{count:o.length});const s=e.getTypeChecker().getAmbientModules().map(u=>sm(u.getName())),l=aN(qi(o,u=>glt(e,u,s,t)));return(i=ur)==null||i.pop(),l}function glt(e,t,r,i){return AA(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!cC(s.extension))&&!tu(l)&&!r.some(u=>u===l)&&(o=Rn(o,jw(l).packageName))},t),o||Ac})}function eD(e){return e.projectKind===0}function V0(e){return e.projectKind===1}function CZ(e){return e.projectKind===2}function P4(e){return e.projectKind===3||e.projectKind===4}var BP,mT,PZ,MZ,LZ,kZ,wZ,az,vlt=S({"src/server/project.ts"(){cb(),cb(),_T(),BP=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(BP||{}),mT=class HWe{constructor(t,r,i,o,s,l,u,p,v,f,b){switch(this.projectKind=r,this.projectService=i,this.documentRegistry=o,this.compilerOptions=u,this.compileOnSaveEnabled=p,this.watchOptions=v,this.rootFiles=[],this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=Ym,this.dirty=!1,this.typingFiles=Ac,this.moduleSpecifierCache=_ge(this),this.createHash=aa(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=V_.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=f,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(b),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new l$(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||Jy(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=T9(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:N.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const A=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=I=>this.writeLog(I):A.trace&&(this.trace=I=>A.trace(I)),this.realpath=aa(A,A.realpath),this.resolutionCache=gK(this,this.currentDirectory,!0),this.languageService=Xpe(this,this.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),P4(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return Up(this),tge(this)}isJsOnlyProject(){return Up(this),_lt(this)}static resolveModule(t,r,i,o){return HWe.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){N.assertIsDefined(i.require);let s,l;for(const u of r){const p=wu(i.resolvePath($r(u,"node_modules")));o(`Loading ${t.name} from ${u} (resolved to ${p})`);const v=i.require(p,t.name);if(!v.error){l=v.module;break}const f=v.error.stack||v.error.message||JSON.stringify(v.error);(s!=null?s:s=[]).push(`Failed to load module '${t.name}' from ${p}: ${f}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}static async importServicePluginAsync(t,r,i,o){N.assertIsDefined(i.importPlugin);let s,l;for(const u of r){const p=$r(u,"node_modules");o(`Dynamically importing ${t.name} from ${u} (resolved to ${p})`);let v;try{v=await i.importPlugin(p,t.name)}catch(b){v={module:void 0,error:b}}if(!v.error){l=v.module;break}const f=v.error.stack||v.error.message||JSON.stringify(v.error);(s!=null?s:s=[]).push(`Failed to dynamically import module '${t.name}' from ${p}: ${f}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}isKnownTypesPackageName(t){return this.typingsCache.isKnownTypesPackageName(t)}installPackage(t){return this.typingsCache.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=HU(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFiles)return et;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Hr(t,this.typingFiles)||et}getOrCreateScriptInfoAndAttachToProject(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(r){const i=this.rootFilesMap.get(r.path);i&&i.info!==r&&(this.rootFiles.push(r),i.info=r),r.attachToProject(this)}return r}getScriptKind(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return r&&r.getLatestVersion()}getScriptSnapshot(t){const r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const t=ii(va(this.projectService.getExecutingFilePath()));return $r(t,bL(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,r,i,o,s){return this.directoryStructureHost.readDirectory(t,r,i,o,s)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,r){return this.projectService.host.writeFile(t,r)}fileExists(t){const r=this.toPath(t);return!this.isWatchedMissingFile(r)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,r,i,o,s,l){return this.resolutionCache.resolveModuleNameLiterals(t,r,i,o,s,l)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l)}resolveLibrary(t,r,i,o){return this.resolutionCache.resolveLibrary(t,r,i,o)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return ll(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),zc.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),zc.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),zc.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return Vn(this.projectErrors,t=>!t.file)||Ac}getAllProjectErrors(){return this.projectErrors||Ac}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&Up(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,r){return this.projectService.getDocumentPositionMapper(this,t,r)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(Up(this),this.builderState=Om.create(this.program,this.builderState,!0),Vi(Om.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),r=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(r.path))?r.fileName:void 0)):[]}emitFile(t,r){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:Ac};const{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(const l of s){const u=To(l.name,this.currentDirectory);r(u,l.text,l.writeByteOrderMark)}if(this.builderState&&Nf(this.compilerOptions)){const l=s.filter(u=>Iu(u.name));if(l.length===1){const u=this.program.getSourceFile(t.fileName),p=this.projectService.host.createHash?this.projectService.host.createHash(l[0].text):fN(l[0].text);Om.updateSignatureOfFile(this.builderState,p,u.resolvedPath)}}}return{emitSkipped:i,diagnostics:o}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){!this.languageServiceEnabled||(N.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return uS(qi(this.plugins,r=>{if(typeof r.module.getExternalFiles=="function")try{return r.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${i}`),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(!!this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){const r=this.program.getCompilerOptions();return t===r.configFilePath?r.configFile:this.getSourceFile(t)}close(){var t;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),Ve(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r));for(const r of this.rootFiles)r.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(t=this.packageJsonWatches)==null||t.forEach(r=>{r.projects.delete(this),r.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(np(this.missingFilesMap,Zm),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){const r=this.projectService.getScriptInfo(t);r&&!this.isRoot(r)&&r.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(t=>t.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?Wt(this.program.getSourceFiles(),t=>{const r=this.projectService.getScriptInfoForPath(t.resolvedPath);return N.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.rootFiles}getExcludedFiles(){return Ac}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){const s=Ype(this.compilerOptions);s&&(o||(o=[])).push(s)}return o}const i=[];for(const o of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(o)||i.push(o.fileName);if(!r){const o=this.program.getCompilerOptions().configFile;if(o&&(i.push(o.fileName),o.extendedSourceFiles))for(const s of o.extendedSourceFiles)i.push(s)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(r=>({fileName:r,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(r)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){const r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(const i of r.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;const r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){const i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!r)?this.containsScriptInfo(i):!1}isRoot(t){var r;return this.rootFilesMap&&((r=this.rootFilesMap.get(t.path))==null?void 0:r.info)===t}addRoot(t,r){N.assert(!this.isRoot(t)),this.rootFiles.push(t),this.rootFilesMap.set(t.path,{fileName:r||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){const r=this.projectService.toPath(t);this.rootFilesMap.set(r,{fileName:t}),this.markAsDirty()}removeFile(t,r,i){this.isRoot(t)&&this.removeRoot(t),r?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var t;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(t=this.autoImportProviderHost)==null||t.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateFromProject(){Up(this)}updateGraph(){var t,r,i,o,s;(t=ur)==null||t.push(ur.Phase.Session,"updateGraph",{name:this.projectName,kind:BP[this.projectKind]}),(r=sd)==null||r.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const l=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const p=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Ac;for(const f of p)this.cachedUnresolvedImportsPerFile.delete(f);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((l||p.length)&&(this.lastCachedUnresolvedImportsList=hlt(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,u)):this.lastCachedUnresolvedImportsList=void 0;const v=this.projectProgramVersion===0&&l;return l&&this.projectProgramVersion++,u&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),v&&this.getPackageJsonAutoImportProvider(),(o=sd)==null||o.logStopUpdateGraph(),(s=ur)==null||s.pop(),!l}updateTypingFiles(t){t6(t,this.typingFiles,Ux(!this.useCaseSensitiveFileNames()),is,r=>this.detachScriptInfoFromProject(r))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&np(this.typingWatchers,Zm),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:mO})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}const r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const i=(o,s)=>{const l=this.toPath(o);r.delete(l),this.typingWatchers.has(l)||this.typingWatchers.set(l,s==="FileWatcher"?this.projectService.watchFactory.watchFile(o,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),zc.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(o,u=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Nl(u,".json"))return this.writeLog("Ignoring files that are not *.json");if(kg(u,$r(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),zc.TypingInstallerLocationDirectory,this))};for(const o of t){const s=dc(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(Am(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){const l=o.indexOf(cl,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(Am(this.projectService.typingsInstaller.globalTypingsCacheLocation,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(o,"DirectoryWatcher")}r.forEach((o,s)=>{o.close(),this.typingWatchers.delete(s)})}getCurrentProgram(){return this.program}removeExistingTypings(t){const r=Y5(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!r.includes(i))}updateGraphWorker(){var t,r;const i=this.languageService.getCurrentProgram();N.assert(i===this.program),N.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const o=Qs(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(Ym,Ym);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=ur)==null||t.push(ur.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=ur)==null||r.pop(),N.assert(i===void 0||this.program!==void 0);let u=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(u=!0,i){for(const f of i.getSourceFiles()){const b=this.program.getSourceFileByPath(f.resolvedPath);(!b||f.resolvedPath===f.path&&b.resolvedPath!==f.path)&&this.detachScriptInfoFromProject(f.fileName,!!this.program.getSourceFileByPath(f.path),!0)}i.forEachResolvedProjectReference(f=>{this.program.getResolvedProjectReferenceByPath(f.sourceFile.path)||this.detachScriptInfoFromProject(f.sourceFile.fileName,void 0,!0)})}if(FJ(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(f,b)=>this.addMissingFileWatcher(f,b)),this.generatedFilesMap){const f=Bs(this.compilerOptions);rge(this.generatedFilesMap)?(!f||!this.isValidGeneratedFileWatcher(Id(f)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():f?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((b,A)=>{const I=this.program.getSourceFileByPath(A);(!I||I.resolvedPath!==A||!this.isValidGeneratedFileWatcher(W3(I.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),b))&&(Mf(b),this.generatedFilesMap.delete(A))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&vh(this.changedFilesForExportMapCache,f=>{const b=i.getSourceFileByPath(f),A=this.program.getSourceFileByPath(f);return!b||!A?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(b,A,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const p=this.externalFiles||Ac;this.externalFiles=this.getExternalFiles(),t6(this.externalFiles,p,Ux(!this.useCaseSensitiveFileNames()),f=>{const b=this.projectService.getOrCreateScriptInfoNotOpenedByClient(f,this.currentDirectory,this.directoryStructureHost);b==null||b.attachToProject(this)},f=>this.detachScriptInfoFromProject(f));const v=Qs()-o;return this.sendPerformanceEvent("UpdateGraph",v),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${u}${this.program?` structureIsReused:: ${d6[this.program.structureIsReused]}`:""} Elapsed: ${v}ms`),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),u}sendPerformanceEvent(t,r){this.projectService.sendPerformanceEvent(t,r)}detachScriptInfoFromProject(t,r,i){const o=this.projectService.getScriptInfo(t);o&&(o.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(o.path,i))}addMissingFileWatcher(t,r){var i;if(V0(this)){const s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s==null?void 0:s.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return RR}const o=this.projectService.watchFactory.watchFile(To(r,this.currentDirectory),(s,l)=>{V0(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(s,t,l),l===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),o.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),zc.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(Bs(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{const i=this.toPath(r);if(this.generatedFilesMap){if(rge(this.generatedFilesMap)){N.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),zc.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(rge(this.generatedFilesMap)?Mf(this.generatedFilesMap):np(this.generatedFilesMap,Mf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?oy.ThrowProjectDoesNotContainDocument(t,this):r}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,r,i){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending
`;if(!this.program)return` Files (0) NoProgram
`;const o=this.program.getSourceFiles();let s=` Files (${o.length})
`;if(t){for(const l of o)s+=` ${l.fileName}${i?` ${l.version} ${JSON.stringify(l.text)}`:""}
`;r&&(s+=`
`,bK(this.program,l=>s+=` ${l}
`))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${BP[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),r&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(o=this.noDtsResolutionProject)==null||o.print(!1,!1,!1)}setCompilerOptions(t){var r;if(t){t.allowNonTsExtensions=!0;const i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),Y6(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,r){var i,o;const s=r?p=>Go(p.entries(),([v,f])=>({fileName:v,isSourceOfProjectReferenceRedirect:f})):p=>Go(p.keys());this.isInitialLoadPending()||Up(this);const l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:eD(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},u=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!u)return{info:l,projectErrors:this.getGlobalProjectErrors()};const p=this.lastReportedFileNames,v=((i=this.externalFiles)==null?void 0:i.map(M=>({fileName:vl(M),isSourceOfProjectReferenceRedirect:!1})))||Ac,f=C1(this.getFileNamesWithRedirectInfo(!!r).concat(v),M=>M.fileName,M=>M.isSourceOfProjectReferenceRedirect),b=new Map,A=new Map,I=u?Go(u.keys()):[],R=[];return qc(f,(M,C)=>{p.has(C)?r&&M!==p.get(C)&&R.push({fileName:C,isSourceOfProjectReferenceRedirect:M}):b.set(C,M)}),qc(p,(M,C)=>{f.has(C)||A.set(C,M)}),this.lastReportedFileNames=f,this.lastReportedVersion=this.projectProgramVersion,{info:l,changes:{added:s(b),removed:s(A),updated:r?I.map(M=>({fileName:M,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(M)})):I,updatedRedirects:r?R:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const p=this.getFileNamesWithRedirectInfo(!!r),v=((o=this.externalFiles)==null?void 0:o.map(b=>({fileName:vl(b),isSourceOfProjectReferenceRedirect:!1})))||Ac,f=p.concat(v);return this.lastReportedFileNames=C1(f,b=>b.fileName,b=>b.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:l,files:r?f:f.map(b=>b.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){qx(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,$r(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;const r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();for(const o of this.projectService.globalPlugins)!o||t.plugins&&t.plugins.some(s=>s.name===o)||(this.projectService.logger.info(`Loading global plugin ${o}`),this.enablePlugin({name:o,global:!0},i))}enablePlugin(t,r){this.projectService.requestEnablePlugin(this,t,r)}enableProxy(t,r){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${r.name} because it did not expose a proper factory function`);return}const i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},o=t({typescript:b4e}),s=o.create(i);for(const l of Object.keys(this.languageService))l in s||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${l} in created LS. Patching.`),s[l]=this.languageService[l]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=s,this.plugins.push({name:r.name,module:o})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,r){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(r)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,r){return this.projectService.serverMode!==0?Ac:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile($r(this.currentDirectory,AR),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=aY(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||BO(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,r;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(r=this.projectService.host.trace)==null?void 0:r.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,r,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Up(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const o=this.includePackageJsonAutoImports();if(o){(t=ur)==null||t.push(ur.Phase.Session,"getPackageJsonAutoImportProvider");const s=Qs();if(this.autoImportProviderHost=kZ.create(o,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Up(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Qs()-s),(r=ur)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=ur)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!qc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(vl(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return N.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new MZ(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:et,lib:et,noLib:!0}}},PZ=class extends mT{constructor(e,t,r,i,o,s,l){super(e.newInferredProjectName(),0,e,t,void 0,void 0,r,!1,i,e.host,s),this._isJsInferredProject=!1,this.typeAcquisition=l,this.projectRootPath=o&&e.toCanonicalFileName(o),!o&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const t=EX(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){N.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&Bn(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){Ve(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:ege(this),include:et,exclude:et}}},MZ=class extends mT{constructor(e,t,r,i){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,r,!1,void 0,e.host,i)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},LZ=class o0e extends mT{constructor(t,r,i,o){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,i,!1,void 0,o,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=r,this.useSourceOfProjectReferenceRedirect=aa(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=aa(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,r,i,o){var s,l;if(!t)return et;const u=r.getCurrentProgram();if(!u)return et;const p=Qs();let v,f;const b=$r(r.currentDirectory,AR),A=r.getPackageJsonsForAutoImport($r(r.currentDirectory,b));for(const C of A)(s=C.dependencies)==null||s.forEach((W,U)=>R(U)),(l=C.peerDependencies)==null||l.forEach((W,U)=>R(U));let I=0;if(v){const C=r.getSymlinkCache();for(const W of Go(v.keys())){if(t===2&&I>this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),et;const U=Bq(W,r.currentDirectory,o,i,u.getModuleResolutionCache());if(U){const ee=M(U,u,C);if(ee){f=Ro(f,ee),I+=ee.length?1:0;continue}}if(!Ve([r.currentDirectory,r.getGlobalTypingsCacheLocation()],ee=>{if(ee){const V=Bq(`@types/${W}`,ee,o,i,u.getModuleResolutionCache());if(V){const se=M(V,u,C);return f=Ro(f,se),I+=se!=null&&se.length?1:0,!0}}})&&U&&o.allowJs&&o.maxNodeModuleJsDepth){const ee=M(U,u,C,!0);f=Ro(f,ee),I+=ee!=null&&ee.length?1:0}}}return f!=null&&f.length&&r.log(`AutoImportProviderProject: found ${f.length} root files in ${I} dependencies in ${Qs()-p} ms`),f||et;function R(C){ho(C,"@types/")||(v||(v=new Set)).add(C)}function M(C,W,U,X){var ee;const V=Jq(C,o,i,W.getModuleResolutionCache(),X);if(V){const se=(ee=i.realpath)==null?void 0:ee.call(i,C.packageDirectory),G=se?r.toPath(se):void 0,re=G&&G!==r.toPath(C.packageDirectory);return re&&U.setSymlinkedDirectory(C.packageDirectory,{real:Hc(se),realPath:Hc(G)}),Vi(V,_e=>{const ye=re?_e.replace(C.packageDirectory,se):_e;if(!W.getSourceFile(ye)&&!(re&&W.getSourceFile(_e)))return ye})}}}static create(t,r,i,o){if(t===0)return;const s={...r.getCompilerOptions(),...this.compilerOptionsOverrides},l=this.getRootFileNames(t,r,i,s);if(!!l.length)return new o0e(r,l,o,s)}isEmpty(){return!St(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=o0e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const r=this.getCurrentProgram(),i=super.updateGraph();return r&&r!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||et}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}},LZ.maxDependencies=10,LZ.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:et,lib:et,noLib:!0},kZ=LZ,wZ=class extends mT{constructor(e,t,r,i,o){super(e,1,r,i,!1,void 0,{},!1,void 0,o,ii(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Pv,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=va(e),r=this.projectService.toCanonicalFileName(t);let i=this.projectService.configFileExistenceInfoCache.get(r);return i||this.projectService.configFileExistenceInfoCache.set(r,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,r,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(va(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){const e=this.isInitialLoadPending();this.isInitialLoadPending=Ym;const t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let r;switch(t){case 1:this.openFileWatchTriggered.clear(),r=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const i=N.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,i,e,!1),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){N.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;const r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const o=ii(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${o} to search paths`),i.unshift(o)}if(e.plugins)for(const o of e.plugins)this.enablePlugin(o,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return Vn(this.projectErrors,e=>!e.file)||Ac}getAllProjectErrors(){return this.projectErrors||Ac}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(e){return nD(this,e.path,t=>XI(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=t.openFilesImpactedByConfigFile)!=null&&e.size):!!t.openFilesImpactedByConfigFile&&qc(t.openFilesImpactedByConfigFile,(r,i)=>{const o=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(o)||!!nD(this,o.path,s=>s.containsScriptInfo(o),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return KC(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){z5(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},az=class extends mT{constructor(e,t,r,i,o,s,l,u){super(e,2,t,r,!0,o,i,s,u,t.host,ii(l||wu(e))),this.externalProjectName=e,this.compileOnSaveEnabled=s,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function ZOe(e){const t=new Map;for(const r of e)if(typeof r.type=="object"){const i=r.type;i.forEach(o=>{N.assert(typeof o=="number")}),t.set(r.name,i)}return t}function tD(e){return wo(e.indentStyle)&&(e.indentStyle=s4e.get(e.indentStyle.toLowerCase()),N.assert(e.indentStyle!==void 0)),e}function sz(e){return o4e.forEach((t,r)=>{const i=e[r];wo(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function M4(e,t){let r,i;return pR.forEach(o=>{const s=e[o.name];if(s===void 0)return;const l=a4e.get(o.name);(r||(r={}))[o.name]=l?wo(s)?l.get(s.toLowerCase()):s:ZS(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function ige(e){let t;return Ow.forEach(r=>{const i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function OZ(e){return wo(e)?WZ(e):e}function WZ(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function oge(e){const{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}function e4e(e,t){for(const r of t)if(r.getProjectName()===e)return r}function FZ(e){return!!e.containingProjects}function t4e(e){return!!e.configFileInfo}function nD(e,t,r,i,o){var s;const l=(s=e.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(!l)return;let u;const p=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(p){const f=vl(p.sourceFile.fileName),b=e.projectService.findConfiguredProjectByProjectName(f);if(b){const A=r(b);if(A)return A}else if(i!==0){u=new Map;const A=age(l,e.getCompilerOptions(),(I,R)=>p===I?v(I,R):void 0,i,e.projectService,u);if(A)return A;u.clear()}}return age(l,e.getCompilerOptions(),(f,b)=>p!==f?v(f,b):void 0,i,e.projectService,u);function v(f,b){const A=vl(f.sourceFile.fileName),I=e.projectService.findConfiguredProjectByProjectName(A)||(b===0?void 0:b===1?e.projectService.createConfiguredProject(A):b===2?e.projectService.createAndLoadConfiguredProject(A,o):N.assertNever(b));return I&&r(I)}}function age(e,t,r,i,o,s){const l=t.disableReferencedProjectLoad?0:i;return Ve(e,u=>{if(!u)return;const p=vl(u.sourceFile.fileName),v=o.toCanonicalFileName(p),f=s==null?void 0:s.get(v);if(f!==void 0&&f>=l)return;const b=r(u,l);return b||((s||(s=new Map)).set(v,l),u.references&&age(u.references,u.commandLine.options,r,l,o,s))})}function n4e(e,t){return e.potentialProjectReferences&&vh(e.potentialProjectReferences,t)}function ylt(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?n4e(e,i):Ve(e.getProjectReferences(),r)}function sge(e,t,r){const i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function r4e(e,t){return ylt(e,r=>sge(e,t,r.sourceFile.path),r=>sge(e,t,e.toPath(TR(r))),r=>sge(e,t,r))}function blt(e,t){return`${wo(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function i4e(e){return!e.isScriptOpen()&&e.mTime!==void 0}function XI(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function Up(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function lge(e){V0(e)&&(e.projectOptions=!0)}function cge(e){let t=1;return()=>e(t++)}function uge(){return{idToCallbacks:new Map,pathToId:new Map}}function Elt(e,t){if(!t||!e.eventHandler||!e.session)return;const r=uge(),i=uge(),o=uge();let s=1;return e.session.addProtocolHandler("watchChange",I=>(v(I.arguments),{responseRequired:!1})),{watchFile:l,watchDirectory:u,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function l(I,R){return p(r,I,R,M=>({eventName:hz,data:{id:M,path:I}}))}function u(I,R,M){return p(M?o:i,I,R,C=>({eventName:gz,data:{id:C,path:I,recursive:!!M,ignoreUpdate:I.endsWith("/node_modules")?void 0:!0}}))}function p({pathToId:I,idToCallbacks:R},M,C,W){const U=e.toPath(M);let X=I.get(U);X||I.set(U,X=s++);let ee=R.get(X);return ee||(R.set(X,ee=new Set),e.eventHandler(W(X))),ee.add(C),{close(){const V=R.get(X);!(V!=null&&V.delete(C))||V.size||(R.delete(X),I.delete(U),e.eventHandler({eventName:vz,data:{id:X}}))}}}function v(I){Do(I)?I.forEach(f):f(I)}function f({id:I,created:R,deleted:M,updated:C}){b(I,R,0),b(I,M,2),b(I,C,1)}function b(I,R,M){!(R!=null&&R.length)||(A(r,I,R,(C,W)=>C(W,M)),A(i,I,R,(C,W)=>C(W)),A(o,I,R,(C,W)=>C(W)))}function A(I,R,M,C){var W;(W=I.idToCallbacks.get(R))==null||W.forEach(U=>{M.forEach(X=>C(U,wu(X)))})}}function Slt(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function dge(e){return e.kind!==void 0}function pge(e){e.print(!1,!1,!1)}var lz,cz,L4,uz,dz,pz,fz,mz,_z,zZ,hz,gz,vz,fge,o4e,a4e,s4e,BZ,yz,bz,GZ,VZ,mge,jZ,Tlt=S({"src/server/editorServices.ts"(){cb(),_T(),Qhe(),lz=20*1024*1024,cz=4*1024*1024,L4="projectsUpdatedInBackground",uz="projectLoadingStart",dz="projectLoadingFinish",pz="largeFileReferenced",fz="configFileDiag",mz="projectLanguageServiceState",_z="projectInfo",zZ="openFileInfo",hz="createFileWatcher",gz="createDirectoryWatcher",vz="closeFileWatcher",fge="*ensureProjectForOpenFiles*",o4e=ZOe(fg),a4e=ZOe(pR),s4e=new Map(Object.entries({none:0,block:1,smart:2})),BZ={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}},yz={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){const i=Qx(e);i&&St(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>St(t,r=>r.isMixedContent&&Nl(e,r.extension))},bz={getFileName:e=>e.fileName,getScriptKind:e=>OZ(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},GZ={close:is},VZ=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(VZ||{}),mge=class a0e{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=cge(whe),this.newAutoImportProviderProjectName=cge(Ohe),this.newAuxiliaryProjectName=cge(Whe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=BZ,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=is,this.verifyDocumentRegistry=is,this.verifyProgram=is,this.onProjectCreation=is;var r;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||oz,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||Ac,this.pluginProbeLocations=t.pluginProbeLocations||Ac,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?$r(ii(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=Zp()),this.currentDirectory=vl(this.host.getCurrentDirectory()),this.toCanonicalFileName=ku(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Hc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new AZ(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new NZ(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:sF(this.host.newLine),preferences:kf,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=fY(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,o=i!==0?s=>this.logger.info(s):is;this.packageJsonCache=hge(this),this.watchFactory=this.serverMode!==0?{watchFile:DR,watchDirectory:DR}:zJ(Elt(this,t.canUseWatchEvents)||this.host,i,o,blt),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return ll(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return To(t,this.host.getCurrentDirectory())}setDocument(t,r,i){const o=N.checkDefined(this.getScriptInfoForPath(r));o.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,r){const i=this.getScriptInfoForPath(r);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,r){if(!this.eventHandler)return;const i={eventName:mz,data:{project:t,languageServiceEnabled:r}};this.eventHandler(i)}loadTypesMap(){try{const t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}const r=JSON.parse(t);for(const i of Object.keys(r.typesMap))r.typesMap[i].match=new RegExp(r.typesMap[i].match,"i");this.safelist=r.typesMap;for(const i in r.simpleMap)Ls(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=BZ,this.legacySafelist.clear()}}updateTypingsForProject(t){const r=this.findProject(t.projectName);if(!!r)switch(t.kind){case fO:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case mO:this.typingsCache.enqueueInstallTypingsForProject(r,r.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(t){var r;(r=this.findProject(t.projectName))==null||r.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){!this.openFiles.size||(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(fge,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),P4(t))return;const r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&Up(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const t={eventName:L4,data:{openFiles:Go(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;const i={eventName:pz,data:{file:t,fileSize:r,maxFileSize:cz}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;const i={eventName:uz,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;const r={eventName:dz,data:{project:t}};this.eventHandler(r)}sendPerformanceEvent(t,r){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:r})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,r){if(t.length){for(const i of t)r&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){N.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const i=sz(t),o=M4(t,r),s=ige(t);i.allowNonTsExtensions=!0;const l=r&&this.toCanonicalFileName(r);l?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(l,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(l,o||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(l,s)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=o,this.typeAcquisitionForInferredProjects=s);for(const u of this.inferredProjects)(l?u.projectRootPath===l:!u.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(u.projectRootPath))&&(u.setCompilerOptions(i),u.setTypeAcquisition(s),u.setWatchOptions(o==null?void 0:o.watchOptions),u.setProjectErrors(o==null?void 0:o.errors),u.compileOnSaveEnabled=i.compileOnSave,u.markAsDirty(),this.delayUpdateProjectGraph(u));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return khe(t)?e4e(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(vl(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(r=>{!r.isOrphan()&&r.languageServiceEnabled&&t(r)})}getDefaultProjectForFile(t,r){return r?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){const r=wo(t)?this.getScriptInfoForNormalizedPath(t):t;return r&&!r.isOrphan()?r.getDefaultProject():void 0}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();const r=wo(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(wo(t)?t:t.fileName),oy.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const r=i=>{t=Up(i)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){const r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){const r=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...r&&r.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,r){r===2?this.handleDeletedFile(t):t.isScriptOpen()||(t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(wo(t.sourceMapFilePath)){const r=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(r&&r.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((r,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){const r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);const r=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(r,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){const i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,r,i,o){let s=this.watchFactory.watchDirectory(t,u=>{const p=this.toPath(u),v=o.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(u,p);if(dc(p)==="package.json"&&!BO(p)&&(v&&v.fileExists||!v&&this.host.fileExists(u))){const b=this.getNormalizedAbsolutePath(u);this.logger.info(`Config: ${i} Detected new package.json: ${b}`),this.packageJsonCache.addOrUpdate(b,p),this.watchPackageJsonFile(b,p,l)}const f=this.findConfiguredProjectByProjectName(i);rO({watchedDirPath:this.toPath(t),fileOrDirectory:u,fileOrDirectoryPath:p,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:o.parsedCommandLine.options,program:(f==null?void 0:f.getCurrentProgram())||o.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:b=>this.logger.info(b),toPath:b=>this.toPath(b),getScriptKind:f?b=>f.getScriptKind(b):void 0})||(o.updateLevel!==2&&(o.updateLevel=1),o.projects.forEach((b,A)=>{if(!b)return;const I=this.getConfiguredProjectByCanonicalConfigFilePath(A);if(!I)return;const R=f===I?1:0;if(!(I.pendingUpdateLevel!==void 0&&I.pendingUpdateLevel>R))if(this.openFiles.has(p))if(N.checkDefined(this.getScriptInfoForPath(p)).isAttached(I)){const C=Math.max(R,I.openFileWatchTriggered.get(p)||0);I.openFileWatchTriggered.set(p,C)}else I.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(I);else I.pendingUpdateLevel=R,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(I)}))},r,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions),zc.WildcardDirectory,i);const l={packageJsonWatches:void 0,close(){var u;s&&(s.close(),s=void 0,(u=l.packageJsonWatches)==null||u.forEach(p=>{p.projects.delete(l),p.close()}),l.packageJsonWatches=void 0)}};return l}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){const i=this.configFileExistenceInfoCache.get(t);if(!(i!=null&&i.config))return!1;let o=!1;return i.config.updateLevel=2,i.config.projects.forEach((s,l)=>{const u=this.getConfiguredProjectByCanonicalConfigFilePath(l);if(!!u)if(o=!0,l===t){if(u.isInitialLoadPending())return;u.pendingUpdateLevel=2,u.pendingUpdateReason=r,this.delayUpdateProjectGraph(u)}else u.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(u)}),o}onConfigFileChanged(t,r){var i;const o=this.configFileExistenceInfoCache.get(t);if(r===2){o.exists=!1;const s=(i=o.config)!=null&&i.projects.has(t)?this.getConfiguredProjectByCanonicalConfigFilePath(t):void 0;s&&this.removeProject(s)}else o.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.reloadConfiguredProjectForFiles(o.openFilesImpactedByConfigFile,!1,!0,r!==2?ol:Pv,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),N.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>N.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Go(TA(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(o=>o.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:DA(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:DA(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){N.assert(t.isOrphan());const i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:ii(hp(t.fileName)?t.fileName:To(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(qx(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(const o of this.inferredProjects){if(o===i||o.isOrphan())continue;const s=o.getRootScriptInfos();N.assert(s.length===1||!!o.projectRootPath),s.length===1&&Ve(s[0].containingProjects,l=>l!==s[0].containingProjects[0]&&!l.isOrphan())&&o.removeFile(s[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,r){const i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);const o=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(o)===t&&this.openFilesWithNonRootedDiskPath.delete(o);let s=!1;for(const l of t.containingProjects){if(V0(l)){t.hasMixedContent&&t.registerFileUpdate();const u=l.openFileWatchTriggered.get(t.path);u!==void 0&&(l.openFileWatchTriggered.delete(t.path),l.pendingUpdateLevel!==void 0&&l.pendingUpdateLevel<u&&(l.pendingUpdateLevel=u,l.markFileAsDirty(t.path)))}else eD(l)&&l.isRoot(t)&&(l.isProjectWithSingleRoot()&&(s=!0),l.removeFile(t,i,!0));l.languageServiceEnabled||l.markAsDirty()}return this.openFiles.delete(t.path),this.configFileForOpenFiles.delete(t.path),!r&&s&&this.assignOrphanScriptInfosToInferredProject(),i?this.watchClosedScriptInfo(t):this.handleDeletedFile(t),s}deleteScriptInfo(t){this.filenameToScriptInfo.delete(t.path),this.filenameToScriptInfoVersion.set(t.path,t.textStorage.version);const r=t.getRealpathIfDifferent();r&&this.realpathToScriptInfos.remove(r,t)}configFileExists(t,r,i){var o;let s=this.configFileExistenceInfoCache.get(r);if(s)return FZ(i)&&!((o=s.openFilesImpactedByConfigFile)!=null&&o.has(i.path))&&(s.openFilesImpactedByConfigFile||(s.openFilesImpactedByConfigFile=new Map)).set(i.path,!1),s.exists;const l=this.host.fileExists(t);let u;return FZ(i)&&(u||(u=new Map)).set(i.path,!1),s={exists:l,openFilesImpactedByConfigFile:u},this.configFileExistenceInfoCache.set(r,s),l}createConfigFileWatcherForParsedConfig(t,r,i){var o,s;const l=this.configFileExistenceInfoCache.get(r);(!l.watcher||l.watcher===GZ)&&(l.watcher=this.watchFactory.watchFile(t,(p,v)=>this.onConfigFileChanged(r,v),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l==null?void 0:l.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions),zc.ConfigFile,i));const u=l.config.projects;u.set(i.canonicalConfigFilePath,u.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&qc(t.openFilesImpactedByConfigFile,ol)}releaseParsedConfig(t,r){var i,o,s;const l=this.configFileExistenceInfoCache.get(t);!((i=l.config)!=null&&i.projects.delete(r.canonicalConfigFilePath))||(o=l.config)!=null&&o.projects.size||(l.config=void 0,WJ(t,this.sharedExtendedConfigFileWatchers),N.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?this.configFileExistenceImpactsRootOfInferredProject(l)?UW(Uc(ii(t)))||(l.watcher.close(),l.watcher=GZ):(l.watcher.close(),l.watcher=void 0):(l.watcher.close(),this.configFileExistenceInfoCache.delete(t)))}closeConfigFileWatcherOnReleaseOfOpenFile(t){t.watcher&&!t.config&&!this.configFileExistenceImpactsRootOfInferredProject(t)&&(t.watcher.close(),t.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(t){N.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,r=>{var i,o,s;const l=this.configFileExistenceInfoCache.get(r);if(l){const u=(i=l.openFilesImpactedByConfigFile)==null?void 0:i.get(t.path);(o=l.openFilesImpactedByConfigFile)==null||o.delete(t.path),u&&this.closeConfigFileWatcherOnReleaseOfOpenFile(l),!((s=l.openFilesImpactedByConfigFile)!=null&&s.size)&&!l.config&&(N.assert(!l.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(t){N.assert(t.isScriptOpen()),this.forEachConfigFileLocation(t,(r,i)=>{let o=this.configFileExistenceInfoCache.get(r);o||(o={exists:this.host.fileExists(i)},this.configFileExistenceInfoCache.set(r,o)),(o.openFilesImpactedByConfigFile||(o.openFilesImpactedByConfigFile=new Map)).set(t.path,!0),o.watcher||(o.watcher=UW(Uc(ii(r)))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(r,l),2e3,this.hostConfiguration.watchOptions,zc.ConfigFileForInferredRoot):GZ)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,r=>{var i;const o=this.configFileExistenceInfoCache.get(r);(i=o==null?void 0:o.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(N.assert(t.isScriptOpen()),o.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(o))})}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;N.assert(!FZ(t)||this.openFiles.has(t.path));const i=this.openFiles.get(t.path);if(N.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=ii(t.fileName);const l=()=>Am(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!l();let p=!t4e(t);do{if(p){const f=D4(s,this.currentDirectory,this.toCanonicalFileName),b=$r(s,"tsconfig.json");let A=r($r(f,"tsconfig.json"),b);if(A)return b;const I=$r(s,"jsconfig.json");if(A=r($r(f,"jsconfig.json"),I),A)return I;if(A6(f))break}const v=ii(s);if(v===s)break;s=v,p=!0}while(u||l())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;const r=this.getConfigFileNameForFile(t),i=r&&this.findConfiguredProjectByProjectName(r);return i&&XI(i,t)?i:i==null?void 0:i.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!t4e(t)){const i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${ii(t.fileName)}`);const r=this.forEachConfigFileLocation(t,(i,o)=>this.configFileExists(o,i,t));return r?this.logger.info(`For info: ${t.fileName} :: Config file name: ${r}`):this.logger.info(`For info: ${t.fileName} :: No config files found.`),FZ(t)&&this.configFileForOpenFiles.set(t.path,r||!1),r}printProjects(){!this.logger.hasLevel(1)||(this.logger.startGroup(),this.externalProjects.forEach(pge),this.configuredProjects.forEach(pge),this.inferredProjects.forEach(pge),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(o=>o.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t){const r=this.toCanonicalFileName(t);return this.getConfiguredProjectByCanonicalConfigFilePath(r)}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return e4e(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=lz;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(u=>s-=u||0);let l=0;for(const u of i){const p=o.getFileName(u);if(!eI(p)&&(l+=this.host.getFileSize(p),l>lz||l>s)){const v=i.map(f=>o.getFileName(f)).filter(f=>!eI(f)).map(f=>({name:f,size:this.host.getFileSize(f)})).sort((f,b)=>b.size-f.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${l}). Largest files: ${v.map(f=>`${f.name}:${f.size}`).join(", ")}`),p}}this.projectToSizeMap.set(t,l)}createExternalProject(t,r,i,o,s){const l=sz(i),u=M4(i,ii(wu(t))),p=new az(t,this,this.documentRegistry,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,bz),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u==null?void 0:u.watchOptions);return p.setProjectErrors(u==null?void 0:u.errors),p.excludedFiles=s,this.addFilesToNonInferredProject(p,r,bz,o),this.externalProjects.push(p),p}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){lge(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){lge(t);return}const r=V0(t)?t.projectOptions:void 0;lge(t);const i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:C4(t.getScriptInfos(),!0),compilerOptions:Xse(t.getCompilationSettings()),typeAcquisition:s(t.getTypeAcquisition()),extends:r&&r.configHasExtendsProperty,files:r&&r.configHasFilesProperty,include:r&&r.configHasIncludeProperty,exclude:r&&r.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:o(),projectType:t instanceof az?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Ae};this.eventHandler({eventName:_z,data:i});function o(){return V0(t)&&TZ(t.getConfigFilePath())||"other"}function s({enable:l,include:u,exclude:p}){return{enable:l,include:u!==void 0&&u.length!==0,exclude:p!==void 0&&p.length!==0}}}addFilesToNonInferredProject(t,r,i,o){this.updateNonInferredProjectFiles(t,r,i),t.setTypeAcquisition(o),t.markAsDirty()}createConfiguredProject(t){var r;(r=ur)==null||r.instant(ur.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);const i=this.toCanonicalFileName(t);let o=this.configFileExistenceInfoCache.get(i);o?o.exists=!0:this.configFileExistenceInfoCache.set(i,o={exists:!0}),o.config||(o.config={cachedDirectoryStructureHost:NW(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const s=new wZ(t,i,this,this.documentRegistry,o.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,s),this.createConfigFileWatcherForParsedConfig(t,i,s),s}createConfiguredProjectWithDelayLoad(t,r){const i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=r,i}createAndLoadConfiguredProject(t,r){const i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,r),i}createLoadAndUpdateConfiguredProject(t,r){const i=this.createAndLoadConfiguredProject(t,r);return i.updateGraph(),i}loadConfiguredProject(t,r){var i,o;(i=ur)==null||i.push(ur.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);const s=va(t.getConfigFilePath()),l=this.ensureParsedConfigUptoDate(s,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),u=l.config.parsedCommandLine;N.assert(!!u.fileNames);const p=u.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:u.raw.extends!==void 0,configHasFilesProperty:u.raw.files!==void 0,configHasIncludeProperty:u.raw.include!==void 0,configHasExcludeProperty:u.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=UC(u.raw),t.setProjectErrors(u.options.configFile.parseDiagnostics),t.updateReferences(u.projectReferences);const v=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,p,u.fileNames,yz);v?(t.disableLanguageService(v),this.configFileExistenceInfoCache.forEach((b,A)=>this.stopWatchingWildCards(A,t))):(t.setCompilerOptions(p),t.setWatchOptions(u.watchOptions),t.enableLanguageService(),this.watchWildcards(s,l,t)),t.enablePluginsWithOptions(p);const f=u.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,f,yz,p,u.typeAcquisition,u.compileOnSave,u.watchOptions),(o=ur)==null||o.pop()}ensureParsedConfigUptoDate(t,r,i,o){var s,l,u;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}const p=((s=i.config)==null?void 0:s.cachedDirectoryStructureHost)||NW(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),v=jC(t,R=>this.host.readFile(R)),f=xw(t,wo(v)?v:""),b=f.parseDiagnostics;wo(v)||b.push(v);const A=Cw(f,p,ii(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);A.errors.length&&b.push(...A.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:A.fileNames,options:A.options,watchOptions:A.watchOptions,projectReferences:A.projectReferences},void 0," ")}`);const I=(l=i.config)==null?void 0:l.parsedCommandLine;return i.config?(i.config.parsedCommandLine=A,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:A,cachedDirectoryStructureHost:p,projects:new Map},!I&&!_7(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(A.watchOptions))&&((u=i.watcher)==null||u.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),CW(r,A.options,this.sharedExtendedConfigFileWatchers,(R,M)=>this.watchFactory.watchFile(R,()=>{var C;PW(this.extendedConfigCache,M,U=>this.toPath(U));let W=!1;(C=this.sharedExtendedConfigFileWatchers.get(M))==null||C.projects.forEach(U=>{W=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(U,`Change in extended config file ${R} detected`)||W}),W&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,zc.ExtendedConfigFile,t),R=>this.toPath(R)),i}watchWildcards(t,{exists:r,config:i},o){if(i.projects.set(o.canonicalConfigFilePath,!0),r){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,nO(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(s,l)=>this.watchWildcardDirectory(s,l,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;np(i.watchedDirectories,Mf),i.watchedDirectories=void 0}}stopWatchingWildCards(t,r){const i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(r.canonicalConfigFilePath)||(i.config.projects.set(r.canonicalConfigFilePath,!1),!qc(i.config.projects,ol)&&(i.config.watchedDirectories&&(np(i.config.watchedDirectories,Mf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){const o=t.getRootFilesMap(),s=new Map;for(const l of r){const u=i.getFileName(l),p=vl(u),v=N4(p);let f;if(!v&&!t.fileExists(u)){f=D4(p,this.currentDirectory,this.toCanonicalFileName);const b=o.get(f);b?(b.info&&(t.removeFile(b.info,!1,!0),b.info=void 0),b.fileName=p):o.set(f,{fileName:p})}else{const b=i.getScriptKind(l,this.hostConfiguration.extraFileExtensions),A=i.hasMixedContent(l,this.hostConfiguration.extraFileExtensions),I=N.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(p,t.currentDirectory,b,A,t.directoryStructureHost));f=I.path;const R=o.get(f);!R||R.info!==I?(t.addRoot(I,p),I.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(I)):R.fileName=p}s.set(f,!0)}o.size>s.size&&o.forEach((l,u)=>{s.has(u)||(l.info?t.removeFile(l.info,t.fileExists(l.info.fileName),!0):o.delete(u))})}updateRootAndOptionsOfNonInferredProject(t,r,i,o,s,l,u){t.setCompilerOptions(o),t.setWatchOptions(u),l!==void 0&&(t.compileOnSaveEnabled=l),this.addFilesToNonInferredProject(t,r,i,s)}reloadFileNamesOfConfiguredProject(t){const r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.concat(t.getExternalFiles(1)),yz),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine.fileNames;N.assert(r.updateLevel===1);const i=r.parsedCommandLine.options.configFile.configFileSpecs,o=HC(i,ii(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:o},o}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,yz)}reloadConfiguredProject(t,r,i,o){const s=t.getCachedDirectoryStructureHost();o&&this.clearSemanticCache(t),s.clearCache();const l=t.getConfigFilePath();this.logger.info(`${i?"Loading":"Reloading"} configured project ${l}`),this.loadConfiguredProject(t,r),t.updateGraph(),this.sendConfigFileDiagEvent(t,l)}clearSemanticCache(t){t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,r){if(!this.eventHandler||this.suppressDiagnosticEvents)return;const i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:fz,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:r}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){const o=this.toCanonicalFileName(r);for(const s of this.inferredProjects)if(s.projectRootPath===o)return s;return this.createInferredProject(r,!1,r)}let i;for(const o of this.inferredProjects)!o.projectRootPath||!Am(o.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)||i&&i.projectRootPath.length>o.projectRootPath.length||(i=o);return i}getOrCreateSingleInferredProjectIfEnabled(){if(!!this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(t){N.assert(!this.useSingleInferredProject);const r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(const i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===r)return i;return this.createInferredProject(t)}createInferredProject(t,r,i){const o=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects;let s,l;i&&(s=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),l=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),s===void 0&&(s=this.watchOptionsForInferredProjects),l===void 0&&(l=this.typeAcquisitionForInferredProjects),s=s||void 0;const u=new PZ(this,this.documentRegistry,o,s==null?void 0:s.watchOptions,i,t,l);return u.setProjectErrors(s==null?void 0:s.errors),r?this.inferredProjects.unshift(u):this.inferredProjects.push(u),u}getOrCreateScriptInfoNotOpenedByClient(t,r,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(vl(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(vl(t))}getScriptInfoOrConfig(t){const r=vl(t),i=this.getScriptInfoForNormalizedPath(r);if(i)return i;const o=this.configuredProjects.get(this.toPath(t));return o&&o.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){const r=Go(this.filenameToScriptInfo.entries(),([i,o])=>({path:i,fileName:o.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}.
All files are: ${JSON.stringify(r)}`,"Err")}getSymlinkedProjects(t){let r;if(this.realpathToScriptInfos){const o=t.getRealpathIfDifferent();o&&Ve(this.realpathToScriptInfos.get(o),i),Ve(this.realpathToScriptInfos.get(t.path),i)}return r;function i(o){if(o!==t)for(const s of o.containingProjects)s.languageServiceEnabled&&!s.isOrphan()&&!s.getCompilerOptions().preserveSymlinks&&!t.isAttached(s)&&(r?qc(r,(l,u)=>u===o.path?!1:Mn(l,s))||r.add(o.path,s):(r=Zp(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(N.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!ho(t.path,this.globalCacheLocationDirectoryPath))){const r=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||r===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,o)=>this.onSourceFileChanged(t,o),500,this.hostConfiguration.watchOptions,zc.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let i=this.watchFactory.watchDirectory(t,s=>{var l;const u=jW(this.toPath(s));if(!u)return;const p=dc(u);if(((l=o.affectedModuleSpecifierCacheProjects)==null?void 0:l.size)&&(p==="package.json"||p==="node_modules")&&o.affectedModuleSpecifierCacheProjects.forEach(v=>{var f;(f=v.getModuleSpecifierCache())==null||f.clear()}),o.refreshScriptInfoRefCount)if(r===u)this.refreshScriptInfosInDirectory(r);else{const v=this.getScriptInfoForPath(u);v?i4e(v)&&this.refreshScriptInfo(v):PA(u)||this.refreshScriptInfosInDirectory(u)}},1,this.hostConfiguration.watchOptions,zc.NodeModules);const o={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var s;i&&!o.refreshScriptInfoRefCount&&!((s=o.affectedModuleSpecifierCacheProjects)!=null&&s.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(r))}};return this.nodeModulesWatchers.set(r,o),o}watchPackageJsonsInNodeModules(t,r){var i;const o=this.toPath(t),s=this.nodeModulesWatchers.get(o)||this.createNodeModulesWatcher(t,o);return N.assert(!((i=s.affectedModuleSpecifierCacheProjects)!=null&&i.has(r))),(s.affectedModuleSpecifierCacheProjects||(s.affectedModuleSpecifierCacheProjects=new Set)).add(r),{close:()=>{var l;(l=s.affectedModuleSpecifierCacheProjects)==null||l.delete(r),s.close()}}}watchClosedScriptInfoInNodeModules(t){const r=t+"/node_modules",i=this.toPath(r),o=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(r,i);return o.refreshScriptInfoRefCount++,{close:()=>{o.refreshScriptInfoRefCount--,o.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||Wp).getTime()}refreshScriptInfo(t){const r=this.getModifiedTime(t);if(r!==t.mTime){const i=VV(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+cl,this.filenameToScriptInfo.forEach(r=>{i4e(r)&&ho(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,o,s){if(hp(t)||N4(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,o,s);const l=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(l)return l}getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,r,i,o,s){return this.getOrCreateScriptInfoWorker(t,r,!0,i,o,s)}getOrCreateScriptInfoForNormalizedPath(t,r,i,o,s,l){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,i,o,s,l)}getOrCreateScriptInfoWorker(t,r,i,o,s,l,u){N.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");const p=D4(t,r,this.toCanonicalFileName);let v=this.getScriptInfoForPath(p);if(!v){const f=N4(t);if(N.assert(hp(t)||f||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Go(this.openFilesWithNonRootedDiskPath.keys())})}
Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),N.assert(!hp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Go(this.openFilesWithNonRootedDiskPath.keys())})}
Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),N.assert(!f||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Go(this.openFilesWithNonRootedDiskPath.keys())})}
Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!f&&!(u||this.host).fileExists(t))return;v=new DZ(this.host,t,s,!!l,p,this.filenameToScriptInfoVersion.get(p)),this.filenameToScriptInfo.set(v.path,v),this.filenameToScriptInfoVersion.delete(v.path),i?!hp(t)&&(!f||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),v):this.watchClosedScriptInfo(v)}return i&&(this.stopWatchingScriptInfo(v),v.open(o),l&&v.registerFileUpdate()),v}getScriptInfoForNormalizedPath(t){return!hp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(D4(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){return this.filenameToScriptInfo.get(t)}getDocumentPositionMapper(t,r,i){const o=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host);if(!o){i&&t.addGeneratedFileWatch(r,i);return}if(o.getSnapshot(),wo(o.sourceMapFilePath)){const f=this.getScriptInfoForPath(o.sourceMapFilePath);if(f&&(f.getSnapshot(),f.documentPositionMapper!==void 0))return f.sourceInfos=this.addSourceInfoToSourceMap(i,t,f.sourceInfos),f.documentPositionMapper?f.documentPositionMapper:void 0;o.sourceMapFilePath=void 0}else if(o.sourceMapFilePath){o.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceMapFilePath.sourceInfos);return}else if(o.sourceMapFilePath!==void 0)return;let s,l,u=(f,b)=>{const A=this.getOrCreateScriptInfoNotOpenedByClient(f,t.currentDirectory,this.host);if(!A){l=b;return}s=A;const I=A.getSnapshot();return A.documentPositionMapper!==void 0?A.documentPositionMapper:MR(I)};const p=t.projectName,v=gY({getCanonicalFileName:this.toCanonicalFileName,log:f=>this.logger.info(f),getSourceFileLike:f=>this.getSourceFileLike(f,p,o)},o.fileName,o.textStorage.getLineInfo(),u);return u=void 0,s?(o.sourceMapFilePath=s.path,s.declarationInfoPath=o.path,s.documentPositionMapper=v||!1,s.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceInfos)):l?o.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?l:To(l,t.currentDirectory),o.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:o.sourceMapFilePath=!1,v}addSourceInfoToSourceMap(t,r,i){if(t){const o=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost);(i||(i=new Set)).add(o.path)}return i}addMissingSourceMapFile(t,r){return this.watchFactory.watchFile(t,()=>{const o=this.getScriptInfoForPath(r);o&&o.sourceMapFilePath&&!wo(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,zc.MissingSourceMapFile)}getSourceFileLike(t,r,i){const o=r.projectName?r:this.findProject(r);if(o){const l=o.toPath(t),u=o.getSourceFile(l);if(u&&u.resolvedPath===l)return u}const s=this.getOrCreateScriptInfoNotOpenedByClient(t,(o||this).currentDirectory,o?o.directoryStructureHost:this.host);if(!!s){if(i&&wo(i.sourceMapFilePath)&&s!==i){const l=this.getScriptInfoForPath(i.sourceMapFilePath);l&&(l.sourceInfos||(l.sourceInfos=new Set)).add(s.path)}return s.cacheSourceFile?s.cacheSourceFile.sourceFile:(s.sourceFileLike||(s.sourceFileLike={get text(){return N.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:l=>{const u=s.positionToLineOffset(l);return{line:u.line-1,character:u.offset-1}},getPositionOfLineAndCharacter:(l,u,p)=>s.lineOffsetToPosition(l+1,u+1,p)}),s.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){const i=this.getScriptInfoForNormalizedPath(vl(t.file));i&&(i.setOptions(tD(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...tD(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){const{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:o}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(s=>s.forEach(l=>{!l.isClosed()&&l.hasExternalProjectRef()&&l.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(l.getProjectName())&&l.updateGraph()})),o!==t.preferences.includePackageJsonAutoImports&&this.forEachProject(s=>{s.onAutoImportProviderSettingsChanged()})}t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions&&(this.hostConfiguration.watchOptions=(r=M4(t.watchOptions))==null?void 0:r.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(t){return t&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...t}:t||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(t=>{this.openFiles.has(t.path)||!t.fileWatcher||this.onSourceFileChanged(t,this.host.fileExists(t.fileName)?1:2)}),this.pendingProjectUpdates.forEach((t,r)=>{this.throttledOperations.cancel(r),this.pendingProjectUpdates.delete(r)}),this.throttledOperations.cancel(fge),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Pv,"User requested reload projects"),this.externalProjects.forEach(t=>{this.clearSemanticCache(t),t.updateGraph()}),this.inferredProjects.forEach(t=>this.clearSemanticCache(t)),this.ensureProjectForOpenFiles(),this.logger.info("After reloading projects.."),this.printProjects()}reloadConfiguredProjectForFiles(t,r,i,o,s){const l=new Map,u=p=>{l.has(p.canonicalConfigFilePath)||(l.set(p.canonicalConfigFilePath,!0),this.reloadConfiguredProject(p,s,!1,r))};t==null||t.forEach((p,v)=>{if(this.configFileForOpenFiles.delete(v),!o(p))return;const f=this.getScriptInfoForPath(v);N.assert(f.isScriptOpen());const b=this.getConfigFileNameForFile(f);if(b){const A=this.findConfiguredProjectByProjectName(b)||this.createConfiguredProject(b);l.has(A.canonicalConfigFilePath)||(l.set(A.canonicalConfigFilePath,!0),i?(A.pendingUpdateLevel=2,A.pendingUpdateReason=s,r&&this.clearSemanticCache(A),this.delayUpdateProjectGraph(A)):(this.reloadConfiguredProject(A,s,!1,r),XI(A,f)||nD(A,f.path,R=>(u(R),XI(R,f)),1)&&nD(A,void 0,u,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){N.assert(t.containingProjects.length>0);const r=t.containingProjects[0];!r.isOrphan()&&eD(r)&&r.isRoot(t)&&Ve(t.containingProjects,i=>i!==r&&!i.isOrphan())&&r.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Up),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(vl(t),r,i,!1,o?vl(o):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){const i=t.isSourceOfProjectReferenceRedirect(r.fileName),o=i?r:t.getSourceMapper().tryGetSourcePosition(r);if(!o)return;const{fileName:s}=o,l=this.getScriptInfo(s);if(!l&&!this.host.fileExists(s))return;const u={fileName:vl(s),path:this.toPath(s)},p=this.getConfigFileNameForFile(u);if(!p)return;let v=this.findConfiguredProjectByProjectName(p);if(!v){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:l!=null&&l.containingProjects.length?o:r;v=this.createAndLoadConfiguredProject(p,`Creating project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`)}Up(v);const f=I=>{const R=this.getScriptInfo(s);return R&&XI(I,R)};if(v.isSolution()||!f(v)){if(v=nD(v,s,I=>(Up(I),f(I)?I:void 0),2,`Creating project referenced in solution ${v.projectName} to find possible configured project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`),!v)return;if(v===t)return o}A(v);const b=this.getScriptInfo(s);if(!b||!b.containingProjects.length)return;return b.containingProjects.forEach(I=>{V0(I)&&A(I)}),o;function A(I){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(I.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return un(this.externalProjects,r=>(Up(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,o,s){const l=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,r,i,o);return this.openFiles.set(l.path,s),l}assignProjectToOpenedScriptInfo(t){let r,i,o=this.findExternalProjectContainingOpenScriptInfo(t),s,l,u=!1;return!o&&this.serverMode===0&&(r=this.getConfigFileNameForFile(t),r&&(o=this.findConfiguredProjectByProjectName(r),o?Up(o):(o=this.createLoadAndUpdateConfiguredProject(r,`Creating possible configured project for ${t.fileName} to open`),u=!0),l=o.containsScriptInfo(t)?o:void 0,s=o,XI(o,t)||nD(o,t.path,p=>{if(Up(p),Do(s)?s.push(p):s=[o,p],XI(p,t))return l=p,p;!l&&p.containsScriptInfo(t)&&(l=p)},2,`Creating project referenced in solution ${o.projectName} to find possible configured project for ${t.fileName} to open`),l?(r=l.getConfigFilePath(),(l!==o||u)&&(i=l.getAllProjectErrors(),this.sendConfigFileDiagEvent(l,t.fileName))):r=void 0,this.createAncestorProjects(t,o))),t.containingProjects.forEach(Up),t.isOrphan()&&(Do(s)?s.forEach(p=>this.sendConfigFileDiagEvent(p,t.fileName)):s&&this.sendConfigFileDiagEvent(s,t.fileName),N.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),N.assert(!t.isOrphan()),{configFileName:r,configFileErrors:i,retainProjects:s}}createAncestorProjects(t,r){if(!!t.isAttached(r))for(;;){if(!r.isInitialLoadPending()&&(!r.getCompilerOptions().composite||r.getCompilerOptions().disableSolutionSearching))return;const i=this.getConfigFileNameForFile({fileName:r.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;const o=this.findConfiguredProjectByProjectName(i)||this.createConfiguredProjectWithDelayLoad(i,`Creating project possibly referencing default composite project ${r.getProjectName()} of open file ${t.fileName}`);o.isInitialLoadPending()&&o.setPotentialProjectReference(r.canonicalConfigFilePath),r=o}}loadAncestorProjectTree(t){t=t||Gx(this.configuredProjects,(i,o)=>o.isInitialLoadPending()?void 0:[i,!0]);const r=new Set;for(const i of Go(this.configuredProjects.values()))n4e(i,o=>t.has(o))&&Up(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var o;if(!Rv(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;const s=(o=t.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(!!s)for(const l of s){if(!l)continue;const u=QJ(l.references,f=>r.has(f.sourceFile.path)?f:void 0);if(!u)continue;const p=vl(l.sourceFile.fileName),v=t.projectService.findConfiguredProjectByProjectName(p)||t.projectService.createAndLoadConfiguredProject(p,`Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`);Up(v),this.ensureProjectChildren(v,r,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(const r of this.inferredProjects.slice())r.isOrphan()&&this.removeProject(r);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,r,i,o,s){const l=this.getOrCreateOpenScriptInfo(t,r,i,o,s),{retainProjects:u,...p}=this.assignProjectToOpenedScriptInfo(l);return this.cleanupAfterOpeningFile(u),this.telemetryOnOpenFile(l),this.printProjects(),p}removeOrphanConfiguredProjects(t){const r=new Map(this.configuredProjects),i=l=>{!l.isOrphan()&&l.originalConfiguredProjects&&l.originalConfiguredProjects.forEach((u,p)=>{const v=this.getConfiguredProjectByCanonicalConfigFilePath(p);return v&&s(v)})};t&&(Do(t)?t.forEach(s):s(t)),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.configuredProjects.forEach(l=>{l.hasOpenRef()?s(l):r.has(l.canonicalConfigFilePath)&&r4e(l,u=>o(u)&&s(l))}),r.forEach(l=>this.removeProject(l));function o(l){return l.hasOpenRef()||!r.has(l.canonicalConfigFilePath)}function s(l){r.delete(l.canonicalConfigFilePath)&&(i(l),r4e(l,s))}}removeOrphanScriptInfos(){const t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.isScriptOpen()&&r.isOrphan()&&!r.isContainedByBackgroundProject()){if(!r.sourceMapFilePath)return;let i;if(wo(r.sourceMapFilePath)){const o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!vh(i,o=>{const s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(wo(r.sourceMapFilePath)){t.delete(r.sourceMapFilePath);const o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;i&&i.forEach((o,s)=>t.delete(s))}}),t.forEach(r=>{this.stopWatchingScriptInfo(r),this.deleteScriptInfo(r),r.closeSourceMapFileWatcher()})}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!Pm(this.allJsFilesForOpenFileTelemetry,t.path))return;const r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;const i=r.getSourceFile(t.path),o=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:zZ,data:{info:{checkJs:o}}})}closeClientFile(t,r){const i=this.getScriptInfoForNormalizedPath(vl(t)),o=i?this.closeOpenFile(i,r):!1;return r||this.printProjects(),o}collectChanges(t,r,i,o){for(const s of r){const l=un(t,u=>u.projectName===s.getProjectName());o.push(s.getChangesSinceVersion(l&&l.version,i))}}synchronizeProjectList(t,r){const i=[];return this.collectChanges(t,this.externalProjects,r,i),this.collectChanges(t,this.configuredProjects.values(),r,i),this.collectChanges(t,this.inferredProjects,r,i),i}applyChangesInOpenFiles(t,r,i){let o,s=!1;if(t)for(const u of t){const p=this.getOrCreateOpenScriptInfo(vl(u.fileName),u.content,OZ(u.scriptKind),u.hasMixedContent,u.projectRootPath?vl(u.projectRootPath):void 0);(o||(o=[])).push(p)}if(r)for(const u of r){const p=this.getScriptInfo(u.fileName);N.assert(!!p),this.applyChangesToFile(p,u.changes)}if(i)for(const u of i)s=this.closeClientFile(u,!0)||s;let l;o&&(l=qi(o,u=>this.assignProjectToOpenedScriptInfo(u).retainProjects)),s&&this.assignOrphanScriptInfosToInferredProject(),o?(this.cleanupAfterOpeningFile(l),o.forEach(u=>this.telemetryOnOpenFile(u)),this.printProjects()):Pe(i)&&this.printProjects()}applyChangesToFile(t,r){for(const i of r)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeConfiguredProjectReferencedFromExternalProject(t){t==null||t.forEach(r=>{r.isClosed()||(r.deleteExternalProjectReference(),r.hasOpenRef()||this.removeProject(r))})}closeExternalProject(t,r){const i=vl(t),o=this.externalProjectToConfiguredProjectMap.get(i);if(o)this.closeConfiguredProjectReferencedFromExternalProject(o),this.externalProjectToConfiguredProjectMap.delete(i);else{const s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}r&&this.printProjects()}openExternalProjects(t){const r=C1(this.externalProjects,i=>i.getProjectName(),i=>!0);vh(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(const i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);vh(r,i=>{this.closeExternalProject(i,!1)}),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=BZ}applySafeList(t){var o;const r=t.typeAcquisition;N.assert(!!r,"proj.typeAcquisition should be set by now");const i=this.applySafeListWorker(t,t.rootFiles,r);return(o=i==null?void 0:i.excludedFiles)!=null?o:[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;const o=i.include||(i.include=[]),s=[],l=r.map(b=>wu(b.fileName));for(const b of Object.keys(this.safelist)){const A=this.safelist[b];for(const I of l)if(A.match.test(I)){if(this.logger.info(`Excluding files based on rule ${b} matching file '${I}'`),A.types)for(const R of A.types)o.includes(R)||o.push(R);if(A.exclude)for(const R of A.exclude){const M=I.replace(A.match,(...C)=>R.map(W=>typeof W=="number"?wo(C[W])?a0e.escapeFilenameForRegex(C[W]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${b} - not enough groups`),"\\*"):W).join(""));s.includes(M)||s.push(M)}else{const R=a0e.escapeFilenameForRegex(I);s.includes(R)||s.push(R)}}}const u=s.map(b=>new RegExp(b,"i"));let p,v;for(let b=0;b<r.length;b++)if(u.some(A=>A.test(l[b])))f(b);else{if(i.enable){const A=dc(ph(l[b]));if(Nl(A,"js")){const I=Id(A),R=CG(I),M=this.legacySafelist.get(R);if(M!==void 0){this.logger.info(`Excluded '${l[b]}' because it matched ${R} from the legacy safelist`),f(b),o.includes(M)||o.push(M);continue}}}/^.+[.-]min\.js$/.test(l[b])?f(b):p==null||p.push(r[b])}return v?{rootFiles:p,excludedFiles:v}:void 0;function f(b){v||(N.assert(!p),p=r.slice(0,b),v=[]),v.push(l[b])}}openExternalProject(t,r){var u,p;const i=this.findExternalProjectByProjectName(t.projectFileName),o=this.externalProjectToConfiguredProjectMap.get(t.projectFileName);let s,l=[];for(const v of t.rootFiles){const f=vl(v.fileName);if(TZ(f)){if(this.serverMode===0&&this.host.fileExists(f)){let b=this.findConfiguredProjectByProjectName(f);b||(b=this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.createConfiguredProjectWithDelayLoad(f,`Creating configured project in external project: ${t.projectFileName}`):this.createLoadAndUpdateConfiguredProject(f,`Creating configured project in external project: ${t.projectFileName}`)),o!=null&&o.has(b)||b.addExternalProjectReference(),(s!=null?s:s=new Set).add(b),o==null||o.delete(b)}}else l.push(v)}if(s)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,s),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);const v=t.typeAcquisition||{};v.include=v.include||[],v.exclude=v.exclude||[],v.enable===void 0&&(v.enable=nge(l.map(A=>A.fileName)));const f=this.applySafeListWorker(t,l,v),b=(u=f==null?void 0:f.excludedFiles)!=null?u:[];if(l=(p=f==null?void 0:f.rootFiles)!=null?p:l,i){i.excludedFiles=b;const A=sz(t.options),I=M4(t.options,i.getCurrentDirectory()),R=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,A,l,bz);R?i.disableLanguageService(R):i.enableLanguageService(),i.setProjectErrors(I==null?void 0:I.errors),this.updateRootAndOptionsOfNonInferredProject(i,l,bz,A,v,t.options.compileOnSave,I==null?void 0:I.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,l,t.options,v,b).updateGraph()}this.closeConfiguredProjectReferencedFromExternalProject(o),r&&this.printProjects()}hasDeferredExtension(){for(const t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,r,i){var o;if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${r.name} from candidate paths: ${i.join(",")}`),!r.name||jw(r.name).rest){this.logger.info(`Skipped loading plugin ${r.name||JSON.stringify(r)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){const s=mT.importServicePluginAsync(r,i,this.host,u=>this.logger.info(u));(o=this.pendingPluginEnablements)!=null||(this.pendingPluginEnablements=new Map);let l=this.pendingPluginEnablements.get(t);l||this.pendingPluginEnablements.set(t,l=[]),l.push(s);return}this.endEnablePlugin(t,mT.importServicePluginSync(r,i,this.host,s=>this.logger.info(s)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:i,errorLogs:o}){var s;if(i){const l=(s=this.currentPluginConfigOverrides)==null?void 0:s.get(r.name);if(l){const u=r.name;r=l,r.name=u}t.enableProxy(i,r)}else Ve(o,l=>this.logger.info(l)),this.logger.info(`Couldn't find ${r.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const t=Go(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){N.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Wt(t,([r,i])=>this.enableRequestedPluginsForProjectAsync(r,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,r){const i=await Promise.all(r);if(!t.isClosed()){for(const o of i)this.endEnablePlugin(t,o);this.delayUpdateProjectGraph(t)}}configurePlugin(t){this.forEachEnabledProject(r=>r.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,r,i){const o=this.packageJsonCache,s=i&&this.toPath(i),l=[],u=p=>{switch(o.directoryHasPackageJson(p)){case 3:return o.searchDirectoryAndAncestors(p),u(p);case-1:const v=$r(p,"package.json");this.watchPackageJsonFile(v,this.toPath(v),r);const f=o.getInDirectory(p);f&&l.push(f)}if(s&&s===p)return!0};return xm(ii(t),u),l}getNearestAncestorDirectoryWithPackageJson(t){return xm(t,r=>{switch(this.packageJsonCache.directoryHasPackageJson(r)){case-1:return r;case 0:return;case 3:return this.host.fileExists($r(r,"package.json"))?r:void 0}})}watchPackageJsonFile(t,r,i){var s,l;N.assert(i!==void 0);let o=((s=this.packageJsonFilesMap)!=null?s:this.packageJsonFilesMap=new Map).get(r);if(!o){let u=this.watchFactory.watchFile(t,(p,v)=>{switch(v){case 0:return N.fail();case 1:this.packageJsonCache.addOrUpdate(p,r),this.onPackageJsonChange(o);break;case 2:this.packageJsonCache.delete(r),this.onPackageJsonChange(o),o.projects.clear(),o.close()}},250,this.hostConfiguration.watchOptions,zc.PackageJson);o={projects:new Set,close:()=>{var p;o.projects.size||!u||(u.close(),u=void 0,(p=this.packageJsonFilesMap)==null||p.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,o)}o.projects.add(i),((l=i.packageJsonWatches)!=null?l:i.packageJsonWatches=new Set).add(o)}onPackageJsonChange(t){t.projects.forEach(r=>{var i;return(i=r.onPackageJsonChange)==null?void 0:i.call(r)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=Slt())}},mge.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,jZ=mge}});function _ge(e){let t,r,i;const o={get(p,v,f,b){if(!(!r||i!==l(p,f,b)))return r.get(v)},set(p,v,f,b,A,I){if(s(p,f,b).set(v,u(A,I,!1)),I){for(const R of A)if(R.isInNodeModules){const M=R.path.substring(0,R.path.indexOf(Nh)+Nh.length-1),C=e.toPath(M);t!=null&&t.has(C)||(t||(t=new Map)).set(C,e.watchNodeModulesForPackageJsonChanges(M))}}},setModulePaths(p,v,f,b,A){const I=s(p,f,b),R=I.get(v);R?R.modulePaths=A:I.set(v,u(A,void 0,void 0))},setBlockedByPackageJsonDependencies(p,v,f,b,A){const I=s(p,f,b),R=I.get(v);R?R.isBlockedByPackageJsonDependencies=A:I.set(v,u(void 0,void 0,A))},clear(){t==null||t.forEach(Zm),r==null||r.clear(),t==null||t.clear(),i=void 0},count(){return r?r.size:0}};return N.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(p,v,f){const b=l(p,v,f);return r&&i!==b&&o.clear(),i=b,r||(r=new Map)}function l(p,v,f){return`${p},${v.importModuleSpecifierEnding},${v.importModuleSpecifierPreference},${f.overrideImportMode}`}function u(p,v,f){return{modulePaths:p,moduleSpecifiers:v,isBlockedByPackageJsonDependencies:f}}}var Alt=S({"src/server/moduleSpecifierCache.ts"(){cb()}});function hge(e){const t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(ii(l),!0)},getInDirectory:l=>t.get(e.toPath($r(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:l=>{xm(l,u=>{const p=e.toPath(u);if(s(p)!==3)return!0;const v=$r(u,"package.json");zO(e,v)?i(v,$r(p,"package.json")):r.set(p,!0)})}};function i(l,u){const p=N.checkDefined(KX(l,e.host));t.set(u,p),r.delete(ii(u))}function o(l){t.delete(l),r.delete(ii(l))}function s(l){return t.has($r(l,"package.json"))?-1:r.has(l)?0:3}}var Ilt=S({"src/server/packageJsonCache.ts"(){cb()}});function xlt(e){const t=e[0],r=e[1];return(1e9*t+r)/1e6}function l4e(e,t){if((eD(e)||CZ(e))&&e.isJsOnlyProject()){const r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function Rlt(e){return Nf(e)||!!e.emitDecoratorMetadata}function c4e(e,t,r){const i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:B_(r.messageText,`
`),code:r.code,category:mS(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:Wt(r.relatedInformation,UZ)}}function UZ(e){return e.file?{span:{start:k4(Rs(e.file,e.start)),end:k4(Rs(e.file,e.start+e.length)),file:e.file.fileName},message:B_(e.messageText,`
`),category:mS(e),code:e.code}:{message:B_(e.messageText,`
`),category:mS(e),code:e.code}}function k4(e){return{line:e.line+1,offset:e.character+1}}function w4(e,t){const r=e.file&&k4(Rs(e.file,e.start)),i=e.file&&k4(Rs(e.file,e.start+e.length)),o=B_(e.messageText,`
`),{code:s,source:l}=e,u=mS(e),p={start:r,end:i,text:o,code:s,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:l,relatedInformation:Wt(e.relatedInformation,UZ)};return t?{...p,fileName:e.file&&e.file.fileName}:p}function Dlt(e,t){return e.every(r=>tc(r.span)<t)}function gge(e,t,r,i){const o=t.hasLevel(3),s=JSON.stringify(e);return o&&t.info(`${e.type}:${O0(e)}`),`Content-Length: ${1+r(s,"utf8")}\r
\r
${s}${i}`}function vge(e,t){return{seq:0,type:"event",event:e,body:t}}function Nlt(e,t,r,i){const o=Zd(Do(r)?r:r.projects,s=>i(s,e));return!Do(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{const u=t(l);o.push(...qi(s,p=>i(p,u)))}),N1(o,Mv)}function HZ(e){return DG(({textSpan:t})=>t.start+100003*t.length,LX(e))}function Clt(e,t,r,i,o,s,l){const u=u4e(e,t,r,!0,(f,b)=>f.getLanguageService().findRenameLocations(b.fileName,b.pos,i,o,s),(f,b)=>b(GP(f)));if(Do(u))return u;const p=[],v=HZ(l);return u.forEach((f,b)=>{for(const A of f)!v.has(A)&&!qZ(GP(A),b)&&(p.push(A),v.add(A))}),p}function Plt(e,t,r){const i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&eu(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function Mlt(e,t,r,i,o){var s,l;const u=u4e(e,t,r,!1,(b,A)=>(o.info(`Finding references to ${A.fileName} position ${A.pos} in project ${b.getProjectName()}`),b.getLanguageService().findReferences(A.fileName,A.pos)),(b,A)=>{A(GP(b.definition));for(const I of b.references)A(GP(I))});if(Do(u))return u;const p=u.get(t);if(((l=(s=p==null?void 0:p[0])==null?void 0:s.references[0])==null?void 0:l.isDefinition)===void 0)u.forEach(b=>{for(const A of b)for(const I of A.references)delete I.isDefinition});else{const b=HZ(i);for(const I of p)for(const R of I.references)if(R.isDefinition){b.add(R);break}const A=new Set;for(;;){let I=!1;if(u.forEach((R,M)=>{if(A.has(M))return;M.getLanguageService().updateIsDefinitionOfReferencedSymbols(R,b)&&(A.add(M),I=!0)}),!I)break}u.forEach((I,R)=>{if(!A.has(R))for(const M of I)for(const C of M.references)C.isDefinition=!1})}const v=[],f=HZ(i);return u.forEach((b,A)=>{for(const I of b){const R=qZ(GP(I.definition),A),M=R===void 0?I.definition:{...I.definition,textSpan:Eu(R.pos,I.definition.textSpan.length),fileName:R.fileName,contextSpan:wlt(I.definition,A)};let C=un(v,W=>MX(W.definition,M,i));C||(C={definition:M,references:[]},v.push(C));for(const W of I.references)!f.has(W)&&!qZ(GP(W),A)&&(f.add(W),C.references.push(W))}}),v.filter(b=>b.references.length!==0)}function yge(e,t,r){for(const i of Do(e)?e:e.projects)r(i,t);!Do(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(const s of i)r(s,o)})}function u4e(e,t,r,i,o,s){const l=new Map,u=ZM();u.enqueue({project:t,location:r}),yge(e,r.fileName,(M,C)=>{const W={fileName:C,pos:r.pos};u.enqueue({project:M,location:W})});const p=t.projectService,v=t.getCancellationToken(),f=Plt(t,r,i),b=Td(()=>t.isSourceOfProjectReferenceRedirect(f.fileName)?f:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(f)),A=Td(()=>t.isSourceOfProjectReferenceRedirect(f.fileName)?f:t.getLanguageService().getSourceMapper().tryGetSourcePosition(f)),I=new Set;e:for(;!u.isEmpty();){for(;!u.isEmpty();){if(v.isCancellationRequested())break e;const{project:M,location:C}=u.dequeue();if(l.has(M)||d4e(M,C)||(Up(M),!M.containsFile(vl(C.fileName))))continue;const W=R(M,C);l.set(M,W!=null?W:Ac),I.add(klt(M))}f&&(p.loadAncestorProjectTree(I),p.forEachEnabledProject(M=>{if(v.isCancellationRequested()||l.has(M))return;const C=Llt(f,M,b,A);C&&u.enqueue({project:M,location:C})}))}if(l.size===1)return TG(l.values());return l;function R(M,C){const W=o(M,C);if(!!W){for(const U of W)s(U,X=>{const ee=p.getOriginalLocationEnsuringConfiguredProject(M,X);if(!ee)return;const V=p.getScriptInfo(ee.fileName);for(const G of V.containingProjects)!G.isOrphan()&&!l.has(G)&&u.enqueue({project:G,location:ee});const se=p.getSymlinkedProjects(V);se&&se.forEach((G,re)=>{for(const _e of G)!_e.isOrphan()&&!l.has(_e)&&u.enqueue({project:_e,location:{fileName:re,pos:ee.pos}})})});return W}}}function Llt(e,t,r,i){if(t.containsFile(vl(e.fileName))&&!d4e(t,e))return e;const o=r();if(o&&t.containsFile(vl(o.fileName)))return o;const s=i();return s&&t.containsFile(vl(s.fileName))?s:void 0}function d4e(e,t){if(!t)return!1;const r=e.getLanguageService().getProgram();if(!r)return!1;const i=r.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function klt(e){return V0(e)?e.canonicalConfigFilePath:e.getProjectName()}function GP({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function qZ(e,t){return bP(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function p4e(e,t){return PF(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function wlt(e,t){return wX(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Ph(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(tc(e))}}function bge(e,t,r){const i=Ph(e,r),o=t&&Ph(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function Olt(e,t){return{start:f4e(t,e.span.start),end:f4e(t,tc(e.span)),newText:e.newText}}function f4e(e,t){return dge(e)?Flt(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function Wlt(e,t){const r=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:r,wordPattern:e.wordPattern}:{ranges:r}}function Flt(e){return{line:e.line+1,offset:e.character+1}}function zlt(e){N.assert(e.textChanges.length===1);const t=$a(e.textChanges);return N.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function Ege(e,t,r,i){const o=Blt(e,t,i),{line:s,character:l}=Zx(LA(o),r);return{line:s+1,offset:l+1}}function Blt(e,t,r){for(const{fileName:i,textChanges:o}of r)if(i===t)for(let s=o.length-1;s>=0;s--){const{newText:l,span:{start:u,length:p}}=o[s];e=e.slice(0,u)+l+e.slice(u+p)}return e}function m4e(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){const u=N.checkDefined(e.getScriptInfo(t)),p=bge(r,i,u),v=l?void 0:Glt(u,p);return{file:t,...p,lineText:v,isWriteAccess:o,isDefinition:s}}function Glt(e,t){const r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,tc(r)).replace(/\r|\n/g,"")}function Vlt(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var Sge,Tge,_4e,Age,h4e,Ige,jlt=S({"src/server/session.ts"(){cb(),_T(),Qhe(),Sge={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},Tge=xZ,_4e=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){const r=this.requestId;N.assert(r===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t))},e))}delay(e,t,r){const i=this.requestId;N.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(r))},t,e))}executeAction(e){var t,r,i,o,s,l;let u=!1;try{this.operationHost.isCancellationRequested()?(u=!0,(t=ur)==null||t.instant(ur.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=ur)==null||r.push(ur.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=ur)==null||i.pop())}catch(p){(o=ur)==null||o.popAll(),u=!0,p instanceof Yx?(s=ur)==null||s.instant(ur.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=ur)==null||l.instant(ur.Phase.Session,"stepError",{seq:this.requestId,message:p.message}),this.operationHost.logError(p,`delayed processing of request ${this.requestId}`))}(u||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},Age=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],h4e=[...Age,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],Ige=class qte{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const s={version:Ae};return this.requiredResponse(s)},openExternalProject:s=>(this.projectService.openExternalProject(s.arguments,!0),this.requiredResponse(!0)),openExternalProjects:s=>(this.projectService.openExternalProjects(s.arguments.projects),this.requiredResponse(!0)),closeExternalProject:s=>(this.projectService.closeExternalProject(s.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:s=>{const l=this.projectService.synchronizeProjectList(s.arguments.knownProjects,s.arguments.includeProjectReferenceRedirectInfo);if(!l.some(p=>p.projectErrors&&p.projectErrors.length!==0))return this.requiredResponse(l);const u=Wt(l,p=>!p.projectErrors||p.projectErrors.length===0?p:{info:p.info,changes:p.changes,files:p.files,projectErrors:this.convertToDiagnosticsWithLinePosition(p.projectErrors,void 0)});return this.requiredResponse(u)},updateOpen:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles&&Xo(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&Xo(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:TA(EG(l.textChanges),u=>{const p=N.checkDefined(this.projectService.getScriptInfo(l.fileName)),v=p.lineOffsetToPosition(u.start.line,u.start.offset),f=p.lineOffsetToPosition(u.end.line,u.end.offset);return v>=0?{span:{start:v,length:f-v},newText:u.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&Xo(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:EG(l.changes)})),s.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:s=>this.requiredResponse(this.getDefinition(s.arguments,!0)),["definition-full"]:s=>this.requiredResponse(this.getDefinition(s.arguments,!1)),definitionAndBoundSpan:s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!0)),["definitionAndBoundSpan-full"]:s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!1)),findSourceDefinition:s=>this.requiredResponse(this.findSourceDefinition(s.arguments)),["emit-output"]:s=>this.requiredResponse(this.getEmitOutput(s.arguments)),typeDefinition:s=>this.requiredResponse(this.getTypeDefinition(s.arguments)),implementation:s=>this.requiredResponse(this.getImplementation(s.arguments,!0)),["implementation-full"]:s=>this.requiredResponse(this.getImplementation(s.arguments,!1)),references:s=>this.requiredResponse(this.getReferences(s.arguments,!0)),["references-full"]:s=>this.requiredResponse(this.getReferences(s.arguments,!1)),rename:s=>this.requiredResponse(this.getRenameLocations(s.arguments,!0)),["renameLocations-full"]:s=>this.requiredResponse(this.getRenameLocations(s.arguments,!1)),["rename-full"]:s=>this.requiredResponse(this.getRenameInfo(s.arguments)),open:s=>(this.openClientFile(vl(s.arguments.file),s.arguments.fileContent,WZ(s.arguments.scriptKindName),s.arguments.projectRootPath?vl(s.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!0)),["quickinfo-full"]:s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!1)),getOutliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!0)),outliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!1)),todoComments:s=>this.requiredResponse(this.getTodoComments(s.arguments)),indentation:s=>this.requiredResponse(this.getIndentation(s.arguments)),nameOrDottedNameSpan:s=>this.requiredResponse(this.getNameOrDottedNameSpan(s.arguments)),breakpointStatement:s=>this.requiredResponse(this.getBreakpointStatement(s.arguments)),braceCompletion:s=>this.requiredResponse(this.isValidBraceCompletion(s.arguments)),docCommentTemplate:s=>this.requiredResponse(this.getDocCommentTemplate(s.arguments)),getSpanOfEnclosingComment:s=>this.requiredResponse(this.getSpanOfEnclosingComment(s.arguments)),fileReferences:s=>this.requiredResponse(this.getFileReferences(s.arguments,!0)),["fileReferences-full"]:s=>this.requiredResponse(this.getFileReferences(s.arguments,!1)),format:s=>this.requiredResponse(this.getFormattingEditsForRange(s.arguments)),formatonkey:s=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(s.arguments)),["format-full"]:s=>this.requiredResponse(this.getFormattingEditsForDocumentFull(s.arguments)),["formatonkey-full"]:s=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(s.arguments)),["formatRange-full"]:s=>this.requiredResponse(this.getFormattingEditsForRangeFull(s.arguments)),completionInfo:s=>this.requiredResponse(this.getCompletions(s.arguments,"completionInfo")),completions:s=>this.requiredResponse(this.getCompletions(s.arguments,"completions")),["completions-full"]:s=>this.requiredResponse(this.getCompletions(s.arguments,"completions-full")),completionEntryDetails:s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!1)),["completionEntryDetails-full"]:s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!0)),compileOnSaveAffectedFileList:s=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(s.arguments)),compileOnSaveEmitFile:s=>this.requiredResponse(this.emitFile(s.arguments)),signatureHelp:s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!0)),["signatureHelp-full"]:s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!1)),["compilerOptionsDiagnostics-full"]:s=>this.requiredResponse(this.getCompilerOptionsDiagnostics(s.arguments)),["encodedSyntacticClassifications-full"]:s=>this.requiredResponse(this.getEncodedSyntacticClassifications(s.arguments)),["encodedSemanticClassifications-full"]:s=>this.requiredResponse(this.getEncodedSemanticClassifications(s.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:s=>this.requiredResponse(this.getSemanticDiagnosticsSync(s.arguments)),syntacticDiagnosticsSync:s=>this.requiredResponse(this.getSyntacticDiagnosticsSync(s.arguments)),suggestionDiagnosticsSync:s=>this.requiredResponse(this.getSuggestionDiagnosticsSync(s.arguments)),geterr:s=>(this.errorCheck.startNew(l=>this.getDiagnostics(l,s.arguments.delay,s.arguments.files)),this.notRequired()),geterrForProject:s=>(this.errorCheck.startNew(l=>this.getDiagnosticsForProject(l,s.arguments.delay,s.arguments.file)),this.notRequired()),change:s=>(this.change(s.arguments),this.notRequired()),configure:s=>(this.projectService.setHostConfiguration(s.arguments),this.doOutput(void 0,"configure",s.seq,!0),this.notRequired()),reload:s=>(this.reload(s.arguments,s.seq),this.requiredResponse({reloadFinished:!0})),saveto:s=>{const l=s.arguments;return this.saveToTmp(l.file,l.tmpfile),this.notRequired()},close:s=>{const l=s.arguments;return this.closeClientFile(l.file),this.notRequired()},navto:s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!0)),["navto-full"]:s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!1)),brace:s=>this.requiredResponse(this.getBraceMatching(s.arguments,!0)),["brace-full"]:s=>this.requiredResponse(this.getBraceMatching(s.arguments,!1)),navbar:s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!0)),["navbar-full"]:s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!1)),navtree:s=>this.requiredResponse(this.getNavigationTree(s.arguments,!0)),["navtree-full"]:s=>this.requiredResponse(this.getNavigationTree(s.arguments,!1)),documentHighlights:s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!0)),["documentHighlights-full"]:s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!1)),compilerOptionsForInferredProjects:s=>(this.setCompilerOptionsForInferredProjects(s.arguments),this.requiredResponse(!0)),projectInfo:s=>this.requiredResponse(this.getProjectInfo(s.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:s=>this.requiredResponse(this.getJsxClosingTag(s.arguments)),linkedEditingRange:s=>this.requiredResponse(this.getLinkedEditingRange(s.arguments)),getCodeFixes:s=>this.requiredResponse(this.getCodeFixes(s.arguments,!0)),["getCodeFixes-full"]:s=>this.requiredResponse(this.getCodeFixes(s.arguments,!1)),getCombinedCodeFix:s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!0)),["getCombinedCodeFix-full"]:s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!1)),applyCodeActionCommand:s=>this.requiredResponse(this.applyCodeActionCommand(s.arguments)),getSupportedCodeFixes:s=>this.requiredResponse(this.getSupportedCodeFixes(s.arguments)),getApplicableRefactors:s=>this.requiredResponse(this.getApplicableRefactors(s.arguments)),getEditsForRefactor:s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!0)),getMoveToRefactoringFileSuggestions:s=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(s.arguments)),["getEditsForRefactor-full"]:s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!1)),organizeImports:s=>this.requiredResponse(this.organizeImports(s.arguments,!0)),["organizeImports-full"]:s=>this.requiredResponse(this.organizeImports(s.arguments,!1)),getEditsForFileRename:s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!0)),["getEditsForFileRename-full"]:s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!1)),configurePlugin:s=>(this.configurePlugin(s.arguments),this.doOutput(void 0,"configurePlugin",s.seq,!0),this.notRequired()),selectionRange:s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!0)),["selectionRange-full"]:s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!1)),prepareCallHierarchy:s=>this.requiredResponse(this.prepareCallHierarchy(s.arguments)),provideCallHierarchyIncomingCalls:s=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(s.arguments)),provideCallHierarchyOutgoingCalls:s=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(s.arguments)),toggleLineComment:s=>this.requiredResponse(this.toggleLineComment(s.arguments,!0)),["toggleLineComment-full"]:s=>this.requiredResponse(this.toggleLineComment(s.arguments,!1)),toggleMultilineComment:s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!0)),["toggleMultilineComment-full"]:s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!1)),commentSelection:s=>this.requiredResponse(this.commentSelection(s.arguments,!0)),["commentSelection-full"]:s=>this.requiredResponse(this.commentSelection(s.arguments,!1)),uncommentSelection:s=>this.requiredResponse(this.uncommentSelection(s.arguments,!0)),["uncommentSelection-full"]:s=>this.requiredResponse(this.uncommentSelection(s.arguments,!1)),provideInlayHints:s=>this.requiredResponse(this.provideInlayHints(s.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||oz,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(s=>this.defaultEventHandler(s)):void 0;const i={executeWithRequestId:(s,l)=>this.executeWithRequestId(s,l),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(s,l)=>this.logError(s,l),sendRequestCompletedEvent:s=>this.sendRequestCompletedEvent(s),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new _4e(i);const o={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:r,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new jZ(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new IZ(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:Age.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:h4e.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:N.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t){this.event({request_seq:t},"requestCompleted")}addPerformanceData(t,r){var i;this.performanceData||(this.performanceData={}),this.performanceData[t]=((i=this.performanceData[t])!=null?i:0)+r}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case L4:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case uz:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case dz:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case pz:case hz:case gz:case vz:this.event(t.data,t.eventName);break;case fz:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:Wt(t.data.diagnostics,r=>w4(r,!0))},t.eventName);break;case mz:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case _z:{const r="telemetry";this.event({telemetryEventName:t.eventName,payload:t.data},r);break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${t}`),this.errorCheck.startNew(r=>this.updateErrorCheck(r,t,100,!0))),this.event({openFiles:t},L4))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`:
`+fP(t.message),t.stack&&(o+=`
`+fP(t.stack))),this.logger.hasLevel(3)){if(i)try{const{file:s,project:l}=this.getFileAndProject(i),u=l.getScriptInfoForNormalizedPath(s);if(u){const p=MR(u.getSnapshot());o+=`
File text of ${i.file}:${fP(p)}
`}}catch{}if(t.ProgramFiles){o+=`
Program files: ${JSON.stringify(t.ProgramFiles)}
`,o+=`
Projects::
`;let s=0;const l=u=>{o+=`
Project '${u.projectName}' (${BP[u.projectKind]}) ${s}
`,o+=u.filesToString(!0),o+=`
-----------------------------------------------
`,s++};this.projectService.externalProjects.forEach(l),this.projectService.configuredProjects.forEach(l),this.projectService.inferredProjects.forEach(l)}}this.logger.msg(o,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${O0(t)}`);return}this.writeMessage(t)}writeMessage(t){var r;const i=gge(t,this.logger,this.byteLength,this.host.newLine);(r=sd)==null||r.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,r){this.send(vge(r,t))}doOutput(t,r,i,o,s){const l={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:this.performanceData};if(o){let u;if(Do(t))l.body=t,u=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){const{metadata:p,...v}=t;l.body=v,u=p}else l.body=t;else l.body=t;u&&(l.metadata=u)}else N.assert(t===void 0);s&&(l.message=s),this.send(l)}semanticCheck(t,r){var i,o;(i=ur)==null||i.push(ur.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});const s=l4e(r,t)?Ac:r.getLanguageService().getSemanticDiagnostics(t).filter(l=>!!l.file);this.sendDiagnosticsEvent(t,r,s,"semanticDiag"),(o=ur)==null||o.pop()}syntacticCheck(t,r){var i,o;(i=ur)==null||i.push(ur.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(o=ur)==null||o.pop()}suggestionCheck(t,r){var i,o;(i=ur)==null||i.push(ur.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(o=ur)==null||o.pop()}sendDiagnosticsEvent(t,r,i,o){try{this.event({file:t,diagnostics:i.map(s=>c4e(t,r,s))},o)}catch(s){this.logError(s,o)}}updateErrorCheck(t,r,i,o=!0){N.assert(!this.suppressDiagnosticEvents);const s=this.changeSeq,l=Math.min(i,200);let u=0;const p=()=>{u++,r.length>u&&t.delay("checkOne",l,v)},v=()=>{if(this.changeSeq!==s)return;let f=r[u];if(wo(f)&&(f=this.toPendingErrorCheck(f),!f)){p();return}const{fileName:b,project:A}=f;if(Up(A),!!A.containsFile(b,o)&&(this.syntacticCheck(b,A),this.changeSeq===s)){if(A.projectService.serverMode!==0){p();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(b,A),this.changeSeq===s){if(this.getPreferences(b).disableSuggestions){p();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(b,A),p()})}})}};r.length>u&&this.changeSeq===s&&t.delay("checkOne",i,v)}cleanProjects(t,r){if(!!r){this.logger.info(`cleaning ${t}`);for(const i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Go(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){const{file:r,project:i}=this.getFileAndProject(t),o=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(r,t,o)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){const r=this.getProject(t.projectFileName),i=vl(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){const o=r.getAllProjectErrors(),s=r.getLanguageService().getCompilerOptionsDiagnostics(),l=Vn(Ro(o,s),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):Wt(l,u=>w4(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:B_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:mS(r),code:r.code,source:r.source,startLocation:r.file&&k4(Rs(r.file,r.start)),endLocation:r.file&&k4(Rs(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:Wt(r.relatedInformation,UZ)}))}getCompilerOptionsDiagnostics(t){const r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(Vn(r.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(i=>({message:B_(i.messageText,this.host.newLine),start:i.start,length:i.length,category:mS(i),code:i.code,source:i.source,startLocation:r&&r.positionToLineOffset(i.start),endLocation:r&&r.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:Wt(i.relatedInformation,UZ)}))}getDiagnosticsWorker(t,r,i,o){const{project:s,file:l}=this.getFileAndProject(t);if(r&&l4e(s,l))return Ac;const u=s.getScriptInfoForNormalizedPath(l),p=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(p,u):p.map(v=>c4e(l,s,v))}getDefinition(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(i,s)||Ac,o);return r?this.mapDefinitionInfo(l,o):l.map(qte.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{const o=p4e(i,r);return o?{...o,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=N.checkDefined(o.getScriptInfo(i)),u=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!u||!u.definitions)return{definitions:Ac,textSpan:void 0};const p=this.mapDefinitionInfoLocations(u.definitions,o),{textSpan:v}=u;return r?{definitions:this.mapDefinitionInfo(p,o),textSpan:Ph(v,l)}:{definitions:p.map(qte.mapToOriginalLocation),textSpan:v}}findSourceDefinition(t){var r;const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDefinitionAtPosition(i,s);let u=this.mapDefinitionInfoLocations(l||Ac,o).slice();if(this.projectService.serverMode===0&&(!St(u,I=>vl(I.fileName)!==i&&!I.isAmbient)||St(u,I=>!!I.failedAliasResolution))){const I=DG(W=>W.textSpan.start,LX(this.host.useCaseSensitiveFileNames));u==null||u.forEach(W=>I.add(W));const R=o.getNoDtsResolutionProject(i),M=R.getLanguageService(),C=(r=M.getDefinitionAtPosition(i,s,!0,!1))==null?void 0:r.filter(W=>vl(W.fileName)!==i);if(St(C))for(const W of C){if(W.unverified){const U=b(W,o.getLanguageService().getProgram(),M.getProgram());if(St(U)){for(const X of U)I.add(X);continue}}I.add(W)}else{const W=u.filter(U=>vl(U.fileName)!==i&&U.isAmbient);for(const U of St(W)?W:f()){const X=v(U.fileName,i,R);if(!X)continue;const ee=this.projectService.getOrCreateScriptInfoNotOpenedByClient(X,R.currentDirectory,R.directoryStructureHost);if(!ee)continue;R.containsScriptInfo(ee)||(R.addRoot(ee),R.updateGraph());const V=M.getProgram(),se=N.checkDefined(V.getSourceFile(X));for(const G of A(U.name,se,V))I.add(G)}}u=Go(I.values())}return u=u.filter(I=>!I.isAmbient&&!I.failedAliasResolution),this.mapDefinitionInfo(u,o);function v(I,R,M){var C,W,U;const X=y7(I);if(X&&I.lastIndexOf(Nh)===X.topLevelNodeModulesIndex){const ee=I.substring(0,X.packageRootIndex),V=(C=o.getModuleResolutionCache())==null?void 0:C.getPackageJsonInfoCache(),se=o.getCompilationSettings(),G=Vw(To(ee+"/package.json",o.getCurrentDirectory()),Gw(V,o,se));if(!G)return;const re=Jq(G,{moduleResolution:2},o,o.getModuleResolutionCache()),_e=I.substring(X.topLevelPackageNameIndex+1,X.packageRootIndex),ye=YC(Hw(_e)),Q=o.toPath(I);if(re&&St(re,Y=>o.toPath(Y)===Q))return(W=M.resolutionCache.resolveSingleModuleNameWithoutWatching(ye,R).resolvedModule)==null?void 0:W.resolvedFileName;{const Y=I.substring(X.packageRootIndex+1),oe=`${ye}/${Id(Y)}`;return(U=M.resolutionCache.resolveSingleModuleNameWithoutWatching(oe,R).resolvedModule)==null?void 0:U.resolvedFileName}}}function f(){const I=o.getLanguageService(),R=I.getProgram(),M=jd(R.getSourceFile(i),s);return(hs(M)||Ue(M))&&js(M.parent)&&Joe(M,C=>{var W;if(C===M)return;const U=(W=I.getDefinitionAtPosition(i,C.getStart(),!0,!1))==null?void 0:W.filter(X=>vl(X.fileName)!==i&&X.isAmbient).map(X=>({fileName:X.fileName,name:am(M)}));if(St(U))return U})||Ac}function b(I,R,M){var C;const W=M.getSourceFile(I.fileName);if(!W)return;const U=jd(R.getSourceFile(i),s),X=R.getTypeChecker().getSymbolAtLocation(U),ee=X&&gl(X,276);if(!ee)return;const V=((C=ee.propertyName)==null?void 0:C.text)||ee.name.text;return A(V,W,M)}function A(I,R,M){const C=Hs.Core.getTopMostDeclarationNamesInFile(I,R);return Vi(C,W=>{const U=M.getTypeChecker().getSymbolAtLocation(W),X=GN(W);if(U&&X)return XR.createDefinitionInfo(X,M.getTypeChecker(),U,X,!0)})}}getEmitOutput(t){const{file:r,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const o=i.getLanguageService().getEmitOutput(r);return t.richResponse?{...o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o.diagnostics):o.diagnostics.map(s=>w4(s,!0))}:o}mapJSDocTagInfo(t,r,i){return t?t.map(o=>{var s;return{...o,text:i?this.mapDisplayParts(o.text,r):(s=o.text)==null?void 0:s.map(l=>l.text).join("")}}):[]}mapDisplayParts(t,r){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,r)}):[]}mapSignatureHelpItems(t,r,i){return t.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,r),parameters:o.parameters.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,r)})),tags:this.mapJSDocTagInfo(o.tags,r,i)}))}mapDefinitionInfo(t,r){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,r),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(N.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,r,i){const o=i.getLanguageService(),s=o.toLineColumnOffset(t,r.start),l=o.toLineColumnOffset(t,tc(r));return{file:t,start:{line:s.line+1,offset:s.character+1},end:{line:l.line+1,offset:l.character+1}}}toFileSpanWithContext(t,r,i,o){const s=this.toFileSpan(t,r,o),l=i&&this.toFileSpan(t,i,o);return l?{...s,contextStart:l.start,contextEnd:l.end}:s}getTypeDefinition(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(r,o)||Ac,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{const o=p4e(i,r);return o?{...o,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapImplementationLocations(o.getLanguageService().getImplementationAtPosition(i,s)||Ac,o);return r?l.map(({fileName:u,textSpan:p,contextSpan:v})=>this.toFileSpanWithContext(u,p,v,o)):l.map(qte.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?Ac:this.getDiagnosticsWorker(t,!1,(i,o)=>i.getLanguageService().getSyntacticDiagnostics(o),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){const{configFile:r,project:i}=this.getConfigFileAndProject(t);return r?this.getConfigFileDiagnostics(r,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(o,s)=>o.getLanguageService().getSemanticDiagnostics(s).filter(l=>!!l.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?Ac:this.getDiagnosticsWorker(t,!0,(i,o)=>i.getLanguageService().getSuggestionDiagnostics(o),!!t.includeLinePosition)}getJsxClosingTag(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getJsxClosingTagAtPosition(r,o);return s===void 0?void 0:{newText:s.newText,caretOffset:0}}getLinkedEditingRange(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getLinkedEditingRangeAtPosition(r,o),l=this.projectService.getScriptInfoForNormalizedPath(r);if(!(l===void 0||s===void 0))return Wlt(s,l)}getDocumentHighlights(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDocumentHighlights(i,s,t.filesToSearch);return l?r?l.map(({fileName:u,highlightSpans:p})=>{const v=o.getScriptInfo(u);return{file:u,highlightSpans:p.map(({textSpan:f,kind:b,contextSpan:A})=>({...bge(f,A,v),kind:b}))}}):l:Ac}provideInlayHints(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);return i.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(l=>{const{position:u,displayParts:p}=l;return{...l,position:o.positionToLineOffset(u),displayParts:p==null?void 0:p.map(({text:v,span:f,file:b})=>{if(f){N.assertIsDefined(b,"Target file should be defined together with its span.");const A=this.projectService.getScriptInfo(b);return{text:v,span:{start:A.positionToLineOffset(f.start),end:A.positionToLineOffset(f.start+f.length),file:b}}}else return{text:v}})}})}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,r,i,o){const{project:s}=this.getFileAndProjectWorker(t,r);return Up(s),{configFileName:s.getProjectName(),languageServiceDisabled:!s.languageServiceEnabled,fileNames:i?s.getFileNames(!1,o):void 0}}getRenameInfo(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.getPreferences(r);return i.getLanguageService().getRenameInfo(r,o,s)}getProjects(t,r,i){var l;let o,s;if(t.projectFileName){const u=this.getProject(t.projectFileName);u&&(o=[u])}else{const u=r?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(u)r||this.projectService.ensureDefaultProjectForFile(u);else return i?Ac:(this.projectService.logErrorForScriptInfoNotFound(t.file),oy.ThrowNoProject());o=u.containingProjects,s=this.projectService.getSymlinkedProjects(u)}return o=Vn(o,u=>u.languageServiceEnabled&&!u.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound((l=t.file)!=null?l:t.projectFileName),oy.ThrowNoProject()):s?{projects:o,symLinkedProjects:s}:o}getDefaultProject(t){if(t.projectFileName){const i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return oy.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){const i=vl(t.file),o=this.getPositionInFile(t,i),s=this.getProjects(t),l=this.getDefaultProject(t),u=this.getPreferences(i),p=this.mapRenameInfo(l.getLanguageService().getRenameInfo(i,o,u),N.checkDefined(this.projectService.getScriptInfo(i)));if(!p.canRename)return r?{info:p,locs:[]}:[];const v=Clt(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,u,this.host.useCaseSensitiveFileNames);return r?{info:p,locs:this.toSpanGroups(v)}:v}mapRenameInfo(t,r){if(t.canRename){const{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:v}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:p,triggerSpan:Ph(v,r)}}else return t}toSpanGroups(t){const r=new Map;for(const{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:u,originalFileName:p,...v}of t){let f=r.get(i);f||r.set(i,f={file:i,locs:[]});const b=N.checkDefined(this.projectService.getScriptInfo(i));f.locs.push({...bge(o,s,b),...v})}return Go(r.values())}getReferences(t,r){const i=vl(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=Mlt(o,this.getDefaultProject(t),{fileName:t.file,pos:s},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return l;const u=this.getPreferences(i),p=this.getDefaultProject(t),v=p.getScriptInfoForNormalizedPath(i),f=p.getLanguageService().getQuickInfoAtPosition(i,s),b=f?i4(f.displayParts):"",A=f&&f.textSpan,I=A?v.positionToLineOffset(A.start).offset:0,R=A?v.getSnapshot().getText(A.start,tc(A)):"";return{refs:qi(l,C=>C.references.map(W=>m4e(this.projectService,W,u))),symbolName:R,symbolStartOffset:I,symbolDisplayString:b}}getFileReferences(t,r){const i=this.getProjects(t),o=t.file,s=this.getPreferences(vl(o)),l=[],u=HZ(this.host.useCaseSensitiveFileNames);return yge(i,void 0,v=>{if(v.getCancellationToken().isCancellationRequested())return;const f=v.getLanguageService().getFileReferences(o);if(f)for(const b of f)u.has(b)||(l.push(b),u.add(b))}),r?{refs:l.map(v=>m4e(this.projectService,v,s)),symbolName:`"${t.file}"`}:l}openClientFile(t,r,i,o){this.projectService.openClientFileWithNormalizedPath(t,r,i,!1,o)}getPosition(t,r){return t.position!==void 0?t.position:r.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,r){const i=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){const{file:r,project:i}=this.getFileAndProject(t);return{file:r,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,r){const i=vl(t),o=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:o}}getOutliningSpans(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getOutliningSpans(i);if(r){const l=this.projectService.getScriptInfoForNormalizedPath(i);return s.map(u=>({textSpan:Ph(u.textSpan,l),hintSpan:Ph(u.hintSpan,l),bannerText:u.bannerText,autoCollapse:u.autoCollapse,kind:u.kind}))}else return s}getTodoComments(t){const{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getDocCommentTemplateAtPosition(r,o,this.getPreferences(r),this.getFormatOptions(r))}getSpanOfEnclosingComment(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.onlyMultiLine,s=this.getPositionInFile(t,r);return i.getSpanOfEnclosingComment(r,s,o)}getIndentation(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=t.options?tD(t.options):this.getFormatOptions(r),l=i.getIndentationAtPosition(r,o,s);return{position:o,indentation:l}}getBreakpointStatement(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getBreakpointStatementAtPosition(r,o)}getNameOrDottedNameSpan(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getNameOrDottedNameSpan(r,o,o)}isValidBraceCompletion(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.isValidBraceCompletionAtPosition(r,o,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,s));if(!l)return;const u=!!this.getPreferences(i).displayPartsForJSDoc;if(r){const p=i4(l.displayParts);return{kind:l.kind,kindModifiers:l.kindModifiers,start:s.positionToLineOffset(l.textSpan.start),end:s.positionToLineOffset(tc(l.textSpan)),displayString:p,documentation:u?this.mapDisplayParts(l.documentation,o):i4(l.documentation),tags:this.mapJSDocTagInfo(l.tags,o,u)}}else return u?l:{...l,tags:this.mapJSDocTagInfo(l.tags,o,!1)}}getFormattingEditsForRange(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=o.lineOffsetToPosition(t.endLine,t.endOffset),u=i.getFormattingEditsForRange(r,s,l,this.getFormatOptions(r));if(!!u)return u.map(p=>this.convertTextChangeToCodeEdit(p,o))}getFormattingEditsForRangeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?tD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForRange(r,t.position,t.endPosition,o)}getFormattingEditsForDocumentFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?tD(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?tD(t.options):this.getFormatOptions(r);return i.getFormattingEditsAfterKeystroke(r,t.position,t.key,o)}getFormattingEditsAfterKeystroke(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=this.getFormatOptions(r),u=i.getFormattingEditsAfterKeystroke(r,s,t.key,l);if(t.key===`
`&&(!u||u.length===0||Dlt(u,s))){const{lineText:p,absolutePosition:v}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(p&&p.search("\\S")<0){const f=i.getIndentationAtPosition(r,s,l);let b=0,A,I;for(A=0,I=p.length;A<I;A++)if(p.charAt(A)===" ")b++;else if(p.charAt(A)===" ")b+=l.tabSize;else break;if(f!==b){const R=v+A;u.push({span:yc(v,R),newText:Bc.getIndentationString(f,l)})}}}if(!!u)return u.map(p=>({start:o.positionToLineOffset(p.span.start),end:o.positionToLineOffset(tc(p.span)),newText:p.newText?p.newText:""}))}getCompletions(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getCompletionsAtPosition(i,l,{...oge(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},o.projectService.getFormatCodeOptions(i));if(u===void 0)return;if(r==="completions-full")return u;const p=t.prefix||"",v=Vi(u.entries,b=>{if(u.isMemberCompletion||ho(b.name.toLowerCase(),p.toLowerCase())){const{name:A,kind:I,kindModifiers:R,sortText:M,insertText:C,filterText:W,replacementSpan:U,hasAction:X,source:ee,sourceDisplay:V,labelDetails:se,isSnippet:G,isRecommended:re,isPackageJsonImport:_e,isImportStatementCompletion:ye,data:Q}=b,Y=U?Ph(U,s):void 0;return{name:A,kind:I,kindModifiers:R,sortText:M,insertText:C,filterText:W,replacementSpan:Y,isSnippet:G,hasAction:X||void 0,source:ee,sourceDisplay:V,labelDetails:se,isRecommended:re,isPackageJsonImport:_e,isImportStatementCompletion:ye,data:Q}}});return r==="completions"?(u.metadata&&(v.metadata=u.metadata),v):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&Ph(u.optionalReplacementSpan,s),entries:v}}getCompletionEntryDetails(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.projectService.getFormatCodeOptions(i),p=!!this.getPreferences(i).displayPartsForJSDoc,v=Vi(t.entryNames,f=>{const{name:b,source:A,data:I}=typeof f=="string"?{name:f,source:void 0,data:void 0}:f;return o.getLanguageService().getCompletionEntryDetails(i,l,b,u,A,this.getPreferences(i),I?sa(I,Vlt):void 0)});return r?p?v:v.map(f=>({...f,tags:this.mapJSDocTagInfo(f.tags,o,!1)})):v.map(f=>({...f,codeActions:Wt(f.codeActions,b=>this.mapCodeAction(b)),documentation:this.mapDisplayParts(f.documentation,o),tags:this.mapJSDocTagInfo(f.tags,o,p)}))}getCompileOnSaveAffectedFileList(t){const r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?Nlt(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;const l=o.getCompilationSettings();if(!(!!l.noEmit||Iu(s.fileName)&&!Rlt(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!Bs(l)}}):Ac}emitFile(t){const{file:r,project:i}=this.getFileAndProject(t);if(i||oy.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(u,p,v)=>this.host.writeFile(u,p,v));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(u=>w4(u,!0))}:!s}getSignatureHelpItems(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getSignatureHelpItems(i,l,t),p=!!this.getPreferences(i).displayPartsForJSDoc;if(u&&r){const v=u.applicableSpan;return{...u,applicableSpan:{start:s.positionToLineOffset(v.start),end:s.positionToLineOffset(v.start+v.length)},items:this.mapSignatureHelpItems(u.items,o,p)}}else return p||!u?u:{...u,items:u.items.map(v=>({...v,tags:this.mapJSDocTagInfo(v.tags,o,!1)}))}}toPendingErrorCheck(t){const r=vl(t),i=this.projectService.tryGetDefaultProjectForFile(r);return i&&{fileName:r,project:i}}getDiagnostics(t,r,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,r)}change(t){const r=this.projectService.getScriptInfo(t.file);N.assert(!!r),r.textStorage.switchToScriptVersionCache();const i=r.lineOffsetToPosition(t.line,t.offset),o=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,Fne({span:{start:i,length:o-i},newText:t.insertString})))}reload(t,r){const i=vl(t.file),o=t.tmpfile===void 0?void 0:vl(t.tmpfile),s=this.projectService.getScriptInfoForNormalizedPath(i);s&&(this.changeSeq++,s.reloadFromFile(o)&&this.doOutput(void 0,"reload",r,!0))}saveToTmp(t,r){const i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;const r=va(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return Wt(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>Ph(o,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationBarItems(i);return s?r?this.mapLocationNavigationBarItems(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}toLocationNavigationTree(t,r){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>Ph(i,r)),nameSpan:t.nameSpan&&Ph(t.nameSpan,r),childItems:Wt(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationTree(i);return s?r?this.toLocationNavigationTree(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}getNavigateToItems(t,r){const i=this.getFullNavigateToItems(t);return r?qi(i,({project:o,navigateToItems:s})=>s.map(l=>{const u=o.getScriptInfo(l.fileName),p={name:l.name,kind:l.kind,kindModifiers:l.kindModifiers,isCaseSensitive:l.isCaseSensitive,matchKind:l.matchKind,file:l.fileName,start:u.positionToLineOffset(l.textSpan.start),end:u.positionToLineOffset(tc(l.textSpan))};return l.kindModifiers&&l.kindModifiers!==""&&(p.kindModifiers=l.kindModifiers),l.containerName&&l.containerName.length>0&&(p.containerName=l.containerName),l.containerKind&&l.containerKind.length>0&&(p.containerKind=l.containerKind),p})):qi(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){const{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){N.assertIsDefined(t.file);const{file:A,project:I}=this.getFileAndProject(t);return[{project:I,navigateToItems:I.getLanguageService().getNavigateToItems(i,o,A)}]}const l=this.getHostPreferences(),u=[],p=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(A=>v(A));else{const A=this.getProjects(t);yge(A,void 0,I=>v(I))}return u;function v(A){const I=A.getLanguageService().getNavigateToItems(i,o,void 0,A.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),R=Vn(I,M=>f(M)&&!qZ(GP(M),A));R.length&&u.push({project:A,navigateToItems:R})}function f(A){const I=A.name;if(!p.has(I))return p.set(I,[A]),!0;const R=p.get(I);for(const M of R)if(b(M,A))return!1;return R.push(A),!0}function b(A,I){return A===I?!0:!A||!I?!1:A.containerKind===I.containerKind&&A.containerName===I.containerName&&A.fileName===I.fileName&&A.isCaseSensitive===I.isCaseSensitive&&A.kind===I.kind&&A.kindModifiers===I.kindModifiers&&A.matchKind===I.matchKind&&A.name===I.name&&A.textSpan.start===I.textSpan.start&&A.textSpan.length===I.textSpan.length}}getSupportedCodeFixes(t){if(!t)return t$();if(t.file){const{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}const r=this.getProject(t.projectFileName);return r||oy.ThrowNoProject(),r.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,r){let i,o;return this.isLocation(t)?i=s(t):o=this.getRange(t,r),N.checkDefined(i===void 0?o:i);function s(l){return l.position!==void 0?l.position:r.lineOffsetToPosition(l.line,l.offset)}}getRange(t,r){const{startPosition:i,endPosition:o}=this.getStartAndEndPosition(t,r);return{pos:i,end:o}}getApplicableRefactors(t){const{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getApplicableRefactors(r,this.extractPositionOrRange(t,o),this.getPreferences(r),t.triggerReason,t.kind,t.includeInteractiveActions)}getEditsForRefactor(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,s),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(l===void 0)return{edits:[]};if(r){const{renameFilename:u,renameLocation:p,edits:v}=l;let f;if(u!==void 0&&p!==void 0){const b=o.getScriptInfoForNormalizedPath(vl(u));f=Ege(MR(b.getSnapshot()),u,p,v)}return{renameLocation:f,renameFilename:u,edits:this.mapTextChangesToCodeEdits(v),notApplicableReason:l.notApplicableReason}}return l}getMoveToRefactoringFileSuggestions(t){const{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getMoveToRefactoringFileSuggestions(r,this.extractPositionOrRange(t,o),this.getPreferences(r))}organizeImports(t,r){var l;N.assert(t.scope.type==="file");const{file:i,project:o}=this.getFileAndProject(t.scope.args),s=o.getLanguageService().organizeImports({fileName:i,mode:(l=t.mode)!=null?l:t.skipDestructiveCodeActions?"SortAndCombine":void 0,type:"file"},this.getFormatOptions(i),this.getPreferences(i));return r?this.mapTextChangesToCodeEdits(s):s}getEditsForFileRename(t,r){const i=vl(t.oldFilePath),o=vl(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),u=new Set,p=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(v=>{const f=v.getLanguageService().getEditsForFileRename(i,o,s,l),b=[];for(const A of f)u.has(A.fileName)||(p.push(A),b.push(A.fileName));for(const A of b)u.add(A)}),r?p.map(v=>this.mapTextChangeToCodeEdit(v)):p}getCodeFixes(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:l,endPosition:u}=this.getStartAndEndPosition(t,s);let p;try{p=o.getLanguageService().getCodeFixesAtPosition(i,l,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(v){const f=o.getLanguageService(),b=[...f.getSyntacticDiagnostics(i),...f.getSemanticDiagnostics(i),...f.getSuggestionDiagnostics(i)].map(I=>SL(l,u-l,I.start,I.length)&&I.code),A=t.errorCodes.find(I=>!b.includes(I));throw A!==void 0&&(v.message=`BADCLIENT: Bad error code, ${A} not found in range ${l}..${u} (found: ${b.join(", ")}); could have caused this error:
${v.message}`),v}return r?p.map(v=>this.mapCodeFixAction(v)):p}getCombinedCodeFix({scope:t,fixId:r},i){N.assert(t.type==="file");const{file:o,project:s}=this.getFileAndProject(t.args),l=s.getLanguageService().getCombinedCodeFix({type:"file",fileName:o},r,this.getFormatOptions(o),this.getPreferences(o));return i?{changes:this.mapTextChangesToCodeEdits(l.changes),commands:l.commands}:l}applyCodeActionCommand(t){const r=t.command;for(const i of RA(r)){const{file:o,project:s}=this.getFileAndProject(i);s.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(o)).then(l=>{},l=>{})}return{}}getStartAndEndPosition(t,r){let i,o;return t.startPosition!==void 0?i=t.startPosition:(i=r.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?o=t.endPosition:(o=r.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=o),{startPosition:i,endPosition:o}}mapCodeAction({description:t,changes:r,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(r),commands:i}}mapCodeFixAction({fixName:t,description:r,changes:i,commands:o,fixId:s,fixAllDescription:l}){return{fixName:t,description:r,changes:this.mapTextChangesToCodeEdits(i),commands:o,fixId:s,fixAllDescription:l}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){const r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),N.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>Olt(i,r))}:zlt(t)}convertTextChangeToCodeEdit(t,r){return{start:r.positionToLineOffset(t.span.start),end:r.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getBraceMatchingAtPosition(i,l);return u?r?u.map(p=>Ph(p,s)):u:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;const{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,!0);if(s)return;const l=o.filter(M=>!M.includes("lib.d.ts"));if(l.length===0)return;const u=[],p=[],v=[],f=[],b=vl(i),A=this.projectService.ensureDefaultProjectForFile(b);for(const M of l)this.getCanonicalFileName(M)===this.getCanonicalFileName(i)?u.push(M):this.projectService.getScriptInfo(M).isScriptOpen()?p.push(M):Iu(M)?f.push(M):v.push(M);const R=[...u,...p,...v,...f].map(M=>({fileName:M,project:A}));this.updateErrorCheck(t,R,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){const{locations:i}=t,{file:o,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=N.checkDefined(this.projectService.getScriptInfo(o));return Wt(i,u=>{const p=this.getPosition(u,l),v=s.getSmartSelectionRange(o,p);return r?this.mapSelectionRange(v,l):v})}toggleLineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfo(i),l=this.getRange(t,s),u=o.toggleLineComment(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(v=>this.convertTextChangeToCodeEdit(v,p))}return u}toggleMultilineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.toggleMultilineComment(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(v=>this.convertTextChangeToCodeEdit(v,p))}return u}commentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.commentSelection(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(v=>this.convertTextChangeToCodeEdit(v,p))}return u}uncommentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.uncommentSelection(i,l);if(r){const p=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(v=>this.convertTextChangeToCodeEdit(v,p))}return u}mapSelectionRange(t,r){const i={textSpan:Ph(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){const r=vl(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),oy.ThrowNoProject())}toProtocolCallHierarchyItem(t){const r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:Ph(t.span,r),selectionSpan:Ph(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){const r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Ph(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Ph(i,r))}}prepareCallHierarchy(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);if(o){const s=this.getPosition(t,o),l=i.getLanguageService().prepareCallHierarchy(r,s);return l&&$X(l,u=>this.toProtocolCallHierarchyItem(u))}}provideCallHierarchyIncomingCalls(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyIncomingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyIncomingCall(l))}provideCallHierarchyOutgoingCalls(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyOutgoingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyOutgoingCall(l,o))}getCanonicalFileName(t){const r=this.host.useCaseSensitiveFileNames?t:ph(t);return va(r)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(t){return{response:t,responseRequired:!0}}addProtocolHandler(t,r){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,r)}setCurrentRequest(t){N.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){N.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r){try{return this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t)}}executeCommand(t){const r=this.handlers.get(t.command);if(r){const i=this.executeWithRequestId(t.seq,()=>r(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${O0(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var r,i,o,s,l,u,p,v,f,b,A;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let I;this.logger.hasLevel(2)&&(I=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${fP(this.toStringMessage(t))}`));let R,M;try{R=this.parseMessage(t),M=R.arguments&&R.arguments.file?R.arguments:void 0,(r=ur)==null||r.instant(ur.Phase.Session,"request",{seq:R.seq,command:R.command}),(i=sd)==null||i.logStartCommand(""+R.command,this.toStringMessage(t).substring(0,100)),(o=ur)==null||o.push(ur.Phase.Session,"executeCommand",{seq:R.seq,command:R.command},!0);const{response:C,responseRequired:W}=this.executeCommand(R);if((s=ur)==null||s.pop(),this.logger.hasLevel(2)){const U=xlt(this.hrtime(I)).toFixed(4);W?this.logger.perftrc(`${R.seq}::${R.command}: elapsed time (in milliseconds) ${U}`):this.logger.perftrc(`${R.seq}::${R.command}: async elapsed time (in milliseconds) ${U}`)}(l=sd)==null||l.logStopCommand(""+R.command,"Success"),(u=ur)==null||u.instant(ur.Phase.Session,"response",{seq:R.seq,command:R.command,success:!!C}),C?this.doOutput(C,R.command,R.seq,!0):W&&this.doOutput(void 0,R.command,R.seq,!1,"No content available.")}catch(C){if((p=ur)==null||p.popAll(),C instanceof Yx){(v=sd)==null||v.logStopCommand(""+(R&&R.command),"Canceled: "+C),(f=ur)==null||f.instant(ur.Phase.Session,"commandCanceled",{seq:R==null?void 0:R.seq,command:R==null?void 0:R.command}),this.doOutput({canceled:!0},R.command,R.seq,!0);return}this.logErrorWorker(C,this.toStringMessage(t),M),(b=sd)==null||b.logStopCommand(""+(R&&R.command),"Error: "+C),(A=ur)==null||A.instant(ur.Phase.Session,"commandError",{seq:R==null?void 0:R.seq,command:R==null?void 0:R.command,message:C.message}),this.doOutput(void 0,R?R.command:"unknown",R?R.seq:0,!1,"Error processing request. "+C.message+`
`+C.stack)}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),YI,JZ,g4e,v4e,Ez,Sz,xge,VP,$I,O4,Ult=S({"src/server/scriptVersionCache.ts"(){cb(),_T(),YI=4,JZ=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(JZ||{}),g4e=class{constructor(){this.goSubtree=!0,this.lineIndex=new VP,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new $I,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;const i=VP.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let o,s;for(let u=this.endBranch.length-1;u>=0;u--)this.endBranch[u].updateCounts(),this.endBranch[u].charCount()===0&&(s=this.endBranch[u],u>0?o=this.endBranch[u-1]:o=this.branchNode);s&&o.remove(s);const l=this.startPath[this.startPath.length-1];if(i.length>0)if(l.text=i[0],i.length>1){let u=new Array(i.length-1),p=l;for(let b=1;b<i.length;b++)u[b-1]=new O4(i[b]);let v=this.startPath.length-2;for(;v>=0;){const b=this.startPath[v];u=b.insertAt(p,u),v--,p=b}let f=u.length;for(;f>0;){const b=new $I;b.add(this.lineIndex.root),u=b.insertAt(this.lineIndex.root,u),f=u.length,this.lineIndex.root=b}this.lineIndex.root.updateCounts()}else for(let u=this.startPath.length-2;u>=0;u--)this.startPath[u].updateCounts();else{this.startPath[this.startPath.length-2].remove(l);for(let p=this.startPath.length-2;p>=0;p--)this.startPath[p].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,i,o){const s=this.stack[this.stack.length-1];this.state===2&&o===1&&(this.state=1,this.branchNode=s,this.lineCollectionAtBranch=r);let l;function u(p){return p.isLeaf()?new O4(""):new $I}switch(o){case 0:this.goSubtree=!1,this.state!==4&&s.add(r);break;case 1:this.state===4?this.goSubtree=!1:(l=u(r),s.add(l),this.startPath.push(l));break;case 2:this.state!==4?(l=u(r),s.add(l),this.startPath.push(l)):r.isLeaf()||(l=u(r),s.add(l),this.endBranch.push(l));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:r.isLeaf()||(l=u(r),s.add(l),this.endBranch.push(l));break;case 5:this.goSubtree=!1,this.state!==1&&s.add(r);break}this.goSubtree&&this.stack.push(l)}leaf(e,t,r){this.state===1?this.initialText=r.text.substring(0,e):this.state===2?(this.initialText=r.text.substring(0,e),this.trailingText=r.text.substring(e+t)):this.trailingText=r.text.substring(e+t)}},v4e=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return TL(Eu(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},Ez=class mA{constructor(){this.changes=[],this.versions=new Array(mA.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion||t>this.currentVersion))return t%mA.maxVersions}currentVersionToIndex(){return this.currentVersion%mA.maxVersions}edit(t,r,i){this.changes.push(new v4e(t,r,i)),(this.changes.length>mA.changeNumberThreshold||r>mA.changeLengthThreshold||i&&i.length>mA.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(const i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new xge(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=mA.maxVersions&&(this.minVersion=this.currentVersion-mA.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,r){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(r-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){const r=this._getSnapshot().index,{lineText:i,absolutePosition:o}=r.lineNumberToInfo(t+1),s=i!==void 0?i.length:r.absolutePositionOfStartOfLine(t+2)-o;return Eu(o,s)}getTextChangesBetweenVersions(t,r){if(t<r)if(t>=this.minVersion){const i=[];for(let o=t+1;o<=r;o++){const s=this.versions[this.versionToIndex(o)];for(const l of s.changesSincePreviousVersion)i.push(l.getTextChangeRange())}return Lre(i)}else return;else return zL}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const r=new mA,i=new xge(0,r,new VP);r.versions[r.currentVersion]=i;const o=VP.linesFromText(t);return i.index.load(o.lines),r}},Ez.changeNumberThreshold=8,Ez.changeLengthThreshold=256,Ez.maxVersions=8,Sz=Ez,xge=class qWe{constructor(t,r,i,o=Ac){this.version=t,this.cache=r,this.index=i,this.changesSincePreviousVersion=o}getText(t,r){return this.index.getText(t,r-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof qWe&&this.cache===t.cache)return this.version<=t.version?zL:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},VP=class s0e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){const{oneBasedLine:r,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:r,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){const r=this.getLineCount();if(t<=r){const{position:i,leaf:o}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:o&&o.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const r=[];for(let i=0;i<t.length;i++)r[i]=new O4(t[i]);this.root=s0e.buildTreeFromBottom(r)}else this.root=new $I}walk(t,r,i){this.root.walk(t,r,i)}getText(t,r){let i="";return r>0&&t<this.root.charCount()&&this.walk(t,r,{goSubtree:!0,done:!1,leaf:(o,s,l)=>{i=i.concat(l.text.substring(o,o+s))}}),i}getLength(){return this.root.charCount()}every(t,r,i){i||(i=this.root.charCount());const o={goSubtree:!0,done:!1,leaf(s,l,u){t(u,s,l)||(this.done=!0)}};return this.walk(r,i-r,o),!o.done}edit(t,r,i){if(this.root.charCount()===0)return N.assert(r===0),i!==void 0?(this.load(s0e.linesFromText(i).lines),this):void 0;{let o;if(this.checkEdits){const u=this.getText(0,this.root.charCount());o=u.slice(0,t)+i+u.slice(t+r)}const s=new g4e;let l=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const u=this.getText(t,1);i?i=u+i:i=u,r=0,l=!0}else if(r>0){const u=t+r,{zeroBasedColumn:p,lineText:v}=this.positionToColumnAndLineText(u);p===0&&(r+=v.length,i=i?i+v:v)}if(this.root.walk(t,r,s),s.insertLines(i,l),this.checkEdits){const u=s.lineIndex.getText(0,s.lineIndex.getLength());N.assert(o===u,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length<YI)return new $I(t);const r=new Array(Math.ceil(t.length/YI));let i=0;for(let o=0;o<r.length;o++){const s=Math.min(i+YI,t.length);r[o]=new $I(t.slice(i,s)),i=s}return this.buildTreeFromBottom(r)}static linesFromText(t){const r=LA(t);if(r.length===0)return{lines:[],lineMap:r};const i=new Array(r.length),o=r.length-1;for(let l=0;l<o;l++)i[l]=t.substring(r[l],r[l+1]);const s=t.substring(r[o]);return s.length>0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},$I=class l0e{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,r,i,o,s){return i.pre&&i.pre(t,r,this.children[o],this,s),i.goSubtree?(this.children[o].walk(t,r,i),i.post&&i.post(t,r,this.children[o],this,s)):i.goSubtree=!0,i.done}skipChild(t,r,i,o,s){o.pre&&!o.done&&(o.pre(t,r,this.children[i],this,s),o.goSubtree=!0)}walk(t,r,i){let o=0,s=this.children[o].charCount(),l=t;for(;l>=s;)this.skipChild(l,r,o,i,0),l-=s,o++,s=this.children[o].charCount();if(l+r<=s){if(this.execWalk(l,r,i,o,2))return}else{if(this.execWalk(l,s-l,i,o,1))return;let u=r-(s-l);for(o++,s=this.children[o].charCount();u>s;){if(this.execWalk(0,s,i,o,3))return;u-=s,o++,s=this.children[o].charCount()}if(u>0&&this.execWalk(0,u,i,o,4))return}if(i.pre){const u=this.children.length;if(o<u-1)for(let p=o+1;p<u;p++)this.skipChild(0,0,p,i,5)}}charOffsetToLineInfo(t,r){if(this.children.length===0)return{oneBasedLine:t,zeroBasedColumn:r,lineText:void 0};for(const s of this.children){if(s.charCount()>r)return s.isLeaf()?{oneBasedLine:t,zeroBasedColumn:r,lineText:s.text}:s.charOffsetToLineInfo(t,r);r-=s.charCount(),t+=s.lineCount()}const i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const o=N.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:o.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(const i of this.children){const o=i.lineCount();if(o>=t)return i.isLeaf()?{position:r,leaf:i}:i.lineNumberToInfo(t,r);t-=o,r+=i.charCount()}return{position:r,leaf:void 0}}splitAfter(t){let r;const i=this.children.length;t++;const o=t;if(t<i){for(r=new l0e;t<i;)r.add(this.children[t]),t++;r.updateCounts()}return this.children.length=o,r}remove(t){const r=this.findChildIndex(t),i=this.children.length;if(r<i-1)for(let o=r;o<i-1;o++)this.children[o]=this.children[o+1];this.children.pop()}findChildIndex(t){const r=this.children.indexOf(t);return N.assert(r!==-1),r}insertAt(t,r){let i=this.findChildIndex(t);const o=this.children.length,s=r.length;if(o<YI&&i===o-1&&s===1)return this.add(r[0]),this.updateCounts(),[];{const l=this.splitAfter(i);let u=0;for(i++;i<YI&&u<s;)this.children[i]=r[u],i++,u++;let p=[],v=0;if(u<s){v=Math.ceil((s-u)/YI),p=new Array(v);let f=0;for(let A=0;A<v;A++)p[A]=new l0e;let b=p[0];for(;u<s;)b.add(r[u]),u++,b.children.length===YI&&(f++,b=p[f]);for(let A=p.length-1;A>=0;A--)p[A].children.length===0&&p.pop()}l&&p.push(l),this.updateCounts();for(let f=0;f<v;f++)p[f].updateCounts();return p}}add(t){this.children.push(t),N.assert(this.children.length<=YI)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},O4=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,t,r){r.leaf(e,t,this)}charCount(){return this.text.length}lineCount(){return 1}}}}),Rge,Dge,Hlt=S({"src/server/typingInstallerAdapter.ts"(){cb(),_T(),Rge=class JWe{constructor(t,r,i,o,s,l){this.telemetryEnabled=t,this.logger=r,this.host=i,this.globalTypingsCacheLocation=o,this.event=s,this.maxActiveRequestCount=l,this.activeRequestCount=0,this.requestQueue=ZM(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(t){var r;return V_.validatePackageName(t)!==V_.NameValidationResult.Ok?!1:(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!((r=this.typesRegistryCache)!=null&&r.has(t)))}installPackage(t){this.packageInstallId++;const r={kind:"installPackage",...t,id:this.packageInstallId},i=new Promise((o,s)=>{var l;((l=this.packageInstalledPromise)!=null?l:this.packageInstalledPromise=new Map).set(this.packageInstallId,{resolve:o,reject:s})});return this.installer.send(r),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,r,i){const o=Lhe(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${O0(o)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(o):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${o.projectName}`),this.requestQueue.enqueue(o),this.requestMap.set(o.projectName,o))}handleMessage(t){var r,i;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${O0(t)}`),t.kind){case rF:this.typesRegistryCache=new Map(Object.entries(t.typesRegistry));break;case _O:{const o=(r=this.packageInstalledPromise)==null?void 0:r.get(t.id);N.assertIsDefined(o,"Should find the promise for package install"),(i=this.packageInstalledPromise)==null||i.delete(t.id),t.success?o.resolve({successMessage:t.message}):o.reject(t.message),this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case OK:{const o={message:t.message},s="typesInstallerInitializationFailed";this.event(o,s);break}case iF:{const o={eventId:t.eventId,packages:t.packagesToInstall},s="beginInstallTypes";this.event(o,s);break}case oF:{if(this.telemetryEnabled){const l={telemetryEventName:"typingsInstalled",payload:{installedPackages:t.packagesToInstall.join(","),installSuccess:t.installSuccess,typingsInstallerVersion:t.typingsInstallerVersion}},u="telemetry";this.event(l,u)}const o={eventId:t.eventId,packages:t.packagesToInstall,success:t.installSuccess},s="endInstallTypes";this.event(o,s);break}case mO:{this.projectService.updateTypingsForProject(t);break}case fO:{for(this.activeRequestCount>0?this.activeRequestCount--:N.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const o=this.requestQueue.dequeue();if(this.requestMap.get(o.projectName)===o){this.requestMap.delete(o.projectName),this.scheduleRequest(o);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${o.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case mP:this.projectService.watchTypingLocations(t);break}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${O0(t)}`),this.installer.send(t)},JWe.requestDelayMillis,`${t.projectName}::${t.kind}`)}},Rge.requestDelayMillis=100,Dge=Rge}}),y4e={};H(y4e,{ActionInvalidate:()=>mO,ActionPackageInstalled:()=>_O,ActionSet:()=>fO,ActionWatchTypingLocations:()=>mP,Arguments:()=>WK,AutoImportProviderProject:()=>kZ,AuxiliaryProject:()=>MZ,CharRangeSection:()=>JZ,CloseFileWatcherEvent:()=>vz,CommandNames:()=>Tge,ConfigFileDiagEvent:()=>fz,ConfiguredProject:()=>wZ,CreateDirectoryWatcherEvent:()=>gz,CreateFileWatcherEvent:()=>hz,Errors:()=>oy,EventBeginInstallTypes:()=>iF,EventEndInstallTypes:()=>oF,EventInitializationFailed:()=>OK,EventTypesRegistry:()=>rF,ExternalProject:()=>az,GcTimer:()=>IZ,InferredProject:()=>PZ,LargeFileReferencedEvent:()=>pz,LineIndex:()=>VP,LineLeaf:()=>O4,LineNode:()=>$I,LogLevel:()=>EZ,Msg:()=>SZ,OpenFileInfoTelemetryEvent:()=>zZ,Project:()=>mT,ProjectInfoTelemetryEvent:()=>_z,ProjectKind:()=>BP,ProjectLanguageServiceStateEvent:()=>mz,ProjectLoadingFinishEvent:()=>dz,ProjectLoadingStartEvent:()=>uz,ProjectReferenceProjectLoadKind:()=>VZ,ProjectService:()=>jZ,ProjectsUpdatedInBackgroundEvent:()=>L4,ScriptInfo:()=>DZ,ScriptVersionCache:()=>Sz,Session:()=>Ige,TextStorage:()=>RZ,ThrottledOperations:()=>AZ,TypingsCache:()=>NZ,TypingsInstallerAdapter:()=>Dge,allFilesAreJsOrDts:()=>tge,allRootFilesAreJsOrDts:()=>ege,asNormalizedPath:()=>KOe,convertCompilerOptions:()=>sz,convertFormatOptions:()=>tD,convertScriptKindName:()=>WZ,convertTypeAcquisition:()=>ige,convertUserPreferences:()=>oge,convertWatchOptions:()=>M4,countEachFileTypes:()=>C4,createInstallTypingsRequest:()=>Lhe,createModuleSpecifierCache:()=>_ge,createNormalizedPathMap:()=>XOe,createPackageJsonCache:()=>hge,createSortedArray:()=>Fhe,emptyArray:()=>Ac,findArgument:()=>WRe,forEachResolvedProjectReferenceProject:()=>nD,formatDiagnosticToProtocol:()=>w4,formatMessage:()=>gge,getBaseConfigFileName:()=>TZ,getLocationInNewDocument:()=>Ege,hasArgument:()=>ORe,hasNoTypeScriptSource:()=>nge,indent:()=>fP,isBackgroundProject:()=>P4,isConfigFile:()=>dge,isConfiguredProject:()=>V0,isDynamicFileName:()=>N4,isExternalProject:()=>CZ,isInferredProject:()=>eD,isInferredProjectName:()=>khe,makeAutoImportProviderProjectName:()=>Ohe,makeAuxiliaryProjectName:()=>Whe,makeInferredProjectName:()=>whe,maxFileSize:()=>cz,maxProgramSizeForNonTsFiles:()=>lz,normalizedPathToPath:()=>D4,nowString:()=>FRe,nullCancellationToken:()=>Sge,nullTypingsInstaller:()=>oz,projectContainsInfoDirectly:()=>XI,protocol:()=>Zhe,removeSorted:()=>YOe,stringifyIndented:()=>O0,toEvent:()=>vge,toNormalizedPath:()=>vl,tryConvertScriptKindName:()=>OZ,typingsInstaller:()=>Phe,updateProjectIfDirty:()=>Up});var _T=S({"src/server/_namespaces/ts.server.ts"(){aF(),Mhe(),ilt(),olt(),alt(),slt(),ult(),mlt(),vlt(),Tlt(),Alt(),Ilt(),jlt(),Ult(),Hlt()}}),b4e={};H(b4e,{ANONYMOUS:()=>YF,AccessFlags:()=>dV,AssertionLevel:()=>OG,AssignmentDeclarationKind:()=>bV,AssignmentKind:()=>lH,Associativity:()=>uH,BreakpointResolver:()=>c$,BuilderFileEmit:()=>fK,BuilderProgramKind:()=>mK,BuilderState:()=>Om,BundleFileSectionKind:()=>FV,CallHierarchy:()=>GI,CharacterCodes:()=>PV,CheckFlags:()=>aV,CheckMode:()=>cW,ClassificationType:()=>nX,ClassificationTypeNames:()=>tX,CommentDirectiveType:()=>HG,Comparison:()=>Be,CompletionInfoFlags:()=>KK,CompletionTriggerKind:()=>jK,Completions:()=>qI,ContainerFlags:()=>nJ,ContextFlags:()=>$G,Debug:()=>N,DiagnosticCategory:()=>oL,Diagnostics:()=>m,DocumentHighlights:()=>ZF,ElementFlags:()=>uV,EmitFlags:()=>y6,EmitHint:()=>wV,EmitOnly:()=>JG,EndOfLineState:()=>$K,EnumKind:()=>oV,ExitStatus:()=>KG,ExportKind:()=>uY,Extension:()=>MV,ExternalEmitHelpers:()=>kV,FileIncludeKind:()=>u6,FilePreprocessingDiagnosticsKind:()=>qG,FileSystemEntryKind:()=>UV,FileWatcherEventKind:()=>jV,FindAllReferences:()=>Hs,FlattenLevel:()=>bJ,FlowFlags:()=>iL,ForegroundColorEscapeSequences:()=>oK,FunctionFlags:()=>cH,GeneratedIdentifierFlags:()=>c6,GetLiteralTextFlags:()=>oH,GoToDefinition:()=>XR,HighlightSpanKind:()=>HK,IdentifierNameMap:()=>CI,IdentifierNameMultiMap:()=>yJ,ImportKind:()=>cY,ImportsNotUsedAsValues:()=>xV,IndentStyle:()=>qK,IndexFlags:()=>pV,IndexKind:()=>_V,InferenceFlags:()=>vV,InferencePriority:()=>gV,InlayHintKind:()=>UK,InlayHints:()=>tZ,InternalEmitFlags:()=>LV,InternalSymbolName:()=>sV,InvalidatedProjectKind:()=>wK,JSDocParsingMode:()=>GV,JsDoc:()=>G0,JsTyping:()=>V_,JsxEmit:()=>IV,JsxFlags:()=>jG,JsxReferenceKind:()=>fV,LanguageServiceMode:()=>BK,LanguageVariant:()=>NV,LexicalEnvironmentFlags:()=>WV,ListFormat:()=>zV,LogLevel:()=>FG,MemberOverrideStatus:()=>XG,ModifierFlags:()=>s6,ModuleDetectionKind:()=>EV,ModuleInstanceState:()=>tJ,ModuleKind:()=>pN,ModuleResolutionKind:()=>$x,ModuleSpecifierEnding:()=>yH,NavigateTo:()=>Yde,NavigationBar:()=>ape,NewLineKind:()=>RV,NodeBuilderFlags:()=>QG,NodeCheckFlags:()=>lV,NodeFactoryFlags:()=>RH,NodeFlags:()=>a6,NodeResolutionFeatures:()=>Qq,ObjectFlags:()=>m6,OperationCanceledException:()=>Yx,OperatorPrecedence:()=>dH,OrganizeImports:()=>Wm,OrganizeImportsMode:()=>VK,OuterExpressionKinds:()=>OV,OutliningElementsCollector:()=>oZ,OutliningSpanKind:()=>XK,OutputFileType:()=>YK,PackageJsonAutoImportPreference:()=>zK,PackageJsonDependencyGroup:()=>FK,PatternMatchKind:()=>e9,PollingInterval:()=>b6,PollingWatchKind:()=>AV,PragmaKindFlags:()=>BV,PrivateIdentifierKind:()=>kH,ProcessLevel:()=>AJ,ProgramUpdateLevel:()=>BJ,QuotePreference:()=>rY,RelationComparisonResult:()=>l6,Rename:()=>Q9,ScriptElementKind:()=>ZK,ScriptElementKindModifier:()=>eX,ScriptKind:()=>h6,ScriptSnapshot:()=>lF,ScriptTarget:()=>DV,SemanticClassificationFormat:()=>GK,SemanticMeaning:()=>nY,SemicolonPreference:()=>JK,SignatureCheckMode:()=>uW,SignatureFlags:()=>_6,SignatureHelp:()=>b4,SignatureKind:()=>mV,SmartSelectionRange:()=>lZ,SnippetKind:()=>v6,SortKind:()=>wG,StructureIsReused:()=>d6,SymbolAccessibility:()=>tV,SymbolDisplay:()=>iy,SymbolDisplayPartKind:()=>gO,SymbolFlags:()=>p6,SymbolFormatFlags:()=>eV,SyntaxKind:()=>o6,SyntheticSymbolKind:()=>nV,Ternary:()=>yV,ThrottledCancellationToken:()=>l$,TokenClass:()=>QK,TokenFlags:()=>UG,TransformFlags:()=>g6,TypeFacts:()=>lW,TypeFlags:()=>f6,TypeFormatFlags:()=>ZG,TypeMapKind:()=>hV,TypePredicateKind:()=>rV,TypeReferenceSerializationKind:()=>iV,UnionReduction:()=>YG,UpToDateStatusType:()=>PK,VarianceFlags:()=>cV,Version:()=>Tm,VersionRange:()=>tL,WatchDirectoryFlags:()=>CV,WatchDirectoryKind:()=>TV,WatchFileKind:()=>SV,WatchLogLevel:()=>GJ,WatchType:()=>zc,accessPrivateIdentifier:()=>Jle,addDisposableResourceHelper:()=>s5,addEmitFlags:()=>k_,addEmitHelper:()=>oI,addEmitHelpers:()=>Hg,addInternalEmitFlags:()=>rI,addNodeFactoryPatcher:()=>oAe,addObjectAllocatorPatcher:()=>Xoe,addRange:()=>Hr,addRelatedInfo:()=>Fa,addSyntheticLeadingComment:()=>IC,addSyntheticTrailingComment:()=>k7,addToSeen:()=>Pm,advancedAsyncSuperHelper:()=>iw,affectsDeclarationPathOptionDeclarations:()=>kq,affectsEmitOptionDeclarations:()=>Lq,allKeysStartWithDot:()=>tW,altDirectorySeparator:()=>fL,and:()=>Z8,append:()=>Rn,appendIfUnique:()=>Lg,arrayFrom:()=>Go,arrayIsEqualTo:()=>Xm,arrayIsHomogeneous:()=>_ae,arrayIsSorted:()=>H8,arrayOf:()=>Vne,arrayReverseIterator:()=>EG,arrayToMap:()=>C1,arrayToMultiMap:()=>QM,arrayToNumericMap:()=>Une,arraysEqual:()=>Ni,assertType:()=>zEe,assign:()=>jx,assignHelper:()=>G7,asyncDelegator:()=>j7,asyncGeneratorHelper:()=>V7,asyncSuperHelper:()=>rw,asyncValues:()=>U7,attachFileToDiagnostics:()=>QA,awaitHelper:()=>aI,awaiterHelper:()=>q7,base64decode:()=>Foe,base64encode:()=>Woe,binarySearch:()=>Nv,binarySearchKey:()=>IA,bindSourceFile:()=>Sle,breakIntoCharacterSpans:()=>jde,breakIntoWordSpans:()=>Ude,buildLinkParts:()=>fde,buildOpts:()=>U5,buildOverload:()=>VOe,bundlerModuleNameResolver:()=>ple,canBeConvertedToAsync:()=>EY,canHaveDecorators:()=>QS,canHaveExportModifier:()=>zk,canHaveFlowNode:()=>fk,canHaveIllegalDecorators:()=>cq,canHaveIllegalModifiers:()=>xse,canHaveIllegalType:()=>kAe,canHaveIllegalTypeParameters:()=>Ise,canHaveJSDoc:()=>mk,canHaveLocals:()=>hh,canHaveModifiers:()=>km,canHaveSymbol:()=>x_,canJsonReportNoInputFiles:()=>UC,canProduceDiagnostics:()=>TW,canUsePropertyAccess:()=>tH,canWatchAffectingLocation:()=>eue,canWatchAtTypes:()=>Zce,canWatchDirectoryOrFile:()=>UW,cartesianProduct:()=>ere,cast:()=>sa,chainBundle:()=>wm,chainDiagnosticMessages:()=>jo,changeAnyExtension:()=>dL,changeCompilerHostLikeToUseCache:()=>oO,changeExtension:()=>S0,changeFullExtension:()=>yre,changesAffectModuleResolution:()=>Y6,changesAffectingProgramStructure:()=>Eie,childIsDecorated:()=>WN,classElementOrClassElementParameterIsDecorated:()=>Kj,classHasClassThisAssignment:()=>EJ,classHasDeclaredOrExplicitlyAssignedName:()=>SJ,classHasExplicitlyAssignedName:()=>bW,classOrConstructorParameterIsDecorated:()=>zv,classPrivateFieldGetHelper:()=>i5,classPrivateFieldInHelper:()=>a5,classPrivateFieldSetHelper:()=>o5,classicNameResolver:()=>vle,classifier:()=>tfe,cleanExtendedConfigCache:()=>PW,clear:()=>Yi,clearMap:()=>np,clearSharedExtendedConfigFileWatcher:()=>WJ,climbPastPropertyAccess:()=>uF,climbPastPropertyOrElementAccess:()=>Bue,clone:()=>xG,cloneCompilerOptions:()=>EX,closeFileWatcher:()=>Zm,closeFileWatcherOf:()=>Mf,codefix:()=>Bu,collapseTextChangeRangesAcrossMultipleVersions:()=>Lre,collectExternalModuleInfo:()=>_J,combine:()=>Vx,combinePaths:()=>$r,commentPragmas:()=>aL,commonOptionsWithBuild:()=>kw,commonPackageFolders:()=>mH,compact:()=>$M,compareBooleans:()=>Iy,compareDataObjects:()=>FU,compareDiagnostics:()=>aC,compareDiagnosticsSkipRelatedInformation:()=>t7,compareEmitHelpers:()=>Hae,compareNumberOfDirectorySeparators:()=>Ok,comparePaths:()=>kg,comparePathsCaseInsensitive:()=>pSe,comparePathsCaseSensitive:()=>dSe,comparePatternKeys:()=>Yq,compareProperties:()=>Yne,compareStringsCaseInsensitive:()=>$8,compareStringsCaseInsensitiveEslintCompatible:()=>Jne,compareStringsCaseSensitive:()=>Ju,compareStringsCaseSensitiveUI:()=>eL,compareTextSpans:()=>Y8,compareValues:()=>al,compileOnSaveCommandLineOption:()=>Mw,compilerOptionsAffectDeclarationPath:()=>oae,compilerOptionsAffectEmit:()=>iae,compilerOptionsAffectSemanticDiagnostics:()=>rae,compilerOptionsDidYouMeanDiagnostics:()=>Ww,compilerOptionsIndicateEsModules:()=>RX,compose:()=>WEe,computeCommonSourceDirectoryOfFilenames:()=>Mce,computeLineAndCharacterOfPosition:()=>Zx,computeLineOfPosition:()=>hN,computeLineStarts:()=>LA,computePositionOfLineAndCharacter:()=>R6,computeSignature:()=>iT,computeSignatureWithDiagnostics:()=>cK,computeSuggestionDiagnostics:()=>vY,computedOptions:()=>Sc,concatenate:()=>Ro,concatenateDiagnosticMessageChains:()=>Zoe,consumesNodeCoreModules:()=>jF,contains:()=>Mn,containsIgnoredPath:()=>_C,containsObjectRestOrSpread:()=>Tw,containsParseError:()=>d2,containsPath:()=>Am,convertCompilerOptionsForTelemetry:()=>Xse,convertCompilerOptionsFromJson:()=>WIe,convertJsonOption:()=>ZS,convertToBase64:()=>Ooe,convertToJson:()=>Nw,convertToObject:()=>Use,convertToOptionsWithAbsolutePaths:()=>Rq,convertToRelativePath:()=>_N,convertToTSConfig:()=>TIe,convertTypeAcquisitionFromJson:()=>FIe,copyComments:()=>lT,copyEntries:()=>$6,copyLeadingComments:()=>OR,copyProperties:()=>RG,copyTrailingAsLeadingComments:()=>WO,copyTrailingComments:()=>TP,couldStartTrivia:()=>Tre,countWhere:()=>Ca,createAbstractBuilder:()=>U2e,createAccessorPropertyBackingField:()=>dq,createAccessorPropertyGetRedirector:()=>kse,createAccessorPropertySetRedirector:()=>wse,createBaseNodeFactory:()=>Nae,createBinaryExpressionTrampoline:()=>M5,createBindingHelper:()=>X2,createBuildInfo:()=>eO,createBuilderProgram:()=>uK,createBuilderProgramUsingProgramBuildInfo:()=>$ce,createBuilderStatusReporter:()=>mue,createCacheWithRedirects:()=>Vq,createCacheableExportInfoMap:()=>aY,createCachedDirectoryStructureHost:()=>NW,createClassNamedEvaluationHelperBlock:()=>Zle,createClassThisAssignmentBlock:()=>$le,createClassifier:()=>sDe,createCommentDirectivesMap:()=>Rie,createCompilerDiagnostic:()=>$l,createCompilerDiagnosticForInvalidCustomType:()=>zse,createCompilerDiagnosticFromMessageChain:()=>e7,createCompilerHost:()=>Lce,createCompilerHostFromProgramHost:()=>RK,createCompilerHostWorker:()=>UJ,createDetachedDiagnostic:()=>G2,createDiagnosticCollection:()=>M2,createDiagnosticForFileFromMessageChain:()=>jj,createDiagnosticForNode:()=>Fr,createDiagnosticForNodeArray:()=>m2,createDiagnosticForNodeArrayFromMessageChain:()=>qL,createDiagnosticForNodeFromMessageChain:()=>zg,createDiagnosticForNodeInSourceFile:()=>rm,createDiagnosticForRange:()=>zie,createDiagnosticMessageChainFromDiagnostic:()=>Fie,createDiagnosticReporter:()=>uO,createDocumentPositionMapper:()=>Gle,createDocumentRegistry:()=>Mde,createDocumentRegistryInternal:()=>fY,createEmitAndSemanticDiagnosticsBuilderProgram:()=>_K,createEmitHelperFactory:()=>Uae,createEmptyExports:()=>_w,createExpressionForJsxElement:()=>vse,createExpressionForJsxFragment:()=>yse,createExpressionForObjectLiteralElementLike:()=>bse,createExpressionForPropertyName:()=>rq,createExpressionFromEntityName:()=>hw,createExternalHelpersImportDeclarationIfNeeded:()=>aq,createFileDiagnostic:()=>ru,createFileDiagnosticFromMessageChain:()=>a3,createForOfBindingStatement:()=>nq,createGetCanonicalFileName:()=>ku,createGetSourceFile:()=>VJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Yv,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Tce,createGetSymbolWalker:()=>Tle,createIncrementalCompilerHost:()=>NK,createIncrementalProgram:()=>pue,createInputFiles:()=>sAe,createInputFilesWithFilePaths:()=>IH,createInputFilesWithFileTexts:()=>xH,createJsxFactoryExpression:()=>tq,createLanguageService:()=>Xpe,createLanguageServiceSourceFile:()=>A9,createMemberAccessForPropertyName:()=>$S,createModeAwareCache:()=>DI,createModeAwareCacheKey:()=>XC,createModuleNotFoundChain:()=>Q6,createModuleResolutionCache:()=>mR,createModuleResolutionLoader:()=>YJ,createModuleResolutionLoaderUsingGlobalCache:()=>iue,createModuleSpecifierResolutionHost:()=>sT,createMultiMap:()=>Zp,createNodeConverters:()=>Pae,createNodeFactory:()=>Xk,createOptionNameMap:()=>w5,createOverload:()=>yZ,createPackageJsonImportFilter:()=>xP,createPackageJsonInfo:()=>KX,createParenthesizerRules:()=>Cae,createPatternMatcher:()=>Wde,createPrependNodes:()=>rK,createPrinter:()=>k0,createPrinterWithDefaults:()=>wJ,createPrinterWithRemoveComments:()=>vE,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>OJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>tO,createProgram:()=>OW,createProgramHost:()=>DK,createPropertyNameNodeForIdentifierOrLiteral:()=>v7,createQueue:()=>ZM,createRange:()=>xf,createRedirectedBuilderProgram:()=>pK,createResolutionCache:()=>gK,createRuntimeTypeSerializer:()=>ice,createScanner:()=>wv,createSemanticDiagnosticsBuilderProgram:()=>j2e,createSet:()=>DG,createSolutionBuilder:()=>aRe,createSolutionBuilderHost:()=>iRe,createSolutionBuilderWithWatch:()=>sRe,createSolutionBuilderWithWatchHost:()=>oRe,createSortedArray:()=>bG,createSourceFile:()=>Iw,createSourceMapGenerator:()=>Wle,createSourceMapSource:()=>lAe,createSuperAccessVariableStatement:()=>SW,createSymbolTable:()=>pa,createSymlinkCache:()=>HU,createSystemWatchFunctions:()=>_re,createTextChange:()=>DO,createTextChangeFromStartLength:()=>AF,createTextChangeRange:()=>TL,createTextRangeFromNode:()=>AX,createTextRangeFromSpan:()=>TF,createTextSpan:()=>Eu,createTextSpanFromBounds:()=>yc,createTextSpanFromNode:()=>Nd,createTextSpanFromRange:()=>ob,createTextSpanFromStringLiteralLikeContent:()=>TX,createTextWriter:()=>xk,createTokenRange:()=>wU,createTypeChecker:()=>Ple,createTypeReferenceDirectiveResolutionCache:()=>Q5,createTypeReferenceResolutionLoader:()=>LW,createUnparsedSourceFile:()=>AH,createWatchCompilerHost:()=>tRe,createWatchCompilerHostOfConfigFile:()=>cue,createWatchCompilerHostOfFilesAndCompilerOptions:()=>uue,createWatchFactory:()=>xK,createWatchHost:()=>IK,createWatchProgram:()=>nRe,createWatchStatusReporter:()=>oue,createWriteFileMeasuringIO:()=>jJ,declarationNameToString:()=>ks,decodeMappings:()=>pJ,decodedTextSpanIntersectsWith:()=>SL,decorateHelper:()=>O7,deduplicate:()=>N1,defaultIncludeSpec:()=>J5,defaultInitCompilerOptions:()=>H5,defaultMaximumTruncationLength:()=>jk,detectSortCaseSensitivity:()=>sN,diagnosticCategoryName:()=>mS,diagnosticToString:()=>uT,directoryProbablyExists:()=>Qm,directorySeparator:()=>cl,displayPart:()=>op,displayPartsToString:()=>i4,disposeEmitNodes:()=>DH,disposeResourcesHelper:()=>l5,documentSpansEqual:()=>MX,dumpTracingLegend:()=>pre,elementAt:()=>Lv,elideNodes:()=>Lse,emitComments:()=>Ioe,emitDetachedComments:()=>xoe,emitFiles:()=>xW,emitFilesAndReportErrors:()=>KW,emitFilesAndReportErrorsAndGetExitStatus:()=>lue,emitModuleKindIsNonNodeESM:()=>n7,emitNewLineBeforeLeadingCommentOfPosition:()=>Aoe,emitNewLineBeforeLeadingComments:()=>Soe,emitNewLineBeforeLeadingCommentsOfPosition:()=>Toe,emitSkippedWithNoDiagnostics:()=>GW,emitUsingBuildInfo:()=>Dce,emptyArray:()=>et,emptyFileSystemEntries:()=>C7,emptyMap:()=>r6,emptyOptions:()=>kf,emptySet:()=>nre,endsWith:()=>Dl,ensurePathIsNonModuleName:()=>P1,ensureScriptKind:()=>d7,ensureTrailingDirectorySeparator:()=>Hc,entityNameToString:()=>vp,enumerateInsertsAndDeletes:()=>t6,equalOwnProperties:()=>jne,equateStringsCaseInsensitive:()=>i0,equateStringsCaseSensitive:()=>dS,equateValues:()=>Mv,esDecorateHelper:()=>z7,escapeJsxAttributeString:()=>EU,escapeLeadingUnderscores:()=>bl,escapeNonAsciiString:()=>Ik,escapeSnippetText:()=>eE,escapeString:()=>ag,escapeTemplateSubstitution:()=>yU,every:()=>Bn,expandPreOrPostfixIncrementOrDecrementExpression:()=>x5,explainFiles:()=>bK,explainIfFileIsRedirectAndImpliedFormat:()=>EK,exportAssignmentIsAlias:()=>D2,exportStarHelper:()=>r5,expressionResultIsUnused:()=>gae,extend:()=>X8,extendsHelper:()=>J7,extensionFromPath:()=>uC,extensionIsTS:()=>m7,extensionsNotSupportingExtensionlessResolution:()=>Kk,externalHelpersModuleNameText:()=>qy,factory:()=>O,fileExtensionIs:()=>Nl,fileExtensionIsOneOf:()=>Rc,fileIncludeReasonToDiagnostics:()=>AK,fileShouldUseJavaScriptRequire:()=>tY,filter:()=>Vn,filterMutate:()=>Si,filterSemanticDiagnostics:()=>WW,find:()=>un,findAncestor:()=>jn,findBestPatternMatch:()=>MG,findChildOfKind:()=>Is,findComputedPropertyNameCacheAssignment:()=>L5,findConfigFile:()=>Pce,findContainingList:()=>_F,findDiagnosticForNode:()=>Ade,findFirstNonJsxWhitespaceToken:()=>Hue,findIndex:()=>Ji,findLast:()=>Mi,findLastIndex:()=>as,findListItemInfo:()=>Uue,findMap:()=>rl,findModifier:()=>LR,findNextToken:()=>EE,findPackageJson:()=>Sde,findPackageJsons:()=>JX,findPrecedingMatchingToken:()=>EF,findPrecedingToken:()=>Cc,findSuperStatementIndexPath:()=>gW,findTokenOnLeftOfPosition:()=>vF,findUseStrictPrologue:()=>oq,first:()=>$a,firstDefined:()=>$t,firstDefinedIterator:()=>ar,firstIterator:()=>TG,firstOrOnly:()=>QX,firstOrUndefined:()=>eu,firstOrUndefinedIterator:()=>q8,fixupCompilerOptions:()=>TY,flatMap:()=>qi,flatMapIterator:()=>Zf,flatMapToMutable:()=>Zd,flatten:()=>Oa,flattenCommaList:()=>Ose,flattenDestructuringAssignment:()=>tT,flattenDestructuringBinding:()=>gE,flattenDiagnosticMessageText:()=>B_,forEach:()=>Ve,forEachAncestor:()=>Sie,forEachAncestorDirectory:()=>xm,forEachChild:()=>Uo,forEachChildRecursively:()=>VC,forEachEmittedFile:()=>PJ,forEachEnclosingBlockScopeContainer:()=>wie,forEachEntry:()=>qc,forEachExternalModuleToImportFrom:()=>lY,forEachImportClauseDeclaration:()=>N3,forEachKey:()=>vh,forEachLeadingCommentRange:()=>gL,forEachNameInAccessChainWalkingLeft:()=>Joe,forEachPropertyAssignment:()=>v2,forEachResolvedProjectReference:()=>QJ,forEachReturnStatement:()=>B1,forEachRight:()=>Ht,forEachTrailingCommentRange:()=>vL,forEachTsConfigPropArray:()=>YL,forEachUnique:()=>kX,forEachYieldExpression:()=>Gie,forSomeAncestorDirectory:()=>CTe,formatColorAndReset:()=>yE,formatDiagnostic:()=>HJ,formatDiagnostics:()=>A2e,formatDiagnosticsWithColorAndContext:()=>kce,formatGeneratedName:()=>N0,formatGeneratedNamePart:()=>cR,formatLocation:()=>qJ,formatMessage:()=>VU,formatStringFromArgs:()=>cg,formatting:()=>Bc,fullTripleSlashAMDReferencePathRegEx:()=>sH,fullTripleSlashReferencePathRegEx:()=>aH,generateDjb2Hash:()=>fN,generateTSConfig:()=>DIe,generatorHelper:()=>e5,getAdjustedReferenceLocation:()=>_X,getAdjustedRenameLocation:()=>gF,getAliasDeclarationFromName:()=>lU,getAllAccessorDeclarations:()=>wS,getAllDecoratorsOfClass:()=>gJ,getAllDecoratorsOfClassElement:()=>yW,getAllJSDocTags:()=>w6,getAllJSDocTagsOfKind:()=>GSe,getAllKeys:()=>wEe,getAllProjectOutputs:()=>IW,getAllSuperTypeNodes:()=>VN,getAllUnscopedEmitHelpers:()=>LH,getAllowJSCompilerOption:()=>Jy,getAllowSyntheticDefaultImports:()=>FS,getAncestor:()=>b0,getAnyExtensionFromPath:()=>Qx,getAreDeclarationMapsEnabled:()=>Hk,getAssignedExpandoInitializer:()=>GA,getAssignedName:()=>L6,getAssignedNameOfIdentifier:()=>nP,getAssignmentDeclarationKind:()=>ql,getAssignmentDeclarationPropertyAccessKind:()=>lk,getAssignmentTargetKind:()=>HA,getAutomaticTypeDirectiveNames:()=>Y5,getBaseFileName:()=>dc,getBinaryOperatorPrecedence:()=>Ak,getBuildInfo:()=>RW,getBuildInfoFileVersionMap:()=>dK,getBuildInfoText:()=>Rce,getBuildOrderFromAnyBuildOrder:()=>ZW,getBuilderCreationParameters:()=>VW,getBuilderFileEmit:()=>ib,getCheckFlags:()=>Cl,getClassExtendsHeritageElement:()=>H1,getClassLikeDeclarationOfSymbol:()=>jg,getCombinedLocalAndExportSymbolFlags:()=>F2,getCombinedModifierFlags:()=>c0,getCombinedNodeFlags:()=>Ov,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>nj,getCommentRange:()=>w_,getCommonSourceDirectory:()=>cP,getCommonSourceDirectoryOfConfig:()=>bR,getCompilerOptionValue:()=>i7,getCompilerOptionsDiffValue:()=>xIe,getConditions:()=>nb,getConfigFileParsingDiagnostics:()=>rT,getConstantValue:()=>Wae,getContainerFlags:()=>eJ,getContainerNode:()=>aT,getContainingClass:()=>du,getContainingClassExcludingClassDecorators:()=>_3,getContainingClassStaticBlock:()=>Yie,getContainingFunction:()=>Vp,getContainingFunctionDeclaration:()=>Xie,getContainingFunctionOrClassStaticBlock:()=>m3,getContainingNodeArray:()=>vae,getContainingObjectLiteralElement:()=>o4,getContextualTypeFromParent:()=>wF,getContextualTypeFromParentOrAncestorTypeNode:()=>hF,getCurrentTime:()=>pO,getDeclarationDiagnostics:()=>Ace,getDeclarationEmitExtensionForPath:()=>F3,getDeclarationEmitOutputFilePath:()=>goe,getDeclarationEmitOutputFilePathWorker:()=>W3,getDeclarationFileExtension:()=>_q,getDeclarationFromName:()=>GN,getDeclarationModifierFlagsFromSymbol:()=>Df,getDeclarationOfKind:()=>gl,getDeclarationsOfKind:()=>yie,getDeclaredExpandoInitializer:()=>ik,getDecorators:()=>Py,getDefaultCompilerOptions:()=>T9,getDefaultExportInfoWorker:()=>QF,getDefaultFormatCodeSettings:()=>sF,getDefaultLibFileName:()=>bL,getDefaultLibFilePath:()=>Ype,getDefaultLikeExportInfo:()=>$F,getDiagnosticText:()=>hIe,getDiagnosticsWithinSpan:()=>Ide,getDirectoryPath:()=>ii,getDirectoryToWatchFailedLookupLocation:()=>hK,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>nue,getDocumentPositionMapper:()=>gY,getDocumentSpansEqualityComparer:()=>LX,getESModuleInterop:()=>Sh,getEditsForFileRename:()=>kde,getEffectiveBaseTypeNode:()=>D_,getEffectiveConstraintOfTypeParameter:()=>i2,getEffectiveContainerForJSDocTemplateTag:()=>C3,getEffectiveImplementsTypeNodes:()=>N2,getEffectiveInitializer:()=>rk,getEffectiveJSDocHost:()=>y0,getEffectiveModifierFlags:()=>fd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Coe,getEffectiveModifierFlagsNoCache:()=>Poe,getEffectiveReturnTypeNode:()=>lm,getEffectiveSetAccessorTypeAnnotationNode:()=>Eoe,getEffectiveTypeAnnotationNode:()=>Su,getEffectiveTypeParameterDeclarations:()=>My,getEffectiveTypeRoots:()=>KC,getElementOrPropertyAccessArgumentExpressionOrName:()=>D3,getElementOrPropertyAccessName:()=>Bg,getElementsOfBindingOrAssignmentPattern:()=>lR,getEmitDeclarations:()=>Nf,getEmitFlags:()=>Ka,getEmitHelpers:()=>w7,getEmitModuleDetectionKind:()=>pH,getEmitModuleKind:()=>Wu,getEmitModuleResolutionKind:()=>_d,getEmitScriptTarget:()=>ps,getEmitStandardClassFields:()=>nae,getEnclosingBlockScopeContainer:()=>yh,getEnclosingContainer:()=>Vj,getEncodedSemanticClassifications:()=>dY,getEncodedSyntacticClassifications:()=>pY,getEndLinePosition:()=>VL,getEntityNameFromTypeNode:()=>ZL,getEntrypointsFromPackageJsonInfo:()=>Jq,getErrorCountForSummary:()=>qW,getErrorSpanForNode:()=>AS,getErrorSummaryText:()=>aue,getEscapedTextOfIdentifierOrLiteral:()=>HN,getEscapedTextOfJsxAttributeName:()=>yC,getEscapedTextOfJsxNamespacedName:()=>tI,getExpandoInitializer:()=>g0,getExportAssignmentExpression:()=>cU,getExportInfoMap:()=>VO,getExportNeedsImportStarHelper:()=>Vle,getExpressionAssociativity:()=>hU,getExpressionPrecedence:()=>JN,getExternalHelpersModuleName:()=>vw,getExternalModuleImportEqualsDeclarationExpression:()=>FN,getExternalModuleName:()=>A2,getExternalModuleNameFromDeclaration:()=>_oe,getExternalModuleNameFromPath:()=>TU,getExternalModuleNameLiteral:()=>AI,getExternalModuleRequireArgument:()=>Yj,getFallbackOptions:()=>iO,getFileEmitOutput:()=>Gce,getFileMatcherPatterns:()=>u7,getFileNamesFromConfigSpecs:()=>HC,getFileWatcherEventKind:()=>VV,getFilesInErrorForSummary:()=>JW,getFirstConstructorWithBody:()=>sg,getFirstIdentifier:()=>jp,getFirstNonSpaceCharacterPosition:()=>hde,getFirstProjectOutput:()=>kJ,getFixableErrorSpanExpression:()=>YX,getFormatCodeSettingsForWriting:()=>JF,getFullWidth:()=>BL,getFunctionFlags:()=>Jc,getHeritageClause:()=>bk,getHostSignatureFromJSDoc:()=>v0,getIdentifierAutoGenerate:()=>fAe,getIdentifierGeneratedImportReference:()=>jae,getIdentifierTypeArguments:()=>zS,getImmediatelyInvokedFunctionExpression:()=>xS,getImpliedNodeFormatForFile:()=>lO,getImpliedNodeFormatForFileWorker:()=>tK,getImportNeedsImportDefaultHelper:()=>mJ,getImportNeedsImportStarHelper:()=>_W,getIndentSize:()=>k2,getIndentString:()=>w3,getInferredLibraryNameResolveFrom:()=>wW,getInitializedVariables:()=>rC,getInitializerOfBinaryExpression:()=>tU,getInitializerOfBindingOrAssignmentElement:()=>bw,getInterfaceBaseTypeNodes:()=>jN,getInternalEmitFlags:()=>Dm,getInvokedExpression:()=>v3,getIsolatedModules:()=>dm,getJSDocAugmentsTag:()=>Vre,getJSDocClassTag:()=>ij,getJSDocCommentRanges:()=>Hj,getJSDocCommentsAndTags:()=>rU,getJSDocDeprecatedTag:()=>oj,getJSDocDeprecatedTagNoCache:()=>Xre,getJSDocEnumTag:()=>aj,getJSDocHost:()=>CS,getJSDocImplementsTags:()=>jre,getJSDocOverloadTags:()=>oU,getJSDocOverrideTagNoCache:()=>Kre,getJSDocParameterTags:()=>r2,getJSDocParameterTagsNoCache:()=>Fre,getJSDocPrivateTag:()=>OSe,getJSDocPrivateTagNoCache:()=>Hre,getJSDocProtectedTag:()=>WSe,getJSDocProtectedTagNoCache:()=>qre,getJSDocPublicTag:()=>wSe,getJSDocPublicTagNoCache:()=>Ure,getJSDocReadonlyTag:()=>FSe,getJSDocReadonlyTagNoCache:()=>Jre,getJSDocReturnTag:()=>Yre,getJSDocReturnType:()=>IL,getJSDocRoot:()=>R2,getJSDocSatisfiesExpressionType:()=>rH,getJSDocSatisfiesTag:()=>sj,getJSDocTags:()=>f0,getJSDocTagsNoCache:()=>BSe,getJSDocTemplateTag:()=>zSe,getJSDocThisTag:()=>k6,getJSDocType:()=>p0,getJSDocTypeAliasName:()=>lq,getJSDocTypeAssertionType:()=>D5,getJSDocTypeParameterDeclarations:()=>V3,getJSDocTypeParameterTags:()=>zre,getJSDocTypeParameterTagsNoCache:()=>Bre,getJSDocTypeTag:()=>d0,getJSXImplicitImportBase:()=>a7,getJSXRuntimeImport:()=>s7,getJSXTransformEnabled:()=>o7,getKeyForCompilerOptions:()=>Gq,getLanguageVariant:()=>Lk,getLastChild:()=>zU,getLeadingCommentRanges:()=>$h,getLeadingCommentRangesOfNode:()=>Uj,getLeftmostAccessExpression:()=>z2,getLeftmostExpression:()=>B2,getLibraryNameFromLibFileName:()=>ZJ,getLineAndCharacterOfPosition:()=>Rs,getLineInfo:()=>uJ,getLineOfLocalPosition:()=>XN,getLineOfLocalPositionFromLineMap:()=>LS,getLineStartPositionForPosition:()=>mm,getLineStarts:()=>wg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>joe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Voe,getLinesBetweenPositions:()=>gN,getLinesBetweenRangeEndAndRangeStart:()=>OU,getLinesBetweenRangeEndPositions:()=>DTe,getLiteralText:()=>Die,getLocalNameForExternalImport:()=>sR,getLocalSymbolForExportDefault:()=>W2,getLocaleSpecificMessage:()=>zo,getLocaleTimeString:()=>dO,getMappedContextSpan:()=>wX,getMappedDocumentSpan:()=>PF,getMappedLocation:()=>bP,getMatchedFileSpec:()=>SK,getMatchedIncludeSpec:()=>TK,getMeaningFromDeclaration:()=>vO,getMeaningFromLocation:()=>oT,getMembersOfDeclaration:()=>Vie,getModeForFileReference:()=>aO,getModeForResolutionAtIndex:()=>wce,getModeForUsageLocation:()=>KJ,getModifiedTime:()=>CA,getModifiers:()=>L1,getModuleInstanceState:()=>Xg,getModuleNameStringLiteralAt:()=>cO,getModuleSpecifierEndingPreference:()=>cae,getModuleSpecifierResolverHost:()=>DX,getNameForExportedSymbol:()=>UF,getNameFromImportAttribute:()=>S7,getNameFromIndexInfo:()=>Oie,getNameFromPropertyName:()=>PO,getNameOfAccessExpression:()=>GU,getNameOfCompilerOptionValue:()=>xq,getNameOfDeclaration:()=>Oo,getNameOfExpando:()=>Zj,getNameOfJSDocTypedef:()=>Wre,getNameOrArgument:()=>sk,getNameTable:()=>r$,getNamesForExportedSymbol:()=>xde,getNamespaceDeclarationNode:()=>I2,getNewLineCharacter:()=>Uv,getNewLineKind:()=>GO,getNewLineOrDefaultFromHost:()=>ty,getNewTargetContainer:()=>Qie,getNextJSDocCommentLocation:()=>iU,getNodeForGeneratedName:()=>Sw,getNodeId:()=>fs,getNodeKind:()=>bE,getNodeModifiers:()=>gP,getNodeModulePathParts:()=>y7,getNonAssignedNameOfDeclaration:()=>M6,getNonAssignmentOperatorForCompoundAssignment:()=>ZC,getNonAugmentationDeclaration:()=>Oj,getNonDecoratorTokenPosOfNode:()=>Pj,getNormalizedAbsolutePath:()=>To,getNormalizedAbsolutePathWithoutRoot:()=>KV,getNormalizedPathComponents:()=>uL,getObjectFlags:()=>zr,getOperator:()=>vU,getOperatorAssociativity:()=>gU,getOperatorPrecedence:()=>Tk,getOptionFromName:()=>Sq,getOptionsForLibraryResolution:()=>jq,getOptionsNameMap:()=>dR,getOrCreateEmitNode:()=>Fu,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Ase,getOrUpdate:()=>AA,getOriginalNode:()=>Ol,getOriginalNodeId:()=>zu,getOriginalSourceFile:()=>vTe,getOutputDeclarationFileName:()=>lP,getOutputDeclarationFileNameWorker:()=>MJ,getOutputExtension:()=>AW,getOutputFileNames:()=>S2e,getOutputJSFileNameWorker:()=>LJ,getOutputPathsFor:()=>sP,getOutputPathsForBundle:()=>aP,getOwnEmitOutputFilePath:()=>hoe,getOwnKeys:()=>Yh,getOwnValues:()=>xA,getPackageJsonInfo:()=>fE,getPackageJsonTypesVersionsPaths:()=>X5,getPackageJsonsVisibleToFile:()=>Tde,getPackageNameFromTypesPackageName:()=>YC,getPackageScopeForPath:()=>Vw,getParameterSymbolFromJSDoc:()=>_k,getParameterTypeNode:()=>zTe,getParentNodeInSpan:()=>LO,getParseTreeNode:()=>Lo,getParsedCommandLineOfConfigFile:()=>Rw,getPathComponents:()=>Uc,getPathComponentsRelativeTo:()=>YV,getPathFromPathComponents:()=>Dy,getPathUpdater:()=>_Y,getPathsBasePath:()=>z3,getPatternFromSpec:()=>aae,getPendingEmitKind:()=>IR,getPositionOfLineAndCharacter:()=>_L,getPossibleGenericSignatures:()=>gX,getPossibleOriginalInputExtensionForExtension:()=>voe,getPossibleTypeArgumentsInfo:()=>vX,getPreEmitDiagnostics:()=>T2e,getPrecedingNonSpaceCharacterPosition:()=>LF,getPrivateIdentifier:()=>vJ,getProperties:()=>hJ,getProperty:()=>J8,getPropertyArrayElementValue:()=>Kie,getPropertyAssignmentAliasLikeExpression:()=>doe,getPropertyNameForPropertyNameNode:()=>PS,getPropertyNameForUniqueESSymbol:()=>hTe,getPropertyNameFromType:()=>um,getPropertyNameOfBindingOrAssignmentElement:()=>sq,getPropertySymbolFromBindingElement:()=>CF,getPropertySymbolsFromContextualType:()=>I9,getQuoteFromPreference:()=>CX,getQuotePreference:()=>uf,getRangesWhere:()=>yG,getRefactorContextSpan:()=>FI,getReferencedFileLocation:()=>uP,getRegexFromPattern:()=>Uy,getRegularExpressionForWildcard:()=>sC,getRegularExpressionsForWildcards:()=>l7,getRelativePathFromDirectory:()=>Im,getRelativePathFromFile:()=>pL,getRelativePathToDirectoryOrUrl:()=>MA,getRenameLocation:()=>OO,getReplacementSpanForContextToken:()=>SX,getResolutionDiagnostic:()=>iK,getResolutionModeOverride:()=>ER,getResolveJsonModule:()=>A0,getResolvePackageJsonExports:()=>R7,getResolvePackageJsonImports:()=>D7,getResolvedExternalModuleName:()=>O3,getRestIndicatorOfBindingOrAssignmentElement:()=>C5,getRestParameterElementType:()=>qj,getRightMostAssignedExpression:()=>ok,getRootDeclaration:()=>C_,getRootDirectoryOfResolutionCache:()=>rue,getRootLength:()=>_h,getRootPathSplitLength:()=>K2e,getScriptKind:()=>BX,getScriptKindFromFileName:()=>p7,getScriptTargetFeatures:()=>I7,getSelectedEffectiveModifierFlags:()=>KA,getSelectedSyntacticModifierFlags:()=>Doe,getSemanticClassifications:()=>Cde,getSemanticJsxChildren:()=>P2,getSetAccessorTypeAnnotationNode:()=>yoe,getSetAccessorValueParameter:()=>YN,getSetExternalModuleIndicator:()=>kk,getShebang:()=>N6,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>nU,getSingleVariableOfVariableStatement:()=>UA,getSnapshotText:()=>MR,getSnippetElement:()=>NH,getSourceFileOfModule:()=>e3,getSourceFileOfNode:()=>Jn,getSourceFilePathInNewDir:()=>B3,getSourceFilePathInNewDirWorker:()=>G3,getSourceFileVersionAsHashFromText:()=>XW,getSourceFilesToEmit:()=>AU,getSourceMapRange:()=>qv,getSourceMapper:()=>qde,getSourceTextOfNodeFromSourceFile:()=>W1,getSpanOfTokenAtPosition:()=>bh,getSpellingSuggestion:()=>cN,getStartPositionOfLine:()=>zy,getStartPositionOfRange:()=>nC,getStartsOnNewLine:()=>AC,getStaticPropertiesAndClassStaticBlock:()=>vW,getStrictOptionValue:()=>md,getStringComparer:()=>Ux,getSubPatternFromSpec:()=>c7,getSuperCallFromStatement:()=>hW,getSuperContainer:()=>$L,getSupportedCodeFixes:()=>t$,getSupportedExtensions:()=>lC,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>wk,getSwitchedType:()=>HX,getSymbolId:()=>Ia,getSymbolNameForPrivateIdentifier:()=>Ek,getSymbolTarget:()=>GX,getSyntacticClassifications:()=>Pde,getSyntacticModifierFlags:()=>Vy,getSyntacticModifierFlagsNoCache:()=>DU,getSynthesizedDeepClone:()=>pl,getSynthesizedDeepCloneWithReplacements:()=>wO,getSynthesizedDeepClones:()=>SE,getSynthesizedDeepClonesWithReplacements:()=>VX,getSyntheticLeadingComments:()=>K2,getSyntheticTrailingComments:()=>ew,getTargetLabel:()=>dF,getTargetOfBindingOrAssignmentElement:()=>tb,getTemporaryModuleResolutionState:()=>Gw,getTextOfConstantValue:()=>Nie,getTextOfIdentifierOrLiteral:()=>am,getTextOfJSDocComment:()=>RL,getTextOfJsxAttributeName:()=>Vk,getTextOfJsxNamespacedName:()=>bC,getTextOfNode:()=>bc,getTextOfNodeFromSourceText:()=>MN,getTextOfPropertyName:()=>f2,getThisContainer:()=>zd,getThisParameter:()=>J1,getTokenAtPosition:()=>go,getTokenPosOfNode:()=>_0,getTokenSourceMapRange:()=>dAe,getTouchingPropertyName:()=>jd,getTouchingToken:()=>PR,getTrailingCommentRanges:()=>a0,getTrailingSemicolonDeferringWriter:()=>SU,getTransformFlagsSubtreeExclusions:()=>Mae,getTransformers:()=>NJ,getTsBuildInfoEmitOutputFilePath:()=>$v,getTsConfigObjectLiteralExpression:()=>ON,getTsConfigPropArrayElementValue:()=>f3,getTypeAnnotationNode:()=>boe,getTypeArgumentOrTypeParameterList:()=>Zue,getTypeKeywordOfTypeOnlyImport:()=>PX,getTypeNode:()=>Gae,getTypeNodeIfAccessible:()=>IP,getTypeParameterFromJsDoc:()=>ooe,getTypeParameterOwner:()=>CSe,getTypesPackageName:()=>nW,getUILocale:()=>Kne,getUniqueName:()=>cT,getUniqueSymbolId:()=>_de,getUseDefineForClassFields:()=>TC,getWatchErrorSummaryDiagnosticMessage:()=>vK,getWatchFactory:()=>zJ,group:()=>lN,groupBy:()=>K8,guessIndentation:()=>gie,handleNoEmitOptions:()=>nK,hasAbstractModifier:()=>Y1,hasAccessorModifier:()=>P_,hasAmbientModifier:()=>RU,hasChangesInResolutions:()=>Dj,hasChildOfKind:()=>IO,hasContextSensitiveParameters:()=>g7,hasDecorators:()=>If,hasDocComment:()=>$ue,hasDynamicName:()=>Gy,hasEffectiveModifier:()=>bp,hasEffectiveModifiers:()=>j3,hasEffectiveReadonlyModifier:()=>$N,hasExtension:()=>PA,hasIndexSignature:()=>UX,hasInitializer:()=>Wy,hasInvalidEscape:()=>bU,hasJSDocNodes:()=>zp,hasJSDocParameterTags:()=>Gre,hasJSFileExtension:()=>$1,hasJsonModuleEmitEnabled:()=>r7,hasOnlyExpressionInitializer:()=>ES,hasOverrideModifier:()=>U3,hasPossibleExternalModuleReference:()=>kie,hasProperty:()=>Ls,hasPropertyAccessExpressionWithName:()=>bO,hasQuestionToken:()=>jA,hasRecordedExternalHelpers:()=>Tse,hasResolutionModeOverride:()=>Tae,hasRestParameter:()=>Aj,hasScopeMarker:()=>cie,hasStaticModifier:()=>Ec,hasSyntacticModifier:()=>Qr,hasSyntacticModifiers:()=>Roe,hasTSFileExtension:()=>eI,hasTabstop:()=>bae,hasTrailingDirectorySeparator:()=>kv,hasType:()=>K6,hasTypeArguments:()=>dTe,hasZeroOrOneAsteriskCharacter:()=>UU,helperString:()=>MH,hostGetCanonicalFileName:()=>Gv,hostUsesCaseSensitiveFileNames:()=>w2,idText:()=>Rr,identifierIsThisKeyword:()=>xU,identifierToKeywordKind:()=>u0,identity:()=>ol,identitySourceMapConsumer:()=>mW,ignoreSourceNewlines:()=>PH,ignoredPaths:()=>cL,importDefaultHelper:()=>n5,importFromModuleSpecifier:()=>BN,importNameElisionDisabled:()=>jU,importStarHelper:()=>nw,indexOfAnyCharCode:()=>Mo,indexOfNode:()=>p2,indicesOf:()=>YM,inferredTypesContainingFile:()=>AR,injectClassNamedEvaluationHelperBlockIfMissing:()=>EW,injectClassThisAssignmentIfMissing:()=>Qle,insertImports:()=>yP,insertLeadingStatement:()=>CAe,insertSorted:()=>Ay,insertStatementAfterCustomPrologue:()=>SS,insertStatementAfterStandardPrologue:()=>tTe,insertStatementsAfterCustomPrologue:()=>Nj,insertStatementsAfterStandardPrologue:()=>tg,intersperse:()=>Oi,intrinsicTagNameToString:()=>iH,introducesArgumentsExoticObject:()=>qie,inverseJsxOptionMap:()=>qC,isAbstractConstructorSymbol:()=>Uoe,isAbstractModifier:()=>$ae,isAccessExpression:()=>js,isAccessibilityModifier:()=>bX,isAccessor:()=>ky,isAccessorModifier:()=>Zae,isAliasSymbolDeclaration:()=>fTe,isAliasableExpression:()=>yk,isAmbientModule:()=>Ou,isAmbientPropertyDeclaration:()=>Fj,isAnonymousFunctionDefinition:()=>qN,isAnyDirectorySeparator:()=>HV,isAnyImportOrBareOrAccessedRequire:()=>Lie,isAnyImportOrReExport:()=>UL,isAnyImportSyntax:()=>TS,isAnySupportedFileExtension:()=>FTe,isApplicableVersionedTypesKey:()=>Uw,isArgumentExpressionOfElementAccess:()=>cX,isArray:()=>Do,isArrayBindingElement:()=>V6,isArrayBindingOrAssignmentElement:()=>kL,isArrayBindingOrAssignmentPattern:()=>vj,isArrayBindingPattern:()=>rE,isArrayLiteralExpression:()=>hd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Zv,isArrayTypeNode:()=>cw,isArrowFunction:()=>Ks,isAsExpression:()=>dw,isAssertClause:()=>ase,isAssertEntry:()=>SAe,isAssertionExpression:()=>bS,isAssertsKeyword:()=>Xae,isAssignmentDeclaration:()=>zN,isAssignmentExpression:()=>Wc,isAssignmentOperator:()=>Vv,isAssignmentPattern:()=>NN,isAssignmentTarget:()=>og,isAsteriskToken:()=>ow,isAsyncFunction:()=>UN,isAsyncModifier:()=>RC,isAutoAccessorPropertyDeclaration:()=>Fd,isAwaitExpression:()=>Qy,isAwaitKeyword:()=>zH,isBigIntLiteral:()=>c5,isBinaryExpression:()=>vr,isBinaryOperatorToken:()=>Mse,isBindableObjectDefinePropertyCall:()=>DS,isBindableStaticAccessExpression:()=>j1,isBindableStaticElementAccessExpression:()=>R3,isBindableStaticNameExpression:()=>NS,isBindingElement:()=>os,isBindingElementOfBareOrAccessedRequire:()=>toe,isBindingName:()=>vS,isBindingOrAssignmentElement:()=>rie,isBindingOrAssignmentPattern:()=>ML,isBindingPattern:()=>na,isBlock:()=>Yo,isBlockOrCatchScoped:()=>Mj,isBlockScope:()=>zj,isBlockScopedContainerTopLevel:()=>Mie,isBooleanLiteral:()=>DN,isBreakOrContinueStatement:()=>AN,isBreakStatement:()=>yAe,isBuildInfoFile:()=>xce,isBuilderProgram:()=>sue,isBundle:()=>qH,isBundleFileTextLike:()=>qoe,isCallChain:()=>hS,isCallExpression:()=>ca,isCallExpressionTarget:()=>rX,isCallLikeExpression:()=>O1,isCallLikeOrFunctionLikeExpression:()=>yj,isCallOrNewExpression:()=>I_,isCallOrNewExpressionTarget:()=>iX,isCallSignatureDeclaration:()=>pI,isCallToHelper:()=>xC,isCaseBlock:()=>kC,isCaseClause:()=>tR,isCaseKeyword:()=>ese,isCaseOrDefaultClause:()=>q6,isCatchClause:()=>uE,isCatchClauseVariableDeclaration:()=>yae,isCatchClauseVariableDeclarationOrBindingElement:()=>Lj,isCheckJsEnabledForFile:()=>Fk,isChildOfNodeWithKind:()=>rTe,isCircularBuildOrder:()=>LI,isClassDeclaration:()=>Nc,isClassElement:()=>nu,isClassExpression:()=>iu,isClassInstanceProperty:()=>tie,isClassLike:()=>di,isClassMemberModifier:()=>_j,isClassNamedEvaluationHelperBlock:()=>MI,isClassOrTypeElement:()=>G6,isClassStaticBlockDeclaration:()=>Pl,isClassThisAssignmentBlock:()=>tP,isCollapsedRange:()=>RTe,isColonToken:()=>Jae,isCommaExpression:()=>gw,isCommaListExpression:()=>PC,isCommaSequence:()=>zC,isCommaToken:()=>qae,isComment:()=>SF,isCommonJsExportPropertyAssignment:()=>d3,isCommonJsExportedExpression:()=>Uie,isCompoundAssignment:()=>QC,isComputedNonLiteralName:()=>HL,isComputedPropertyName:()=>ss,isConciseBody:()=>U6,isConditionalExpression:()=>eR,isConditionalTypeNode:()=>hI,isConstTypeReference:()=>Wg,isConstructSignatureDeclaration:()=>sw,isConstructorDeclaration:()=>Wl,isConstructorTypeNode:()=>Y2,isContextualKeyword:()=>M3,isContinueStatement:()=>vAe,isCustomPrologue:()=>XL,isDebuggerStatement:()=>bAe,isDeclaration:()=>Yu,isDeclarationBindingElement:()=>PL,isDeclarationFileName:()=>Iu,isDeclarationName:()=>Gg,isDeclarationNameOfEnumOrNamespace:()=>WU,isDeclarationReadonly:()=>s3,isDeclarationStatement:()=>fie,isDeclarationWithTypeParameterChildren:()=>Gj,isDeclarationWithTypeParameters:()=>Bj,isDecorator:()=>Au,isDecoratorTarget:()=>Fue,isDefaultClause:()=>OC,isDefaultImport:()=>VA,isDefaultModifier:()=>f5,isDefaultedExpandoInitializer:()=>noe,isDeleteExpression:()=>rse,isDeleteTarget:()=>sU,isDeprecatedDeclaration:()=>HF,isDestructuringAssignment:()=>jv,isDiagnosticWithLocation:()=>XX,isDiskPathRoot:()=>qV,isDoStatement:()=>hAe,isDocumentRegistryEntry:()=>jO,isDotDotDotToken:()=>d5,isDottedName:()=>ZN,isDynamicName:()=>k3,isESSymbolIdentifier:()=>gTe,isEffectiveExternalModule:()=>BA,isEffectiveModuleDeclaration:()=>Pie,isEffectiveStrictModeSourceFile:()=>Wj,isElementAccessChain:()=>lj,isElementAccessExpression:()=>el,isEmittedFileOfProgram:()=>Cce,isEmptyArrayLiteral:()=>woe,isEmptyBindingElement:()=>wre,isEmptyBindingPattern:()=>kre,isEmptyObjectLiteral:()=>LU,isEmptyStatement:()=>jH,isEmptyStringLiteral:()=>Xj,isEntityName:()=>ep,isEntityNameExpression:()=>Jl,isEnumConst:()=>z1,isEnumDeclaration:()=>x0,isEnumMember:()=>dE,isEqualityOperatorKind:()=>OF,isEqualsGreaterThanToken:()=>Kae,isExclamationToken:()=>aw,isExcludedFile:()=>qse,isExclusivelyTypeOnlyImportOrExport:()=>JJ,isExpandoPropertyDeclaration:()=>E7,isExportAssignment:()=>zl,isExportDeclaration:()=>rc,isExportModifier:()=>uI,isExportName:()=>R5,isExportNamespaceAsDefaultDeclaration:()=>r3,isExportOrDefaultModifier:()=>Ew,isExportSpecifier:()=>$u,isExportsIdentifier:()=>RS,isExportsOrModuleExportsOrAlias:()=>mE,isExpression:()=>bt,isExpressionNode:()=>rg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Vue,isExpressionOfOptionalChainRoot:()=>F6,isExpressionStatement:()=>ou,isExpressionWithTypeArguments:()=>Kv,isExpressionWithTypeArgumentsInClassExtendsClause:()=>H3,isExternalModule:()=>mc,isExternalModuleAugmentation:()=>F1,isExternalModuleImportEqualsDeclaration:()=>h0,isExternalModuleIndicator:()=>wL,isExternalModuleNameRelative:()=>tu,isExternalModuleReference:()=>Rh,isExternalModuleSymbol:()=>NO,isExternalOrCommonJsModule:()=>Bp,isFileLevelReservedGeneratedIdentifier:()=>CL,isFileLevelUniqueName:()=>t3,isFileProbablyExternalModule:()=>Aw,isFirstDeclarationOfSymbolParameter:()=>OX,isFixablePromiseHandler:()=>bY,isForInOrOfStatement:()=>s2,isForInStatement:()=>y5,isForInitializer:()=>Af,isForOfStatement:()=>pw,isForStatement:()=>HS,isFunctionBlock:()=>G1,isFunctionBody:()=>Ej,isFunctionDeclaration:()=>Dc,isFunctionExpression:()=>Us,isFunctionExpressionOrArrowFunction:()=>Z1,isFunctionLike:()=>ta,isFunctionLikeDeclaration:()=>Js,isFunctionLikeKind:()=>OA,isFunctionLikeOrClassStaticBlockDeclaration:()=>a2,isFunctionOrConstructorTypeNode:()=>nie,isFunctionOrModuleBlock:()=>hj,isFunctionSymbol:()=>ioe,isFunctionTypeNode:()=>Ah,isFutureReservedKeyword:()=>mTe,isGeneratedIdentifier:()=>ul,isGeneratedPrivateIdentifier:()=>gS,isGetAccessor:()=>Oy,isGetAccessorDeclaration:()=>rf,isGetOrSetAccessorDeclaration:()=>O6,isGlobalDeclaration:()=>nDe,isGlobalScopeAugmentation:()=>R_,isGrammarError:()=>xie,isHeritageClause:()=>of,isHoistedFunction:()=>c3,isHoistedVariableStatement:()=>u3,isIdentifier:()=>Ue,isIdentifierANonContextualKeyword:()=>pU,isIdentifierName:()=>uoe,isIdentifierOrThisTypeNode:()=>Dse,isIdentifierPart:()=>s0,isIdentifierStart:()=>Qh,isIdentifierText:()=>tf,isIdentifierTypePredicate:()=>Jie,isIdentifierTypeReference:()=>mae,isIfStatement:()=>US,isIgnoredFileFromWildCardWatching:()=>rO,isImplicitGlob:()=>JU,isImportAttribute:()=>sse,isImportAttributeName:()=>eie,isImportAttributes:()=>yI,isImportCall:()=>Gp,isImportClause:()=>Ih,isImportDeclaration:()=>Fc,isImportEqualsDeclaration:()=>au,isImportKeyword:()=>NC,isImportMeta:()=>h2,isImportOrExportSpecifier:()=>wA,isImportOrExportSpecifierName:()=>mde,isImportSpecifier:()=>rp,isImportTypeAssertionContainer:()=>EAe,isImportTypeNode:()=>dg,isImportableFile:()=>sY,isInComment:()=>Qv,isInCompoundLikeAssignment:()=>aU,isInExpressionContext:()=>b3,isInJSDoc:()=>tk,isInJSFile:()=>dr,isInJSXText:()=>Xue,isInJsonFile:()=>S3,isInNonReferenceComment:()=>nde,isInReferenceComment:()=>tde,isInRightSideOfInternalImportEqualsDeclaration:()=>cF,isInString:()=>wI,isInTemplateString:()=>hX,isInTopLevelContext:()=>h3,isInTypeQuery:()=>kS,isIncrementalCompilation:()=>SC,isIndexSignatureDeclaration:()=>nE,isIndexedAccessTypeNode:()=>jS,isInferTypeNode:()=>BS,isInfinityOrNaNString:()=>hC,isInitializedProperty:()=>Yw,isInitializedVariable:()=>Mk,isInsideJsxElement:()=>bF,isInsideJsxElementOrAttribute:()=>Kue,isInsideNodeModules:()=>BO,isInsideTemplateLiteral:()=>RO,isInstanceOfExpression:()=>q3,isInstantiatedModule:()=>iJ,isInterfaceDeclaration:()=>gd,isInternalDeclaration:()=>Ij,isInternalModuleImportEqualsDeclaration:()=>E2,isInternalName:()=>iq,isIntersectionTypeNode:()=>_I,isIntrinsicJsxName:()=>L2,isIterationStatement:()=>wy,isJSDoc:()=>r_,isJSDocAllType:()=>pse,isJSDocAugmentsTag:()=>TI,isJSDocAuthorTag:()=>xAe,isJSDocCallbackTag:()=>KH,isJSDocClassTag:()=>mse,isJSDocCommentContainingNode:()=>J6,isJSDocConstructSignature:()=>x2,isJSDocDeprecatedTag:()=>ZH,isJSDocEnumTag:()=>mw,isJSDocFunctionType:()=>rR,isJSDocImplementsTag:()=>A5,isJSDocIndexSignature:()=>T3,isJSDocLikeText:()=>fq,isJSDocLink:()=>use,isJSDocLinkCode:()=>dse,isJSDocLinkLike:()=>zA,isJSDocLinkPlain:()=>AAe,isJSDocMemberName:()=>R0,isJSDocNameReference:()=>WC,isJSDocNamepathType:()=>IAe,isJSDocNamespaceBody:()=>XSe,isJSDocNode:()=>l2,isJSDocNonNullableType:()=>b5,isJSDocNullableType:()=>nR,isJSDocOptionalParameter:()=>Gk,isJSDocOptionalType:()=>JH,isJSDocOverloadTag:()=>iR,isJSDocOverrideTag:()=>S5,isJSDocParameterTag:()=>i_,isJSDocPrivateTag:()=>YH,isJSDocPropertyLikeTag:()=>IN,isJSDocPropertyTag:()=>_se,isJSDocProtectedTag:()=>$H,isJSDocPublicTag:()=>XH,isJSDocReadonlyTag:()=>QH,isJSDocReturnTag:()=>T5,isJSDocSatisfiesExpression:()=>nH,isJSDocSatisfiesTag:()=>I5,isJSDocSeeTag:()=>RAe,isJSDocSignature:()=>D0,isJSDocTag:()=>c2,isJSDocTemplateTag:()=>fm,isJSDocThisTag:()=>eq,isJSDocThrowsTag:()=>NAe,isJSDocTypeAlias:()=>om,isJSDocTypeAssertion:()=>aR,isJSDocTypeExpression:()=>pE,isJSDocTypeLiteral:()=>XS,isJSDocTypeTag:()=>FC,isJSDocTypedefTag:()=>YS,isJSDocUnknownTag:()=>DAe,isJSDocUnknownType:()=>fse,isJSDocVariadicType:()=>E5,isJSXTagName:()=>b2,isJsonEqual:()=>_7,isJsonSourceFile:()=>im,isJsxAttribute:()=>F_,isJsxAttributeLike:()=>H6,isJsxAttributeName:()=>Sae,isJsxAttributes:()=>cE,isJsxChild:()=>FL,isJsxClosingElement:()=>sE,isJsxClosingFragment:()=>lse,isJsxElement:()=>pg,isJsxExpression:()=>wC,isJsxFragment:()=>lE,isJsxNamespacedName:()=>n_,isJsxOpeningElement:()=>W_,isJsxOpeningFragment:()=>EI,isJsxOpeningLikeElement:()=>dd,isJsxOpeningLikeElementTagName:()=>zue,isJsxSelfClosingElement:()=>JS,isJsxSpreadAttribute:()=>SI,isJsxTagNameExpression:()=>CN,isJsxText:()=>sI,isJumpStatementTarget:()=>EO,isKeyword:()=>Gd,isKeywordOrPunctuation:()=>P3,isKnownSymbol:()=>Sk,isLabelName:()=>sX,isLabelOfLabeledStatement:()=>aX,isLabeledStatement:()=>aE,isLateVisibilityPaintedStatement:()=>o3,isLeftHandSideExpression:()=>tp,isLeftHandSideOfAssignment:()=>xTe,isLet:()=>l3,isLineBreak:()=>Ku,isLiteralComputedPropertyDeclarationName:()=>vk,isLiteralExpression:()=>w1,isLiteralExpressionOfObject:()=>fj,isLiteralImportTypeNode:()=>By,isLiteralKind:()=>xN,isLiteralLikeAccess:()=>x3,isLiteralLikeElementAccess:()=>ak,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>pF,isLiteralTypeLikeExpression:()=>wAe,isLiteralTypeLiteral:()=>sie,isLiteralTypeNode:()=>$y,isLocalName:()=>Jg,isLogicalOperator:()=>Moe,isLogicalOrCoalescingAssignmentExpression:()=>NU,isLogicalOrCoalescingAssignmentOperator:()=>QN,isLogicalOrCoalescingBinaryExpression:()=>Dk,isLogicalOrCoalescingBinaryOperator:()=>Rk,isMappedTypeNode:()=>Q2,isMemberName:()=>Zh,isMetaProperty:()=>CC,isMethodDeclaration:()=>Ql,isMethodOrAccessor:()=>WA,isMethodSignature:()=>Th,isMinusToken:()=>FH,isMissingDeclaration:()=>TAe,isMissingPackageJsonInfo:()=>cle,isModifier:()=>Ra,isModifierKind:()=>Wv,isModifierLike:()=>dl,isModuleAugmentationExternal:()=>wj,isModuleBlock:()=>O_,isModuleBody:()=>uie,isModuleDeclaration:()=>nc,isModuleExportsAccessExpression:()=>ig,isModuleIdentifier:()=>eU,isModuleName:()=>Pse,isModuleOrEnumDeclaration:()=>OL,isModuleReference:()=>_ie,isModuleSpecifierLike:()=>NF,isModuleWithStringLiteralName:()=>i3,isNameOfFunctionDeclaration:()=>dX,isNameOfModuleDeclaration:()=>uX,isNamedClassElement:()=>USe,isNamedDeclaration:()=>cd,isNamedEvaluation:()=>yp,isNamedEvaluationSource:()=>fU,isNamedExportBindings:()=>uj,isNamedExports:()=>Pf,isNamedImportBindings:()=>Sj,isNamedImports:()=>qg,isNamedImportsOrExports:()=>Z3,isNamedTupleMember:()=>$2,isNamespaceBody:()=>KSe,isNamespaceExport:()=>xh,isNamespaceExportDeclaration:()=>fw,isNamespaceImport:()=>eb,isNamespaceReexportDeclaration:()=>eoe,isNewExpression:()=>iE,isNewExpressionTarget:()=>_P,isNoSubstitutionTemplateLiteral:()=>lI,isNode:()=>VSe,isNodeArray:()=>k1,isNodeArrayMultiLine:()=>Goe,isNodeDescendantOf:()=>U1,isNodeKind:()=>DL,isNodeLikeSystem:()=>kG,isNodeModulesDirectory:()=>A6,isNodeWithPossibleHoistedDeclaration:()=>soe,isNonContextualKeyword:()=>dU,isNonExportDefaultModifier:()=>WAe,isNonGlobalAmbientModule:()=>kj,isNonGlobalDeclaration:()=>Nde,isNonNullAccess:()=>Eae,isNonNullChain:()=>z6,isNonNullExpression:()=>vI,isNonStaticMethodOrAccessorWithPrivateName:()=>jle,isNotEmittedOrPartiallyEmittedNode:()=>JSe,isNotEmittedStatement:()=>HH,isNullishCoalesce:()=>cj,isNumber:()=>Cv,isNumericLiteral:()=>Ep,isNumericLiteralName:()=>ug,isObjectBindingElementWithoutPropertyName:()=>MO,isObjectBindingOrAssignmentElement:()=>LL,isObjectBindingOrAssignmentPattern:()=>gj,isObjectBindingPattern:()=>pm,isObjectLiteralElement:()=>Tj,isObjectLiteralElementLike:()=>Fg,isObjectLiteralExpression:()=>za,isObjectLiteralMethod:()=>Cm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>p3,isObjectTypeDeclaration:()=>$A,isOctalDigit:()=>D6,isOmittedExpression:()=>Kc,isOptionalChain:()=>Xu,isOptionalChainRoot:()=>SN,isOptionalDeclaration:()=>vC,isOptionalJSDocPropertyLikeTag:()=>Bk,isOptionalTypeNode:()=>m5,isOuterExpression:()=>N5,isOutermostOptionalChain:()=>TN,isOverrideModifier:()=>Qae,isPackageJsonInfo:()=>$5,isPackedArrayLiteral:()=>eH,isParameter:()=>No,isParameterDeclaration:()=>q1,isParameterPropertyDeclaration:()=>gp,isParameterPropertyModifier:()=>RN,isParenthesizedExpression:()=>Vd,isParenthesizedTypeNode:()=>GS,isParseTreeNode:()=>EN,isPartOfTypeNode:()=>ng,isPartOfTypeQuery:()=>E3,isPartiallyEmittedExpression:()=>v5,isPatternMatch:()=>Q8,isPinnedComment:()=>n3,isPlainJsFile:()=>GL,isPlusToken:()=>WH,isPossiblyTypeArgumentPosition:()=>xO,isPostfixUnaryExpression:()=>GH,isPrefixUnaryExpression:()=>Zy,isPrivateIdentifier:()=>Qi,isPrivateIdentifierClassElementDeclaration:()=>ud,isPrivateIdentifierPropertyAccessExpression:()=>o2,isPrivateIdentifierSymbol:()=>poe,isProgramBundleEmitBuildInfo:()=>qce,isProgramUptoDate:()=>eK,isPrologueDirective:()=>Nm,isPropertyAccessChain:()=>W6,isPropertyAccessEntityNameExpression:()=>Nk,isPropertyAccessExpression:()=>Br,isPropertyAccessOrQualifiedName:()=>oie,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>iie,isPropertyAssignment:()=>Tc,isPropertyDeclaration:()=>qo,isPropertyName:()=>pc,isPropertyNameLiteral:()=>N_,isPropertySignature:()=>Sp,isProtoSetter:()=>foe,isPrototypeAccess:()=>jy,isPrototypePropertyAssignment:()=>ck,isPunctuation:()=>uU,isPushOrUnshiftIdentifier:()=>mU,isQualifiedName:()=>xd,isQuestionDotToken:()=>p5,isQuestionOrExclamationToken:()=>Rse,isQuestionOrPlusOrMinusToken:()=>Cse,isQuestionToken:()=>Xy,isRawSourceMap:()=>zle,isReadonlyKeyword:()=>Yae,isReadonlyKeywordOrPlusOrMinusToken:()=>Nse,isRecognizedTripleSlashComment:()=>Cj,isReferenceFileLocation:()=>SR,isReferencedFile:()=>w0,isRegularExpressionLiteral:()=>wH,isRequireCall:()=>Ad,isRequireVariableStatement:()=>Qj,isRestParameter:()=>eg,isRestTypeNode:()=>_5,isReturnStatement:()=>Mm,isReturnStatementWithFixablePromiseHandler:()=>t9,isRightSideOfAccessExpression:()=>MU,isRightSideOfInstanceofExpression:()=>koe,isRightSideOfPropertyAccess:()=>NR,isRightSideOfQualifiedName:()=>Gue,isRightSideOfQualifiedNameOrPropertyAccess:()=>eC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Loe,isRootedDiskPath:()=>hp,isSameEntityName:()=>S2,isSatisfiesExpression:()=>VH,isScopeMarker:()=>lie,isSemicolonClassElement:()=>ise,isSetAccessor:()=>Fv,isSetAccessorDeclaration:()=>Tp,isShebangTrivia:()=>$V,isShiftOperatorOrHigher:()=>uq,isShorthandAmbientModuleSymbol:()=>LN,isShorthandPropertyAssignment:()=>ip,isSignedNumericLiteral:()=>L3,isSimpleCopiableExpression:()=>hE,isSimpleInlineableExpression:()=>z_,isSimpleParameter:()=>Kle,isSimpleParameterList:()=>$w,isSingleOrDoubleQuote:()=>nk,isSourceFile:()=>io,isSourceFileFromLibrary:()=>WR,isSourceFileJS:()=>pd,isSourceFileNotJS:()=>aTe,isSourceFileNotJson:()=>$j,isSourceMapping:()=>Ble,isSpecialPropertyDeclaration:()=>roe,isSpreadAssignment:()=>Xv,isSpreadElement:()=>t_,isStatement:()=>$i,isStatementButNotDeclaration:()=>WL,isStatementOrBlock:()=>mie,isStatementWithLocals:()=>Iie,isStatic:()=>la,isStaticModifier:()=>dI,isString:()=>wo,isStringAKeyword:()=>_Te,isStringANonContextualKeyword:()=>qA,isStringAndEmptyAnonymousObjectIntersection:()=>ede,isStringDoubleQuoted:()=>I3,isStringLiteral:()=>La,isStringLiteralLike:()=>hs,isStringLiteralOrJsxExpression:()=>hie,isStringLiteralOrTemplate:()=>bde,isStringOrNumericLiteralLike:()=>nf,isStringOrRegularExpressionOrTemplateLiteral:()=>yX,isStringTextContainingNode:()=>mj,isSuperCall:()=>IS,isSuperKeyword:()=>DC,isSuperOrSuperProperty:()=>oTe,isSuperProperty:()=>Bd,isSupportedSourceFileName:()=>uae,isSwitchStatement:()=>LC,isSyntaxList:()=>oR,isSyntheticExpression:()=>_Ae,isSyntheticReference:()=>bI,isTagName:()=>lX,isTaggedTemplateExpression:()=>oE,isTaggedTemplateTag:()=>Wue,isTemplateExpression:()=>h5,isTemplateHead:()=>cI,isTemplateLiteral:()=>FA,isTemplateLiteralKind:()=>Ly,isTemplateLiteralToken:()=>Qre,isTemplateLiteralTypeNode:()=>tse,isTemplateLiteralTypeSpan:()=>BH,isTemplateMiddle:()=>OH,isTemplateMiddleOrTemplateTail:()=>B6,isTemplateSpan:()=>MC,isTemplateTail:()=>u5,isTextWhiteSpaceLike:()=>ade,isThis:()=>CR,isThisContainerOrFunctionBlock:()=>$ie,isThisIdentifier:()=>X1,isThisInTypeQuery:()=>JA,isThisInitializedDeclaration:()=>g3,isThisInitializedObjectBindingExpression:()=>Zie,isThisProperty:()=>QL,isThisTypeNode:()=>uw,isThisTypeParameter:()=>gC,isThisTypePredicate:()=>iTe,isThrowStatement:()=>UH,isToken:()=>kA,isTokenKind:()=>pj,isTraceEnabled:()=>Kg,isTransientSymbol:()=>gh,isTrivia:()=>C2,isTryStatement:()=>qS,isTupleTypeNode:()=>mI,isTypeAlias:()=>pk,isTypeAliasDeclaration:()=>Lm,isTypeAssertionExpression:()=>nse,isTypeDeclaration:()=>H2,isTypeElement:()=>yS,isTypeKeyword:()=>vP,isTypeKeywordToken:()=>IX,isTypeKeywordTokenOrIdentifier:()=>IF,isTypeLiteralNode:()=>Ap,isTypeNode:()=>Xi,isTypeNodeKind:()=>BU,isTypeOfExpression:()=>Z2,isTypeOnlyExportDeclaration:()=>Zre,isTypeOnlyImportDeclaration:()=>NL,isTypeOnlyImportOrExportDeclaration:()=>m0,isTypeOperatorNode:()=>VS,isTypeParameterDeclaration:()=>El,isTypePredicateNode:()=>lw,isTypeQueryNode:()=>fI,isTypeReferenceNode:()=>Cf,isTypeReferenceType:()=>X6,isTypeUsableAsPropertyName:()=>cm,isUMDExportSymbol:()=>Q3,isUnaryExpression:()=>bj,isUnaryExpressionWithWrite:()=>aie,isUnicodeIdentifierStart:()=>x6,isUnionTypeNode:()=>Yy,isUnparsedNode:()=>dj,isUnparsedPrepend:()=>cse,isUnparsedSource:()=>KS,isUnparsedTextLike:()=>$re,isUrl:()=>vre,isValidBigIntString:()=>h7,isValidESSymbolDeclaration:()=>Hie,isValidTypeOnlyAliasUseSite:()=>T0,isValueSignatureDeclaration:()=>loe,isVarAwaitUsing:()=>JL,isVarConst:()=>_2,isVarUsing:()=>KL,isVariableDeclaration:()=>Wi,isVariableDeclarationInVariableStatement:()=>wN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>V1,isVariableDeclarationInitializedToRequire:()=>A3,isVariableDeclarationList:()=>Xc,isVariableLike:()=>g2,isVariableLikeOrAccessor:()=>jie,isVariableStatement:()=>Fl,isVoidExpression:()=>gI,isWatchSet:()=>NTe,isWhileStatement:()=>gAe,isWhiteSpaceLike:()=>Og,isWhiteSpaceSingleLine:()=>A_,isWithStatement:()=>ose,isWriteAccess:()=>YA,isWriteOnlyAccess:()=>$3,isYieldExpression:()=>g5,jsxModeNeedsExplicitImport:()=>eY,keywordPart:()=>xp,last:()=>rs,lastOrUndefined:()=>il,length:()=>Pe,libMap:()=>G5,libs:()=>Lw,lineBreakPart:()=>wR,linkNamePart:()=>pde,linkPart:()=>FX,linkTextPart:()=>MF,listFiles:()=>yK,loadModuleFromGlobalCache:()=>yle,loadWithModeAwareCache:()=>sO,makeIdentifierFromModuleName:()=>Cie,makeImport:()=>ey,makeImportIfNecessary:()=>ode,makeStringLiteral:()=>WI,mangleScopedPackageName:()=>gR,map:()=>Wt,mapAllOrFail:()=>SA,mapDefined:()=>Vi,mapDefinedEntries:()=>Gx,mapDefinedIterator:()=>TA,mapEntries:()=>zne,mapIterator:()=>Xo,mapOneOrMany:()=>$X,mapToDisplayParts:()=>ab,matchFiles:()=>KU,matchPatternOrExact:()=>XU,matchedText:()=>Zne,matchesExclude:()=>B5,maybeBind:()=>aa,maybeSetLocalizedDiagnosticMessages:()=>Qoe,memoize:()=>Td,memoizeCached:()=>qne,memoizeOne:()=>fh,memoizeWeak:()=>OEe,metadataHelper:()=>W7,min:()=>NG,minAndMax:()=>pae,missingFileModifiedTime:()=>Wp,modifierToFlag:()=>XA,modifiersToFlags:()=>M_,moduleOptionDeclaration:()=>Cq,moduleResolutionIsEqualTo:()=>Tie,moduleResolutionNameAndModeGetter:()=>zW,moduleResolutionOptionDeclarations:()=>V5,moduleResolutionSupportsPackageJsonExportsAndImports:()=>ZA,moduleResolutionUsesNodeModules:()=>xF,moduleSpecifiers:()=>_E,moveEmitHelpers:()=>zae,moveRangeEnd:()=>X3,moveRangePastDecorators:()=>Vg,moveRangePastModifiers:()=>L_,moveRangePos:()=>E0,moveSyntheticComments:()=>Oae,mutateMap:()=>oC,mutateMapSkippingNewValues:()=>lg,needsParentheses:()=>kF,needsScopeMarker:()=>j6,newCaseClauseTracker:()=>KF,newPrivateEnvironment:()=>qle,noEmitNotification:()=>Qw,noEmitSubstitution:()=>iP,noTransformers:()=>CJ,noTruncationMaximumTruncationLength:()=>A7,nodeCanBeDecorated:()=>y3,nodeHasName:()=>AL,nodeIsDecorated:()=>y2,nodeIsMissing:()=>Hl,nodeIsPresent:()=>nm,nodeIsSynthesized:()=>Zs,nodeModuleNameResolver:()=>fle,nodeModulesPathPart:()=>Nh,nodeNextJsonConfigResolver:()=>mle,nodeOrChildIsDecorated:()=>ek,nodeOverlapsWithStartEnd:()=>fF,nodePosToString:()=>$Se,nodeSeenTracker:()=>OI,nodeStartsNewLexicalEnvironment:()=>_U,nodeToDisplayParts:()=>YRe,noop:()=>is,noopFileWatcher:()=>RR,normalizePath:()=>va,normalizeSlashes:()=>wu,not:()=>e6,notImplemented:()=>Ko,notImplementedResolver:()=>DW,nullNodeConverters:()=>SH,nullParenthesizerRules:()=>EH,nullTransformationContext:()=>oP,objectAllocator:()=>pu,operatorPart:()=>EP,optionDeclarations:()=>fg,optionMapToObject:()=>W5,optionsAffectingProgramStructure:()=>wq,optionsForBuild:()=>Wq,optionsForWatch:()=>pR,optionsHaveChanges:()=>u2,optionsHaveModuleResolutionChanges:()=>bie,or:()=>$m,orderedRemoveItem:()=>qx,orderedRemoveItemAt:()=>xy,outFile:()=>Bs,packageIdToPackageName:()=>Z6,packageIdToString:()=>Fy,paramHelper:()=>F7,parameterIsThisKeyword:()=>K1,parameterNamePart:()=>lde,parseBaseNodeFactory:()=>vq,parseBigInt:()=>fae,parseBuildCommand:()=>_Ie,parseCommandLine:()=>fIe,parseCommandLineWorker:()=>Eq,parseConfigFileTextToJson:()=>Tq,parseConfigFileWithSystem:()=>Y2e,parseConfigHostFromCompilerHostLike:()=>FW,parseCustomTypeOption:()=>O5,parseIsolatedEntityName:()=>II,parseIsolatedJSDocComment:()=>Fse,parseJSDocTypeExpressionForTests:()=>eIe,parseJsonConfigFileContent:()=>NIe,parseJsonSourceFileConfigFileContent:()=>Cw,parseJsonText:()=>xw,parseListTypeOption:()=>Bse,parseNodeFactory:()=>Dh,parseNodeModuleFromPath:()=>Bw,parsePackageName:()=>jw,parsePseudoBigInt:()=>pC,parseValidBigInt:()=>ZU,patchWriteFileEnsuringDirectory:()=>hre,pathContainsNodeModules:()=>L0,pathIsAbsolute:()=>mN,pathIsBareSpecifier:()=>JV,pathIsRelative:()=>Fp,patternText:()=>Qne,perfLogger:()=>sd,performIncrementalCompilation:()=>eRe,performance:()=>ure,plainJSErrors:()=>BW,positionBelongsToNode:()=>fX,positionIsASICandidate:()=>FF,positionIsSynthesized:()=>e_,positionsAreOnSameLine:()=>Rf,preProcessFile:()=>TDe,probablyUsesSemicolons:()=>FO,processCommentPragmas:()=>hq,processPragmasIntoFields:()=>gq,processTaggedTemplateExpression:()=>TJ,programContainsEsModules:()=>ide,programContainsModules:()=>rde,projectReferenceIsEqualTo:()=>Rj,propKeyHelper:()=>$7,propertyNamePart:()=>cde,pseudoBigIntToString:()=>Q1,punctuationPart:()=>ed,pushIfUnique:()=>Tf,quote:()=>AP,quotePreferenceFromString:()=>NX,rangeContainsPosition:()=>SO,rangeContainsPositionExclusive:()=>TO,rangeContainsRange:()=>cf,rangeContainsRangeExclusive:()=>jue,rangeContainsStartEnd:()=>AO,rangeEndIsOnSameLineAsRangeStart:()=>Pk,rangeEndPositionsAreOnSameLine:()=>zoe,rangeEquals:()=>SG,rangeIsOnSingleLine:()=>OS,rangeOfNode:()=>$U,rangeOfTypeParameters:()=>QU,rangeOverlapsWithStartEnd:()=>hP,rangeStartIsOnSameLineAsRangeEnd:()=>Boe,rangeStartPositionsAreOnSameLine:()=>Y3,readBuilderProgram:()=>QW,readConfigFile:()=>Dw,readHelper:()=>X7,readJson:()=>tC,readJsonConfigFile:()=>jse,readJsonOrUndefined:()=>kU,reduceEachLeadingCommentRange:()=>Are,reduceEachTrailingCommentRange:()=>Ire,reduceLeft:()=>ad,reduceLeftIterator:()=>Fn,reducePathComponents:()=>_S,refactor:()=>BI,regExpEscape:()=>OTe,relativeComplement:()=>Bne,removeAllComments:()=>Qk,removeEmitHelper:()=>pAe,removeExtension:()=>Wk,removeFileExtension:()=>Id,removeIgnoredPath:()=>jW,removeMinAndVersionNumbers:()=>CG,removeOptionality:()=>Yue,removePrefix:()=>uN,removeSuffix:()=>Hx,removeTrailingDirectorySeparator:()=>o0,repeatString:()=>CO,replaceElement:()=>IG,replaceFirstStar:()=>nI,resolutionExtensionIsTSOrJson:()=>cC,resolveConfigFileProjectName:()=>CK,resolveJSModule:()=>dle,resolveLibrary:()=>Z5,resolveModuleName:()=>_R,resolveModuleNameFromCache:()=>pxe,resolvePackageNameToPackageJson:()=>Bq,resolvePath:()=>Ny,resolveProjectReferencePath:()=>TR,resolveTripleslashReference:()=>MW,resolveTypeReferenceDirective:()=>sle,resolvingEmptyArray:()=>T7,restHelper:()=>H7,returnFalse:()=>Ym,returnNoopFileWatcher:()=>DR,returnTrue:()=>Pv,returnUndefined:()=>r0,returnsPromise:()=>yY,runInitializersHelper:()=>B7,sameFlatMap:()=>D1,sameMap:()=>mo,sameMapping:()=>Zxe,scanShebangTrivia:()=>QV,scanTokenAtPosition:()=>Bie,scanner:()=>td,screenStartingMessageCodes:()=>$W,semanticDiagnosticsOptionDeclarations:()=>Mq,serializeCompilerOptions:()=>F5,server:()=>y4e,servicesVersion:()=>$pe,setCommentRange:()=>fc,setConfigFileInOptions:()=>Dq,setConstantValue:()=>Fae,setEachParent:()=>U2,setEmitFlags:()=>hr,setFunctionNameHelper:()=>Q7,setGetSourceFileAsHashVersioned:()=>YW,setIdentifierAutoGenerate:()=>tw,setIdentifierGeneratedImportReference:()=>Vae,setIdentifierTypeArguments:()=>Jv,setInternalEmitFlags:()=>Zk,setLocalizedDiagnosticMessages:()=>$oe,setModuleDefaultHelper:()=>t5,setNodeFlags:()=>hae,setObjectAllocator:()=>Yoe,setOriginalNode:()=>kr,setParent:()=>Qa,setParentRecursive:()=>Hy,setPrivateIdentifier:()=>eT,setSnippetElement:()=>CH,setSourceMapRange:()=>Ma,setStackTraceLimit:()=>rSe,setStartsOnNewLine:()=>L7,setSyntheticLeadingComments:()=>I0,setSyntheticTrailingComments:()=>iI,setSys:()=>lSe,setSysLog:()=>mre,setTextRange:()=>ut,setTextRangeEnd:()=>j2,setTextRangePos:()=>fC,setTextRangePosEnd:()=>Eh,setTextRangePosWidth:()=>mC,setTokenSourceMapRange:()=>wae,setTypeNode:()=>Bae,setUILocale:()=>Xne,setValueDeclaration:()=>uk,shouldAllowImportingTsExtension:()=>vR,shouldPreserveConstEnums:()=>tE,shouldUseUriStyleNodeCoreModules:()=>qF,showModuleSpecifier:()=>Hoe,signatureHasLiteralTypes:()=>oJ,signatureHasRestParameter:()=>Zu,signatureToDisplayParts:()=>zX,single:()=>AG,singleElementArray:()=>NA,singleIterator:()=>Fne,singleOrMany:()=>dh,singleOrUndefined:()=>uh,skipAlias:()=>Tu,skipAssertions:()=>MAe,skipConstraint:()=>xX,skipOuterExpressions:()=>ic,skipParentheses:()=>Ss,skipPartiallyEmittedExpressions:()=>Rm,skipTrivia:()=>Wa,skipTypeChecking:()=>dC,skipTypeParentheses:()=>gk,skipWhile:()=>tre,sliceAfter:()=>YU,some:()=>St,sort:()=>uS,sortAndDeduplicate:()=>aN,sortAndDeduplicateDiagnostics:()=>t2,sourceFileAffectingCompilerOptions:()=>j5,sourceFileMayBeEmitted:()=>MS,sourceMapCommentRegExp:()=>pW,sourceMapCommentRegExpDontCareLineStart:()=>fJ,spacePart:()=>Bl,spanMap:()=>vG,spreadArrayHelper:()=>Y7,stableSort:()=>Dv,startEndContainsRange:()=>pX,startEndOverlapsWithStartEnd:()=>mF,startOnNewLine:()=>Qu,startTracing:()=>dre,startsWith:()=>ho,startsWithDirectory:()=>XV,startsWithUnderscore:()=>ZX,startsWithUseStrict:()=>Ese,stringContainsAt:()=>Dde,stringToToken:()=>M1,stripQuotes:()=>sm,supportedDeclarationExtensions:()=>qk,supportedJSExtensions:()=>vH,supportedJSExtensionsFlat:()=>J2,supportedLocaleDirectories:()=>xj,supportedTSExtensions:()=>q2,supportedTSExtensionsFlat:()=>gH,supportedTSImplementationExtensions:()=>Jk,suppressLeadingAndTrailingTrivia:()=>Rp,suppressLeadingTrivia:()=>jX,suppressTrailingTrivia:()=>gde,symbolEscapedNameNoDefault:()=>DF,symbolName:()=>Il,symbolNameNoDefault:()=>RF,symbolPart:()=>sde,symbolToDisplayParts:()=>SP,syntaxMayBeASICandidate:()=>oY,syntaxRequiresTrailingSemicolonOrASI:()=>WF,sys:()=>bu,sysLog:()=>sL,tagNamesAreEquivalent:()=>C0,takeWhile:()=>n6,targetOptionDeclaration:()=>ww,templateObjectHelper:()=>K7,testFormatSettings:()=>Oue,textChangeRangeIsUnchanged:()=>Mre,textChangeRangeNewSpan:()=>bN,textChanges:()=>yr,textOrKeywordPart:()=>WX,textPart:()=>df,textRangeContainsPositionInclusive:()=>EL,textSpanContainsPosition:()=>tj,textSpanContainsTextSpan:()=>Dre,textSpanEnd:()=>tc,textSpanIntersection:()=>Pre,textSpanIntersectsWith:()=>P6,textSpanIntersectsWithPosition:()=>Cre,textSpanIntersectsWithTextSpan:()=>NSe,textSpanIsEmpty:()=>Rre,textSpanOverlap:()=>Nre,textSpanOverlapsWith:()=>DSe,textSpansEqual:()=>kR,textToKeywordObj:()=>yL,timestamp:()=>Qs,toArray:()=>RA,toBuilderFileEmit:()=>Xce,toBuilderStateFileInfoForMultiEmit:()=>Kce,toEditorSettings:()=>r4,toFileNameLowerCase:()=>ph,toLowerCase:()=>Hne,toPath:()=>ll,toProgramEmitPending:()=>Yce,tokenIsIdentifierOrKeyword:()=>ld,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Sre,tokenToString:()=>ma,trace:()=>xo,tracing:()=>ur,tracingEnabled:()=>rL,transform:()=>ECe,transformClassFields:()=>rce,transformDeclarations:()=>DJ,transformECMAScriptModule:()=>RJ,transformES2015:()=>vce,transformES2016:()=>gce,transformES2017:()=>sce,transformES2018:()=>lce,transformES2019:()=>cce,transformES2020:()=>uce,transformES2021:()=>dce,transformES5:()=>yce,transformESDecorators:()=>ace,transformESNext:()=>pce,transformGenerators:()=>bce,transformJsx:()=>hce,transformLegacyDecorators:()=>oce,transformModule:()=>xJ,transformNamedEvaluation:()=>Ip,transformNodeModule:()=>Sce,transformNodes:()=>Zw,transformSystemModule:()=>Ece,transformTypeScript:()=>nce,transpile:()=>PDe,transpileModule:()=>Jde,transpileOptionValueCompilerOptions:()=>Oq,tryAddToSet:()=>Rv,tryAndIgnoreErrors:()=>GF,tryCast:()=>ni,tryDirectoryExists:()=>BF,tryExtractTSExtension:()=>J3,tryFileExists:()=>zO,tryGetClassExtendingExpressionWithTypeArguments:()=>CU,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>PU,tryGetDirectories:()=>zF,tryGetExtensionFromPath:()=>Ug,tryGetImportFromModuleSpecifier:()=>dk,tryGetJSDocSatisfiesTypeNode:()=>b7,tryGetModuleNameFromFile:()=>yw,tryGetModuleSpecifierFromDeclaration:()=>T2,tryGetNativePerformanceHooks:()=>sre,tryGetPropertyAccessOrIdentifierToString:()=>Ck,tryGetPropertyNameOfBindingOrAssignmentElement:()=>P5,tryGetSourceMappingURL:()=>Fle,tryGetTextOfPropertyName:()=>kN,tryIOAndConsumeErrors:()=>VF,tryParseJson:()=>K3,tryParsePattern:()=>V2,tryParsePatterns:()=>f7,tryParseRawSourceMap:()=>dJ,tryReadDirectory:()=>qX,tryReadFile:()=>jC,tryRemoveDirectoryPrefix:()=>qU,tryRemoveExtension:()=>dae,tryRemovePrefix:()=>LG,tryRemoveSuffix:()=>$ne,typeAcquisitionDeclarations:()=>Ow,typeAliasNamePart:()=>ude,typeDirectiveIsEqualTo:()=>Aie,typeKeywords:()=>XF,typeParameterNamePart:()=>dde,typeToDisplayParts:()=>kO,unchangedPollThresholds:()=>lL,unchangedTextChangeRange:()=>zL,unescapeLeadingUnderscores:()=>Ki,unmangleScopedPackageName:()=>Hw,unorderedRemoveItem:()=>DA,unorderedRemoveItemAt:()=>PG,unreachableCodeIsError:()=>eae,unusedLabelIsError:()=>tae,unwrapInnermostStatementOfLabel:()=>Jj,updateErrorForNoInputFiles:()=>z5,updateLanguageServiceSourceFile:()=>n$,updateMissingFilePathsWatch:()=>FJ,updateResolutionField:()=>fR,updateSharedExtendedConfigFileWatcher:()=>CW,updateSourceFile:()=>mq,updateWatchingWildcardDirectories:()=>nO,usesExtensionsOnImports:()=>lae,usingSingleLineStringWriter:()=>PN,utf16EncodeAsString:()=>e2,validateLocaleAndSetLanguage:()=>PSe,valuesHelper:()=>Z7,version:()=>Ae,versionMajorMinor:()=>ue,visitArray:()=>Kw,visitCommaListElements:()=>Xw,visitEachChild:()=>xn,visitFunctionBody:()=>lf,visitIterationBody:()=>Rd,visitLexicalEnvironment:()=>cJ,visitNode:()=>rt,visitNodes:()=>Un,visitParameterList:()=>Ml,walkUpBindingElementsAndPatterns:()=>n2,walkUpLexicalEnvironments:()=>Hle,walkUpOuterExpressions:()=>Sse,walkUpParenthesizedExpressions:()=>Bv,walkUpParenthesizedTypes:()=>hk,walkUpParenthesizedTypesAndGetParentAndChild:()=>coe,whitespaceOrMapCommentRegExp:()=>fW,writeCommentRange:()=>O2,writeFile:()=>KN,writeFileEnsuringDirectories:()=>IU,zipWith:()=>In});var cb=S({"src/server/_namespaces/ts.ts"(){ia(),hO(),oi(),bZ(),_T()}}),E4e={};H(E4e,{ActionInvalidate:()=>mO,ActionPackageInstalled:()=>_O,ActionSet:()=>fO,ActionWatchTypingLocations:()=>mP,Arguments:()=>WK,AutoImportProviderProject:()=>kZ,AuxiliaryProject:()=>MZ,CharRangeSection:()=>JZ,CloseFileWatcherEvent:()=>vz,CommandNames:()=>Tge,ConfigFileDiagEvent:()=>fz,ConfiguredProject:()=>wZ,CreateDirectoryWatcherEvent:()=>gz,CreateFileWatcherEvent:()=>hz,Errors:()=>oy,EventBeginInstallTypes:()=>iF,EventEndInstallTypes:()=>oF,EventInitializationFailed:()=>OK,EventTypesRegistry:()=>rF,ExternalProject:()=>az,GcTimer:()=>IZ,InferredProject:()=>PZ,LargeFileReferencedEvent:()=>pz,LineIndex:()=>VP,LineLeaf:()=>O4,LineNode:()=>$I,LogLevel:()=>EZ,Msg:()=>SZ,OpenFileInfoTelemetryEvent:()=>zZ,Project:()=>mT,ProjectInfoTelemetryEvent:()=>_z,ProjectKind:()=>BP,ProjectLanguageServiceStateEvent:()=>mz,ProjectLoadingFinishEvent:()=>dz,ProjectLoadingStartEvent:()=>uz,ProjectReferenceProjectLoadKind:()=>VZ,ProjectService:()=>jZ,ProjectsUpdatedInBackgroundEvent:()=>L4,ScriptInfo:()=>DZ,ScriptVersionCache:()=>Sz,Session:()=>Ige,TextStorage:()=>RZ,ThrottledOperations:()=>AZ,TypingsCache:()=>NZ,TypingsInstallerAdapter:()=>Dge,allFilesAreJsOrDts:()=>tge,allRootFilesAreJsOrDts:()=>ege,asNormalizedPath:()=>KOe,convertCompilerOptions:()=>sz,convertFormatOptions:()=>tD,convertScriptKindName:()=>WZ,convertTypeAcquisition:()=>ige,convertUserPreferences:()=>oge,convertWatchOptions:()=>M4,countEachFileTypes:()=>C4,createInstallTypingsRequest:()=>Lhe,createModuleSpecifierCache:()=>_ge,createNormalizedPathMap:()=>XOe,createPackageJsonCache:()=>hge,createSortedArray:()=>Fhe,emptyArray:()=>Ac,findArgument:()=>WRe,forEachResolvedProjectReferenceProject:()=>nD,formatDiagnosticToProtocol:()=>w4,formatMessage:()=>gge,getBaseConfigFileName:()=>TZ,getLocationInNewDocument:()=>Ege,hasArgument:()=>ORe,hasNoTypeScriptSource:()=>nge,indent:()=>fP,isBackgroundProject:()=>P4,isConfigFile:()=>dge,isConfiguredProject:()=>V0,isDynamicFileName:()=>N4,isExternalProject:()=>CZ,isInferredProject:()=>eD,isInferredProjectName:()=>khe,makeAutoImportProviderProjectName:()=>Ohe,makeAuxiliaryProjectName:()=>Whe,makeInferredProjectName:()=>whe,maxFileSize:()=>cz,maxProgramSizeForNonTsFiles:()=>lz,normalizedPathToPath:()=>D4,nowString:()=>FRe,nullCancellationToken:()=>Sge,nullTypingsInstaller:()=>oz,projectContainsInfoDirectly:()=>XI,protocol:()=>Zhe,removeSorted:()=>YOe,stringifyIndented:()=>O0,toEvent:()=>vge,toNormalizedPath:()=>vl,tryConvertScriptKindName:()=>OZ,typingsInstaller:()=>Phe,updateProjectIfDirty:()=>Up});var qlt=S({"src/typescript/_namespaces/ts.server.ts"(){aF(),_T()}}),S4e={};H(S4e,{ANONYMOUS:()=>YF,AccessFlags:()=>dV,AssertionLevel:()=>OG,AssignmentDeclarationKind:()=>bV,AssignmentKind:()=>lH,Associativity:()=>uH,BreakpointResolver:()=>c$,BuilderFileEmit:()=>fK,BuilderProgramKind:()=>mK,BuilderState:()=>Om,BundleFileSectionKind:()=>FV,CallHierarchy:()=>GI,CharacterCodes:()=>PV,CheckFlags:()=>aV,CheckMode:()=>cW,ClassificationType:()=>nX,ClassificationTypeNames:()=>tX,CommentDirectiveType:()=>HG,Comparison:()=>Be,CompletionInfoFlags:()=>KK,CompletionTriggerKind:()=>jK,Completions:()=>qI,ContainerFlags:()=>nJ,ContextFlags:()=>$G,Debug:()=>N,DiagnosticCategory:()=>oL,Diagnostics:()=>m,DocumentHighlights:()=>ZF,ElementFlags:()=>uV,EmitFlags:()=>y6,EmitHint:()=>wV,EmitOnly:()=>JG,EndOfLineState:()=>$K,EnumKind:()=>oV,ExitStatus:()=>KG,ExportKind:()=>uY,Extension:()=>MV,ExternalEmitHelpers:()=>kV,FileIncludeKind:()=>u6,FilePreprocessingDiagnosticsKind:()=>qG,FileSystemEntryKind:()=>UV,FileWatcherEventKind:()=>jV,FindAllReferences:()=>Hs,FlattenLevel:()=>bJ,FlowFlags:()=>iL,ForegroundColorEscapeSequences:()=>oK,FunctionFlags:()=>cH,GeneratedIdentifierFlags:()=>c6,GetLiteralTextFlags:()=>oH,GoToDefinition:()=>XR,HighlightSpanKind:()=>HK,IdentifierNameMap:()=>CI,IdentifierNameMultiMap:()=>yJ,ImportKind:()=>cY,ImportsNotUsedAsValues:()=>xV,IndentStyle:()=>qK,IndexFlags:()=>pV,IndexKind:()=>_V,InferenceFlags:()=>vV,InferencePriority:()=>gV,InlayHintKind:()=>UK,InlayHints:()=>tZ,InternalEmitFlags:()=>LV,InternalSymbolName:()=>sV,InvalidatedProjectKind:()=>wK,JSDocParsingMode:()=>GV,JsDoc:()=>G0,JsTyping:()=>V_,JsxEmit:()=>IV,JsxFlags:()=>jG,JsxReferenceKind:()=>fV,LanguageServiceMode:()=>BK,LanguageVariant:()=>NV,LexicalEnvironmentFlags:()=>WV,ListFormat:()=>zV,LogLevel:()=>FG,MemberOverrideStatus:()=>XG,ModifierFlags:()=>s6,ModuleDetectionKind:()=>EV,ModuleInstanceState:()=>tJ,ModuleKind:()=>pN,ModuleResolutionKind:()=>$x,ModuleSpecifierEnding:()=>yH,NavigateTo:()=>Yde,NavigationBar:()=>ape,NewLineKind:()=>RV,NodeBuilderFlags:()=>QG,NodeCheckFlags:()=>lV,NodeFactoryFlags:()=>RH,NodeFlags:()=>a6,NodeResolutionFeatures:()=>Qq,ObjectFlags:()=>m6,OperationCanceledException:()=>Yx,OperatorPrecedence:()=>dH,OrganizeImports:()=>Wm,OrganizeImportsMode:()=>VK,OuterExpressionKinds:()=>OV,OutliningElementsCollector:()=>oZ,OutliningSpanKind:()=>XK,OutputFileType:()=>YK,PackageJsonAutoImportPreference:()=>zK,PackageJsonDependencyGroup:()=>FK,PatternMatchKind:()=>e9,PollingInterval:()=>b6,PollingWatchKind:()=>AV,PragmaKindFlags:()=>BV,PrivateIdentifierKind:()=>kH,ProcessLevel:()=>AJ,ProgramUpdateLevel:()=>BJ,QuotePreference:()=>rY,RelationComparisonResult:()=>l6,Rename:()=>Q9,ScriptElementKind:()=>ZK,ScriptElementKindModifier:()=>eX,ScriptKind:()=>h6,ScriptSnapshot:()=>lF,ScriptTarget:()=>DV,SemanticClassificationFormat:()=>GK,SemanticMeaning:()=>nY,SemicolonPreference:()=>JK,SignatureCheckMode:()=>uW,SignatureFlags:()=>_6,SignatureHelp:()=>b4,SignatureKind:()=>mV,SmartSelectionRange:()=>lZ,SnippetKind:()=>v6,SortKind:()=>wG,StructureIsReused:()=>d6,SymbolAccessibility:()=>tV,SymbolDisplay:()=>iy,SymbolDisplayPartKind:()=>gO,SymbolFlags:()=>p6,SymbolFormatFlags:()=>eV,SyntaxKind:()=>o6,SyntheticSymbolKind:()=>nV,Ternary:()=>yV,ThrottledCancellationToken:()=>l$,TokenClass:()=>QK,TokenFlags:()=>UG,TransformFlags:()=>g6,TypeFacts:()=>lW,TypeFlags:()=>f6,TypeFormatFlags:()=>ZG,TypeMapKind:()=>hV,TypePredicateKind:()=>rV,TypeReferenceSerializationKind:()=>iV,UnionReduction:()=>YG,UpToDateStatusType:()=>PK,VarianceFlags:()=>cV,Version:()=>Tm,VersionRange:()=>tL,WatchDirectoryFlags:()=>CV,WatchDirectoryKind:()=>TV,WatchFileKind:()=>SV,WatchLogLevel:()=>GJ,WatchType:()=>zc,accessPrivateIdentifier:()=>Jle,addDisposableResourceHelper:()=>s5,addEmitFlags:()=>k_,addEmitHelper:()=>oI,addEmitHelpers:()=>Hg,addInternalEmitFlags:()=>rI,addNodeFactoryPatcher:()=>oAe,addObjectAllocatorPatcher:()=>Xoe,addRange:()=>Hr,addRelatedInfo:()=>Fa,addSyntheticLeadingComment:()=>IC,addSyntheticTrailingComment:()=>k7,addToSeen:()=>Pm,advancedAsyncSuperHelper:()=>iw,affectsDeclarationPathOptionDeclarations:()=>kq,affectsEmitOptionDeclarations:()=>Lq,allKeysStartWithDot:()=>tW,altDirectorySeparator:()=>fL,and:()=>Z8,append:()=>Rn,appendIfUnique:()=>Lg,arrayFrom:()=>Go,arrayIsEqualTo:()=>Xm,arrayIsHomogeneous:()=>_ae,arrayIsSorted:()=>H8,arrayOf:()=>Vne,arrayReverseIterator:()=>EG,arrayToMap:()=>C1,arrayToMultiMap:()=>QM,arrayToNumericMap:()=>Une,arraysEqual:()=>Ni,assertType:()=>zEe,assign:()=>jx,assignHelper:()=>G7,asyncDelegator:()=>j7,asyncGeneratorHelper:()=>V7,asyncSuperHelper:()=>rw,asyncValues:()=>U7,attachFileToDiagnostics:()=>QA,awaitHelper:()=>aI,awaiterHelper:()=>q7,base64decode:()=>Foe,base64encode:()=>Woe,binarySearch:()=>Nv,binarySearchKey:()=>IA,bindSourceFile:()=>Sle,breakIntoCharacterSpans:()=>jde,breakIntoWordSpans:()=>Ude,buildLinkParts:()=>fde,buildOpts:()=>U5,buildOverload:()=>VOe,bundlerModuleNameResolver:()=>ple,canBeConvertedToAsync:()=>EY,canHaveDecorators:()=>QS,canHaveExportModifier:()=>zk,canHaveFlowNode:()=>fk,canHaveIllegalDecorators:()=>cq,canHaveIllegalModifiers:()=>xse,canHaveIllegalType:()=>kAe,canHaveIllegalTypeParameters:()=>Ise,canHaveJSDoc:()=>mk,canHaveLocals:()=>hh,canHaveModifiers:()=>km,canHaveSymbol:()=>x_,canJsonReportNoInputFiles:()=>UC,canProduceDiagnostics:()=>TW,canUsePropertyAccess:()=>tH,canWatchAffectingLocation:()=>eue,canWatchAtTypes:()=>Zce,canWatchDirectoryOrFile:()=>UW,cartesianProduct:()=>ere,cast:()=>sa,chainBundle:()=>wm,chainDiagnosticMessages:()=>jo,changeAnyExtension:()=>dL,changeCompilerHostLikeToUseCache:()=>oO,changeExtension:()=>S0,changeFullExtension:()=>yre,changesAffectModuleResolution:()=>Y6,changesAffectingProgramStructure:()=>Eie,childIsDecorated:()=>WN,classElementOrClassElementParameterIsDecorated:()=>Kj,classHasClassThisAssignment:()=>EJ,classHasDeclaredOrExplicitlyAssignedName:()=>SJ,classHasExplicitlyAssignedName:()=>bW,classOrConstructorParameterIsDecorated:()=>zv,classPrivateFieldGetHelper:()=>i5,classPrivateFieldInHelper:()=>a5,classPrivateFieldSetHelper:()=>o5,classicNameResolver:()=>vle,classifier:()=>tfe,cleanExtendedConfigCache:()=>PW,clear:()=>Yi,clearMap:()=>np,clearSharedExtendedConfigFileWatcher:()=>WJ,climbPastPropertyAccess:()=>uF,climbPastPropertyOrElementAccess:()=>Bue,clone:()=>xG,cloneCompilerOptions:()=>EX,closeFileWatcher:()=>Zm,closeFileWatcherOf:()=>Mf,codefix:()=>Bu,collapseTextChangeRangesAcrossMultipleVersions:()=>Lre,collectExternalModuleInfo:()=>_J,combine:()=>Vx,combinePaths:()=>$r,commentPragmas:()=>aL,commonOptionsWithBuild:()=>kw,commonPackageFolders:()=>mH,compact:()=>$M,compareBooleans:()=>Iy,compareDataObjects:()=>FU,compareDiagnostics:()=>aC,compareDiagnosticsSkipRelatedInformation:()=>t7,compareEmitHelpers:()=>Hae,compareNumberOfDirectorySeparators:()=>Ok,comparePaths:()=>kg,comparePathsCaseInsensitive:()=>pSe,comparePathsCaseSensitive:()=>dSe,comparePatternKeys:()=>Yq,compareProperties:()=>Yne,compareStringsCaseInsensitive:()=>$8,compareStringsCaseInsensitiveEslintCompatible:()=>Jne,compareStringsCaseSensitive:()=>Ju,compareStringsCaseSensitiveUI:()=>eL,compareTextSpans:()=>Y8,compareValues:()=>al,compileOnSaveCommandLineOption:()=>Mw,compilerOptionsAffectDeclarationPath:()=>oae,compilerOptionsAffectEmit:()=>iae,compilerOptionsAffectSemanticDiagnostics:()=>rae,compilerOptionsDidYouMeanDiagnostics:()=>Ww,compilerOptionsIndicateEsModules:()=>RX,compose:()=>WEe,computeCommonSourceDirectoryOfFilenames:()=>Mce,computeLineAndCharacterOfPosition:()=>Zx,computeLineOfPosition:()=>hN,computeLineStarts:()=>LA,computePositionOfLineAndCharacter:()=>R6,computeSignature:()=>iT,computeSignatureWithDiagnostics:()=>cK,computeSuggestionDiagnostics:()=>vY,computedOptions:()=>Sc,concatenate:()=>Ro,concatenateDiagnosticMessageChains:()=>Zoe,consumesNodeCoreModules:()=>jF,contains:()=>Mn,containsIgnoredPath:()=>_C,containsObjectRestOrSpread:()=>Tw,containsParseError:()=>d2,containsPath:()=>Am,convertCompilerOptionsForTelemetry:()=>Xse,convertCompilerOptionsFromJson:()=>WIe,convertJsonOption:()=>ZS,convertToBase64:()=>Ooe,convertToJson:()=>Nw,convertToObject:()=>Use,convertToOptionsWithAbsolutePaths:()=>Rq,convertToRelativePath:()=>_N,convertToTSConfig:()=>TIe,convertTypeAcquisitionFromJson:()=>FIe,copyComments:()=>lT,copyEntries:()=>$6,copyLeadingComments:()=>OR,copyProperties:()=>RG,copyTrailingAsLeadingComments:()=>WO,copyTrailingComments:()=>TP,couldStartTrivia:()=>Tre,countWhere:()=>Ca,createAbstractBuilder:()=>U2e,createAccessorPropertyBackingField:()=>dq,createAccessorPropertyGetRedirector:()=>kse,createAccessorPropertySetRedirector:()=>wse,createBaseNodeFactory:()=>Nae,createBinaryExpressionTrampoline:()=>M5,createBindingHelper:()=>X2,createBuildInfo:()=>eO,createBuilderProgram:()=>uK,createBuilderProgramUsingProgramBuildInfo:()=>$ce,createBuilderStatusReporter:()=>mue,createCacheWithRedirects:()=>Vq,createCacheableExportInfoMap:()=>aY,createCachedDirectoryStructureHost:()=>NW,createClassNamedEvaluationHelperBlock:()=>Zle,createClassThisAssignmentBlock:()=>$le,createClassifier:()=>sDe,createCommentDirectivesMap:()=>Rie,createCompilerDiagnostic:()=>$l,createCompilerDiagnosticForInvalidCustomType:()=>zse,createCompilerDiagnosticFromMessageChain:()=>e7,createCompilerHost:()=>Lce,createCompilerHostFromProgramHost:()=>RK,createCompilerHostWorker:()=>UJ,createDetachedDiagnostic:()=>G2,createDiagnosticCollection:()=>M2,createDiagnosticForFileFromMessageChain:()=>jj,createDiagnosticForNode:()=>Fr,createDiagnosticForNodeArray:()=>m2,createDiagnosticForNodeArrayFromMessageChain:()=>qL,createDiagnosticForNodeFromMessageChain:()=>zg,createDiagnosticForNodeInSourceFile:()=>rm,createDiagnosticForRange:()=>zie,createDiagnosticMessageChainFromDiagnostic:()=>Fie,createDiagnosticReporter:()=>uO,createDocumentPositionMapper:()=>Gle,createDocumentRegistry:()=>Mde,createDocumentRegistryInternal:()=>fY,createEmitAndSemanticDiagnosticsBuilderProgram:()=>_K,createEmitHelperFactory:()=>Uae,createEmptyExports:()=>_w,createExpressionForJsxElement:()=>vse,createExpressionForJsxFragment:()=>yse,createExpressionForObjectLiteralElementLike:()=>bse,createExpressionForPropertyName:()=>rq,createExpressionFromEntityName:()=>hw,createExternalHelpersImportDeclarationIfNeeded:()=>aq,createFileDiagnostic:()=>ru,createFileDiagnosticFromMessageChain:()=>a3,createForOfBindingStatement:()=>nq,createGetCanonicalFileName:()=>ku,createGetSourceFile:()=>VJ,createGetSymbolAccessibilityDiagnosticForNode:()=>Yv,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Tce,createGetSymbolWalker:()=>Tle,createIncrementalCompilerHost:()=>NK,createIncrementalProgram:()=>pue,createInputFiles:()=>sAe,createInputFilesWithFilePaths:()=>IH,createInputFilesWithFileTexts:()=>xH,createJsxFactoryExpression:()=>tq,createLanguageService:()=>Xpe,createLanguageServiceSourceFile:()=>A9,createMemberAccessForPropertyName:()=>$S,createModeAwareCache:()=>DI,createModeAwareCacheKey:()=>XC,createModuleNotFoundChain:()=>Q6,createModuleResolutionCache:()=>mR,createModuleResolutionLoader:()=>YJ,createModuleResolutionLoaderUsingGlobalCache:()=>iue,createModuleSpecifierResolutionHost:()=>sT,createMultiMap:()=>Zp,createNodeConverters:()=>Pae,createNodeFactory:()=>Xk,createOptionNameMap:()=>w5,createOverload:()=>yZ,createPackageJsonImportFilter:()=>xP,createPackageJsonInfo:()=>KX,createParenthesizerRules:()=>Cae,createPatternMatcher:()=>Wde,createPrependNodes:()=>rK,createPrinter:()=>k0,createPrinterWithDefaults:()=>wJ,createPrinterWithRemoveComments:()=>vE,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>OJ,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>tO,createProgram:()=>OW,createProgramHost:()=>DK,createPropertyNameNodeForIdentifierOrLiteral:()=>v7,createQueue:()=>ZM,createRange:()=>xf,createRedirectedBuilderProgram:()=>pK,createResolutionCache:()=>gK,createRuntimeTypeSerializer:()=>ice,createScanner:()=>wv,createSemanticDiagnosticsBuilderProgram:()=>j2e,createSet:()=>DG,createSolutionBuilder:()=>aRe,createSolutionBuilderHost:()=>iRe,createSolutionBuilderWithWatch:()=>sRe,createSolutionBuilderWithWatchHost:()=>oRe,createSortedArray:()=>bG,createSourceFile:()=>Iw,createSourceMapGenerator:()=>Wle,createSourceMapSource:()=>lAe,createSuperAccessVariableStatement:()=>SW,createSymbolTable:()=>pa,createSymlinkCache:()=>HU,createSystemWatchFunctions:()=>_re,createTextChange:()=>DO,createTextChangeFromStartLength:()=>AF,createTextChangeRange:()=>TL,createTextRangeFromNode:()=>AX,createTextRangeFromSpan:()=>TF,createTextSpan:()=>Eu,createTextSpanFromBounds:()=>yc,createTextSpanFromNode:()=>Nd,createTextSpanFromRange:()=>ob,createTextSpanFromStringLiteralLikeContent:()=>TX,createTextWriter:()=>xk,createTokenRange:()=>wU,createTypeChecker:()=>Ple,createTypeReferenceDirectiveResolutionCache:()=>Q5,createTypeReferenceResolutionLoader:()=>LW,createUnparsedSourceFile:()=>AH,createWatchCompilerHost:()=>tRe,createWatchCompilerHostOfConfigFile:()=>cue,createWatchCompilerHostOfFilesAndCompilerOptions:()=>uue,createWatchFactory:()=>xK,createWatchHost:()=>IK,createWatchProgram:()=>nRe,createWatchStatusReporter:()=>oue,createWriteFileMeasuringIO:()=>jJ,declarationNameToString:()=>ks,decodeMappings:()=>pJ,decodedTextSpanIntersectsWith:()=>SL,decorateHelper:()=>O7,deduplicate:()=>N1,defaultIncludeSpec:()=>J5,defaultInitCompilerOptions:()=>H5,defaultMaximumTruncationLength:()=>jk,detectSortCaseSensitivity:()=>sN,diagnosticCategoryName:()=>mS,diagnosticToString:()=>uT,directoryProbablyExists:()=>Qm,directorySeparator:()=>cl,displayPart:()=>op,displayPartsToString:()=>i4,disposeEmitNodes:()=>DH,disposeResourcesHelper:()=>l5,documentSpansEqual:()=>MX,dumpTracingLegend:()=>pre,elementAt:()=>Lv,elideNodes:()=>Lse,emitComments:()=>Ioe,emitDetachedComments:()=>xoe,emitFiles:()=>xW,emitFilesAndReportErrors:()=>KW,emitFilesAndReportErrorsAndGetExitStatus:()=>lue,emitModuleKindIsNonNodeESM:()=>n7,emitNewLineBeforeLeadingCommentOfPosition:()=>Aoe,emitNewLineBeforeLeadingComments:()=>Soe,emitNewLineBeforeLeadingCommentsOfPosition:()=>Toe,emitSkippedWithNoDiagnostics:()=>GW,emitUsingBuildInfo:()=>Dce,emptyArray:()=>et,emptyFileSystemEntries:()=>C7,emptyMap:()=>r6,emptyOptions:()=>kf,emptySet:()=>nre,endsWith:()=>Dl,ensurePathIsNonModuleName:()=>P1,ensureScriptKind:()=>d7,ensureTrailingDirectorySeparator:()=>Hc,entityNameToString:()=>vp,enumerateInsertsAndDeletes:()=>t6,equalOwnProperties:()=>jne,equateStringsCaseInsensitive:()=>i0,equateStringsCaseSensitive:()=>dS,equateValues:()=>Mv,esDecorateHelper:()=>z7,escapeJsxAttributeString:()=>EU,escapeLeadingUnderscores:()=>bl,escapeNonAsciiString:()=>Ik,escapeSnippetText:()=>eE,escapeString:()=>ag,escapeTemplateSubstitution:()=>yU,every:()=>Bn,expandPreOrPostfixIncrementOrDecrementExpression:()=>x5,explainFiles:()=>bK,explainIfFileIsRedirectAndImpliedFormat:()=>EK,exportAssignmentIsAlias:()=>D2,exportStarHelper:()=>r5,expressionResultIsUnused:()=>gae,extend:()=>X8,extendsHelper:()=>J7,extensionFromPath:()=>uC,extensionIsTS:()=>m7,extensionsNotSupportingExtensionlessResolution:()=>Kk,externalHelpersModuleNameText:()=>qy,factory:()=>O,fileExtensionIs:()=>Nl,fileExtensionIsOneOf:()=>Rc,fileIncludeReasonToDiagnostics:()=>AK,fileShouldUseJavaScriptRequire:()=>tY,filter:()=>Vn,filterMutate:()=>Si,filterSemanticDiagnostics:()=>WW,find:()=>un,findAncestor:()=>jn,findBestPatternMatch:()=>MG,findChildOfKind:()=>Is,findComputedPropertyNameCacheAssignment:()=>L5,findConfigFile:()=>Pce,findContainingList:()=>_F,findDiagnosticForNode:()=>Ade,findFirstNonJsxWhitespaceToken:()=>Hue,findIndex:()=>Ji,findLast:()=>Mi,findLastIndex:()=>as,findListItemInfo:()=>Uue,findMap:()=>rl,findModifier:()=>LR,findNextToken:()=>EE,findPackageJson:()=>Sde,findPackageJsons:()=>JX,findPrecedingMatchingToken:()=>EF,findPrecedingToken:()=>Cc,findSuperStatementIndexPath:()=>gW,findTokenOnLeftOfPosition:()=>vF,findUseStrictPrologue:()=>oq,first:()=>$a,firstDefined:()=>$t,firstDefinedIterator:()=>ar,firstIterator:()=>TG,firstOrOnly:()=>QX,firstOrUndefined:()=>eu,firstOrUndefinedIterator:()=>q8,fixupCompilerOptions:()=>TY,flatMap:()=>qi,flatMapIterator:()=>Zf,flatMapToMutable:()=>Zd,flatten:()=>Oa,flattenCommaList:()=>Ose,flattenDestructuringAssignment:()=>tT,flattenDestructuringBinding:()=>gE,flattenDiagnosticMessageText:()=>B_,forEach:()=>Ve,forEachAncestor:()=>Sie,forEachAncestorDirectory:()=>xm,forEachChild:()=>Uo,forEachChildRecursively:()=>VC,forEachEmittedFile:()=>PJ,forEachEnclosingBlockScopeContainer:()=>wie,forEachEntry:()=>qc,forEachExternalModuleToImportFrom:()=>lY,forEachImportClauseDeclaration:()=>N3,forEachKey:()=>vh,forEachLeadingCommentRange:()=>gL,forEachNameInAccessChainWalkingLeft:()=>Joe,forEachPropertyAssignment:()=>v2,forEachResolvedProjectReference:()=>QJ,forEachReturnStatement:()=>B1,forEachRight:()=>Ht,forEachTrailingCommentRange:()=>vL,forEachTsConfigPropArray:()=>YL,forEachUnique:()=>kX,forEachYieldExpression:()=>Gie,forSomeAncestorDirectory:()=>CTe,formatColorAndReset:()=>yE,formatDiagnostic:()=>HJ,formatDiagnostics:()=>A2e,formatDiagnosticsWithColorAndContext:()=>kce,formatGeneratedName:()=>N0,formatGeneratedNamePart:()=>cR,formatLocation:()=>qJ,formatMessage:()=>VU,formatStringFromArgs:()=>cg,formatting:()=>Bc,fullTripleSlashAMDReferencePathRegEx:()=>sH,fullTripleSlashReferencePathRegEx:()=>aH,generateDjb2Hash:()=>fN,generateTSConfig:()=>DIe,generatorHelper:()=>e5,getAdjustedReferenceLocation:()=>_X,getAdjustedRenameLocation:()=>gF,getAliasDeclarationFromName:()=>lU,getAllAccessorDeclarations:()=>wS,getAllDecoratorsOfClass:()=>gJ,getAllDecoratorsOfClassElement:()=>yW,getAllJSDocTags:()=>w6,getAllJSDocTagsOfKind:()=>GSe,getAllKeys:()=>wEe,getAllProjectOutputs:()=>IW,getAllSuperTypeNodes:()=>VN,getAllUnscopedEmitHelpers:()=>LH,getAllowJSCompilerOption:()=>Jy,getAllowSyntheticDefaultImports:()=>FS,getAncestor:()=>b0,getAnyExtensionFromPath:()=>Qx,getAreDeclarationMapsEnabled:()=>Hk,getAssignedExpandoInitializer:()=>GA,getAssignedName:()=>L6,getAssignedNameOfIdentifier:()=>nP,getAssignmentDeclarationKind:()=>ql,getAssignmentDeclarationPropertyAccessKind:()=>lk,getAssignmentTargetKind:()=>HA,getAutomaticTypeDirectiveNames:()=>Y5,getBaseFileName:()=>dc,getBinaryOperatorPrecedence:()=>Ak,getBuildInfo:()=>RW,getBuildInfoFileVersionMap:()=>dK,getBuildInfoText:()=>Rce,getBuildOrderFromAnyBuildOrder:()=>ZW,getBuilderCreationParameters:()=>VW,getBuilderFileEmit:()=>ib,getCheckFlags:()=>Cl,getClassExtendsHeritageElement:()=>H1,getClassLikeDeclarationOfSymbol:()=>jg,getCombinedLocalAndExportSymbolFlags:()=>F2,getCombinedModifierFlags:()=>c0,getCombinedNodeFlags:()=>Ov,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>nj,getCommentRange:()=>w_,getCommonSourceDirectory:()=>cP,getCommonSourceDirectoryOfConfig:()=>bR,getCompilerOptionValue:()=>i7,getCompilerOptionsDiffValue:()=>xIe,getConditions:()=>nb,getConfigFileParsingDiagnostics:()=>rT,getConstantValue:()=>Wae,getContainerFlags:()=>eJ,getContainerNode:()=>aT,getContainingClass:()=>du,getContainingClassExcludingClassDecorators:()=>_3,getContainingClassStaticBlock:()=>Yie,getContainingFunction:()=>Vp,getContainingFunctionDeclaration:()=>Xie,getContainingFunctionOrClassStaticBlock:()=>m3,getContainingNodeArray:()=>vae,getContainingObjectLiteralElement:()=>o4,getContextualTypeFromParent:()=>wF,getContextualTypeFromParentOrAncestorTypeNode:()=>hF,getCurrentTime:()=>pO,getDeclarationDiagnostics:()=>Ace,getDeclarationEmitExtensionForPath:()=>F3,getDeclarationEmitOutputFilePath:()=>goe,getDeclarationEmitOutputFilePathWorker:()=>W3,getDeclarationFileExtension:()=>_q,getDeclarationFromName:()=>GN,getDeclarationModifierFlagsFromSymbol:()=>Df,getDeclarationOfKind:()=>gl,getDeclarationsOfKind:()=>yie,getDeclaredExpandoInitializer:()=>ik,getDecorators:()=>Py,getDefaultCompilerOptions:()=>T9,getDefaultExportInfoWorker:()=>QF,getDefaultFormatCodeSettings:()=>sF,getDefaultLibFileName:()=>bL,getDefaultLibFilePath:()=>Ype,getDefaultLikeExportInfo:()=>$F,getDiagnosticText:()=>hIe,getDiagnosticsWithinSpan:()=>Ide,getDirectoryPath:()=>ii,getDirectoryToWatchFailedLookupLocation:()=>hK,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>nue,getDocumentPositionMapper:()=>gY,getDocumentSpansEqualityComparer:()=>LX,getESModuleInterop:()=>Sh,getEditsForFileRename:()=>kde,getEffectiveBaseTypeNode:()=>D_,getEffectiveConstraintOfTypeParameter:()=>i2,getEffectiveContainerForJSDocTemplateTag:()=>C3,getEffectiveImplementsTypeNodes:()=>N2,getEffectiveInitializer:()=>rk,getEffectiveJSDocHost:()=>y0,getEffectiveModifierFlags:()=>fd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Coe,getEffectiveModifierFlagsNoCache:()=>Poe,getEffectiveReturnTypeNode:()=>lm,getEffectiveSetAccessorTypeAnnotationNode:()=>Eoe,getEffectiveTypeAnnotationNode:()=>Su,getEffectiveTypeParameterDeclarations:()=>My,getEffectiveTypeRoots:()=>KC,getElementOrPropertyAccessArgumentExpressionOrName:()=>D3,getElementOrPropertyAccessName:()=>Bg,getElementsOfBindingOrAssignmentPattern:()=>lR,getEmitDeclarations:()=>Nf,getEmitFlags:()=>Ka,getEmitHelpers:()=>w7,getEmitModuleDetectionKind:()=>pH,getEmitModuleKind:()=>Wu,getEmitModuleResolutionKind:()=>_d,getEmitScriptTarget:()=>ps,getEmitStandardClassFields:()=>nae,getEnclosingBlockScopeContainer:()=>yh,getEnclosingContainer:()=>Vj,getEncodedSemanticClassifications:()=>dY,getEncodedSyntacticClassifications:()=>pY,getEndLinePosition:()=>VL,getEntityNameFromTypeNode:()=>ZL,getEntrypointsFromPackageJsonInfo:()=>Jq,getErrorCountForSummary:()=>qW,getErrorSpanForNode:()=>AS,getErrorSummaryText:()=>aue,getEscapedTextOfIdentifierOrLiteral:()=>HN,getEscapedTextOfJsxAttributeName:()=>yC,getEscapedTextOfJsxNamespacedName:()=>tI,getExpandoInitializer:()=>g0,getExportAssignmentExpression:()=>cU,getExportInfoMap:()=>VO,getExportNeedsImportStarHelper:()=>Vle,getExpressionAssociativity:()=>hU,getExpressionPrecedence:()=>JN,getExternalHelpersModuleName:()=>vw,getExternalModuleImportEqualsDeclarationExpression:()=>FN,getExternalModuleName:()=>A2,getExternalModuleNameFromDeclaration:()=>_oe,getExternalModuleNameFromPath:()=>TU,getExternalModuleNameLiteral:()=>AI,getExternalModuleRequireArgument:()=>Yj,getFallbackOptions:()=>iO,getFileEmitOutput:()=>Gce,getFileMatcherPatterns:()=>u7,getFileNamesFromConfigSpecs:()=>HC,getFileWatcherEventKind:()=>VV,getFilesInErrorForSummary:()=>JW,getFirstConstructorWithBody:()=>sg,getFirstIdentifier:()=>jp,getFirstNonSpaceCharacterPosition:()=>hde,getFirstProjectOutput:()=>kJ,getFixableErrorSpanExpression:()=>YX,getFormatCodeSettingsForWriting:()=>JF,getFullWidth:()=>BL,getFunctionFlags:()=>Jc,getHeritageClause:()=>bk,getHostSignatureFromJSDoc:()=>v0,getIdentifierAutoGenerate:()=>fAe,getIdentifierGeneratedImportReference:()=>jae,getIdentifierTypeArguments:()=>zS,getImmediatelyInvokedFunctionExpression:()=>xS,getImpliedNodeFormatForFile:()=>lO,getImpliedNodeFormatForFileWorker:()=>tK,getImportNeedsImportDefaultHelper:()=>mJ,getImportNeedsImportStarHelper:()=>_W,getIndentSize:()=>k2,getIndentString:()=>w3,getInferredLibraryNameResolveFrom:()=>wW,getInitializedVariables:()=>rC,getInitializerOfBinaryExpression:()=>tU,getInitializerOfBindingOrAssignmentElement:()=>bw,getInterfaceBaseTypeNodes:()=>jN,getInternalEmitFlags:()=>Dm,getInvokedExpression:()=>v3,getIsolatedModules:()=>dm,getJSDocAugmentsTag:()=>Vre,getJSDocClassTag:()=>ij,getJSDocCommentRanges:()=>Hj,getJSDocCommentsAndTags:()=>rU,getJSDocDeprecatedTag:()=>oj,getJSDocDeprecatedTagNoCache:()=>Xre,getJSDocEnumTag:()=>aj,getJSDocHost:()=>CS,getJSDocImplementsTags:()=>jre,getJSDocOverloadTags:()=>oU,getJSDocOverrideTagNoCache:()=>Kre,getJSDocParameterTags:()=>r2,getJSDocParameterTagsNoCache:()=>Fre,getJSDocPrivateTag:()=>OSe,getJSDocPrivateTagNoCache:()=>Hre,getJSDocProtectedTag:()=>WSe,getJSDocProtectedTagNoCache:()=>qre,getJSDocPublicTag:()=>wSe,getJSDocPublicTagNoCache:()=>Ure,getJSDocReadonlyTag:()=>FSe,getJSDocReadonlyTagNoCache:()=>Jre,getJSDocReturnTag:()=>Yre,getJSDocReturnType:()=>IL,getJSDocRoot:()=>R2,getJSDocSatisfiesExpressionType:()=>rH,getJSDocSatisfiesTag:()=>sj,getJSDocTags:()=>f0,getJSDocTagsNoCache:()=>BSe,getJSDocTemplateTag:()=>zSe,getJSDocThisTag:()=>k6,getJSDocType:()=>p0,getJSDocTypeAliasName:()=>lq,getJSDocTypeAssertionType:()=>D5,getJSDocTypeParameterDeclarations:()=>V3,getJSDocTypeParameterTags:()=>zre,getJSDocTypeParameterTagsNoCache:()=>Bre,getJSDocTypeTag:()=>d0,getJSXImplicitImportBase:()=>a7,getJSXRuntimeImport:()=>s7,getJSXTransformEnabled:()=>o7,getKeyForCompilerOptions:()=>Gq,getLanguageVariant:()=>Lk,getLastChild:()=>zU,getLeadingCommentRanges:()=>$h,getLeadingCommentRangesOfNode:()=>Uj,getLeftmostAccessExpression:()=>z2,getLeftmostExpression:()=>B2,getLibraryNameFromLibFileName:()=>ZJ,getLineAndCharacterOfPosition:()=>Rs,getLineInfo:()=>uJ,getLineOfLocalPosition:()=>XN,getLineOfLocalPositionFromLineMap:()=>LS,getLineStartPositionForPosition:()=>mm,getLineStarts:()=>wg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>joe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Voe,getLinesBetweenPositions:()=>gN,getLinesBetweenRangeEndAndRangeStart:()=>OU,getLinesBetweenRangeEndPositions:()=>DTe,getLiteralText:()=>Die,getLocalNameForExternalImport:()=>sR,getLocalSymbolForExportDefault:()=>W2,getLocaleSpecificMessage:()=>zo,getLocaleTimeString:()=>dO,getMappedContextSpan:()=>wX,getMappedDocumentSpan:()=>PF,getMappedLocation:()=>bP,getMatchedFileSpec:()=>SK,getMatchedIncludeSpec:()=>TK,getMeaningFromDeclaration:()=>vO,getMeaningFromLocation:()=>oT,getMembersOfDeclaration:()=>Vie,getModeForFileReference:()=>aO,getModeForResolutionAtIndex:()=>wce,getModeForUsageLocation:()=>KJ,getModifiedTime:()=>CA,getModifiers:()=>L1,getModuleInstanceState:()=>Xg,getModuleNameStringLiteralAt:()=>cO,getModuleSpecifierEndingPreference:()=>cae,getModuleSpecifierResolverHost:()=>DX,getNameForExportedSymbol:()=>UF,getNameFromImportAttribute:()=>S7,getNameFromIndexInfo:()=>Oie,getNameFromPropertyName:()=>PO,getNameOfAccessExpression:()=>GU,getNameOfCompilerOptionValue:()=>xq,getNameOfDeclaration:()=>Oo,getNameOfExpando:()=>Zj,getNameOfJSDocTypedef:()=>Wre,getNameOrArgument:()=>sk,getNameTable:()=>r$,getNamesForExportedSymbol:()=>xde,getNamespaceDeclarationNode:()=>I2,getNewLineCharacter:()=>Uv,getNewLineKind:()=>GO,getNewLineOrDefaultFromHost:()=>ty,getNewTargetContainer:()=>Qie,getNextJSDocCommentLocation:()=>iU,getNodeForGeneratedName:()=>Sw,getNodeId:()=>fs,getNodeKind:()=>bE,getNodeModifiers:()=>gP,getNodeModulePathParts:()=>y7,getNonAssignedNameOfDeclaration:()=>M6,getNonAssignmentOperatorForCompoundAssignment:()=>ZC,getNonAugmentationDeclaration:()=>Oj,getNonDecoratorTokenPosOfNode:()=>Pj,getNormalizedAbsolutePath:()=>To,getNormalizedAbsolutePathWithoutRoot:()=>KV,getNormalizedPathComponents:()=>uL,getObjectFlags:()=>zr,getOperator:()=>vU,getOperatorAssociativity:()=>gU,getOperatorPrecedence:()=>Tk,getOptionFromName:()=>Sq,getOptionsForLibraryResolution:()=>jq,getOptionsNameMap:()=>dR,getOrCreateEmitNode:()=>Fu,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Ase,getOrUpdate:()=>AA,getOriginalNode:()=>Ol,getOriginalNodeId:()=>zu,getOriginalSourceFile:()=>vTe,getOutputDeclarationFileName:()=>lP,getOutputDeclarationFileNameWorker:()=>MJ,getOutputExtension:()=>AW,getOutputFileNames:()=>S2e,getOutputJSFileNameWorker:()=>LJ,getOutputPathsFor:()=>sP,getOutputPathsForBundle:()=>aP,getOwnEmitOutputFilePath:()=>hoe,getOwnKeys:()=>Yh,getOwnValues:()=>xA,getPackageJsonInfo:()=>fE,getPackageJsonTypesVersionsPaths:()=>X5,getPackageJsonsVisibleToFile:()=>Tde,getPackageNameFromTypesPackageName:()=>YC,getPackageScopeForPath:()=>Vw,getParameterSymbolFromJSDoc:()=>_k,getParameterTypeNode:()=>zTe,getParentNodeInSpan:()=>LO,getParseTreeNode:()=>Lo,getParsedCommandLineOfConfigFile:()=>Rw,getPathComponents:()=>Uc,getPathComponentsRelativeTo:()=>YV,getPathFromPathComponents:()=>Dy,getPathUpdater:()=>_Y,getPathsBasePath:()=>z3,getPatternFromSpec:()=>aae,getPendingEmitKind:()=>IR,getPositionOfLineAndCharacter:()=>_L,getPossibleGenericSignatures:()=>gX,getPossibleOriginalInputExtensionForExtension:()=>voe,getPossibleTypeArgumentsInfo:()=>vX,getPreEmitDiagnostics:()=>T2e,getPrecedingNonSpaceCharacterPosition:()=>LF,getPrivateIdentifier:()=>vJ,getProperties:()=>hJ,getProperty:()=>J8,getPropertyArrayElementValue:()=>Kie,getPropertyAssignmentAliasLikeExpression:()=>doe,getPropertyNameForPropertyNameNode:()=>PS,getPropertyNameForUniqueESSymbol:()=>hTe,getPropertyNameFromType:()=>um,getPropertyNameOfBindingOrAssignmentElement:()=>sq,getPropertySymbolFromBindingElement:()=>CF,getPropertySymbolsFromContextualType:()=>I9,getQuoteFromPreference:()=>CX,getQuotePreference:()=>uf,getRangesWhere:()=>yG,getRefactorContextSpan:()=>FI,getReferencedFileLocation:()=>uP,getRegexFromPattern:()=>Uy,getRegularExpressionForWildcard:()=>sC,getRegularExpressionsForWildcards:()=>l7,getRelativePathFromDirectory:()=>Im,getRelativePathFromFile:()=>pL,getRelativePathToDirectoryOrUrl:()=>MA,getRenameLocation:()=>OO,getReplacementSpanForContextToken:()=>SX,getResolutionDiagnostic:()=>iK,getResolutionModeOverride:()=>ER,getResolveJsonModule:()=>A0,getResolvePackageJsonExports:()=>R7,getResolvePackageJsonImports:()=>D7,getResolvedExternalModuleName:()=>O3,getRestIndicatorOfBindingOrAssignmentElement:()=>C5,getRestParameterElementType:()=>qj,getRightMostAssignedExpression:()=>ok,getRootDeclaration:()=>C_,getRootDirectoryOfResolutionCache:()=>rue,getRootLength:()=>_h,getRootPathSplitLength:()=>K2e,getScriptKind:()=>BX,getScriptKindFromFileName:()=>p7,getScriptTargetFeatures:()=>I7,getSelectedEffectiveModifierFlags:()=>KA,getSelectedSyntacticModifierFlags:()=>Doe,getSemanticClassifications:()=>Cde,getSemanticJsxChildren:()=>P2,getSetAccessorTypeAnnotationNode:()=>yoe,getSetAccessorValueParameter:()=>YN,getSetExternalModuleIndicator:()=>kk,getShebang:()=>N6,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>nU,getSingleVariableOfVariableStatement:()=>UA,getSnapshotText:()=>MR,getSnippetElement:()=>NH,getSourceFileOfModule:()=>e3,getSourceFileOfNode:()=>Jn,getSourceFilePathInNewDir:()=>B3,getSourceFilePathInNewDirWorker:()=>G3,getSourceFileVersionAsHashFromText:()=>XW,getSourceFilesToEmit:()=>AU,getSourceMapRange:()=>qv,getSourceMapper:()=>qde,getSourceTextOfNodeFromSourceFile:()=>W1,getSpanOfTokenAtPosition:()=>bh,getSpellingSuggestion:()=>cN,getStartPositionOfLine:()=>zy,getStartPositionOfRange:()=>nC,getStartsOnNewLine:()=>AC,getStaticPropertiesAndClassStaticBlock:()=>vW,getStrictOptionValue:()=>md,getStringComparer:()=>Ux,getSubPatternFromSpec:()=>c7,getSuperCallFromStatement:()=>hW,getSuperContainer:()=>$L,getSupportedCodeFixes:()=>t$,getSupportedExtensions:()=>lC,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>wk,getSwitchedType:()=>HX,getSymbolId:()=>Ia,getSymbolNameForPrivateIdentifier:()=>Ek,getSymbolTarget:()=>GX,getSyntacticClassifications:()=>Pde,getSyntacticModifierFlags:()=>Vy,getSyntacticModifierFlagsNoCache:()=>DU,getSynthesizedDeepClone:()=>pl,getSynthesizedDeepCloneWithReplacements:()=>wO,getSynthesizedDeepClones:()=>SE,getSynthesizedDeepClonesWithReplacements:()=>VX,getSyntheticLeadingComments:()=>K2,getSyntheticTrailingComments:()=>ew,getTargetLabel:()=>dF,getTargetOfBindingOrAssignmentElement:()=>tb,getTemporaryModuleResolutionState:()=>Gw,getTextOfConstantValue:()=>Nie,getTextOfIdentifierOrLiteral:()=>am,getTextOfJSDocComment:()=>RL,getTextOfJsxAttributeName:()=>Vk,getTextOfJsxNamespacedName:()=>bC,getTextOfNode:()=>bc,getTextOfNodeFromSourceText:()=>MN,getTextOfPropertyName:()=>f2,getThisContainer:()=>zd,getThisParameter:()=>J1,getTokenAtPosition:()=>go,getTokenPosOfNode:()=>_0,getTokenSourceMapRange:()=>dAe,getTouchingPropertyName:()=>jd,getTouchingToken:()=>PR,getTrailingCommentRanges:()=>a0,getTrailingSemicolonDeferringWriter:()=>SU,getTransformFlagsSubtreeExclusions:()=>Mae,getTransformers:()=>NJ,getTsBuildInfoEmitOutputFilePath:()=>$v,getTsConfigObjectLiteralExpression:()=>ON,getTsConfigPropArrayElementValue:()=>f3,getTypeAnnotationNode:()=>boe,getTypeArgumentOrTypeParameterList:()=>Zue,getTypeKeywordOfTypeOnlyImport:()=>PX,getTypeNode:()=>Gae,getTypeNodeIfAccessible:()=>IP,getTypeParameterFromJsDoc:()=>ooe,getTypeParameterOwner:()=>CSe,getTypesPackageName:()=>nW,getUILocale:()=>Kne,getUniqueName:()=>cT,getUniqueSymbolId:()=>_de,getUseDefineForClassFields:()=>TC,getWatchErrorSummaryDiagnosticMessage:()=>vK,getWatchFactory:()=>zJ,group:()=>lN,groupBy:()=>K8,guessIndentation:()=>gie,handleNoEmitOptions:()=>nK,hasAbstractModifier:()=>Y1,hasAccessorModifier:()=>P_,hasAmbientModifier:()=>RU,hasChangesInResolutions:()=>Dj,hasChildOfKind:()=>IO,hasContextSensitiveParameters:()=>g7,hasDecorators:()=>If,hasDocComment:()=>$ue,hasDynamicName:()=>Gy,hasEffectiveModifier:()=>bp,hasEffectiveModifiers:()=>j3,hasEffectiveReadonlyModifier:()=>$N,hasExtension:()=>PA,hasIndexSignature:()=>UX,hasInitializer:()=>Wy,hasInvalidEscape:()=>bU,hasJSDocNodes:()=>zp,hasJSDocParameterTags:()=>Gre,hasJSFileExtension:()=>$1,hasJsonModuleEmitEnabled:()=>r7,hasOnlyExpressionInitializer:()=>ES,hasOverrideModifier:()=>U3,hasPossibleExternalModuleReference:()=>kie,hasProperty:()=>Ls,hasPropertyAccessExpressionWithName:()=>bO,hasQuestionToken:()=>jA,hasRecordedExternalHelpers:()=>Tse,hasResolutionModeOverride:()=>Tae,hasRestParameter:()=>Aj,hasScopeMarker:()=>cie,hasStaticModifier:()=>Ec,hasSyntacticModifier:()=>Qr,hasSyntacticModifiers:()=>Roe,hasTSFileExtension:()=>eI,hasTabstop:()=>bae,hasTrailingDirectorySeparator:()=>kv,hasType:()=>K6,hasTypeArguments:()=>dTe,hasZeroOrOneAsteriskCharacter:()=>UU,helperString:()=>MH,hostGetCanonicalFileName:()=>Gv,hostUsesCaseSensitiveFileNames:()=>w2,idText:()=>Rr,identifierIsThisKeyword:()=>xU,identifierToKeywordKind:()=>u0,identity:()=>ol,identitySourceMapConsumer:()=>mW,ignoreSourceNewlines:()=>PH,ignoredPaths:()=>cL,importDefaultHelper:()=>n5,importFromModuleSpecifier:()=>BN,importNameElisionDisabled:()=>jU,importStarHelper:()=>nw,indexOfAnyCharCode:()=>Mo,indexOfNode:()=>p2,indicesOf:()=>YM,inferredTypesContainingFile:()=>AR,injectClassNamedEvaluationHelperBlockIfMissing:()=>EW,injectClassThisAssignmentIfMissing:()=>Qle,insertImports:()=>yP,insertLeadingStatement:()=>CAe,insertSorted:()=>Ay,insertStatementAfterCustomPrologue:()=>SS,insertStatementAfterStandardPrologue:()=>tTe,insertStatementsAfterCustomPrologue:()=>Nj,insertStatementsAfterStandardPrologue:()=>tg,intersperse:()=>Oi,intrinsicTagNameToString:()=>iH,introducesArgumentsExoticObject:()=>qie,inverseJsxOptionMap:()=>qC,isAbstractConstructorSymbol:()=>Uoe,isAbstractModifier:()=>$ae,isAccessExpression:()=>js,isAccessibilityModifier:()=>bX,isAccessor:()=>ky,isAccessorModifier:()=>Zae,isAliasSymbolDeclaration:()=>fTe,isAliasableExpression:()=>yk,isAmbientModule:()=>Ou,isAmbientPropertyDeclaration:()=>Fj,isAnonymousFunctionDefinition:()=>qN,isAnyDirectorySeparator:()=>HV,isAnyImportOrBareOrAccessedRequire:()=>Lie,isAnyImportOrReExport:()=>UL,isAnyImportSyntax:()=>TS,isAnySupportedFileExtension:()=>FTe,isApplicableVersionedTypesKey:()=>Uw,isArgumentExpressionOfElementAccess:()=>cX,isArray:()=>Do,isArrayBindingElement:()=>V6,isArrayBindingOrAssignmentElement:()=>kL,isArrayBindingOrAssignmentPattern:()=>vj,isArrayBindingPattern:()=>rE,isArrayLiteralExpression:()=>hd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Zv,isArrayTypeNode:()=>cw,isArrowFunction:()=>Ks,isAsExpression:()=>dw,isAssertClause:()=>ase,isAssertEntry:()=>SAe,isAssertionExpression:()=>bS,isAssertsKeyword:()=>Xae,isAssignmentDeclaration:()=>zN,isAssignmentExpression:()=>Wc,isAssignmentOperator:()=>Vv,isAssignmentPattern:()=>NN,isAssignmentTarget:()=>og,isAsteriskToken:()=>ow,isAsyncFunction:()=>UN,isAsyncModifier:()=>RC,isAutoAccessorPropertyDeclaration:()=>Fd,isAwaitExpression:()=>Qy,isAwaitKeyword:()=>zH,isBigIntLiteral:()=>c5,isBinaryExpression:()=>vr,isBinaryOperatorToken:()=>Mse,isBindableObjectDefinePropertyCall:()=>DS,isBindableStaticAccessExpression:()=>j1,isBindableStaticElementAccessExpression:()=>R3,isBindableStaticNameExpression:()=>NS,isBindingElement:()=>os,isBindingElementOfBareOrAccessedRequire:()=>toe,isBindingName:()=>vS,isBindingOrAssignmentElement:()=>rie,isBindingOrAssignmentPattern:()=>ML,isBindingPattern:()=>na,isBlock:()=>Yo,isBlockOrCatchScoped:()=>Mj,isBlockScope:()=>zj,isBlockScopedContainerTopLevel:()=>Mie,isBooleanLiteral:()=>DN,isBreakOrContinueStatement:()=>AN,isBreakStatement:()=>yAe,isBuildInfoFile:()=>xce,isBuilderProgram:()=>sue,isBundle:()=>qH,isBundleFileTextLike:()=>qoe,isCallChain:()=>hS,isCallExpression:()=>ca,isCallExpressionTarget:()=>rX,isCallLikeExpression:()=>O1,isCallLikeOrFunctionLikeExpression:()=>yj,isCallOrNewExpression:()=>I_,isCallOrNewExpressionTarget:()=>iX,isCallSignatureDeclaration:()=>pI,isCallToHelper:()=>xC,isCaseBlock:()=>kC,isCaseClause:()=>tR,isCaseKeyword:()=>ese,isCaseOrDefaultClause:()=>q6,isCatchClause:()=>uE,isCatchClauseVariableDeclaration:()=>yae,isCatchClauseVariableDeclarationOrBindingElement:()=>Lj,isCheckJsEnabledForFile:()=>Fk,isChildOfNodeWithKind:()=>rTe,isCircularBuildOrder:()=>LI,isClassDeclaration:()=>Nc,isClassElement:()=>nu,isClassExpression:()=>iu,isClassInstanceProperty:()=>tie,isClassLike:()=>di,isClassMemberModifier:()=>_j,isClassNamedEvaluationHelperBlock:()=>MI,isClassOrTypeElement:()=>G6,isClassStaticBlockDeclaration:()=>Pl,isClassThisAssignmentBlock:()=>tP,isCollapsedRange:()=>RTe,isColonToken:()=>Jae,isCommaExpression:()=>gw,isCommaListExpression:()=>PC,isCommaSequence:()=>zC,isCommaToken:()=>qae,isComment:()=>SF,isCommonJsExportPropertyAssignment:()=>d3,isCommonJsExportedExpression:()=>Uie,isCompoundAssignment:()=>QC,isComputedNonLiteralName:()=>HL,isComputedPropertyName:()=>ss,isConciseBody:()=>U6,isConditionalExpression:()=>eR,isConditionalTypeNode:()=>hI,isConstTypeReference:()=>Wg,isConstructSignatureDeclaration:()=>sw,isConstructorDeclaration:()=>Wl,isConstructorTypeNode:()=>Y2,isContextualKeyword:()=>M3,isContinueStatement:()=>vAe,isCustomPrologue:()=>XL,isDebuggerStatement:()=>bAe,isDeclaration:()=>Yu,isDeclarationBindingElement:()=>PL,isDeclarationFileName:()=>Iu,isDeclarationName:()=>Gg,isDeclarationNameOfEnumOrNamespace:()=>WU,isDeclarationReadonly:()=>s3,isDeclarationStatement:()=>fie,isDeclarationWithTypeParameterChildren:()=>Gj,isDeclarationWithTypeParameters:()=>Bj,isDecorator:()=>Au,isDecoratorTarget:()=>Fue,isDefaultClause:()=>OC,isDefaultImport:()=>VA,isDefaultModifier:()=>f5,isDefaultedExpandoInitializer:()=>noe,isDeleteExpression:()=>rse,isDeleteTarget:()=>sU,isDeprecatedDeclaration:()=>HF,isDestructuringAssignment:()=>jv,isDiagnosticWithLocation:()=>XX,isDiskPathRoot:()=>qV,isDoStatement:()=>hAe,isDocumentRegistryEntry:()=>jO,isDotDotDotToken:()=>d5,isDottedName:()=>ZN,isDynamicName:()=>k3,isESSymbolIdentifier:()=>gTe,isEffectiveExternalModule:()=>BA,isEffectiveModuleDeclaration:()=>Pie,isEffectiveStrictModeSourceFile:()=>Wj,isElementAccessChain:()=>lj,isElementAccessExpression:()=>el,isEmittedFileOfProgram:()=>Cce,isEmptyArrayLiteral:()=>woe,isEmptyBindingElement:()=>wre,isEmptyBindingPattern:()=>kre,isEmptyObjectLiteral:()=>LU,isEmptyStatement:()=>jH,isEmptyStringLiteral:()=>Xj,isEntityName:()=>ep,isEntityNameExpression:()=>Jl,isEnumConst:()=>z1,isEnumDeclaration:()=>x0,isEnumMember:()=>dE,isEqualityOperatorKind:()=>OF,isEqualsGreaterThanToken:()=>Kae,isExclamationToken:()=>aw,isExcludedFile:()=>qse,isExclusivelyTypeOnlyImportOrExport:()=>JJ,isExpandoPropertyDeclaration:()=>E7,isExportAssignment:()=>zl,isExportDeclaration:()=>rc,isExportModifier:()=>uI,isExportName:()=>R5,isExportNamespaceAsDefaultDeclaration:()=>r3,isExportOrDefaultModifier:()=>Ew,isExportSpecifier:()=>$u,isExportsIdentifier:()=>RS,isExportsOrModuleExportsOrAlias:()=>mE,isExpression:()=>bt,isExpressionNode:()=>rg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Vue,isExpressionOfOptionalChainRoot:()=>F6,isExpressionStatement:()=>ou,isExpressionWithTypeArguments:()=>Kv,isExpressionWithTypeArgumentsInClassExtendsClause:()=>H3,isExternalModule:()=>mc,isExternalModuleAugmentation:()=>F1,isExternalModuleImportEqualsDeclaration:()=>h0,isExternalModuleIndicator:()=>wL,isExternalModuleNameRelative:()=>tu,isExternalModuleReference:()=>Rh,isExternalModuleSymbol:()=>NO,isExternalOrCommonJsModule:()=>Bp,isFileLevelReservedGeneratedIdentifier:()=>CL,isFileLevelUniqueName:()=>t3,isFileProbablyExternalModule:()=>Aw,isFirstDeclarationOfSymbolParameter:()=>OX,isFixablePromiseHandler:()=>bY,isForInOrOfStatement:()=>s2,isForInStatement:()=>y5,isForInitializer:()=>Af,isForOfStatement:()=>pw,isForStatement:()=>HS,isFunctionBlock:()=>G1,isFunctionBody:()=>Ej,isFunctionDeclaration:()=>Dc,isFunctionExpression:()=>Us,isFunctionExpressionOrArrowFunction:()=>Z1,isFunctionLike:()=>ta,isFunctionLikeDeclaration:()=>Js,isFunctionLikeKind:()=>OA,isFunctionLikeOrClassStaticBlockDeclaration:()=>a2,isFunctionOrConstructorTypeNode:()=>nie,isFunctionOrModuleBlock:()=>hj,isFunctionSymbol:()=>ioe,isFunctionTypeNode:()=>Ah,isFutureReservedKeyword:()=>mTe,isGeneratedIdentifier:()=>ul,isGeneratedPrivateIdentifier:()=>gS,isGetAccessor:()=>Oy,isGetAccessorDeclaration:()=>rf,isGetOrSetAccessorDeclaration:()=>O6,isGlobalDeclaration:()=>nDe,isGlobalScopeAugmentation:()=>R_,isGrammarError:()=>xie,isHeritageClause:()=>of,isHoistedFunction:()=>c3,isHoistedVariableStatement:()=>u3,isIdentifier:()=>Ue,isIdentifierANonContextualKeyword:()=>pU,isIdentifierName:()=>uoe,isIdentifierOrThisTypeNode:()=>Dse,isIdentifierPart:()=>s0,isIdentifierStart:()=>Qh,isIdentifierText:()=>tf,isIdentifierTypePredicate:()=>Jie,isIdentifierTypeReference:()=>mae,isIfStatement:()=>US,isIgnoredFileFromWildCardWatching:()=>rO,isImplicitGlob:()=>JU,isImportAttribute:()=>sse,isImportAttributeName:()=>eie,isImportAttributes:()=>yI,isImportCall:()=>Gp,isImportClause:()=>Ih,isImportDeclaration:()=>Fc,isImportEqualsDeclaration:()=>au,isImportKeyword:()=>NC,isImportMeta:()=>h2,isImportOrExportSpecifier:()=>wA,isImportOrExportSpecifierName:()=>mde,isImportSpecifier:()=>rp,isImportTypeAssertionContainer:()=>EAe,isImportTypeNode:()=>dg,isImportableFile:()=>sY,isInComment:()=>Qv,isInCompoundLikeAssignment:()=>aU,isInExpressionContext:()=>b3,isInJSDoc:()=>tk,isInJSFile:()=>dr,isInJSXText:()=>Xue,isInJsonFile:()=>S3,isInNonReferenceComment:()=>nde,isInReferenceComment:()=>tde,isInRightSideOfInternalImportEqualsDeclaration:()=>cF,isInString:()=>wI,isInTemplateString:()=>hX,isInTopLevelContext:()=>h3,isInTypeQuery:()=>kS,isIncrementalCompilation:()=>SC,isIndexSignatureDeclaration:()=>nE,isIndexedAccessTypeNode:()=>jS,isInferTypeNode:()=>BS,isInfinityOrNaNString:()=>hC,isInitializedProperty:()=>Yw,isInitializedVariable:()=>Mk,isInsideJsxElement:()=>bF,isInsideJsxElementOrAttribute:()=>Kue,isInsideNodeModules:()=>BO,isInsideTemplateLiteral:()=>RO,isInstanceOfExpression:()=>q3,isInstantiatedModule:()=>iJ,isInterfaceDeclaration:()=>gd,isInternalDeclaration:()=>Ij,isInternalModuleImportEqualsDeclaration:()=>E2,isInternalName:()=>iq,isIntersectionTypeNode:()=>_I,isIntrinsicJsxName:()=>L2,isIterationStatement:()=>wy,isJSDoc:()=>r_,isJSDocAllType:()=>pse,isJSDocAugmentsTag:()=>TI,isJSDocAuthorTag:()=>xAe,isJSDocCallbackTag:()=>KH,isJSDocClassTag:()=>mse,isJSDocCommentContainingNode:()=>J6,isJSDocConstructSignature:()=>x2,isJSDocDeprecatedTag:()=>ZH,isJSDocEnumTag:()=>mw,isJSDocFunctionType:()=>rR,isJSDocImplementsTag:()=>A5,isJSDocIndexSignature:()=>T3,isJSDocLikeText:()=>fq,isJSDocLink:()=>use,isJSDocLinkCode:()=>dse,isJSDocLinkLike:()=>zA,isJSDocLinkPlain:()=>AAe,isJSDocMemberName:()=>R0,isJSDocNameReference:()=>WC,isJSDocNamepathType:()=>IAe,isJSDocNamespaceBody:()=>XSe,isJSDocNode:()=>l2,isJSDocNonNullableType:()=>b5,isJSDocNullableType:()=>nR,isJSDocOptionalParameter:()=>Gk,isJSDocOptionalType:()=>JH,isJSDocOverloadTag:()=>iR,isJSDocOverrideTag:()=>S5,isJSDocParameterTag:()=>i_,isJSDocPrivateTag:()=>YH,isJSDocPropertyLikeTag:()=>IN,isJSDocPropertyTag:()=>_se,isJSDocProtectedTag:()=>$H,isJSDocPublicTag:()=>XH,isJSDocReadonlyTag:()=>QH,isJSDocReturnTag:()=>T5,isJSDocSatisfiesExpression:()=>nH,isJSDocSatisfiesTag:()=>I5,isJSDocSeeTag:()=>RAe,isJSDocSignature:()=>D0,isJSDocTag:()=>c2,isJSDocTemplateTag:()=>fm,isJSDocThisTag:()=>eq,isJSDocThrowsTag:()=>NAe,isJSDocTypeAlias:()=>om,isJSDocTypeAssertion:()=>aR,isJSDocTypeExpression:()=>pE,isJSDocTypeLiteral:()=>XS,isJSDocTypeTag:()=>FC,isJSDocTypedefTag:()=>YS,isJSDocUnknownTag:()=>DAe,isJSDocUnknownType:()=>fse,isJSDocVariadicType:()=>E5,isJSXTagName:()=>b2,isJsonEqual:()=>_7,isJsonSourceFile:()=>im,isJsxAttribute:()=>F_,isJsxAttributeLike:()=>H6,isJsxAttributeName:()=>Sae,isJsxAttributes:()=>cE,isJsxChild:()=>FL,isJsxClosingElement:()=>sE,isJsxClosingFragment:()=>lse,isJsxElement:()=>pg,isJsxExpression:()=>wC,isJsxFragment:()=>lE,isJsxNamespacedName:()=>n_,isJsxOpeningElement:()=>W_,isJsxOpeningFragment:()=>EI,isJsxOpeningLikeElement:()=>dd,isJsxOpeningLikeElementTagName:()=>zue,isJsxSelfClosingElement:()=>JS,isJsxSpreadAttribute:()=>SI,isJsxTagNameExpression:()=>CN,isJsxText:()=>sI,isJumpStatementTarget:()=>EO,isKeyword:()=>Gd,isKeywordOrPunctuation:()=>P3,isKnownSymbol:()=>Sk,isLabelName:()=>sX,isLabelOfLabeledStatement:()=>aX,isLabeledStatement:()=>aE,isLateVisibilityPaintedStatement:()=>o3,isLeftHandSideExpression:()=>tp,isLeftHandSideOfAssignment:()=>xTe,isLet:()=>l3,isLineBreak:()=>Ku,isLiteralComputedPropertyDeclarationName:()=>vk,isLiteralExpression:()=>w1,isLiteralExpressionOfObject:()=>fj,isLiteralImportTypeNode:()=>By,isLiteralKind:()=>xN,isLiteralLikeAccess:()=>x3,isLiteralLikeElementAccess:()=>ak,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>pF,isLiteralTypeLikeExpression:()=>wAe,isLiteralTypeLiteral:()=>sie,isLiteralTypeNode:()=>$y,isLocalName:()=>Jg,isLogicalOperator:()=>Moe,isLogicalOrCoalescingAssignmentExpression:()=>NU,isLogicalOrCoalescingAssignmentOperator:()=>QN,isLogicalOrCoalescingBinaryExpression:()=>Dk,isLogicalOrCoalescingBinaryOperator:()=>Rk,isMappedTypeNode:()=>Q2,isMemberName:()=>Zh,isMetaProperty:()=>CC,isMethodDeclaration:()=>Ql,isMethodOrAccessor:()=>WA,isMethodSignature:()=>Th,isMinusToken:()=>FH,isMissingDeclaration:()=>TAe,isMissingPackageJsonInfo:()=>cle,isModifier:()=>Ra,isModifierKind:()=>Wv,isModifierLike:()=>dl,isModuleAugmentationExternal:()=>wj,isModuleBlock:()=>O_,isModuleBody:()=>uie,isModuleDeclaration:()=>nc,isModuleExportsAccessExpression:()=>ig,isModuleIdentifier:()=>eU,isModuleName:()=>Pse,isModuleOrEnumDeclaration:()=>OL,isModuleReference:()=>_ie,isModuleSpecifierLike:()=>NF,isModuleWithStringLiteralName:()=>i3,isNameOfFunctionDeclaration:()=>dX,isNameOfModuleDeclaration:()=>uX,isNamedClassElement:()=>USe,isNamedDeclaration:()=>cd,isNamedEvaluation:()=>yp,isNamedEvaluationSource:()=>fU,isNamedExportBindings:()=>uj,isNamedExports:()=>Pf,isNamedImportBindings:()=>Sj,isNamedImports:()=>qg,isNamedImportsOrExports:()=>Z3,isNamedTupleMember:()=>$2,isNamespaceBody:()=>KSe,isNamespaceExport:()=>xh,isNamespaceExportDeclaration:()=>fw,isNamespaceImport:()=>eb,isNamespaceReexportDeclaration:()=>eoe,isNewExpression:()=>iE,isNewExpressionTarget:()=>_P,isNoSubstitutionTemplateLiteral:()=>lI,isNode:()=>VSe,isNodeArray:()=>k1,isNodeArrayMultiLine:()=>Goe,isNodeDescendantOf:()=>U1,isNodeKind:()=>DL,isNodeLikeSystem:()=>kG,isNodeModulesDirectory:()=>A6,isNodeWithPossibleHoistedDeclaration:()=>soe,isNonContextualKeyword:()=>dU,isNonExportDefaultModifier:()=>WAe,isNonGlobalAmbientModule:()=>kj,isNonGlobalDeclaration:()=>Nde,isNonNullAccess:()=>Eae,isNonNullChain:()=>z6,isNonNullExpression:()=>vI,isNonStaticMethodOrAccessorWithPrivateName:()=>jle,isNotEmittedOrPartiallyEmittedNode:()=>JSe,isNotEmittedStatement:()=>HH,isNullishCoalesce:()=>cj,isNumber:()=>Cv,isNumericLiteral:()=>Ep,isNumericLiteralName:()=>ug,isObjectBindingElementWithoutPropertyName:()=>MO,isObjectBindingOrAssignmentElement:()=>LL,isObjectBindingOrAssignmentPattern:()=>gj,isObjectBindingPattern:()=>pm,isObjectLiteralElement:()=>Tj,isObjectLiteralElementLike:()=>Fg,isObjectLiteralExpression:()=>za,isObjectLiteralMethod:()=>Cm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>p3,isObjectTypeDeclaration:()=>$A,isOctalDigit:()=>D6,isOmittedExpression:()=>Kc,isOptionalChain:()=>Xu,isOptionalChainRoot:()=>SN,isOptionalDeclaration:()=>vC,isOptionalJSDocPropertyLikeTag:()=>Bk,isOptionalTypeNode:()=>m5,isOuterExpression:()=>N5,isOutermostOptionalChain:()=>TN,isOverrideModifier:()=>Qae,isPackageJsonInfo:()=>$5,isPackedArrayLiteral:()=>eH,isParameter:()=>No,isParameterDeclaration:()=>q1,isParameterPropertyDeclaration:()=>gp,isParameterPropertyModifier:()=>RN,isParenthesizedExpression:()=>Vd,isParenthesizedTypeNode:()=>GS,isParseTreeNode:()=>EN,isPartOfTypeNode:()=>ng,isPartOfTypeQuery:()=>E3,isPartiallyEmittedExpression:()=>v5,isPatternMatch:()=>Q8,isPinnedComment:()=>n3,isPlainJsFile:()=>GL,isPlusToken:()=>WH,isPossiblyTypeArgumentPosition:()=>xO,isPostfixUnaryExpression:()=>GH,isPrefixUnaryExpression:()=>Zy,isPrivateIdentifier:()=>Qi,isPrivateIdentifierClassElementDeclaration:()=>ud,isPrivateIdentifierPropertyAccessExpression:()=>o2,isPrivateIdentifierSymbol:()=>poe,isProgramBundleEmitBuildInfo:()=>qce,isProgramUptoDate:()=>eK,isPrologueDirective:()=>Nm,isPropertyAccessChain:()=>W6,isPropertyAccessEntityNameExpression:()=>Nk,isPropertyAccessExpression:()=>Br,isPropertyAccessOrQualifiedName:()=>oie,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>iie,isPropertyAssignment:()=>Tc,isPropertyDeclaration:()=>qo,isPropertyName:()=>pc,isPropertyNameLiteral:()=>N_,isPropertySignature:()=>Sp,isProtoSetter:()=>foe,isPrototypeAccess:()=>jy,isPrototypePropertyAssignment:()=>ck,isPunctuation:()=>uU,isPushOrUnshiftIdentifier:()=>mU,isQualifiedName:()=>xd,isQuestionDotToken:()=>p5,isQuestionOrExclamationToken:()=>Rse,isQuestionOrPlusOrMinusToken:()=>Cse,isQuestionToken:()=>Xy,isRawSourceMap:()=>zle,isReadonlyKeyword:()=>Yae,isReadonlyKeywordOrPlusOrMinusToken:()=>Nse,isRecognizedTripleSlashComment:()=>Cj,isReferenceFileLocation:()=>SR,isReferencedFile:()=>w0,isRegularExpressionLiteral:()=>wH,isRequireCall:()=>Ad,isRequireVariableStatement:()=>Qj,isRestParameter:()=>eg,isRestTypeNode:()=>_5,isReturnStatement:()=>Mm,isReturnStatementWithFixablePromiseHandler:()=>t9,isRightSideOfAccessExpression:()=>MU,isRightSideOfInstanceofExpression:()=>koe,isRightSideOfPropertyAccess:()=>NR,isRightSideOfQualifiedName:()=>Gue,isRightSideOfQualifiedNameOrPropertyAccess:()=>eC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Loe,isRootedDiskPath:()=>hp,isSameEntityName:()=>S2,isSatisfiesExpression:()=>VH,isScopeMarker:()=>lie,isSemicolonClassElement:()=>ise,isSetAccessor:()=>Fv,isSetAccessorDeclaration:()=>Tp,isShebangTrivia:()=>$V,isShiftOperatorOrHigher:()=>uq,isShorthandAmbientModuleSymbol:()=>LN,isShorthandPropertyAssignment:()=>ip,isSignedNumericLiteral:()=>L3,isSimpleCopiableExpression:()=>hE,isSimpleInlineableExpression:()=>z_,isSimpleParameter:()=>Kle,isSimpleParameterList:()=>$w,isSingleOrDoubleQuote:()=>nk,isSourceFile:()=>io,isSourceFileFromLibrary:()=>WR,isSourceFileJS:()=>pd,isSourceFileNotJS:()=>aTe,isSourceFileNotJson:()=>$j,isSourceMapping:()=>Ble,isSpecialPropertyDeclaration:()=>roe,isSpreadAssignment:()=>Xv,isSpreadElement:()=>t_,isStatement:()=>$i,isStatementButNotDeclaration:()=>WL,isStatementOrBlock:()=>mie,isStatementWithLocals:()=>Iie,isStatic:()=>la,isStaticModifier:()=>dI,isString:()=>wo,isStringAKeyword:()=>_Te,isStringANonContextualKeyword:()=>qA,isStringAndEmptyAnonymousObjectIntersection:()=>ede,isStringDoubleQuoted:()=>I3,isStringLiteral:()=>La,isStringLiteralLike:()=>hs,isStringLiteralOrJsxExpression:()=>hie,isStringLiteralOrTemplate:()=>bde,isStringOrNumericLiteralLike:()=>nf,isStringOrRegularExpressionOrTemplateLiteral:()=>yX,isStringTextContainingNode:()=>mj,isSuperCall:()=>IS,isSuperKeyword:()=>DC,isSuperOrSuperProperty:()=>oTe,isSuperProperty:()=>Bd,isSupportedSourceFileName:()=>uae,isSwitchStatement:()=>LC,isSyntaxList:()=>oR,isSyntheticExpression:()=>_Ae,isSyntheticReference:()=>bI,isTagName:()=>lX,isTaggedTemplateExpression:()=>oE,isTaggedTemplateTag:()=>Wue,isTemplateExpression:()=>h5,isTemplateHead:()=>cI,isTemplateLiteral:()=>FA,isTemplateLiteralKind:()=>Ly,isTemplateLiteralToken:()=>Qre,isTemplateLiteralTypeNode:()=>tse,isTemplateLiteralTypeSpan:()=>BH,isTemplateMiddle:()=>OH,isTemplateMiddleOrTemplateTail:()=>B6,isTemplateSpan:()=>MC,isTemplateTail:()=>u5,isTextWhiteSpaceLike:()=>ade,isThis:()=>CR,isThisContainerOrFunctionBlock:()=>$ie,isThisIdentifier:()=>X1,isThisInTypeQuery:()=>JA,isThisInitializedDeclaration:()=>g3,isThisInitializedObjectBindingExpression:()=>Zie,isThisProperty:()=>QL,isThisTypeNode:()=>uw,isThisTypeParameter:()=>gC,isThisTypePredicate:()=>iTe,isThrowStatement:()=>UH,isToken:()=>kA,isTokenKind:()=>pj,isTraceEnabled:()=>Kg,isTransientSymbol:()=>gh,isTrivia:()=>C2,isTryStatement:()=>qS,isTupleTypeNode:()=>mI,isTypeAlias:()=>pk,isTypeAliasDeclaration:()=>Lm,isTypeAssertionExpression:()=>nse,isTypeDeclaration:()=>H2,isTypeElement:()=>yS,isTypeKeyword:()=>vP,isTypeKeywordToken:()=>IX,isTypeKeywordTokenOrIdentifier:()=>IF,isTypeLiteralNode:()=>Ap,isTypeNode:()=>Xi,isTypeNodeKind:()=>BU,isTypeOfExpression:()=>Z2,isTypeOnlyExportDeclaration:()=>Zre,isTypeOnlyImportDeclaration:()=>NL,isTypeOnlyImportOrExportDeclaration:()=>m0,isTypeOperatorNode:()=>VS,isTypeParameterDeclaration:()=>El,isTypePredicateNode:()=>lw,isTypeQueryNode:()=>fI,isTypeReferenceNode:()=>Cf,isTypeReferenceType:()=>X6,isTypeUsableAsPropertyName:()=>cm,isUMDExportSymbol:()=>Q3,isUnaryExpression:()=>bj,isUnaryExpressionWithWrite:()=>aie,isUnicodeIdentifierStart:()=>x6,isUnionTypeNode:()=>Yy,isUnparsedNode:()=>dj,isUnparsedPrepend:()=>cse,isUnparsedSource:()=>KS,isUnparsedTextLike:()=>$re,isUrl:()=>vre,isValidBigIntString:()=>h7,isValidESSymbolDeclaration:()=>Hie,isValidTypeOnlyAliasUseSite:()=>T0,isValueSignatureDeclaration:()=>loe,isVarAwaitUsing:()=>JL,isVarConst:()=>_2,isVarUsing:()=>KL,isVariableDeclaration:()=>Wi,isVariableDeclarationInVariableStatement:()=>wN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>V1,isVariableDeclarationInitializedToRequire:()=>A3,isVariableDeclarationList:()=>Xc,isVariableLike:()=>g2,isVariableLikeOrAccessor:()=>jie,isVariableStatement:()=>Fl,isVoidExpression:()=>gI,isWatchSet:()=>NTe,isWhileStatement:()=>gAe,isWhiteSpaceLike:()=>Og,isWhiteSpaceSingleLine:()=>A_,isWithStatement:()=>ose,isWriteAccess:()=>YA,isWriteOnlyAccess:()=>$3,isYieldExpression:()=>g5,jsxModeNeedsExplicitImport:()=>eY,keywordPart:()=>xp,last:()=>rs,lastOrUndefined:()=>il,length:()=>Pe,libMap:()=>G5,libs:()=>Lw,lineBreakPart:()=>wR,linkNamePart:()=>pde,linkPart:()=>FX,linkTextPart:()=>MF,listFiles:()=>yK,loadModuleFromGlobalCache:()=>yle,loadWithModeAwareCache:()=>sO,makeIdentifierFromModuleName:()=>Cie,makeImport:()=>ey,makeImportIfNecessary:()=>ode,makeStringLiteral:()=>WI,mangleScopedPackageName:()=>gR,map:()=>Wt,mapAllOrFail:()=>SA,mapDefined:()=>Vi,mapDefinedEntries:()=>Gx,mapDefinedIterator:()=>TA,mapEntries:()=>zne,mapIterator:()=>Xo,mapOneOrMany:()=>$X,mapToDisplayParts:()=>ab,matchFiles:()=>KU,matchPatternOrExact:()=>XU,matchedText:()=>Zne,matchesExclude:()=>B5,maybeBind:()=>aa,maybeSetLocalizedDiagnosticMessages:()=>Qoe,memoize:()=>Td,memoizeCached:()=>qne,memoizeOne:()=>fh,memoizeWeak:()=>OEe,metadataHelper:()=>W7,min:()=>NG,minAndMax:()=>pae,missingFileModifiedTime:()=>Wp,modifierToFlag:()=>XA,modifiersToFlags:()=>M_,moduleOptionDeclaration:()=>Cq,moduleResolutionIsEqualTo:()=>Tie,moduleResolutionNameAndModeGetter:()=>zW,moduleResolutionOptionDeclarations:()=>V5,moduleResolutionSupportsPackageJsonExportsAndImports:()=>ZA,moduleResolutionUsesNodeModules:()=>xF,moduleSpecifiers:()=>_E,moveEmitHelpers:()=>zae,moveRangeEnd:()=>X3,moveRangePastDecorators:()=>Vg,moveRangePastModifiers:()=>L_,moveRangePos:()=>E0,moveSyntheticComments:()=>Oae,mutateMap:()=>oC,mutateMapSkippingNewValues:()=>lg,needsParentheses:()=>kF,needsScopeMarker:()=>j6,newCaseClauseTracker:()=>KF,newPrivateEnvironment:()=>qle,noEmitNotification:()=>Qw,noEmitSubstitution:()=>iP,noTransformers:()=>CJ,noTruncationMaximumTruncationLength:()=>A7,nodeCanBeDecorated:()=>y3,nodeHasName:()=>AL,nodeIsDecorated:()=>y2,nodeIsMissing:()=>Hl,nodeIsPresent:()=>nm,nodeIsSynthesized:()=>Zs,nodeModuleNameResolver:()=>fle,nodeModulesPathPart:()=>Nh,nodeNextJsonConfigResolver:()=>mle,nodeOrChildIsDecorated:()=>ek,nodeOverlapsWithStartEnd:()=>fF,nodePosToString:()=>$Se,nodeSeenTracker:()=>OI,nodeStartsNewLexicalEnvironment:()=>_U,nodeToDisplayParts:()=>YRe,noop:()=>is,noopFileWatcher:()=>RR,normalizePath:()=>va,normalizeSlashes:()=>wu,not:()=>e6,notImplemented:()=>Ko,notImplementedResolver:()=>DW,nullNodeConverters:()=>SH,nullParenthesizerRules:()=>EH,nullTransformationContext:()=>oP,objectAllocator:()=>pu,operatorPart:()=>EP,optionDeclarations:()=>fg,optionMapToObject:()=>W5,optionsAffectingProgramStructure:()=>wq,optionsForBuild:()=>Wq,optionsForWatch:()=>pR,optionsHaveChanges:()=>u2,optionsHaveModuleResolutionChanges:()=>bie,or:()=>$m,orderedRemoveItem:()=>qx,orderedRemoveItemAt:()=>xy,outFile:()=>Bs,packageIdToPackageName:()=>Z6,packageIdToString:()=>Fy,paramHelper:()=>F7,parameterIsThisKeyword:()=>K1,parameterNamePart:()=>lde,parseBaseNodeFactory:()=>vq,parseBigInt:()=>fae,parseBuildCommand:()=>_Ie,parseCommandLine:()=>fIe,parseCommandLineWorker:()=>Eq,parseConfigFileTextToJson:()=>Tq,parseConfigFileWithSystem:()=>Y2e,parseConfigHostFromCompilerHostLike:()=>FW,parseCustomTypeOption:()=>O5,parseIsolatedEntityName:()=>II,parseIsolatedJSDocComment:()=>Fse,parseJSDocTypeExpressionForTests:()=>eIe,parseJsonConfigFileContent:()=>NIe,parseJsonSourceFileConfigFileContent:()=>Cw,parseJsonText:()=>xw,parseListTypeOption:()=>Bse,parseNodeFactory:()=>Dh,parseNodeModuleFromPath:()=>Bw,parsePackageName:()=>jw,parsePseudoBigInt:()=>pC,parseValidBigInt:()=>ZU,patchWriteFileEnsuringDirectory:()=>hre,pathContainsNodeModules:()=>L0,pathIsAbsolute:()=>mN,pathIsBareSpecifier:()=>JV,pathIsRelative:()=>Fp,patternText:()=>Qne,perfLogger:()=>sd,performIncrementalCompilation:()=>eRe,performance:()=>ure,plainJSErrors:()=>BW,positionBelongsToNode:()=>fX,positionIsASICandidate:()=>FF,positionIsSynthesized:()=>e_,positionsAreOnSameLine:()=>Rf,preProcessFile:()=>TDe,probablyUsesSemicolons:()=>FO,processCommentPragmas:()=>hq,processPragmasIntoFields:()=>gq,processTaggedTemplateExpression:()=>TJ,programContainsEsModules:()=>ide,programContainsModules:()=>rde,projectReferenceIsEqualTo:()=>Rj,propKeyHelper:()=>$7,propertyNamePart:()=>cde,pseudoBigIntToString:()=>Q1,punctuationPart:()=>ed,pushIfUnique:()=>Tf,quote:()=>AP,quotePreferenceFromString:()=>NX,rangeContainsPosition:()=>SO,rangeContainsPositionExclusive:()=>TO,rangeContainsRange:()=>cf,rangeContainsRangeExclusive:()=>jue,rangeContainsStartEnd:()=>AO,rangeEndIsOnSameLineAsRangeStart:()=>Pk,rangeEndPositionsAreOnSameLine:()=>zoe,rangeEquals:()=>SG,rangeIsOnSingleLine:()=>OS,rangeOfNode:()=>$U,rangeOfTypeParameters:()=>QU,rangeOverlapsWithStartEnd:()=>hP,rangeStartIsOnSameLineAsRangeEnd:()=>Boe,rangeStartPositionsAreOnSameLine:()=>Y3,readBuilderProgram:()=>QW,readConfigFile:()=>Dw,readHelper:()=>X7,readJson:()=>tC,readJsonConfigFile:()=>jse,readJsonOrUndefined:()=>kU,reduceEachLeadingCommentRange:()=>Are,reduceEachTrailingCommentRange:()=>Ire,reduceLeft:()=>ad,reduceLeftIterator:()=>Fn,reducePathComponents:()=>_S,refactor:()=>BI,regExpEscape:()=>OTe,relativeComplement:()=>Bne,removeAllComments:()=>Qk,removeEmitHelper:()=>pAe,removeExtension:()=>Wk,removeFileExtension:()=>Id,removeIgnoredPath:()=>jW,removeMinAndVersionNumbers:()=>CG,removeOptionality:()=>Yue,removePrefix:()=>uN,removeSuffix:()=>Hx,removeTrailingDirectorySeparator:()=>o0,repeatString:()=>CO,replaceElement:()=>IG,replaceFirstStar:()=>nI,resolutionExtensionIsTSOrJson:()=>cC,resolveConfigFileProjectName:()=>CK,resolveJSModule:()=>dle,resolveLibrary:()=>Z5,resolveModuleName:()=>_R,resolveModuleNameFromCache:()=>pxe,resolvePackageNameToPackageJson:()=>Bq,resolvePath:()=>Ny,resolveProjectReferencePath:()=>TR,resolveTripleslashReference:()=>MW,resolveTypeReferenceDirective:()=>sle,resolvingEmptyArray:()=>T7,restHelper:()=>H7,returnFalse:()=>Ym,returnNoopFileWatcher:()=>DR,returnTrue:()=>Pv,returnUndefined:()=>r0,returnsPromise:()=>yY,runInitializersHelper:()=>B7,sameFlatMap:()=>D1,sameMap:()=>mo,sameMapping:()=>Zxe,scanShebangTrivia:()=>QV,scanTokenAtPosition:()=>Bie,scanner:()=>td,screenStartingMessageCodes:()=>$W,semanticDiagnosticsOptionDeclarations:()=>Mq,serializeCompilerOptions:()=>F5,server:()=>E4e,servicesVersion:()=>$pe,setCommentRange:()=>fc,setConfigFileInOptions:()=>Dq,setConstantValue:()=>Fae,setEachParent:()=>U2,setEmitFlags:()=>hr,setFunctionNameHelper:()=>Q7,setGetSourceFileAsHashVersioned:()=>YW,setIdentifierAutoGenerate:()=>tw,setIdentifierGeneratedImportReference:()=>Vae,setIdentifierTypeArguments:()=>Jv,setInternalEmitFlags:()=>Zk,setLocalizedDiagnosticMessages:()=>$oe,setModuleDefaultHelper:()=>t5,setNodeFlags:()=>hae,setObjectAllocator:()=>Yoe,setOriginalNode:()=>kr,setParent:()=>Qa,setParentRecursive:()=>Hy,setPrivateIdentifier:()=>eT,setSnippetElement:()=>CH,setSourceMapRange:()=>Ma,setStackTraceLimit:()=>rSe,setStartsOnNewLine:()=>L7,setSyntheticLeadingComments:()=>I0,setSyntheticTrailingComments:()=>iI,setSys:()=>lSe,setSysLog:()=>mre,setTextRange:()=>ut,setTextRangeEnd:()=>j2,setTextRangePos:()=>fC,setTextRangePosEnd:()=>Eh,setTextRangePosWidth:()=>mC,setTokenSourceMapRange:()=>wae,setTypeNode:()=>Bae,setUILocale:()=>Xne,setValueDeclaration:()=>uk,shouldAllowImportingTsExtension:()=>vR,shouldPreserveConstEnums:()=>tE,shouldUseUriStyleNodeCoreModules:()=>qF,showModuleSpecifier:()=>Hoe,signatureHasLiteralTypes:()=>oJ,signatureHasRestParameter:()=>Zu,signatureToDisplayParts:()=>zX,single:()=>AG,singleElementArray:()=>NA,singleIterator:()=>Fne,singleOrMany:()=>dh,singleOrUndefined:()=>uh,skipAlias:()=>Tu,skipAssertions:()=>MAe,skipConstraint:()=>xX,skipOuterExpressions:()=>ic,skipParentheses:()=>Ss,skipPartiallyEmittedExpressions:()=>Rm,skipTrivia:()=>Wa,skipTypeChecking:()=>dC,skipTypeParentheses:()=>gk,skipWhile:()=>tre,sliceAfter:()=>YU,some:()=>St,sort:()=>uS,sortAndDeduplicate:()=>aN,sortAndDeduplicateDiagnostics:()=>t2,sourceFileAffectingCompilerOptions:()=>j5,sourceFileMayBeEmitted:()=>MS,sourceMapCommentRegExp:()=>pW,sourceMapCommentRegExpDontCareLineStart:()=>fJ,spacePart:()=>Bl,spanMap:()=>vG,spreadArrayHelper:()=>Y7,stableSort:()=>Dv,startEndContainsRange:()=>pX,startEndOverlapsWithStartEnd:()=>mF,startOnNewLine:()=>Qu,startTracing:()=>dre,startsWith:()=>ho,startsWithDirectory:()=>XV,startsWithUnderscore:()=>ZX,startsWithUseStrict:()=>Ese,stringContainsAt:()=>Dde,stringToToken:()=>M1,stripQuotes:()=>sm,supportedDeclarationExtensions:()=>qk,supportedJSExtensions:()=>vH,supportedJSExtensionsFlat:()=>J2,supportedLocaleDirectories:()=>xj,supportedTSExtensions:()=>q2,supportedTSExtensionsFlat:()=>gH,supportedTSImplementationExtensions:()=>Jk,suppressLeadingAndTrailingTrivia:()=>Rp,suppressLeadingTrivia:()=>jX,suppressTrailingTrivia:()=>gde,symbolEscapedNameNoDefault:()=>DF,symbolName:()=>Il,symbolNameNoDefault:()=>RF,symbolPart:()=>sde,symbolToDisplayParts:()=>SP,syntaxMayBeASICandidate:()=>oY,syntaxRequiresTrailingSemicolonOrASI:()=>WF,sys:()=>bu,sysLog:()=>sL,tagNamesAreEquivalent:()=>C0,takeWhile:()=>n6,targetOptionDeclaration:()=>ww,templateObjectHelper:()=>K7,testFormatSettings:()=>Oue,textChangeRangeIsUnchanged:()=>Mre,textChangeRangeNewSpan:()=>bN,textChanges:()=>yr,textOrKeywordPart:()=>WX,textPart:()=>df,textRangeContainsPositionInclusive:()=>EL,textSpanContainsPosition:()=>tj,textSpanContainsTextSpan:()=>Dre,textSpanEnd:()=>tc,textSpanIntersection:()=>Pre,textSpanIntersectsWith:()=>P6,textSpanIntersectsWithPosition:()=>Cre,textSpanIntersectsWithTextSpan:()=>NSe,textSpanIsEmpty:()=>Rre,textSpanOverlap:()=>Nre,textSpanOverlapsWith:()=>DSe,textSpansEqual:()=>kR,textToKeywordObj:()=>yL,timestamp:()=>Qs,toArray:()=>RA,toBuilderFileEmit:()=>Xce,toBuilderStateFileInfoForMultiEmit:()=>Kce,toEditorSettings:()=>r4,toFileNameLowerCase:()=>ph,toLowerCase:()=>Hne,toPath:()=>ll,toProgramEmitPending:()=>Yce,tokenIsIdentifierOrKeyword:()=>ld,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Sre,tokenToString:()=>ma,trace:()=>xo,tracing:()=>ur,tracingEnabled:()=>rL,transform:()=>ECe,transformClassFields:()=>rce,transformDeclarations:()=>DJ,transformECMAScriptModule:()=>RJ,transformES2015:()=>vce,transformES2016:()=>gce,transformES2017:()=>sce,transformES2018:()=>lce,transformES2019:()=>cce,transformES2020:()=>uce,transformES2021:()=>dce,transformES5:()=>yce,transformESDecorators:()=>ace,transformESNext:()=>pce,transformGenerators:()=>bce,transformJsx:()=>hce,transformLegacyDecorators:()=>oce,transformModule:()=>xJ,transformNamedEvaluation:()=>Ip,transformNodeModule:()=>Sce,transformNodes:()=>Zw,transformSystemModule:()=>Ece,transformTypeScript:()=>nce,transpile:()=>PDe,transpileModule:()=>Jde,transpileOptionValueCompilerOptions:()=>Oq,tryAddToSet:()=>Rv,tryAndIgnoreErrors:()=>GF,tryCast:()=>ni,tryDirectoryExists:()=>BF,tryExtractTSExtension:()=>J3,tryFileExists:()=>zO,tryGetClassExtendingExpressionWithTypeArguments:()=>CU,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>PU,tryGetDirectories:()=>zF,tryGetExtensionFromPath:()=>Ug,tryGetImportFromModuleSpecifier:()=>dk,tryGetJSDocSatisfiesTypeNode:()=>b7,tryGetModuleNameFromFile:()=>yw,tryGetModuleSpecifierFromDeclaration:()=>T2,tryGetNativePerformanceHooks:()=>sre,tryGetPropertyAccessOrIdentifierToString:()=>Ck,tryGetPropertyNameOfBindingOrAssignmentElement:()=>P5,tryGetSourceMappingURL:()=>Fle,tryGetTextOfPropertyName:()=>kN,tryIOAndConsumeErrors:()=>VF,tryParseJson:()=>K3,tryParsePattern:()=>V2,tryParsePatterns:()=>f7,tryParseRawSourceMap:()=>dJ,tryReadDirectory:()=>qX,tryReadFile:()=>jC,tryRemoveDirectoryPrefix:()=>qU,tryRemoveExtension:()=>dae,tryRemovePrefix:()=>LG,tryRemoveSuffix:()=>$ne,typeAcquisitionDeclarations:()=>Ow,typeAliasNamePart:()=>ude,typeDirectiveIsEqualTo:()=>Aie,typeKeywords:()=>XF,typeParameterNamePart:()=>dde,typeToDisplayParts:()=>kO,unchangedPollThresholds:()=>lL,unchangedTextChangeRange:()=>zL,unescapeLeadingUnderscores:()=>Ki,unmangleScopedPackageName:()=>Hw,unorderedRemoveItem:()=>DA,unorderedRemoveItemAt:()=>PG,unreachableCodeIsError:()=>eae,unusedLabelIsError:()=>tae,unwrapInnermostStatementOfLabel:()=>Jj,updateErrorForNoInputFiles:()=>z5,updateLanguageServiceSourceFile:()=>n$,updateMissingFilePathsWatch:()=>FJ,updateResolutionField:()=>fR,updateSharedExtendedConfigFileWatcher:()=>CW,updateSourceFile:()=>mq,updateWatchingWildcardDirectories:()=>nO,usesExtensionsOnImports:()=>lae,usingSingleLineStringWriter:()=>PN,utf16EncodeAsString:()=>e2,validateLocaleAndSetLanguage:()=>PSe,valuesHelper:()=>Z7,version:()=>Ae,versionMajorMinor:()=>ue,visitArray:()=>Kw,visitCommaListElements:()=>Xw,visitEachChild:()=>xn,visitFunctionBody:()=>lf,visitIterationBody:()=>Rd,visitLexicalEnvironment:()=>cJ,visitNode:()=>rt,visitNodes:()=>Un,visitParameterList:()=>Ml,walkUpBindingElementsAndPatterns:()=>n2,walkUpLexicalEnvironments:()=>Hle,walkUpOuterExpressions:()=>Sse,walkUpParenthesizedExpressions:()=>Bv,walkUpParenthesizedTypes:()=>hk,walkUpParenthesizedTypesAndGetParentAndChild:()=>coe,whitespaceOrMapCommentRegExp:()=>fW,writeCommentRange:()=>O2,writeFile:()=>KN,writeFileEnsuringDirectories:()=>IU,zipWith:()=>In});var T4e=S({"src/typescript/_namespaces/ts.ts"(){ia(),hO(),oi(),cb(),qlt()}}),Jlt=w({"src/typescript/typescript.ts"(e,t){T4e(),T4e(),typeof console<"u"&&(N.loggingHost={log(r,i){switch(r){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=S4e}});return Jlt()})();typeof dG<"u"&&dG.exports&&(dG.exports=x1);var Oze=x1.createClassifier,DEe=x1.createLanguageService,Wze=x1.displayPartsToString,Fze=x1.EndOfLineState,zze=x1.flattenDiagnosticMessageText,Bze=x1.IndentStyle,tN=x1.ScriptKind,Gze=x1.ScriptTarget,Vze=x1.TokenClass,NEe=x1,jze=Object.freeze({__proto__:null,createClassifier:Oze,createLanguageService:DEe,displayPartsToString:Wze,EndOfLineState:Fze,flattenDiagnosticMessageText:zze,IndentStyle:Bze,ScriptKind:tN,ScriptTarget:Gze,TokenClass:Vze,typescript:NEe});const _o={};_o["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" />
`,_o["lib.decorators.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/**
* The decorator context types provided to class element decorators.
*/
type ClassMemberDecoratorContext =
| ClassMethodDecoratorContext
| ClassGetterDecoratorContext
| ClassSetterDecoratorContext
| ClassFieldDecoratorContext
| ClassAccessorDecoratorContext;
/**
* The decorator context types provided to any decorator.
*/
type DecoratorContext =
| ClassDecoratorContext
| ClassMemberDecoratorContext;
type DecoratorMetadataObject = Record<PropertyKey, unknown> & object;
type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined;
/**
* Context provided to a class decorator.
* @template Class The type of the decorated class associated with this context.
*/
interface ClassDecoratorContext<
Class extends abstract new (...args: any) => any = abstract new (...args: any) => any,
> {
/** The kind of element that was decorated. */
readonly kind: "class";
/** The name of the decorated class. */
readonly name: string | undefined;
/**
* Adds a callback to be invoked after the class definition has been finalized.
*
* @example
* \`\`\`ts
* function customElement(name: string): ClassDecoratorFunction {
* return (target, context) => {
* context.addInitializer(function () {
* customElements.define(name, this);
* });
* }
* }
*
* @customElement("my-element")
* class MyElement {}
* \`\`\`
*/
addInitializer(initializer: (this: Class) => void): void;
readonly metadata: DecoratorMetadata;
}
/**
* Context provided to a class method decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The type of the decorated class method.
*/
interface ClassMethodDecoratorContext<
This = unknown,
Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any,
> {
/** The kind of class element that was decorated. */
readonly kind: "method";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Gets the current value of the method from the provided object.
*
* @example
* let fn = context.access.get(instance);
*/
get(object: This): Value;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*
* @example
* \`\`\`ts
* const bound: ClassMethodDecoratorFunction = (value, context) {
* if (context.private) throw new TypeError("Not supported on private methods.");
* context.addInitializer(function () {
* this[context.name] = this[context.name].bind(this);
* });
* }
*
* class C {
* message = "Hello";
*
* @bound
* m() {
* console.log(this.message);
* }
* }
* \`\`\`
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
}
/**
* Context provided to a class getter decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The property type of the decorated class getter.
*/
interface ClassGetterDecoratorContext<
This = unknown,
Value = unknown,
> {
/** The kind of class element that was decorated. */
readonly kind: "getter";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Invokes the getter on the provided object.
*
* @example
* let value = context.access.get(instance);
*/
get(object: This): Value;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
}
/**
* Context provided to a class setter decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The type of the decorated class setter.
*/
interface ClassSetterDecoratorContext<
This = unknown,
Value = unknown,
> {
/** The kind of class element that was decorated. */
readonly kind: "setter";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Invokes the setter on the provided object.
*
* @example
* context.access.set(instance, value);
*/
set(object: This, value: Value): void;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
}
/**
* Context provided to a class \`accessor\` field decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The type of decorated class field.
*/
interface ClassAccessorDecoratorContext<
This = unknown,
Value = unknown,
> {
/** The kind of class element that was decorated. */
readonly kind: "accessor";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Invokes the getter on the provided object.
*
* @example
* let value = context.access.get(instance);
*/
get(object: This): Value;
/**
* Invokes the setter on the provided object.
*
* @example
* context.access.set(instance, value);
*/
set(object: This, value: Value): void;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
}
/**
* Describes the target provided to class \`accessor\` field decorators.
* @template This The \`this\` type to which the target applies.
* @template Value The property type for the class \`accessor\` field.
*/
interface ClassAccessorDecoratorTarget<This, Value> {
/**
* Invokes the getter that was defined prior to decorator application.
*
* @example
* let value = target.get.call(instance);
*/
get(this: This): Value;
/**
* Invokes the setter that was defined prior to decorator application.
*
* @example
* target.set.call(instance, value);
*/
set(this: This, value: Value): void;
}
/**
* Describes the allowed return value from a class \`accessor\` field decorator.
* @template This The \`this\` type to which the target applies.
* @template Value The property type for the class \`accessor\` field.
*/
interface ClassAccessorDecoratorResult<This, Value> {
/**
* An optional replacement getter function. If not provided, the existing getter function is used instead.
*/
get?(this: This): Value;
/**
* An optional replacement setter function. If not provided, the existing setter function is used instead.
*/
set?(this: This, value: Value): void;
/**
* An optional initializer mutator that is invoked when the underlying field initializer is evaluated.
* @param value The incoming initializer value.
* @returns The replacement initializer value.
*/
init?(this: This, value: Value): Value;
}
/**
* Context provided to a class field decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The type of the decorated class field.
*/
interface ClassFieldDecoratorContext<
This = unknown,
Value = unknown,
> {
/** The kind of class element that was decorated. */
readonly kind: "field";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Gets the value of the field on the provided object.
*/
get(object: This): Value;
/**
* Sets the value of the field on the provided object.
*/
set(object: This, value: Value): void;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
}
`,_o["lib.decorators.legacy.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void;
`,_o["lib.dom.asynciterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Window Async Iterable APIs
/////////////////////////////
interface FileSystemDirectoryHandle {
[Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>;
entries(): AsyncIterableIterator<[string, FileSystemHandle]>;
keys(): AsyncIterableIterator<string>;
values(): AsyncIterableIterator<FileSystemHandle>;
}
`,_o["lib.dom.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Window APIs
/////////////////////////////
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
signal?: AbortSignal;
}
interface AesCbcParams extends Algorithm {
iv: BufferSource;
}
interface AesCtrParams extends Algorithm {
counter: BufferSource;
length: number;
}
interface AesDerivedKeyParams extends Algorithm {
length: number;
}
interface AesGcmParams extends Algorithm {
additionalData?: BufferSource;
iv: BufferSource;
tagLength?: number;
}
interface AesKeyAlgorithm extends KeyAlgorithm {
length: number;
}
interface AesKeyGenParams extends Algorithm {
length: number;
}
interface Algorithm {
name: string;
}
interface AnalyserOptions extends AudioNodeOptions {
fftSize?: number;
maxDecibels?: number;
minDecibels?: number;
smoothingTimeConstant?: number;
}
interface AnimationEventInit extends EventInit {
animationName?: string;
elapsedTime?: number;
pseudoElement?: string;
}
interface AnimationPlaybackEventInit extends EventInit {
currentTime?: CSSNumberish | null;
timelineTime?: CSSNumberish | null;
}
interface AssignedNodesOptions {
flatten?: boolean;
}
interface AudioBufferOptions {
length: number;
numberOfChannels?: number;
sampleRate: number;
}
interface AudioBufferSourceOptions {
buffer?: AudioBuffer | null;
detune?: number;
loop?: boolean;
loopEnd?: number;
loopStart?: number;
playbackRate?: number;
}
interface AudioConfiguration {
bitrate?: number;
channels?: string;
contentType: string;
samplerate?: number;
spatialRendering?: boolean;
}
interface AudioContextOptions {
latencyHint?: AudioContextLatencyCategory | number;
sampleRate?: number;
}
interface AudioNodeOptions {
channelCount?: number;
channelCountMode?: ChannelCountMode;
channelInterpretation?: ChannelInterpretation;
}
interface AudioProcessingEventInit extends EventInit {
inputBuffer: AudioBuffer;
outputBuffer: AudioBuffer;
playbackTime: number;
}
interface AudioTimestamp {
contextTime?: number;
performanceTime?: DOMHighResTimeStamp;
}
interface AudioWorkletNodeOptions extends AudioNodeOptions {
numberOfInputs?: number;
numberOfOutputs?: number;
outputChannelCount?: number[];
parameterData?: Record<string, number>;
processorOptions?: any;
}
interface AuthenticationExtensionsClientInputs {
appid?: string;
credProps?: boolean;
hmacCreateSecret?: boolean;
minPinLength?: boolean;
}
interface AuthenticationExtensionsClientOutputs {
appid?: boolean;
credProps?: CredentialPropertiesOutput;
hmacCreateSecret?: boolean;
}
interface AuthenticatorSelectionCriteria {
authenticatorAttachment?: AuthenticatorAttachment;
requireResidentKey?: boolean;
residentKey?: ResidentKeyRequirement;
userVerification?: UserVerificationRequirement;
}
interface AvcEncoderConfig {
format?: AvcBitstreamFormat;
}
interface BiquadFilterOptions extends AudioNodeOptions {
Q?: number;
detune?: number;
frequency?: number;
gain?: number;
type?: BiquadFilterType;
}
interface BlobEventInit {
data: Blob;
timecode?: DOMHighResTimeStamp;
}
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
interface CSSMatrixComponentOptions {
is2D?: boolean;
}
interface CSSNumericType {
angle?: number;
flex?: number;
frequency?: number;
length?: number;
percent?: number;
percentHint?: CSSNumericBaseType;
resolution?: number;
time?: number;
}
interface CSSStyleSheetInit {
baseURL?: string;
disabled?: boolean;
media?: MediaList | string;
}
interface CacheQueryOptions {
ignoreMethod?: boolean;
ignoreSearch?: boolean;
ignoreVary?: boolean;
}
interface CanvasRenderingContext2DSettings {
alpha?: boolean;
colorSpace?: PredefinedColorSpace;
desynchronized?: boolean;
willReadFrequently?: boolean;
}
interface ChannelMergerOptions extends AudioNodeOptions {
numberOfInputs?: number;
}
interface ChannelSplitterOptions extends AudioNodeOptions {
numberOfOutputs?: number;
}
interface CheckVisibilityOptions {
checkOpacity?: boolean;
checkVisibilityCSS?: boolean;
}
interface ClientQueryOptions {
includeUncontrolled?: boolean;
type?: ClientTypes;
}
interface ClipboardEventInit extends EventInit {
clipboardData?: DataTransfer | null;
}
interface ClipboardItemOptions {
presentationStyle?: PresentationStyle;
}
interface CloseEventInit extends EventInit {
code?: number;
reason?: string;
wasClean?: boolean;
}
interface CompositionEventInit extends UIEventInit {
data?: string;
}
interface ComputedEffectTiming extends EffectTiming {
activeDuration?: CSSNumberish;
currentIteration?: number | null;
endTime?: CSSNumberish;
localTime?: CSSNumberish | null;
progress?: number | null;
startTime?: CSSNumberish;
}
interface ComputedKeyframe {
composite: CompositeOperationOrAuto;
computedOffset: number;
easing: string;
offset: number | null;
[property: string]: string | number | null | undefined;
}
interface ConstantSourceOptions {
offset?: number;
}
interface ConstrainBooleanParameters {
exact?: boolean;
ideal?: boolean;
}
interface ConstrainDOMStringParameters {
exact?: string | string[];
ideal?: string | string[];
}
interface ConstrainDoubleRange extends DoubleRange {
exact?: number;
ideal?: number;
}
interface ConstrainULongRange extends ULongRange {
exact?: number;
ideal?: number;
}
interface ConvolverOptions extends AudioNodeOptions {
buffer?: AudioBuffer | null;
disableNormalization?: boolean;
}
interface CredentialCreationOptions {
publicKey?: PublicKeyCredentialCreationOptions;
signal?: AbortSignal;
}
interface CredentialPropertiesOutput {
rk?: boolean;
}
interface CredentialRequestOptions {
mediation?: CredentialMediationRequirement;
publicKey?: PublicKeyCredentialRequestOptions;
signal?: AbortSignal;
}
interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}
interface CustomEventInit<T = any> extends EventInit {
detail?: T;
}
interface DOMMatrix2DInit {
a?: number;
b?: number;
c?: number;
d?: number;
e?: number;
f?: number;
m11?: number;
m12?: number;
m21?: number;
m22?: number;
m41?: number;
m42?: number;
}
interface DOMMatrixInit extends DOMMatrix2DInit {
is2D?: boolean;
m13?: number;
m14?: number;
m23?: number;
m24?: number;
m31?: number;
m32?: number;
m33?: number;
m34?: number;
m43?: number;
m44?: number;
}
interface DOMPointInit {
w?: number;
x?: number;
y?: number;
z?: number;
}
interface DOMQuadInit {
p1?: DOMPointInit;
p2?: DOMPointInit;
p3?: DOMPointInit;
p4?: DOMPointInit;
}
interface DOMRectInit {
height?: number;
width?: number;
x?: number;
y?: number;
}
interface DelayOptions extends AudioNodeOptions {
delayTime?: number;
maxDelayTime?: number;
}
interface DeviceMotionEventAccelerationInit {
x?: number | null;
y?: number | null;
z?: number | null;
}
interface DeviceMotionEventInit extends EventInit {
acceleration?: DeviceMotionEventAccelerationInit;
accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;
interval?: number;
rotationRate?: DeviceMotionEventRotationRateInit;
}
interface DeviceMotionEventRotationRateInit {
alpha?: number | null;
beta?: number | null;
gamma?: number | null;
}
interface DeviceOrientationEventInit extends EventInit {
absolute?: boolean;
alpha?: number | null;
beta?: number | null;
gamma?: number | null;
}
interface DisplayMediaStreamOptions {
audio?: boolean | MediaTrackConstraints;
video?: boolean | MediaTrackConstraints;
}
interface DocumentTimelineOptions {
originTime?: DOMHighResTimeStamp;
}
interface DoubleRange {
max?: number;
min?: number;
}
interface DragEventInit extends MouseEventInit {
dataTransfer?: DataTransfer | null;
}
interface DynamicsCompressorOptions extends AudioNodeOptions {
attack?: number;
knee?: number;
ratio?: number;
release?: number;
threshold?: number;
}
interface EcKeyAlgorithm extends KeyAlgorithm {
namedCurve: NamedCurve;
}
interface EcKeyGenParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcKeyImportParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcdhKeyDeriveParams extends Algorithm {
public: CryptoKey;
}
interface EcdsaParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface EffectTiming {
delay?: number;
direction?: PlaybackDirection;
duration?: number | CSSNumericValue | string;
easing?: string;
endDelay?: number;
fill?: FillMode;
iterationStart?: number;
iterations?: number;
playbackRate?: number;
}
interface ElementCreationOptions {
is?: string;
}
interface ElementDefinitionOptions {
extends?: string;
}
interface EncodedVideoChunkInit {
data: AllowSharedBufferSource;
duration?: number;
timestamp: number;
type: EncodedVideoChunkType;
}
interface EncodedVideoChunkMetadata {
decoderConfig?: VideoDecoderConfig;
}
interface ErrorEventInit extends EventInit {
colno?: number;
error?: any;
filename?: string;
lineno?: number;
message?: string;
}
interface EventInit {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}
interface EventListenerOptions {
capture?: boolean;
}
interface EventModifierInit extends UIEventInit {
altKey?: boolean;
ctrlKey?: boolean;
metaKey?: boolean;
modifierAltGraph?: boolean;
modifierCapsLock?: boolean;
modifierFn?: boolean;
modifierFnLock?: boolean;
modifierHyper?: boolean;
modifierNumLock?: boolean;
modifierScrollLock?: boolean;
modifierSuper?: boolean;
modifierSymbol?: boolean;
modifierSymbolLock?: boolean;
shiftKey?: boolean;
}
interface EventSourceInit {
withCredentials?: boolean;
}
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
interface FileSystemCreateWritableOptions {
keepExistingData?: boolean;
}
interface FileSystemFlags {
create?: boolean;
exclusive?: boolean;
}
interface FileSystemGetDirectoryOptions {
create?: boolean;
}
interface FileSystemGetFileOptions {
create?: boolean;
}
interface FileSystemRemoveOptions {
recursive?: boolean;
}
interface FocusEventInit extends UIEventInit {
relatedTarget?: EventTarget | null;
}
interface FocusOptions {
preventScroll?: boolean;
}
interface FontFaceDescriptors {
ascentOverride?: string;
descentOverride?: string;
display?: FontDisplay;
featureSettings?: string;
lineGapOverride?: string;
stretch?: string;
style?: string;
unicodeRange?: string;
weight?: string;
}
interface FontFaceSetLoadEventInit extends EventInit {
fontfaces?: FontFace[];
}
interface FormDataEventInit extends EventInit {
formData: FormData;
}
interface FullscreenOptions {
navigationUI?: FullscreenNavigationUI;
}
interface GainOptions extends AudioNodeOptions {
gain?: number;
}
interface GamepadEffectParameters {
duration?: number;
startDelay?: number;
strongMagnitude?: number;
weakMagnitude?: number;
}
interface GamepadEventInit extends EventInit {
gamepad: Gamepad;
}
interface GetAnimationsOptions {
subtree?: boolean;
}
interface GetNotificationOptions {
tag?: string;
}
interface GetRootNodeOptions {
composed?: boolean;
}
interface HashChangeEventInit extends EventInit {
newURL?: string;
oldURL?: string;
}
interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
info: BufferSource;
salt: BufferSource;
}
interface HmacImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface HmacKeyAlgorithm extends KeyAlgorithm {
hash: KeyAlgorithm;
length: number;
}
interface HmacKeyGenParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface IDBDatabaseInfo {
name?: string;
version?: number;
}
interface IDBIndexParameters {
multiEntry?: boolean;
unique?: boolean;
}
interface IDBObjectStoreParameters {
autoIncrement?: boolean;
keyPath?: string | string[] | null;
}
interface IDBTransactionOptions {
durability?: IDBTransactionDurability;
}
interface IDBVersionChangeEventInit extends EventInit {
newVersion?: number | null;
oldVersion?: number;
}
interface IIRFilterOptions extends AudioNodeOptions {
feedback: number[];
feedforward: number[];
}
interface IdleRequestOptions {
timeout?: number;
}
interface ImageBitmapOptions {
colorSpaceConversion?: ColorSpaceConversion;
imageOrientation?: ImageOrientation;
premultiplyAlpha?: PremultiplyAlpha;
resizeHeight?: number;
resizeQuality?: ResizeQuality;
resizeWidth?: number;
}
interface ImageBitmapRenderingContextSettings {
alpha?: boolean;
}
interface ImageDataSettings {
colorSpace?: PredefinedColorSpace;
}
interface ImageEncodeOptions {
quality?: number;
type?: string;
}
interface ImportMeta {
url: string;
}
interface InputEventInit extends UIEventInit {
data?: string | null;
dataTransfer?: DataTransfer | null;
inputType?: string;
isComposing?: boolean;
targetRanges?: StaticRange[];
}
interface IntersectionObserverEntryInit {
boundingClientRect: DOMRectInit;
intersectionRatio: number;
intersectionRect: DOMRectInit;
isIntersecting: boolean;
rootBounds: DOMRectInit | null;
target: Element;
time: DOMHighResTimeStamp;
}
interface IntersectionObserverInit {
root?: Element | Document | null;
rootMargin?: string;
threshold?: number | number[];
}
interface JsonWebKey {
alg?: string;
crv?: string;
d?: string;
dp?: string;
dq?: string;
e?: string;
ext?: boolean;
k?: string;
key_ops?: string[];
kty?: string;
n?: string;
oth?: RsaOtherPrimesInfo[];
p?: string;
q?: string;
qi?: string;
use?: string;
x?: string;
y?: string;
}
interface KeyAlgorithm {
name: string;
}
interface KeyboardEventInit extends EventModifierInit {
/** @deprecated */
charCode?: number;
code?: string;
isComposing?: boolean;
key?: string;
/** @deprecated */
keyCode?: number;
location?: number;
repeat?: boolean;
}
interface Keyframe {
composite?: CompositeOperationOrAuto;
easing?: string;
offset?: number | null;
[property: string]: string | number | null | undefined;
}
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
id?: string;
timeline?: AnimationTimeline | null;
}
interface KeyframeEffectOptions extends EffectTiming {
composite?: CompositeOperation;
iterationComposite?: IterationCompositeOperation;
pseudoElement?: string | null;
}
interface LockInfo {
clientId?: string;
mode?: LockMode;
name?: string;
}
interface LockManagerSnapshot {
held?: LockInfo[];
pending?: LockInfo[];
}
interface LockOptions {
ifAvailable?: boolean;
mode?: LockMode;
signal?: AbortSignal;
steal?: boolean;
}
interface MIDIConnectionEventInit extends EventInit {
port?: MIDIPort;
}
interface MIDIMessageEventInit extends EventInit {
data?: Uint8Array;
}
interface MIDIOptions {
software?: boolean;
sysex?: boolean;
}
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaDecodingConfiguration;
}
interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaEncodingConfiguration;
}
interface MediaCapabilitiesInfo {
powerEfficient: boolean;
smooth: boolean;
supported: boolean;
}
interface MediaConfiguration {
audio?: AudioConfiguration;
video?: VideoConfiguration;
}
interface MediaDecodingConfiguration extends MediaConfiguration {
type: MediaDecodingType;
}
interface MediaElementAudioSourceOptions {
mediaElement: HTMLMediaElement;
}
interface MediaEncodingConfiguration extends MediaConfiguration {
type: MediaEncodingType;
}
interface MediaEncryptedEventInit extends EventInit {
initData?: ArrayBuffer | null;
initDataType?: string;
}
interface MediaImage {
sizes?: string;
src: string;
type?: string;
}
interface MediaKeyMessageEventInit extends EventInit {
message: ArrayBuffer;
messageType: MediaKeyMessageType;
}
interface MediaKeySystemConfiguration {
audioCapabilities?: MediaKeySystemMediaCapability[];
distinctiveIdentifier?: MediaKeysRequirement;
initDataTypes?: string[];
label?: string;
persistentState?: MediaKeysRequirement;
sessionTypes?: string[];
videoCapabilities?: MediaKeySystemMediaCapability[];
}
interface MediaKeySystemMediaCapability {
contentType?: string;
encryptionScheme?: string | null;
robustness?: string;
}
interface MediaMetadataInit {
album?: string;
artist?: string;
artwork?: MediaImage[];
title?: string;
}
interface MediaPositionState {
duration?: number;
playbackRate?: number;
position?: number;
}
interface MediaQueryListEventInit extends EventInit {
matches?: boolean;
media?: string;
}
interface MediaRecorderOptions {
audioBitsPerSecond?: number;
bitsPerSecond?: number;
mimeType?: string;
videoBitsPerSecond?: number;
}
interface MediaSessionActionDetails {
action: MediaSessionAction;
fastSeek?: boolean;
seekOffset?: number;
seekTime?: number;
}
interface MediaStreamAudioSourceOptions {
mediaStream: MediaStream;
}
interface MediaStreamConstraints {
audio?: boolean | MediaTrackConstraints;
peerIdentity?: string;
preferCurrentTab?: boolean;
video?: boolean | MediaTrackConstraints;
}
interface MediaStreamTrackEventInit extends EventInit {
track: MediaStreamTrack;
}
interface MediaTrackCapabilities {
aspectRatio?: DoubleRange;
autoGainControl?: boolean[];
channelCount?: ULongRange;
deviceId?: string;
displaySurface?: string;
echoCancellation?: boolean[];
facingMode?: string[];
frameRate?: DoubleRange;
groupId?: string;
height?: ULongRange;
noiseSuppression?: boolean[];
sampleRate?: ULongRange;
sampleSize?: ULongRange;
width?: ULongRange;
}
interface MediaTrackConstraintSet {
aspectRatio?: ConstrainDouble;
autoGainControl?: ConstrainBoolean;
channelCount?: ConstrainULong;
deviceId?: ConstrainDOMString;
displaySurface?: ConstrainDOMString;
echoCancellation?: ConstrainBoolean;
facingMode?: ConstrainDOMString;
frameRate?: ConstrainDouble;
groupId?: ConstrainDOMString;
height?: ConstrainULong;
noiseSuppression?: ConstrainBoolean;
sampleRate?: ConstrainULong;
sampleSize?: ConstrainULong;
width?: ConstrainULong;
}
interface MediaTrackConstraints extends MediaTrackConstraintSet {
advanced?: MediaTrackConstraintSet[];
}
interface MediaTrackSettings {
aspectRatio?: number;
autoGainControl?: boolean;
channelCount?: number;
deviceId?: string;
displaySurface?: string;
echoCancellation?: boolean;
facingMode?: string;
frameRate?: number;
groupId?: string;
height?: number;
noiseSuppression?: boolean;
sampleRate?: number;
sampleSize?: number;
width?: number;
}
interface MediaTrackSupportedConstraints {
aspectRatio?: boolean;
autoGainControl?: boolean;
channelCount?: boolean;
deviceId?: boolean;
displaySurface?: boolean;
echoCancellation?: boolean;
facingMode?: boolean;
frameRate?: boolean;
groupId?: boolean;
height?: boolean;
noiseSuppression?: boolean;
sampleRate?: boolean;
sampleSize?: boolean;
width?: boolean;
}
interface MessageEventInit<T = any> extends EventInit {
data?: T;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: MessageEventSource | null;
}
interface MouseEventInit extends EventModifierInit {
button?: number;
buttons?: number;
clientX?: number;
clientY?: number;
movementX?: number;
movementY?: number;
relatedTarget?: EventTarget | null;
screenX?: number;
screenY?: number;
}
interface MultiCacheQueryOptions extends CacheQueryOptions {
cacheName?: string;
}
interface MutationObserverInit {
/** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */
attributeFilter?: string[];
/** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */
attributeOldValue?: boolean;
/** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */
attributes?: boolean;
/** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */
characterData?: boolean;
/** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */
characterDataOldValue?: boolean;
/** Set to true if mutations to target's children are to be observed. */
childList?: boolean;
/** Set to true if mutations to not just target, but also target's descendants are to be observed. */
subtree?: boolean;
}
interface NavigationPreloadState {
enabled?: boolean;
headerValue?: string;
}
interface NotificationOptions {
badge?: string;
body?: string;
data?: any;
dir?: NotificationDirection;
icon?: string;
lang?: string;
requireInteraction?: boolean;
silent?: boolean | null;
tag?: string;
}
interface OfflineAudioCompletionEventInit extends EventInit {
renderedBuffer: AudioBuffer;
}
interface OfflineAudioContextOptions {
length: number;
numberOfChannels?: number;
sampleRate: number;
}
interface OptionalEffectTiming {
delay?: number;
direction?: PlaybackDirection;
duration?: number | string;
easing?: string;
endDelay?: number;
fill?: FillMode;
iterationStart?: number;
iterations?: number;
playbackRate?: number;
}
interface OscillatorOptions extends AudioNodeOptions {
detune?: number;
frequency?: number;
periodicWave?: PeriodicWave;
type?: OscillatorType;
}
interface PageTransitionEventInit extends EventInit {
persisted?: boolean;
}
interface PannerOptions extends AudioNodeOptions {
coneInnerAngle?: number;
coneOuterAngle?: number;
coneOuterGain?: number;
distanceModel?: DistanceModelType;
maxDistance?: number;
orientationX?: number;
orientationY?: number;
orientationZ?: number;
panningModel?: PanningModelType;
positionX?: number;
positionY?: number;
positionZ?: number;
refDistance?: number;
rolloffFactor?: number;
}
interface PaymentCurrencyAmount {
currency: string;
value: string;
}
interface PaymentDetailsBase {
displayItems?: PaymentItem[];
modifiers?: PaymentDetailsModifier[];
}
interface PaymentDetailsInit extends PaymentDetailsBase {
id?: string;
total: PaymentItem;
}
interface PaymentDetailsModifier {
additionalDisplayItems?: PaymentItem[];
data?: any;
supportedMethods: string;
total?: PaymentItem;
}
interface PaymentDetailsUpdate extends PaymentDetailsBase {
paymentMethodErrors?: any;
total?: PaymentItem;
}
interface PaymentItem {
amount: PaymentCurrencyAmount;
label: string;
pending?: boolean;
}
interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {
methodDetails?: any;
methodName?: string;
}
interface PaymentMethodData {
data?: any;
supportedMethods: string;
}
interface PaymentRequestUpdateEventInit extends EventInit {
}
interface PaymentValidationErrors {
error?: string;
paymentMethod?: any;
}
interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
salt: BufferSource;
}
interface PerformanceMarkOptions {
detail?: any;
startTime?: DOMHighResTimeStamp;
}
interface PerformanceMeasureOptions {
detail?: any;
duration?: DOMHighResTimeStamp;
end?: string | DOMHighResTimeStamp;
start?: string | DOMHighResTimeStamp;
}
interface PerformanceObserverInit {
buffered?: boolean;
entryTypes?: string[];
type?: string;
}
interface PeriodicWaveConstraints {
disableNormalization?: boolean;
}
interface PeriodicWaveOptions extends PeriodicWaveConstraints {
imag?: number[] | Float32Array;
real?: number[] | Float32Array;
}
interface PermissionDescriptor {
name: PermissionName;
}
interface PictureInPictureEventInit extends EventInit {
pictureInPictureWindow: PictureInPictureWindow;
}
interface PlaneLayout {
offset: number;
stride: number;
}
interface PointerEventInit extends MouseEventInit {
coalescedEvents?: PointerEvent[];
height?: number;
isPrimary?: boolean;
pointerId?: number;
pointerType?: string;
predictedEvents?: PointerEvent[];
pressure?: number;
tangentialPressure?: number;
tiltX?: number;
tiltY?: number;
twist?: number;
width?: number;
}
interface PopStateEventInit extends EventInit {
state?: any;
}
interface PositionOptions {
enableHighAccuracy?: boolean;
maximumAge?: number;
timeout?: number;
}
interface ProgressEventInit extends EventInit {
lengthComputable?: boolean;
loaded?: number;
total?: number;
}
interface PromiseRejectionEventInit extends EventInit {
promise: Promise<any>;
reason?: any;
}
interface PropertyDefinition {
inherits: boolean;
initialValue?: string;
name: string;
syntax?: string;
}
interface PropertyIndexedKeyframes {
composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
easing?: string | string[];
offset?: number | (number | null)[];
[property: string]: string | string[] | number | null | (number | null)[] | undefined;
}
interface PublicKeyCredentialCreationOptions {
attestation?: AttestationConveyancePreference;
authenticatorSelection?: AuthenticatorSelectionCriteria;
challenge: BufferSource;
excludeCredentials?: PublicKeyCredentialDescriptor[];
extensions?: AuthenticationExtensionsClientInputs;
pubKeyCredParams: PublicKeyCredentialParameters[];
rp: PublicKeyCredentialRpEntity;
timeout?: number;
user: PublicKeyCredentialUserEntity;
}
interface PublicKeyCredentialDescriptor {
id: BufferSource;
transports?: AuthenticatorTransport[];
type: PublicKeyCredentialType;
}
interface PublicKeyCredentialEntity {
name: string;
}
interface PublicKeyCredentialParameters {
alg: COSEAlgorithmIdentifier;
type: PublicKeyCredentialType;
}
interface PublicKeyCredentialRequestOptions {
allowCredentials?: PublicKeyCredentialDescriptor[];
challenge: BufferSource;
extensions?: AuthenticationExtensionsClientInputs;
rpId?: string;
timeout?: number;
userVerification?: UserVerificationRequirement;
}
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
id?: string;
}
interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
displayName: string;
id: BufferSource;
}
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: EpochTimeStamp | null;
keys?: Record<string, string>;
}
interface PushSubscriptionOptionsInit {
applicationServerKey?: BufferSource | string | null;
userVisibleOnly?: boolean;
}
interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySize<T>;
}
interface QueuingStrategyInit {
/**
* Creates a new ByteLengthQueuingStrategy with the provided high water mark.
*
* Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
*/
highWaterMark: number;
}
interface RTCAnswerOptions extends RTCOfferAnswerOptions {
}
interface RTCCertificateExpiration {
expires?: number;
}
interface RTCConfiguration {
bundlePolicy?: RTCBundlePolicy;
certificates?: RTCCertificate[];
iceCandidatePoolSize?: number;
iceServers?: RTCIceServer[];
iceTransportPolicy?: RTCIceTransportPolicy;
rtcpMuxPolicy?: RTCRtcpMuxPolicy;
}
interface RTCDTMFToneChangeEventInit extends EventInit {
tone?: string;
}
interface RTCDataChannelEventInit extends EventInit {
channel: RTCDataChannel;
}
interface RTCDataChannelInit {
id?: number;
maxPacketLifeTime?: number;
maxRetransmits?: number;
negotiated?: boolean;
ordered?: boolean;
protocol?: string;
}
interface RTCDtlsFingerprint {
algorithm?: string;
value?: string;
}
interface RTCEncodedAudioFrameMetadata {
contributingSources?: number[];
payloadType?: number;
sequenceNumber?: number;
synchronizationSource?: number;
}
interface RTCEncodedVideoFrameMetadata {
contributingSources?: number[];
dependencies?: number[];
frameId?: number;
height?: number;
payloadType?: number;
spatialIndex?: number;
synchronizationSource?: number;
temporalIndex?: number;
timestamp?: number;
width?: number;
}
interface RTCErrorEventInit extends EventInit {
error: RTCError;
}
interface RTCErrorInit {
errorDetail: RTCErrorDetailType;
httpRequestStatusCode?: number;
receivedAlert?: number;
sctpCauseCode?: number;
sdpLineNumber?: number;
sentAlert?: number;
}
interface RTCIceCandidateInit {
candidate?: string;
sdpMLineIndex?: number | null;
sdpMid?: string | null;
usernameFragment?: string | null;
}
interface RTCIceCandidatePair {
local?: RTCIceCandidate;
remote?: RTCIceCandidate;
}
interface RTCIceCandidatePairStats extends RTCStats {
availableIncomingBitrate?: number;
availableOutgoingBitrate?: number;
bytesReceived?: number;
bytesSent?: number;
currentRoundTripTime?: number;
lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
lastPacketSentTimestamp?: DOMHighResTimeStamp;
localCandidateId: string;
nominated?: boolean;
remoteCandidateId: string;
requestsReceived?: number;
requestsSent?: number;
responsesReceived?: number;
responsesSent?: number;
state: RTCStatsIceCandidatePairState;
totalRoundTripTime?: number;
transportId: string;
}
interface RTCIceServer {
credential?: string;
urls: string | string[];
username?: string;
}
interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
audioLevel?: number;
bytesReceived?: number;
concealedSamples?: number;
concealmentEvents?: number;
decoderImplementation?: string;
estimatedPlayoutTimestamp?: DOMHighResTimeStamp;
fecPacketsDiscarded?: number;
fecPacketsReceived?: number;
firCount?: number;
frameHeight?: number;
frameWidth?: number;
framesDecoded?: number;
framesDropped?: number;
framesPerSecond?: number;
framesReceived?: number;
headerBytesReceived?: number;
insertedSamplesForDeceleration?: number;
jitterBufferDelay?: number;
jitterBufferEmittedCount?: number;
keyFramesDecoded?: number;
lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
mid?: string;
nackCount?: number;
packetsDiscarded?: number;
pliCount?: number;
qpSum?: number;
remoteId?: string;
removedSamplesForAcceleration?: number;
silentConcealedSamples?: number;
totalAudioEnergy?: number;
totalDecodeTime?: number;
totalInterFrameDelay?: number;
totalProcessingDelay?: number;
totalSamplesDuration?: number;
totalSamplesReceived?: number;
totalSquaredInterFrameDelay?: number;
trackIdentifier: string;
}
interface RTCLocalSessionDescriptionInit {
sdp?: string;
type?: RTCSdpType;
}
interface RTCOfferAnswerOptions {
}
interface RTCOfferOptions extends RTCOfferAnswerOptions {
iceRestart?: boolean;
offerToReceiveAudio?: boolean;
offerToReceiveVideo?: boolean;
}
interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
firCount?: number;
frameHeight?: number;
frameWidth?: number;
framesEncoded?: number;
framesPerSecond?: number;
framesSent?: number;
headerBytesSent?: number;
hugeFramesSent?: number;
keyFramesEncoded?: number;
mediaSourceId?: string;
nackCount?: number;
pliCount?: number;
qpSum?: number;
qualityLimitationResolutionChanges?: number;
remoteId?: string;
retransmittedBytesSent?: number;
retransmittedPacketsSent?: number;
rid?: string;
rtxSsrc?: number;
targetBitrate?: number;
totalEncodeTime?: number;
totalEncodedBytesTarget?: number;
totalPacketSendDelay?: number;
}
interface RTCPeerConnectionIceErrorEventInit extends EventInit {
address?: string | null;
errorCode: number;
errorText?: string;
port?: number | null;
url?: string;
}
interface RTCPeerConnectionIceEventInit extends EventInit {
candidate?: RTCIceCandidate | null;
url?: string | null;
}
interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
jitter?: number;
packetsLost?: number;
packetsReceived?: number;
}
interface RTCRtcpParameters {
cname?: string;
reducedSize?: boolean;
}
interface RTCRtpCapabilities {
codecs: RTCRtpCodecCapability[];
headerExtensions: RTCRtpHeaderExtensionCapability[];
}
interface RTCRtpCodec {
channels?: number;
clockRate: number;
mimeType: string;
sdpFmtpLine?: string;
}
interface RTCRtpCodecCapability extends RTCRtpCodec {
}
interface RTCRtpCodecParameters extends RTCRtpCodec {
payloadType: number;
}
interface RTCRtpCodingParameters {
rid?: string;
}
interface RTCRtpContributingSource {
audioLevel?: number;
rtpTimestamp: number;
source: number;
timestamp: DOMHighResTimeStamp;
}
interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
active?: boolean;
maxBitrate?: number;
maxFramerate?: number;
networkPriority?: RTCPriorityType;
priority?: RTCPriorityType;
scaleResolutionDownBy?: number;
}
interface RTCRtpHeaderExtensionCapability {
uri: string;
}
interface RTCRtpHeaderExtensionParameters {
encrypted?: boolean;
id: number;
uri: string;
}
interface RTCRtpParameters {
codecs: RTCRtpCodecParameters[];
headerExtensions: RTCRtpHeaderExtensionParameters[];
rtcp: RTCRtcpParameters;
}
interface RTCRtpReceiveParameters extends RTCRtpParameters {
}
interface RTCRtpSendParameters extends RTCRtpParameters {
degradationPreference?: RTCDegradationPreference;
encodings: RTCRtpEncodingParameters[];
transactionId: string;
}
interface RTCRtpStreamStats extends RTCStats {
codecId?: string;
kind: string;
ssrc: number;
transportId?: string;
}
interface RTCRtpSynchronizationSource extends RTCRtpContributingSource {
}
interface RTCRtpTransceiverInit {
direction?: RTCRtpTransceiverDirection;
sendEncodings?: RTCRtpEncodingParameters[];
streams?: MediaStream[];
}
interface RTCSentRtpStreamStats extends RTCRtpStreamStats {
bytesSent?: number;
packetsSent?: number;
}
interface RTCSessionDescriptionInit {
sdp?: string;
type: RTCSdpType;
}
interface RTCSetParameterOptions {
}
interface RTCStats {
id: string;
timestamp: DOMHighResTimeStamp;
type: RTCStatsType;
}
interface RTCTrackEventInit extends EventInit {
receiver: RTCRtpReceiver;
streams?: MediaStream[];
track: MediaStreamTrack;
transceiver: RTCRtpTransceiver;
}
interface RTCTransportStats extends RTCStats {
bytesReceived?: number;
bytesSent?: number;
dtlsCipher?: string;
dtlsState: RTCDtlsTransportState;
localCertificateId?: string;
remoteCertificateId?: string;
selectedCandidatePairId?: string;
srtpCipher?: string;
tlsVersion?: string;
}
interface ReadableStreamGetReaderOptions {
/**
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
*
* This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
*/
mode?: ReadableStreamReaderMode;
}
interface ReadableStreamReadDoneResult<T> {
done: true;
value?: T;
}
interface ReadableStreamReadValueResult<T> {
done: false;
value: T;
}
interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/**
* Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*/
writable: WritableStream<W>;
}
interface RegistrationOptions {
scope?: string;
type?: WorkerType;
updateViaCache?: ServiceWorkerUpdateViaCache;
}
interface ReportingObserverOptions {
buffered?: boolean;
types?: string[];
}
interface RequestInit {
/** A BodyInit object or null to set request's body. */
body?: BodyInit | null;
/** A string indicating how the request will interact with the browser's cache to set request's cache. */
cache?: RequestCache;
/** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */
credentials?: RequestCredentials;
/** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
headers?: HeadersInit;
/** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
integrity?: string;
/** A boolean to set request's keepalive. */
keepalive?: boolean;
/** A string to set request's method. */
method?: string;
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
mode?: RequestMode;
priority?: RequestPriority;
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
redirect?: RequestRedirect;
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
referrer?: string;
/** A referrer policy to set request's referrerPolicy. */
referrerPolicy?: ReferrerPolicy;
/** An AbortSignal to set request's signal. */
signal?: AbortSignal | null;
/** Can only be null. Used to disassociate request from any Window. */
window?: null;
}
interface ResizeObserverOptions {
box?: ResizeObserverBoxOptions;
}
interface ResponseInit {
headers?: HeadersInit;
status?: number;
statusText?: string;
}
interface RsaHashedImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
hash: KeyAlgorithm;
}
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash: HashAlgorithmIdentifier;
}
interface RsaKeyAlgorithm extends KeyAlgorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaKeyGenParams extends Algorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaOaepParams extends Algorithm {
label?: BufferSource;
}
interface RsaOtherPrimesInfo {
d?: string;
r?: string;
t?: string;
}
interface RsaPssParams extends Algorithm {
saltLength: number;
}
interface SVGBoundingBoxOptions {
clipped?: boolean;
fill?: boolean;
markers?: boolean;
stroke?: boolean;
}
interface ScrollIntoViewOptions extends ScrollOptions {
block?: ScrollLogicalPosition;
inline?: ScrollLogicalPosition;
}
interface ScrollOptions {
behavior?: ScrollBehavior;
}
interface ScrollToOptions extends ScrollOptions {
left?: number;
top?: number;
}
interface SecurityPolicyViolationEventInit extends EventInit {
blockedURI?: string;
columnNumber?: number;
disposition: SecurityPolicyViolationEventDisposition;
documentURI: string;
effectiveDirective: string;
lineNumber?: number;
originalPolicy: string;
referrer?: string;
sample?: string;
sourceFile?: string;
statusCode: number;
violatedDirective: string;
}
interface ShadowRootInit {
delegatesFocus?: boolean;
mode: ShadowRootMode;
slotAssignment?: SlotAssignmentMode;
}
interface ShareData {
files?: File[];
text?: string;
title?: string;
url?: string;
}
interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
error: SpeechSynthesisErrorCode;
}
interface SpeechSynthesisEventInit extends EventInit {
charIndex?: number;
charLength?: number;
elapsedTime?: number;
name?: string;
utterance: SpeechSynthesisUtterance;
}
interface StaticRangeInit {
endContainer: Node;
endOffset: number;
startContainer: Node;
startOffset: number;
}
interface StereoPannerOptions extends AudioNodeOptions {
pan?: number;
}
interface StorageEstimate {
quota?: number;
usage?: number;
}
interface StorageEventInit extends EventInit {
key?: string | null;
newValue?: string | null;
oldValue?: string | null;
storageArea?: Storage | null;
url?: string;
}
interface StreamPipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
/**
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*
* Errors and closures of the source and destination streams propagate as follows:
*
* An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
*
* An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
*
* When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
*
* If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
*
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
*/
preventClose?: boolean;
signal?: AbortSignal;
}
interface StructuredSerializeOptions {
transfer?: Transferable[];
}
interface SubmitEventInit extends EventInit {
submitter?: HTMLElement | null;
}
interface TextDecodeOptions {
stream?: boolean;
}
interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: boolean;
}
interface TextEncoderEncodeIntoResult {
read: number;
written: number;
}
interface ToggleEventInit extends EventInit {
newState?: string;
oldState?: string;
}
interface TouchEventInit extends EventModifierInit {
changedTouches?: Touch[];
targetTouches?: Touch[];
touches?: Touch[];
}
interface TouchInit {
altitudeAngle?: number;
azimuthAngle?: number;
clientX?: number;
clientY?: number;
force?: number;
identifier: number;
pageX?: number;
pageY?: number;
radiusX?: number;
radiusY?: number;
rotationAngle?: number;
screenX?: number;
screenY?: number;
target: EventTarget;
touchType?: TouchType;
}
interface TrackEventInit extends EventInit {
track?: TextTrack | null;
}
interface Transformer<I = any, O = any> {
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
transform?: TransformerTransformCallback<I, O>;
writableType?: undefined;
}
interface TransitionEventInit extends EventInit {
elapsedTime?: number;
propertyName?: string;
pseudoElement?: string;
}
interface UIEventInit extends EventInit {
detail?: number;
view?: Window | null;
/** @deprecated */
which?: number;
}
interface ULongRange {
max?: number;
min?: number;
}
interface UnderlyingByteSource {
autoAllocateChunkSize?: number;
cancel?: UnderlyingSourceCancelCallback;
pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
start?: (controller: ReadableByteStreamController) => any;
type: "bytes";
}
interface UnderlyingDefaultSource<R = any> {
cancel?: UnderlyingSourceCancelCallback;
pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
start?: (controller: ReadableStreamDefaultController<R>) => any;
type?: undefined;
}
interface UnderlyingSink<W = any> {
abort?: UnderlyingSinkAbortCallback;
close?: UnderlyingSinkCloseCallback;
start?: UnderlyingSinkStartCallback;
type?: undefined;
write?: UnderlyingSinkWriteCallback<W>;
}
interface UnderlyingSource<R = any> {
autoAllocateChunkSize?: number;
cancel?: UnderlyingSourceCancelCallback;
pull?: UnderlyingSourcePullCallback<R>;
start?: UnderlyingSourceStartCallback<R>;
type?: ReadableStreamType;
}
interface ValidityStateFlags {
badInput?: boolean;
customError?: boolean;
patternMismatch?: boolean;
rangeOverflow?: boolean;
rangeUnderflow?: boolean;
stepMismatch?: boolean;
tooLong?: boolean;
tooShort?: boolean;
typeMismatch?: boolean;
valueMissing?: boolean;
}
interface VideoColorSpaceInit {
fullRange?: boolean | null;
matrix?: VideoMatrixCoefficients | null;
primaries?: VideoColorPrimaries | null;
transfer?: VideoTransferCharacteristics | null;
}
interface VideoConfiguration {
bitrate: number;
colorGamut?: ColorGamut;
contentType: string;
framerate: number;
hdrMetadataType?: HdrMetadataType;
height: number;
scalabilityMode?: string;
transferFunction?: TransferFunction;
width: number;
}
interface VideoDecoderConfig {
codec: string;
codedHeight?: number;
codedWidth?: number;
colorSpace?: VideoColorSpaceInit;
description?: AllowSharedBufferSource;
displayAspectHeight?: number;
displayAspectWidth?: number;
hardwareAcceleration?: HardwareAcceleration;
optimizeForLatency?: boolean;
}
interface VideoDecoderInit {
error: WebCodecsErrorCallback;
output: VideoFrameOutputCallback;
}
interface VideoDecoderSupport {
config?: VideoDecoderConfig;
supported?: boolean;
}
interface VideoEncoderConfig {
alpha?: AlphaOption;
avc?: AvcEncoderConfig;
bitrate?: number;
bitrateMode?: VideoEncoderBitrateMode;
codec: string;
displayHeight?: number;
displayWidth?: number;
framerate?: number;
hardwareAcceleration?: HardwareAcceleration;
height: number;
latencyMode?: LatencyMode;
scalabilityMode?: string;
width: number;
}
interface VideoEncoderEncodeOptions {
keyFrame?: boolean;
}
interface VideoEncoderInit {
error: WebCodecsErrorCallback;
output: EncodedVideoChunkOutputCallback;
}
interface VideoEncoderSupport {
config?: VideoEncoderConfig;
supported?: boolean;
}
interface VideoFrameBufferInit {
codedHeight: number;
codedWidth: number;
colorSpace?: VideoColorSpaceInit;
displayHeight?: number;
displayWidth?: number;
duration?: number;
format: VideoPixelFormat;
layout?: PlaneLayout[];
timestamp: number;
visibleRect?: DOMRectInit;
}
interface VideoFrameCallbackMetadata {
captureTime?: DOMHighResTimeStamp;
expectedDisplayTime: DOMHighResTimeStamp;
height: number;
mediaTime: number;
presentationTime: DOMHighResTimeStamp;
presentedFrames: number;
processingDuration?: number;
receiveTime?: DOMHighResTimeStamp;
rtpTimestamp?: number;
width: number;
}
interface VideoFrameCopyToOptions {
layout?: PlaneLayout[];
rect?: DOMRectInit;
}
interface VideoFrameInit {
alpha?: AlphaOption;
displayHeight?: number;
displayWidth?: number;
duration?: number;
timestamp?: number;
visibleRect?: DOMRectInit;
}
interface WaveShaperOptions extends AudioNodeOptions {
curve?: number[] | Float32Array;
oversample?: OverSampleType;
}
interface WebGLContextAttributes {
alpha?: boolean;
antialias?: boolean;
depth?: boolean;
desynchronized?: boolean;
failIfMajorPerformanceCaveat?: boolean;
powerPreference?: WebGLPowerPreference;
premultipliedAlpha?: boolean;
preserveDrawingBuffer?: boolean;
stencil?: boolean;
}
interface WebGLContextEventInit extends EventInit {
statusMessage?: string;
}
interface WebTransportCloseInfo {
closeCode?: number;
reason?: string;
}
interface WebTransportErrorOptions {
source?: WebTransportErrorSource;
streamErrorCode?: number | null;
}
interface WebTransportHash {
algorithm?: string;
value?: BufferSource;
}
interface WebTransportOptions {
allowPooling?: boolean;
congestionControl?: WebTransportCongestionControl;
requireUnreliable?: boolean;
serverCertificateHashes?: WebTransportHash[];
}
interface WebTransportSendStreamOptions {
sendOrder?: number;
}
interface WheelEventInit extends MouseEventInit {
deltaMode?: number;
deltaX?: number;
deltaY?: number;
deltaZ?: number;
}
interface WindowPostMessageOptions extends StructuredSerializeOptions {
targetOrigin?: string;
}
interface WorkerOptions {
credentials?: RequestCredentials;
name?: string;
type?: WorkerType;
}
interface WorkletOptions {
credentials?: RequestCredentials;
}
interface WriteParams {
data?: BufferSource | Blob | string | null;
position?: number | null;
size?: number | null;
type: WriteCommandType;
}
type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };
declare var NodeFilter: {
readonly FILTER_ACCEPT: 1;
readonly FILTER_REJECT: 2;
readonly FILTER_SKIP: 3;
readonly SHOW_ALL: 0xFFFFFFFF;
readonly SHOW_ELEMENT: 0x1;
readonly SHOW_ATTRIBUTE: 0x2;
readonly SHOW_TEXT: 0x4;
readonly SHOW_CDATA_SECTION: 0x8;
readonly SHOW_ENTITY_REFERENCE: 0x10;
readonly SHOW_ENTITY: 0x20;
readonly SHOW_PROCESSING_INSTRUCTION: 0x40;
readonly SHOW_COMMENT: 0x80;
readonly SHOW_DOCUMENT: 0x100;
readonly SHOW_DOCUMENT_TYPE: 0x200;
readonly SHOW_DOCUMENT_FRAGMENT: 0x400;
readonly SHOW_NOTATION: 0x800;
};
type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };
/**
* The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays)
*/
interface ANGLE_instanced_arrays {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
}
interface ARIAMixin {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */
ariaAtomic: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */
ariaAutoComplete: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */
ariaBusy: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */
ariaChecked: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */
ariaColCount: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */
ariaColIndex: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */
ariaColSpan: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */
ariaCurrent: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */
ariaDescription: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */
ariaDisabled: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */
ariaExpanded: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */
ariaHasPopup: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */
ariaHidden: string | null;
ariaInvalid: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */
ariaKeyShortcuts: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */
ariaLabel: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */
ariaLevel: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */
ariaLive: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */
ariaModal: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */
ariaMultiLine: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */
ariaMultiSelectable: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */
ariaOrientation: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */
ariaPlaceholder: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */
ariaPosInSet: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */
ariaPressed: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */
ariaReadOnly: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */
ariaRequired: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */
ariaRoleDescription: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */
ariaRowCount: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */
ariaRowIndex: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */
ariaRowSpan: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */
ariaSelected: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */
ariaSetSize: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */
ariaSort: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */
ariaValueMax: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */
ariaValueMin: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */
ariaValueNow: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */
ariaValueText: string | null;
role: string | null;
}
/**
* A controller object that allows you to abort one or more DOM requests as and when desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
*/
interface AbortController {
/**
* Returns the AbortSignal object associated with this object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)
*/
readonly signal: AbortSignal;
/**
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)
*/
abort(reason?: any): void;
}
declare var AbortController: {
prototype: AbortController;
new(): AbortController;
};
interface AbortSignalEventMap {
"abort": Event;
}
/**
* A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
*/
interface AbortSignal extends EventTarget {
/**
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)
*/
readonly aborted: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */
onabort: ((this: AbortSignal, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */
readonly reason: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */
throwIfAborted(): void;
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AbortSignal: {
prototype: AbortSignal;
new(): AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
abort(reason?: any): AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
timeout(milliseconds: number): AbortSignal;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange) */
interface AbstractRange {
/**
* Returns true if range is collapsed, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed)
*/
readonly collapsed: boolean;
/**
* Returns range's end node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer)
*/
readonly endContainer: Node;
/**
* Returns range's end offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset)
*/
readonly endOffset: number;
/**
* Returns range's start node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer)
*/
readonly startContainer: Node;
/**
* Returns range's start offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset)
*/
readonly startOffset: number;
}
declare var AbstractRange: {
prototype: AbstractRange;
new(): AbstractRange;
};
interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
interface AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/**
* A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode)
*/
interface AnalyserNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */
fftSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */
readonly frequencyBinCount: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */
maxDecibels: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */
minDecibels: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */
smoothingTimeConstant: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */
getByteFrequencyData(array: Uint8Array): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */
getByteTimeDomainData(array: Uint8Array): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */
getFloatFrequencyData(array: Float32Array): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData) */
getFloatTimeDomainData(array: Float32Array): void;
}
declare var AnalyserNode: {
prototype: AnalyserNode;
new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;
};
interface Animatable {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */
getAnimations(options?: GetAnimationsOptions): Animation[];
}
interface AnimationEventMap {
"cancel": AnimationPlaybackEvent;
"finish": AnimationPlaybackEvent;
"remove": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */
interface Animation extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */
currentTime: CSSNumberish | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */
effect: AnimationEffect | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */
readonly finished: Promise<Animation>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id) */
id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */
oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */
onremove: ((this: Animation, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */
readonly pending: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */
readonly playState: AnimationPlayState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */
playbackRate: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */
readonly ready: Promise<Animation>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */
readonly replaceState: AnimationReplaceState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */
startTime: CSSNumberish | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */
timeline: AnimationTimeline | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */
cancel(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */
commitStyles(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */
finish(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */
pause(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */
persist(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */
play(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */
reverse(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) */
updatePlaybackRate(playbackRate: number): void;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Animation: {
prototype: Animation;
new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect) */
interface AnimationEffect {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */
getComputedTiming(): ComputedEffectTiming;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */
getTiming(): EffectTiming;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */
updateTiming(timing?: OptionalEffectTiming): void;
}
declare var AnimationEffect: {
prototype: AnimationEffect;
new(): AnimationEffect;
};
/**
* Events providing information related to animations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent)
*/
interface AnimationEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */
readonly animationName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */
readonly elapsedTime: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement) */
readonly pseudoElement: string;
}
declare var AnimationEvent: {
prototype: AnimationEvent;
new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
};
interface AnimationFrameProvider {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
cancelAnimationFrame(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
requestAnimationFrame(callback: FrameRequestCallback): number;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */
interface AnimationPlaybackEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */
readonly currentTime: CSSNumberish | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime) */
readonly timelineTime: CSSNumberish | null;
}
declare var AnimationPlaybackEvent: {
prototype: AnimationPlaybackEvent;
new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */
interface AnimationTimeline {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */
readonly currentTime: CSSNumberish | null;
}
declare var AnimationTimeline: {
prototype: AnimationTimeline;
new(): AnimationTimeline;
};
/**
* A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr)
*/
interface Attr extends Node {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */
readonly localName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */
readonly namespaceURI: string | null;
readonly ownerDocument: Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */
readonly ownerElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */
readonly prefix: string | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified)
*/
readonly specified: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */
value: string;
}
declare var Attr: {
prototype: Attr;
new(): Attr;
};
/**
* A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer)
*/
interface AudioBuffer {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */
readonly duration: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */
readonly numberOfChannels: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */
readonly sampleRate: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */
copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */
copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */
getChannelData(channel: number): Float32Array;
}
declare var AudioBuffer: {
prototype: AudioBuffer;
new(options: AudioBufferOptions): AudioBuffer;
};
/**
* An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode)
*/
interface AudioBufferSourceNode extends AudioScheduledSourceNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */
buffer: AudioBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */
readonly detune: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */
loop: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */
loopEnd: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */
loopStart: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */
readonly playbackRate: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start) */
start(when?: number, offset?: number, duration?: number): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioBufferSourceNode: {
prototype: AudioBufferSourceNode;
new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;
};
/**
* An audio-processing graph built from audio modules linked together, each represented by an AudioNode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext)
*/
interface AudioContext extends BaseAudioContext {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */
readonly baseLatency: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */
readonly outputLatency: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */
createMediaStreamDestination(): MediaStreamAudioDestinationNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */
createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */
getOutputTimestamp(): AudioTimestamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */
resume(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */
suspend(): Promise<void>;
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioContext: {
prototype: AudioContext;
new(contextOptions?: AudioContextOptions): AudioContext;
};
/**
* AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode)
*/
interface AudioDestinationNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */
readonly maxChannelCount: number;
}
declare var AudioDestinationNode: {
prototype: AudioDestinationNode;
new(): AudioDestinationNode;
};
/**
* The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener)
*/
interface AudioListener {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */
readonly forwardX: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */
readonly forwardY: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */
readonly forwardZ: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */
readonly positionX: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */
readonly positionY: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */
readonly positionZ: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */
readonly upX: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */
readonly upY: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */
readonly upZ: AudioParam;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation)
*/
setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition)
*/
setPosition(x: number, y: number, z: number): void;
}
declare var AudioListener: {
prototype: AudioListener;
new(): AudioListener;
};
/**
* A generic interface for representing an audio processing module. Examples include:
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode)
*/
interface AudioNode extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */
channelCount: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */
channelCountMode: ChannelCountMode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */
channelInterpretation: ChannelInterpretation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */
readonly context: BaseAudioContext;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */
readonly numberOfInputs: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */
readonly numberOfOutputs: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect) */
connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;
connect(destinationParam: AudioParam, output?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect) */
disconnect(): void;
disconnect(output: number): void;
disconnect(destinationNode: AudioNode): void;
disconnect(destinationNode: AudioNode, output: number): void;
disconnect(destinationNode: AudioNode, output: number, input: number): void;
disconnect(destinationParam: AudioParam): void;
disconnect(destinationParam: AudioParam, output: number): void;
}
declare var AudioNode: {
prototype: AudioNode;
new(): AudioNode;
};
/**
* The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam)
*/
interface AudioParam {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate) */
automationRate: AutomationRate;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */
readonly defaultValue: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */
readonly maxValue: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */
readonly minValue: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */
value: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */
cancelAndHoldAtTime(cancelTime: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */
cancelScheduledValues(cancelTime: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */
exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */
linearRampToValueAtTime(value: number, endTime: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */
setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */
setValueAtTime(value: number, startTime: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
}
declare var AudioParam: {
prototype: AudioParam;
new(): AudioParam;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */
interface AudioParamMap {
forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;
}
declare var AudioParamMap: {
prototype: AudioParamMap;
new(): AudioParamMap;
};
/**
* The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent)
*/
interface AudioProcessingEvent extends Event {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer)
*/
readonly inputBuffer: AudioBuffer;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer)
*/
readonly outputBuffer: AudioBuffer;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime)
*/
readonly playbackTime: number;
}
/** @deprecated */
declare var AudioProcessingEvent: {
prototype: AudioProcessingEvent;
new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;
};
interface AudioScheduledSourceNodeEventMap {
"ended": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode) */
interface AudioScheduledSourceNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */
onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */
start(when?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop) */
stop(when?: number): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioScheduledSourceNode: {
prototype: AudioScheduledSourceNode;
new(): AudioScheduledSourceNode;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorklet)
*/
interface AudioWorklet extends Worklet {
}
declare var AudioWorklet: {
prototype: AudioWorklet;
new(): AudioWorklet;
};
interface AudioWorkletNodeEventMap {
"processorerror": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode)
*/
interface AudioWorkletNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */
onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */
readonly parameters: AudioParamMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */
readonly port: MessagePort;
addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioWorkletNode: {
prototype: AudioWorkletNode;
new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse)
*/
interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */
readonly authenticatorData: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */
readonly signature: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */
readonly userHandle: ArrayBuffer | null;
}
declare var AuthenticatorAssertionResponse: {
prototype: AuthenticatorAssertionResponse;
new(): AuthenticatorAssertionResponse;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse)
*/
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */
readonly attestationObject: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */
getAuthenticatorData(): ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */
getPublicKey(): ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */
getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */
getTransports(): string[];
}
declare var AuthenticatorAttestationResponse: {
prototype: AuthenticatorAttestationResponse;
new(): AuthenticatorAttestationResponse;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse)
*/
interface AuthenticatorResponse {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */
readonly clientDataJSON: ArrayBuffer;
}
declare var AuthenticatorResponse: {
prototype: AuthenticatorResponse;
new(): AuthenticatorResponse;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp) */
interface BarProp {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible) */
readonly visible: boolean;
}
declare var BarProp: {
prototype: BarProp;
new(): BarProp;
};
interface BaseAudioContextEventMap {
"statechange": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */
interface BaseAudioContext extends EventTarget {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet)
*/
readonly audioWorklet: AudioWorklet;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */
readonly currentTime: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */
readonly destination: AudioDestinationNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener) */
readonly listener: AudioListener;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */
onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */
readonly sampleRate: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */
readonly state: AudioContextState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */
createAnalyser(): AnalyserNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */
createBiquadFilter(): BiquadFilterNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */
createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */
createBufferSource(): AudioBufferSourceNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */
createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */
createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */
createConstantSource(): ConstantSourceNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */
createConvolver(): ConvolverNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */
createDelay(maxDelayTime?: number): DelayNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */
createDynamicsCompressor(): DynamicsCompressorNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */
createGain(): GainNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */
createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */
createOscillator(): OscillatorNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */
createPanner(): PannerNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */
createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor)
*/
createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */
createStereoPanner(): StereoPannerNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */
createWaveShaper(): WaveShaperNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData) */
decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var BaseAudioContext: {
prototype: BaseAudioContext;
new(): BaseAudioContext;
};
/**
* The beforeunload event is fired when the window, the document and its resources are about to be unloaded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent)
*/
interface BeforeUnloadEvent extends Event {
/** @deprecated */
returnValue: any;
}
declare var BeforeUnloadEvent: {
prototype: BeforeUnloadEvent;
new(): BeforeUnloadEvent;
};
/**
* A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode)
*/
interface BiquadFilterNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */
readonly Q: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */
readonly detune: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */
readonly frequency: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */
readonly gain: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */
type: BiquadFilterType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse) */
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
}
declare var BiquadFilterNode: {
prototype: BiquadFilterNode;
new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;
};
/**
* A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)
*/
interface Blob {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
readonly size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
arrayBuffer(): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
slice(start?: number, end?: number, contentType?: string): Blob;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
stream(): ReadableStream<Uint8Array>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
text(): Promise<string>;
}
declare var Blob: {
prototype: Blob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */
interface BlobEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */
readonly data: Blob;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode) */
readonly timecode: DOMHighResTimeStamp;
}
declare var BlobEvent: {
prototype: BlobEvent;
new(type: string, eventInitDict: BlobEventInit): BlobEvent;
};
interface Body {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
readonly body: ReadableStream<Uint8Array> | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
readonly bodyUsed: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
arrayBuffer(): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
blob(): Promise<Blob>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
formData(): Promise<FormData>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
json(): Promise<any>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
text(): Promise<string>;
}
interface BroadcastChannelEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */
interface BroadcastChannel extends EventTarget {
/**
* Returns the channel name (as passed to the constructor).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name)
*/
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/**
* Closes the BroadcastChannel object, opening it up to garbage collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)
*/
close(): void;
/**
* Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage)
*/
postMessage(message: any): void;
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var BroadcastChannel: {
prototype: BroadcastChannel;
new(name: string): BroadcastChannel;
};
/**
* This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
*/
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */
readonly highWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */
readonly size: QueuingStrategySize<ArrayBufferView>;
}
declare var ByteLengthQueuingStrategy: {
prototype: ByteLengthQueuingStrategy;
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
};
/**
* A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don\u2019t need escaping as they normally do when inside a CDATA section.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection)
*/
interface CDATASection extends Text {
}
declare var CDATASection: {
prototype: CDATASection;
new(): CDATASection;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation) */
interface CSSAnimation extends Animation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName) */
readonly animationName: string;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var CSSAnimation: {
prototype: CSSAnimation;
new(): CSSAnimation;
};
/**
* A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule)
*/
interface CSSConditionRule extends CSSGroupingRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */
readonly conditionText: string;
}
declare var CSSConditionRule: {
prototype: CSSConditionRule;
new(): CSSConditionRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */
interface CSSContainerRule extends CSSConditionRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */
readonly containerName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */
readonly containerQuery: string;
}
declare var CSSContainerRule: {
prototype: CSSContainerRule;
new(): CSSContainerRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule) */
interface CSSCounterStyleRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */
additiveSymbols: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */
fallback: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */
negative: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */
pad: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */
prefix: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */
range: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */
speakAs: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */
suffix: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */
symbols: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */
system: string;
}
declare var CSSCounterStyleRule: {
prototype: CSSCounterStyleRule;
new(): CSSCounterStyleRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */
interface CSSFontFaceRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */
readonly style: CSSStyleDeclaration;
}
declare var CSSFontFaceRule: {
prototype: CSSFontFaceRule;
new(): CSSFontFaceRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */
interface CSSFontFeatureValuesRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */
fontFamily: string;
}
declare var CSSFontFeatureValuesRule: {
prototype: CSSFontFeatureValuesRule;
new(): CSSFontFeatureValuesRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule) */
interface CSSFontPaletteValuesRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */
readonly basePalette: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */
readonly fontFamily: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */
readonly overrideColors: string;
}
declare var CSSFontPaletteValuesRule: {
prototype: CSSFontPaletteValuesRule;
new(): CSSFontPaletteValuesRule;
};
/**
* Any CSS at-rule that contains other rules nested within it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule)
*/
interface CSSGroupingRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */
readonly cssRules: CSSRuleList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */
deleteRule(index: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */
insertRule(rule: string, index?: number): number;
}
declare var CSSGroupingRule: {
prototype: CSSGroupingRule;
new(): CSSGroupingRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */
interface CSSImageValue extends CSSStyleValue {
}
declare var CSSImageValue: {
prototype: CSSImageValue;
new(): CSSImageValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule) */
interface CSSImportRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */
readonly href: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */
readonly layerName: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */
readonly media: MediaList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */
readonly styleSheet: CSSStyleSheet | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */
readonly supportsText: string | null;
}
declare var CSSImportRule: {
prototype: CSSImportRule;
new(): CSSImportRule;
};
/**
* An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule)
*/
interface CSSKeyframeRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */
keyText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */
readonly style: CSSStyleDeclaration;
}
declare var CSSKeyframeRule: {
prototype: CSSKeyframeRule;
new(): CSSKeyframeRule;
};
/**
* An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule)
*/
interface CSSKeyframesRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */
readonly cssRules: CSSRuleList;
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */
appendRule(rule: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */
deleteRule(select: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule) */
findRule(select: string): CSSKeyframeRule | null;
[index: number]: CSSKeyframeRule;
}
declare var CSSKeyframesRule: {
prototype: CSSKeyframesRule;
new(): CSSKeyframesRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */
interface CSSKeywordValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */
value: string;
}
declare var CSSKeywordValue: {
prototype: CSSKeywordValue;
new(value: string): CSSKeywordValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule) */
interface CSSLayerBlockRule extends CSSGroupingRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */
readonly name: string;
}
declare var CSSLayerBlockRule: {
prototype: CSSLayerBlockRule;
new(): CSSLayerBlockRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule) */
interface CSSLayerStatementRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList) */
readonly nameList: ReadonlyArray<string>;
}
declare var CSSLayerStatementRule: {
prototype: CSSLayerStatementRule;
new(): CSSLayerStatementRule;
};
interface CSSMathClamp extends CSSMathValue {
readonly lower: CSSNumericValue;
readonly upper: CSSNumericValue;
readonly value: CSSNumericValue;
}
declare var CSSMathClamp: {
prototype: CSSMathClamp;
new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */
interface CSSMathInvert extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */
readonly value: CSSNumericValue;
}
declare var CSSMathInvert: {
prototype: CSSMathInvert;
new(arg: CSSNumberish): CSSMathInvert;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */
interface CSSMathMax extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathMax: {
prototype: CSSMathMax;
new(...args: CSSNumberish[]): CSSMathMax;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */
interface CSSMathMin extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathMin: {
prototype: CSSMathMin;
new(...args: CSSNumberish[]): CSSMathMin;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */
interface CSSMathNegate extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */
readonly value: CSSNumericValue;
}
declare var CSSMathNegate: {
prototype: CSSMathNegate;
new(arg: CSSNumberish): CSSMathNegate;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */
interface CSSMathProduct extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathProduct: {
prototype: CSSMathProduct;
new(...args: CSSNumberish[]): CSSMathProduct;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */
interface CSSMathSum extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathSum: {
prototype: CSSMathSum;
new(...args: CSSNumberish[]): CSSMathSum;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */
interface CSSMathValue extends CSSNumericValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */
readonly operator: CSSMathOperator;
}
declare var CSSMathValue: {
prototype: CSSMathValue;
new(): CSSMathValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */
interface CSSMatrixComponent extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */
matrix: DOMMatrix;
}
declare var CSSMatrixComponent: {
prototype: CSSMatrixComponent;
new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;
};
/**
* A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule)
*/
interface CSSMediaRule extends CSSConditionRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */
readonly media: MediaList;
}
declare var CSSMediaRule: {
prototype: CSSMediaRule;
new(): CSSMediaRule;
};
/**
* An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule)
*/
interface CSSNamespaceRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */
readonly namespaceURI: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */
readonly prefix: string;
}
declare var CSSNamespaceRule: {
prototype: CSSNamespaceRule;
new(): CSSNamespaceRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */
interface CSSNumericArray {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */
readonly length: number;
forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void;
[index: number]: CSSNumericValue;
}
declare var CSSNumericArray: {
prototype: CSSNumericArray;
new(): CSSNumericArray;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */
interface CSSNumericValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */
add(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */
div(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */
equals(...value: CSSNumberish[]): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */
max(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */
min(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */
mul(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */
sub(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */
to(unit: string): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */
toSum(...units: string[]): CSSMathSum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */
type(): CSSNumericType;
}
declare var CSSNumericValue: {
prototype: CSSNumericValue;
new(): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */
parse(cssText: string): CSSNumericValue;
};
/**
* CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule)
*/
interface CSSPageRule extends CSSGroupingRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */
selectorText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */
readonly style: CSSStyleDeclaration;
}
declare var CSSPageRule: {
prototype: CSSPageRule;
new(): CSSPageRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */
interface CSSPerspective extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */
length: CSSPerspectiveValue;
}
declare var CSSPerspective: {
prototype: CSSPerspective;
new(length: CSSPerspectiveValue): CSSPerspective;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule) */
interface CSSPropertyRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */
readonly inherits: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */
readonly initialValue: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */
readonly syntax: string;
}
declare var CSSPropertyRule: {
prototype: CSSPropertyRule;
new(): CSSPropertyRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */
interface CSSRotate extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */
angle: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */
x: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */
y: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */
z: CSSNumberish;
}
declare var CSSRotate: {
prototype: CSSRotate;
new(angle: CSSNumericValue): CSSRotate;
new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate;
};
/**
* A single CSS rule. There are several types of rules, listed in the Type constants section below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule)
*/
interface CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */
cssText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */
readonly parentRule: CSSRule | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */
readonly parentStyleSheet: CSSStyleSheet | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type)
*/
readonly type: number;
readonly STYLE_RULE: 1;
readonly CHARSET_RULE: 2;
readonly IMPORT_RULE: 3;
readonly MEDIA_RULE: 4;
readonly FONT_FACE_RULE: 5;
readonly PAGE_RULE: 6;
readonly NAMESPACE_RULE: 10;
readonly KEYFRAMES_RULE: 7;
readonly KEYFRAME_RULE: 8;
readonly SUPPORTS_RULE: 12;
readonly COUNTER_STYLE_RULE: 11;
readonly FONT_FEATURE_VALUES_RULE: 14;
}
declare var CSSRule: {
prototype: CSSRule;
new(): CSSRule;
readonly STYLE_RULE: 1;
readonly CHARSET_RULE: 2;
readonly IMPORT_RULE: 3;
readonly MEDIA_RULE: 4;
readonly FONT_FACE_RULE: 5;
readonly PAGE_RULE: 6;
readonly NAMESPACE_RULE: 10;
readonly KEYFRAMES_RULE: 7;
readonly KEYFRAME_RULE: 8;
readonly SUPPORTS_RULE: 12;
readonly COUNTER_STYLE_RULE: 11;
readonly FONT_FEATURE_VALUES_RULE: 14;
};
/**
* A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList)
*/
interface CSSRuleList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) */
item(index: number): CSSRule | null;
[index: number]: CSSRule;
}
declare var CSSRuleList: {
prototype: CSSRuleList;
new(): CSSRuleList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */
interface CSSScale extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */
x: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */
y: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */
z: CSSNumberish;
}
declare var CSSScale: {
prototype: CSSScale;
new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */
interface CSSSkew extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */
ax: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */
ay: CSSNumericValue;
}
declare var CSSSkew: {
prototype: CSSSkew;
new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */
interface CSSSkewX extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */
ax: CSSNumericValue;
}
declare var CSSSkewX: {
prototype: CSSSkewX;
new(ax: CSSNumericValue): CSSSkewX;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */
interface CSSSkewY extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */
ay: CSSNumericValue;
}
declare var CSSSkewY: {
prototype: CSSSkewY;
new(ay: CSSNumericValue): CSSSkewY;
};
/**
* An object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
*/
interface CSSStyleDeclaration {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
accentColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */
alignContent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */
alignItems: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */
alignSelf: string;
alignmentBaseline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */
all: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */
animation: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */
animationComposition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */
animationDelay: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */
animationDirection: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */
animationDuration: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */
animationFillMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */
animationIterationCount: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */
animationName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */
animationPlayState: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */
animationTimingFunction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */
appearance: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */
aspectRatio: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */
backdropFilter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */
backfaceVisibility: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */
background: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */
backgroundAttachment: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */
backgroundBlendMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */
backgroundClip: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */
backgroundColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */
backgroundImage: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */
backgroundOrigin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */
backgroundPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */
backgroundPositionX: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */
backgroundPositionY: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */
backgroundRepeat: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */
backgroundSize: string;
baselineShift: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/baseline-source) */
baselineSource: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */
blockSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */
border: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */
borderBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */
borderBlockColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */
borderBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */
borderBlockEndColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */
borderBlockEndStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */
borderBlockEndWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */
borderBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */
borderBlockStartColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */
borderBlockStartStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */
borderBlockStartWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */
borderBlockStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */
borderBlockWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */
borderBottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */
borderBottomColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */
borderBottomLeftRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */
borderBottomRightRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */
borderBottomStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */
borderBottomWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */
borderCollapse: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */
borderColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */
borderEndEndRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */
borderEndStartRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */
borderImage: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */
borderImageOutset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */
borderImageRepeat: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */
borderImageSlice: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */
borderImageSource: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */
borderImageWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */
borderInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */
borderInlineColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */
borderInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */
borderInlineEndColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */
borderInlineEndStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */
borderInlineEndWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */
borderInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */
borderInlineStartColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */
borderInlineStartStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */
borderInlineStartWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */
borderInlineStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */
borderInlineWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */
borderLeft: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */
borderLeftColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */
borderLeftStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */
borderLeftWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */
borderRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */
borderRight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */
borderRightColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */
borderRightStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */
borderRightWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */
borderSpacing: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */
borderStartEndRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */
borderStartStartRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */
borderStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */
borderTop: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */
borderTopColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */
borderTopLeftRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */
borderTopRightRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */
borderTopStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */
borderTopWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */
borderWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */
bottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */
boxShadow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */
boxSizing: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */
breakAfter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */
breakBefore: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */
breakInside: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */
captionSide: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */
caretColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */
clear: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip)
*/
clip: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */
clipPath: string;
clipRule: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */
color: string;
colorInterpolation: string;
colorInterpolationFilters: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */
colorScheme: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */
columnCount: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */
columnFill: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */
columnGap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */
columnRule: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */
columnRuleColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */
columnRuleStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */
columnRuleWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */
columnSpan: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */
columnWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */
columns: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */
contain: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-block-size) */
containIntrinsicBlockSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */
containIntrinsicHeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-inline-size) */
containIntrinsicInlineSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */
containIntrinsicSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */
containIntrinsicWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */
container: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */
containerName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */
containerType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */
content: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */
counterIncrement: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */
counterReset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */
counterSet: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */
cssFloat: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) */
cssText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */
cursor: string;
cx: string;
cy: string;
d: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */
direction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */
display: string;
dominantBaseline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */
emptyCells: string;
fill: string;
fillOpacity: string;
fillRule: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */
filter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */
flex: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */
flexBasis: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */
flexDirection: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */
flexFlow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */
flexGrow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */
flexShrink: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */
flexWrap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */
float: string;
floodColor: string;
floodOpacity: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */
font: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */
fontFamily: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */
fontFeatureSettings: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */
fontKerning: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */
fontOpticalSizing: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */
fontPalette: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */
fontSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */
fontSizeAdjust: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch) */
fontStretch: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */
fontStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */
fontSynthesis: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */
fontSynthesisSmallCaps: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */
fontSynthesisStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */
fontSynthesisWeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */
fontVariant: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */
fontVariantAlternates: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */
fontVariantCaps: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */
fontVariantEastAsian: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */
fontVariantLigatures: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */
fontVariantNumeric: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */
fontVariantPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */
fontVariationSettings: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */
fontWeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */
forcedColorAdjust: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */
gap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */
grid: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */
gridArea: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */
gridAutoColumns: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */
gridAutoFlow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */
gridAutoRows: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */
gridColumn: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */
gridColumnEnd: string;
/** @deprecated This is a legacy alias of \`columnGap\`. */
gridColumnGap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */
gridColumnStart: string;
/** @deprecated This is a legacy alias of \`gap\`. */
gridGap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */
gridRow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */
gridRowEnd: string;
/** @deprecated This is a legacy alias of \`rowGap\`. */
gridRowGap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */
gridRowStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */
gridTemplate: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */
gridTemplateAreas: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */
gridTemplateColumns: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */
gridTemplateRows: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */
height: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */
hyphenateCharacter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */
hyphens: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation)
*/
imageOrientation: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */
imageRendering: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */
inlineSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */
inset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */
insetBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */
insetBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */
insetBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */
insetInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */
insetInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */
insetInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */
isolation: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */
justifyContent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */
justifyItems: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */
justifySelf: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */
left: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */
letterSpacing: string;
lightingColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */
lineBreak: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */
lineHeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */
listStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */
listStyleImage: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */
listStylePosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */
listStyleType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */
margin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */
marginBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */
marginBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */
marginBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */
marginBottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */
marginInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */
marginInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */
marginInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */
marginLeft: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */
marginRight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */
marginTop: string;
marker: string;
markerEnd: string;
markerMid: string;
markerStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */
mask: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */
maskClip: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */
maskComposite: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */
maskImage: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */
maskMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */
maskOrigin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */
maskPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */
maskRepeat: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */
maskSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */
maskType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */
mathDepth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */
mathStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */
maxBlockSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */
maxHeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */
maxInlineSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */
maxWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */
minBlockSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */
minHeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */
minInlineSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */
minWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */
mixBlendMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */
objectFit: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */
objectPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */
offset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */
offsetAnchor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */
offsetDistance: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */
offsetPath: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */
offsetPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */
offsetRotate: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */
opacity: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */
order: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */
orphans: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */
outline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */
outlineColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */
outlineOffset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */
outlineStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */
outlineWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */
overflow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */
overflowAnchor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */
overflowClipMargin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */
overflowWrap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */
overflowX: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */
overflowY: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */
overscrollBehavior: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */
overscrollBehaviorBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */
overscrollBehaviorInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */
overscrollBehaviorX: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */
overscrollBehaviorY: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */
padding: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */
paddingBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */
paddingBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */
paddingBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */
paddingBottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */
paddingInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */
paddingInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */
paddingInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */
paddingLeft: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */
paddingRight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */
paddingTop: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */
page: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */
pageBreakAfter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */
pageBreakBefore: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */
pageBreakInside: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */
paintOrder: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) */
readonly parentRule: CSSRule | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */
perspective: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */
perspectiveOrigin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */
placeContent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */
placeItems: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */
placeSelf: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */
pointerEvents: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */
position: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */
printColorAdjust: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */
quotes: string;
r: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */
resize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */
right: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */
rotate: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */
rowGap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */
rubyPosition: string;
rx: string;
ry: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */
scale: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */
scrollBehavior: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */
scrollMargin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */
scrollMarginBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */
scrollMarginBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */
scrollMarginBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */
scrollMarginBottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */
scrollMarginInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */
scrollMarginInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */
scrollMarginInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */
scrollMarginLeft: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */
scrollMarginRight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */
scrollMarginTop: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */
scrollPadding: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */
scrollPaddingBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */
scrollPaddingBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */
scrollPaddingBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */
scrollPaddingBottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */
scrollPaddingInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */
scrollPaddingInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */
scrollPaddingInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */
scrollPaddingLeft: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */
scrollPaddingRight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */
scrollPaddingTop: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */
scrollSnapAlign: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */
scrollSnapStop: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */
scrollSnapType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */
scrollbarColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */
scrollbarGutter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */
scrollbarWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */
shapeImageThreshold: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */
shapeMargin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */
shapeOutside: string;
shapeRendering: string;
stopColor: string;
stopOpacity: string;
stroke: string;
strokeDasharray: string;
strokeDashoffset: string;
strokeLinecap: string;
strokeLinejoin: string;
strokeMiterlimit: string;
strokeOpacity: string;
strokeWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */
tabSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */
tableLayout: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */
textAlign: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */
textAlignLast: string;
textAnchor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */
textCombineUpright: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */
textDecoration: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */
textDecorationColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */
textDecorationLine: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */
textDecorationSkipInk: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */
textDecorationStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */
textDecorationThickness: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */
textEmphasis: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */
textEmphasisColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */
textEmphasisPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */
textEmphasisStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */
textIndent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */
textOrientation: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */
textOverflow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */
textRendering: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */
textShadow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */
textTransform: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */
textUnderlineOffset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */
textUnderlinePosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */
textWrap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */
top: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */
touchAction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */
transform: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */
transformBox: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */
transformOrigin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */
transformStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */
transition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */
transitionDelay: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */
transitionDuration: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */
transitionProperty: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */
transitionTimingFunction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */
translate: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */
unicodeBidi: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */
userSelect: string;
vectorEffect: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
verticalAlign: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
visibility: string;
/**
* @deprecated This is a legacy alias of \`alignContent\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content)
*/
webkitAlignContent: string;
/**
* @deprecated This is a legacy alias of \`alignItems\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items)
*/
webkitAlignItems: string;
/**
* @deprecated This is a legacy alias of \`alignSelf\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self)
*/
webkitAlignSelf: string;
/**
* @deprecated This is a legacy alias of \`animation\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation)
*/
webkitAnimation: string;
/**
* @deprecated This is a legacy alias of \`animationDelay\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay)
*/
webkitAnimationDelay: string;
/**
* @deprecated This is a legacy alias of \`animationDirection\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction)
*/
webkitAnimationDirection: string;
/**
* @deprecated This is a legacy alias of \`animationDuration\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration)
*/
webkitAnimationDuration: string;
/**
* @deprecated This is a legacy alias of \`animationFillMode\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode)
*/
webkitAnimationFillMode: string;
/**
* @deprecated This is a legacy alias of \`animationIterationCount\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count)
*/
webkitAnimationIterationCount: string;
/**
* @deprecated This is a legacy alias of \`animationName\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name)
*/
webkitAnimationName: string;
/**
* @deprecated This is a legacy alias of \`animationPlayState\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state)
*/
webkitAnimationPlayState: string;
/**
* @deprecated This is a legacy alias of \`animationTimingFunction\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function)
*/
webkitAnimationTimingFunction: string;
/**
* @deprecated This is a legacy alias of \`appearance\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance)
*/
webkitAppearance: string;
/**
* @deprecated This is a legacy alias of \`backfaceVisibility\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility)
*/
webkitBackfaceVisibility: string;
/**
* @deprecated This is a legacy alias of \`backgroundClip\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip)
*/
webkitBackgroundClip: string;
/**
* @deprecated This is a legacy alias of \`backgroundOrigin\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin)
*/
webkitBackgroundOrigin: string;
/**
* @deprecated This is a legacy alias of \`backgroundSize\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size)
*/
webkitBackgroundSize: string;
/**
* @deprecated This is a legacy alias of \`borderBottomLeftRadius\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius)
*/
webkitBorderBottomLeftRadius: string;
/**
* @deprecated This is a legacy alias of \`borderBottomRightRadius\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius)
*/
webkitBorderBottomRightRadius: string;
/**
* @deprecated This is a legacy alias of \`borderRadius\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius)
*/
webkitBorderRadius: string;
/**
* @deprecated This is a legacy alias of \`borderTopLeftRadius\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius)
*/
webkitBorderTopLeftRadius: string;
/**
* @deprecated This is a legacy alias of \`borderTopRightRadius\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius)
*/
webkitBorderTopRightRadius: string;
/**
* @deprecated This is a legacy alias of \`boxAlign\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align)
*/
webkitBoxAlign: string;
/**
* @deprecated This is a legacy alias of \`boxFlex\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex)
*/
webkitBoxFlex: string;
/**
* @deprecated This is a legacy alias of \`boxOrdinalGroup\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group)
*/
webkitBoxOrdinalGroup: string;
/**
* @deprecated This is a legacy alias of \`boxOrient\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient)
*/
webkitBoxOrient: string;
/**
* @deprecated This is a legacy alias of \`boxPack\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack)
*/
webkitBoxPack: string;
/**
* @deprecated This is a legacy alias of \`boxShadow\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow)
*/
webkitBoxShadow: string;
/**
* @deprecated This is a legacy alias of \`boxSizing\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing)
*/
webkitBoxSizing: string;
/**
* @deprecated This is a legacy alias of \`filter\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter)
*/
webkitFilter: string;
/**
* @deprecated This is a legacy alias of \`flex\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex)
*/
webkitFlex: string;
/**
* @deprecated This is a legacy alias of \`flexBasis\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis)
*/
webkitFlexBasis: string;
/**
* @deprecated This is a legacy alias of \`flexDirection\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction)
*/
webkitFlexDirection: string;
/**
* @deprecated This is a legacy alias of \`flexFlow\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow)
*/
webkitFlexFlow: string;
/**
* @deprecated This is a legacy alias of \`flexGrow\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow)
*/
webkitFlexGrow: string;
/**
* @deprecated This is a legacy alias of \`flexShrink\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink)
*/
webkitFlexShrink: string;
/**
* @deprecated This is a legacy alias of \`flexWrap\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap)
*/
webkitFlexWrap: string;
/**
* @deprecated This is a legacy alias of \`justifyContent\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content)
*/
webkitJustifyContent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */
webkitLineClamp: string;
/**
* @deprecated This is a legacy alias of \`mask\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask)
*/
webkitMask: string;
/**
* @deprecated This is a legacy alias of \`maskBorder\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border)
*/
webkitMaskBoxImage: string;
/**
* @deprecated This is a legacy alias of \`maskBorderOutset\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset)
*/
webkitMaskBoxImageOutset: string;
/**
* @deprecated This is a legacy alias of \`maskBorderRepeat\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat)
*/
webkitMaskBoxImageRepeat: string;
/**
* @deprecated This is a legacy alias of \`maskBorderSlice\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice)
*/
webkitMaskBoxImageSlice: string;
/**
* @deprecated This is a legacy alias of \`maskBorderSource\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source)
*/
webkitMaskBoxImageSource: string;
/**
* @deprecated This is a legacy alias of \`maskBorderWidth\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width)
*/
webkitMaskBoxImageWidth: string;
/**
* @deprecated This is a legacy alias of \`maskClip\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip)
*/
webkitMaskClip: string;
/**
* @deprecated This is a legacy alias of \`maskComposite\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite)
*/
webkitMaskComposite: string;
/**
* @deprecated This is a legacy alias of \`maskImage\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image)
*/
webkitMaskImage: string;
/**
* @deprecated This is a legacy alias of \`maskOrigin\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin)
*/
webkitMaskOrigin: string;
/**
* @deprecated This is a legacy alias of \`maskPosition\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position)
*/
webkitMaskPosition: string;
/**
* @deprecated This is a legacy alias of \`maskRepeat\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat)
*/
webkitMaskRepeat: string;
/**
* @deprecated This is a legacy alias of \`maskSize\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size)
*/
webkitMaskSize: string;
/**
* @deprecated This is a legacy alias of \`order\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order)
*/
webkitOrder: string;
/**
* @deprecated This is a legacy alias of \`perspective\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective)
*/
webkitPerspective: string;
/**
* @deprecated This is a legacy alias of \`perspectiveOrigin\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin)
*/
webkitPerspectiveOrigin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */
webkitTextFillColor: string;
/**
* @deprecated This is a legacy alias of \`textSizeAdjust\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust)
*/
webkitTextSizeAdjust: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */
webkitTextStroke: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */
webkitTextStrokeColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */
webkitTextStrokeWidth: string;
/**
* @deprecated This is a legacy alias of \`transform\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform)
*/
webkitTransform: string;
/**
* @deprecated This is a legacy alias of \`transformOrigin\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin)
*/
webkitTransformOrigin: string;
/**
* @deprecated This is a legacy alias of \`transformStyle\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style)
*/
webkitTransformStyle: string;
/**
* @deprecated This is a legacy alias of \`transition\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition)
*/
webkitTransition: string;
/**
* @deprecated This is a legacy alias of \`transitionDelay\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay)
*/
webkitTransitionDelay: string;
/**
* @deprecated This is a legacy alias of \`transitionDuration\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration)
*/
webkitTransitionDuration: string;
/**
* @deprecated This is a legacy alias of \`transitionProperty\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property)
*/
webkitTransitionProperty: string;
/**
* @deprecated This is a legacy alias of \`transitionTimingFunction\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function)
*/
webkitTransitionTimingFunction: string;
/**
* @deprecated This is a legacy alias of \`userSelect\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select)
*/
webkitUserSelect: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */
whiteSpace: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */
widows: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */
width: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */
willChange: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */
wordBreak: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */
wordSpacing: string;
/** @deprecated */
wordWrap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */
writingMode: string;
x: string;
y: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */
zIndex: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */
getPropertyPriority(property: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */
getPropertyValue(property: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */
item(index: number): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */
removeProperty(property: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */
setProperty(property: string, value: string | null, priority?: string): void;
[index: number]: string;
}
declare var CSSStyleDeclaration: {
prototype: CSSStyleDeclaration;
new(): CSSStyleDeclaration;
};
/**
* CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule)
*/
interface CSSStyleRule extends CSSGroupingRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */
selectorText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */
readonly style: CSSStyleDeclaration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */
readonly styleMap: StylePropertyMap;
}
declare var CSSStyleRule: {
prototype: CSSStyleRule;
new(): CSSStyleRule;
};
/**
* A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet)
*/
interface CSSStyleSheet extends StyleSheet {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */
readonly cssRules: CSSRuleList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */
readonly ownerRule: CSSRule | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules)
*/
readonly rules: CSSRuleList;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule)
*/
addRule(selector?: string, style?: string, index?: number): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */
deleteRule(index: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */
insertRule(rule: string, index?: number): number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule)
*/
removeRule(index?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */
replace(text: string): Promise<CSSStyleSheet>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */
replaceSync(text: string): void;
}
declare var CSSStyleSheet: {
prototype: CSSStyleSheet;
new(options?: CSSStyleSheetInit): CSSStyleSheet;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */
interface CSSStyleValue {
toString(): string;
}
declare var CSSStyleValue: {
prototype: CSSStyleValue;
new(): CSSStyleValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */
parse(property: string, cssText: string): CSSStyleValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */
parseAll(property: string, cssText: string): CSSStyleValue[];
};
/**
* An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule)
*/
interface CSSSupportsRule extends CSSConditionRule {
}
declare var CSSSupportsRule: {
prototype: CSSSupportsRule;
new(): CSSSupportsRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */
interface CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */
is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */
toMatrix(): DOMMatrix;
toString(): string;
}
declare var CSSTransformComponent: {
prototype: CSSTransformComponent;
new(): CSSTransformComponent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */
interface CSSTransformValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */
readonly is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */
toMatrix(): DOMMatrix;
forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void;
[index: number]: CSSTransformComponent;
}
declare var CSSTransformValue: {
prototype: CSSTransformValue;
new(transforms: CSSTransformComponent[]): CSSTransformValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition) */
interface CSSTransition extends Animation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty) */
readonly transitionProperty: string;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var CSSTransition: {
prototype: CSSTransition;
new(): CSSTransition;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */
interface CSSTranslate extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */
x: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */
y: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */
z: CSSNumericValue;
}
declare var CSSTranslate: {
prototype: CSSTranslate;
new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */
interface CSSUnitValue extends CSSNumericValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */
readonly unit: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */
value: number;
}
declare var CSSUnitValue: {
prototype: CSSUnitValue;
new(value: number, unit: string): CSSUnitValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */
interface CSSUnparsedValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */
readonly length: number;
forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void;
[index: number]: CSSUnparsedSegment;
}
declare var CSSUnparsedValue: {
prototype: CSSUnparsedValue;
new(members: CSSUnparsedSegment[]): CSSUnparsedValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */
interface CSSVariableReferenceValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */
readonly fallback: CSSUnparsedValue | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */
variable: string;
}
declare var CSSVariableReferenceValue: {
prototype: CSSVariableReferenceValue;
new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
};
/**
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)
*/
interface Cache {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */
add(request: RequestInfo | URL): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
addAll(requests: RequestInfo[]): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */
delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */
match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */
put(request: RequestInfo | URL, response: Response): Promise<void>;
}
declare var Cache: {
prototype: Cache;
new(): Cache;
};
/**
* The storage for Cache objects.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage)
*/
interface CacheStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */
delete(cacheName: string): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */
has(cacheName: string): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */
keys(): Promise<string[]>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */
open(cacheName: string): Promise<Cache>;
}
declare var CacheStorage: {
prototype: CacheStorage;
new(): CacheStorage;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack) */
interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */
readonly canvas: HTMLCanvasElement;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame) */
requestFrame(): void;
addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var CanvasCaptureMediaStreamTrack: {
prototype: CanvasCaptureMediaStreamTrack;
new(): CanvasCaptureMediaStreamTrack;
};
interface CanvasCompositing {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */
globalAlpha: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */
globalCompositeOperation: GlobalCompositeOperation;
}
interface CanvasDrawImage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */
drawImage(image: CanvasImageSource, dx: number, dy: number): void;
drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
}
interface CanvasDrawPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */
beginPath(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */
clip(fillRule?: CanvasFillRule): void;
clip(path: Path2D, fillRule?: CanvasFillRule): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */
fill(fillRule?: CanvasFillRule): void;
fill(path: Path2D, fillRule?: CanvasFillRule): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */
isPointInStroke(x: number, y: number): boolean;
isPointInStroke(path: Path2D, x: number, y: number): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */
stroke(): void;
stroke(path: Path2D): void;
}
interface CanvasFillStrokeStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */
fillStyle: string | CanvasGradient | CanvasPattern;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */
strokeStyle: string | CanvasGradient | CanvasPattern;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}
interface CanvasFilters {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */
filter: string;
}
/**
* An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
*/
interface CanvasGradient {
/**
* Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
*
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop)
*/
addColorStop(offset: number, color: string): void;
}
declare var CanvasGradient: {
prototype: CanvasGradient;
new(): CanvasGradient;
};
interface CanvasImageData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
createImageData(imagedata: ImageData): ImageData;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */
putImageData(imagedata: ImageData, dx: number, dy: number): void;
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
}
interface CanvasImageSmoothing {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */
imageSmoothingEnabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */
imageSmoothingQuality: ImageSmoothingQuality;
}
interface CanvasPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */
closePath(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */
lineTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */
moveTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */
rect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
}
interface CanvasPathDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */
lineCap: CanvasLineCap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */
lineDashOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */
lineJoin: CanvasLineJoin;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */
lineWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */
miterLimit: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */
getLineDash(): number[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
setLineDash(segments: number[]): void;
}
/**
* An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern)
*/
interface CanvasPattern {
/**
* Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform)
*/
setTransform(transform?: DOMMatrix2DInit): void;
}
declare var CanvasPattern: {
prototype: CanvasPattern;
new(): CanvasPattern;
};
interface CanvasRect {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */
clearRect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */
fillRect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */
strokeRect(x: number, y: number, w: number, h: number): void;
}
/**
* The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D)
*/
interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */
readonly canvas: HTMLCanvasElement;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */
getContextAttributes(): CanvasRenderingContext2DSettings;
}
declare var CanvasRenderingContext2D: {
prototype: CanvasRenderingContext2D;
new(): CanvasRenderingContext2D;
};
interface CanvasShadowStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */
shadowBlur: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */
shadowColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */
shadowOffsetX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */
shadowOffsetY: number;
}
interface CanvasState {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
reset(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
restore(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */
save(): void;
}
interface CanvasText {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */
fillText(text: string, x: number, y: number, maxWidth?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */
measureText(text: string): TextMetrics;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}
interface CanvasTextDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */
direction: CanvasDirection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */
font: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */
fontKerning: CanvasFontKerning;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */
fontStretch: CanvasFontStretch;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
fontVariantCaps: CanvasFontVariantCaps;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
letterSpacing: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
textAlign: CanvasTextAlign;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */
textBaseline: CanvasTextBaseline;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */
textRendering: CanvasTextRendering;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */
wordSpacing: string;
}
interface CanvasTransform {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */
getTransform(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */
resetTransform(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */
rotate(angle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */
scale(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
setTransform(transform?: DOMMatrix2DInit): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */
translate(x: number, y: number): void;
}
interface CanvasUserInterface {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */
drawFocusIfNeeded(element: Element): void;
drawFocusIfNeeded(path: Path2D, element: Element): void;
}
/**
* The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode)
*/
interface ChannelMergerNode extends AudioNode {
}
declare var ChannelMergerNode: {
prototype: ChannelMergerNode;
new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;
};
/**
* The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode)
*/
interface ChannelSplitterNode extends AudioNode {
}
declare var ChannelSplitterNode: {
prototype: ChannelSplitterNode;
new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;
};
/**
* The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData)
*/
interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */
data: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */
readonly length: number;
readonly ownerDocument: Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */
appendData(data: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */
deleteData(offset: number, count: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */
insertData(offset: number, data: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */
replaceData(offset: number, count: number, data: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */
substringData(offset: number, count: number): string;
}
declare var CharacterData: {
prototype: CharacterData;
new(): CharacterData;
};
interface ChildNode extends Node {
/**
* Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after)
*/
after(...nodes: (Node | string)[]): void;
/**
* Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before)
*/
before(...nodes: (Node | string)[]): void;
/**
* Removes node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove)
*/
remove(): void;
/**
* Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith)
*/
replaceWith(...nodes: (Node | string)[]): void;
}
/** @deprecated */
interface ClientRect extends DOMRect {
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard)
*/
interface Clipboard extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */
read(): Promise<ClipboardItems>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */
readText(): Promise<string>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */
write(data: ClipboardItems): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */
writeText(data: string): Promise<void>;
}
declare var Clipboard: {
prototype: Clipboard;
new(): Clipboard;
};
/**
* Events providing information related to modification of the clipboard, that is cut, copy, and paste events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent)
*/
interface ClipboardEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) */
readonly clipboardData: DataTransfer | null;
}
declare var ClipboardEvent: {
prototype: ClipboardEvent;
new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem)
*/
interface ClipboardItem {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */
readonly types: ReadonlyArray<string>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */
getType(type: string): Promise<Blob>;
}
declare var ClipboardItem: {
prototype: ClipboardItem;
new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem;
};
/**
* A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
*/
interface CloseEvent extends Event {
/**
* Returns the WebSocket connection close code provided by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
*/
readonly code: number;
/**
* Returns the WebSocket connection close reason provided by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
*/
readonly reason: string;
/**
* Returns true if the connection closed cleanly; false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
*/
readonly wasClean: boolean;
}
declare var CloseEvent: {
prototype: CloseEvent;
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
};
/**
* Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Comment)
*/
interface Comment extends CharacterData {
}
declare var Comment: {
prototype: Comment;
new(data?: string): Comment;
};
/**
* The DOM CompositionEvent represents events that occur due to the user indirectly entering text.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent)
*/
interface CompositionEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */
readonly data: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent)
*/
initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;
}
declare var CompositionEvent: {
prototype: CompositionEvent;
new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */
interface CompressionStream extends GenericTransformStream {
}
declare var CompressionStream: {
prototype: CompressionStream;
new(format: CompressionFormat): CompressionStream;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode) */
interface ConstantSourceNode extends AudioScheduledSourceNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset) */
readonly offset: AudioParam;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ConstantSourceNode: {
prototype: ConstantSourceNode;
new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
};
/**
* An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode)
*/
interface ConvolverNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */
buffer: AudioBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */
normalize: boolean;
}
declare var ConvolverNode: {
prototype: ConvolverNode;
new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
};
/**
* This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
*/
interface CountQueuingStrategy extends QueuingStrategy {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */
readonly highWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
readonly size: QueuingStrategySize;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
new(init: QueuingStrategyInit): CountQueuingStrategy;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential)
*/
interface Credential {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */
readonly type: string;
}
declare var Credential: {
prototype: Credential;
new(): Credential;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer)
*/
interface CredentialsContainer {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */
create(options?: CredentialCreationOptions): Promise<Credential | null>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */
get(options?: CredentialRequestOptions): Promise<Credential | null>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */
preventSilentAccess(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */
store(credential: Credential): Promise<void>;
}
declare var CredentialsContainer: {
prototype: CredentialsContainer;
new(): CredentialsContainer;
};
/**
* Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)
*/
interface Crypto {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
*/
readonly subtle: SubtleCrypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
*/
randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`;
}
declare var Crypto: {
prototype: Crypto;
new(): Crypto;
};
/**
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
*/
interface CryptoKey {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */
readonly algorithm: KeyAlgorithm;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */
readonly extractable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */
readonly type: KeyType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */
interface CustomElementRegistry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */
define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */
get(name: string): CustomElementConstructor | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */
getName(constructor: CustomElementConstructor): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */
upgrade(root: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */
whenDefined(name: string): Promise<CustomElementConstructor>;
}
declare var CustomElementRegistry: {
prototype: CustomElementRegistry;
new(): CustomElementRegistry;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */
interface CustomEvent<T = any> extends Event {
/**
* Returns any custom data event was created with. Typically used for synthetic events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
*/
readonly detail: T;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)
*/
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};
/**
* An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
*/
interface DOMException extends Error {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
*/
readonly code: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
readonly message: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
readonly name: string;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
}
declare var DOMException: {
prototype: DOMException;
new(message?: string, name?: string): DOMException;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
};
/**
* An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation)
*/
interface DOMImplementation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */
createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */
createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */
createHTMLDocument(title?: string): Document;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature)
*/
hasFeature(...args: any[]): true;
}
declare var DOMImplementation: {
prototype: DOMImplementation;
new(): DOMImplementation;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */
interface DOMMatrix extends DOMMatrixReadOnly {
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
m11: number;
m12: number;
m13: number;
m14: number;
m21: number;
m22: number;
m23: number;
m24: number;
m31: number;
m32: number;
m33: number;
m34: number;
m41: number;
m42: number;
m43: number;
m44: number;
invertSelf(): DOMMatrix;
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
setMatrixValue(transformList: string): DOMMatrix;
skewXSelf(sx?: number): DOMMatrix;
skewYSelf(sy?: number): DOMMatrix;
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrix: {
prototype: DOMMatrix;
new(init?: string | number[]): DOMMatrix;
fromFloat32Array(array32: Float32Array): DOMMatrix;
fromFloat64Array(array64: Float64Array): DOMMatrix;
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
};
type SVGMatrix = DOMMatrix;
declare var SVGMatrix: typeof DOMMatrix;
type WebKitCSSMatrix = DOMMatrix;
declare var WebKitCSSMatrix: typeof DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */
interface DOMMatrixReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */
readonly a: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */
readonly b: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */
readonly c: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */
readonly d: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */
readonly e: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */
readonly f: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */
readonly is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */
readonly isIdentity: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */
readonly m11: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */
readonly m12: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */
readonly m13: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */
readonly m14: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */
readonly m21: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */
readonly m22: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */
readonly m23: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */
readonly m24: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */
readonly m31: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */
readonly m32: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */
readonly m33: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */
readonly m34: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */
readonly m41: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */
readonly m42: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */
readonly m43: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */
readonly m44: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */
flipX(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */
flipY(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */
inverse(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */
multiply(other?: DOMMatrixInit): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */
rotateFromVector(x?: number, y?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)
*/
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */
skewX(sx?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */
skewY(sy?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */
toFloat32Array(): Float32Array;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */
toFloat64Array(): Float64Array;
toJSON(): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */
transformPoint(point?: DOMPointInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
toString(): string;
}
declare var DOMMatrixReadOnly: {
prototype: DOMMatrixReadOnly;
new(init?: string | number[]): DOMMatrixReadOnly;
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
};
/**
* Provides the ability to parse XML or HTML source code from a string into a DOM Document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser)
*/
interface DOMParser {
/**
* Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser).
*
* For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.
*
* Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8.
*
* Values other than the above for type will cause a TypeError exception to be thrown.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString)
*/
parseFromString(string: string, type: DOMParserSupportedType): Document;
}
declare var DOMParser: {
prototype: DOMParser;
new(): DOMParser;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */
interface DOMPoint extends DOMPointReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */
w: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */
x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */
y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */
z: number;
}
declare var DOMPoint: {
prototype: DOMPoint;
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */
fromPoint(other?: DOMPointInit): DOMPoint;
};
type SVGPoint = DOMPoint;
declare var SVGPoint: typeof DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */
interface DOMPointReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */
readonly w: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */
readonly y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */
readonly z: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */
toJSON(): any;
}
declare var DOMPointReadOnly: {
prototype: DOMPointReadOnly;
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */
interface DOMQuad {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */
readonly p1: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */
readonly p2: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */
readonly p3: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */
readonly p4: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */
getBounds(): DOMRect;
toJSON(): any;
}
declare var DOMQuad: {
prototype: DOMQuad;
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
fromQuad(other?: DOMQuadInit): DOMQuad;
fromRect(other?: DOMRectInit): DOMQuad;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */
interface DOMRect extends DOMRectReadOnly {
height: number;
width: number;
x: number;
y: number;
}
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
fromRect(other?: DOMRectInit): DOMRect;
};
type SVGRect = DOMRect;
declare var SVGRect: typeof DOMRect;
interface DOMRectList {
readonly length: number;
item(index: number): DOMRect | null;
[index: number]: DOMRect;
}
declare var DOMRectList: {
prototype: DOMRectList;
new(): DOMRectList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */
interface DOMRectReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */
readonly bottom: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */
readonly left: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */
readonly right: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */
readonly top: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */
readonly width: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */
readonly y: number;
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/**
* A type returned by some APIs which contains a list of DOMString (strings).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)
*/
interface DOMStringList {
/**
* Returns the number of strings in strings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)
*/
readonly length: number;
/**
* Returns true if strings contains string, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)
*/
contains(string: string): boolean;
/**
* Returns the string with index index from strings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)
*/
item(index: number): string | null;
[index: number]: string;
}
declare var DOMStringList: {
prototype: DOMStringList;
new(): DOMStringList;
};
/**
* Used by the dataset\xA0HTML\xA0attribute to represent data for custom attributes added to elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringMap)
*/
interface DOMStringMap {
[name: string]: string | undefined;
}
declare var DOMStringMap: {
prototype: DOMStringMap;
new(): DOMStringMap;
};
/**
* A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList)
*/
interface DOMTokenList {
/**
* Returns the number of tokens.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length)
*/
readonly length: number;
/**
* Returns the associated set as string.
*
* Can be set, to change the associated attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value)
*/
value: string;
toString(): string;
/**
* Adds all arguments passed, except those already present.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add)
*/
add(...tokens: string[]): void;
/**
* Returns true if token is present, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains)
*/
contains(token: string): boolean;
/**
* Returns the token with index index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item)
*/
item(index: number): string | null;
/**
* Removes arguments passed, if they are present.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove)
*/
remove(...tokens: string[]): void;
/**
* Replaces token with newToken.
*
* Returns true if token was replaced with newToken, and false otherwise.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace)
*/
replace(token: string, newToken: string): boolean;
/**
* Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
*
* Throws a TypeError if the associated attribute has no supported tokens defined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports)
*/
supports(token: string): boolean;
/**
* If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).
*
* Returns true if token is now present, and false otherwise.
*
* Throws a "SyntaxError" DOMException if token is empty.
*
* Throws an "InvalidCharacterError" DOMException if token contains any spaces.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle)
*/
toggle(token: string, force?: boolean): boolean;
forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;
[index: number]: string;
}
declare var DOMTokenList: {
prototype: DOMTokenList;
new(): DOMTokenList;
};
/**
* Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer)
*/
interface DataTransfer {
/**
* Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail.
*
* Can be set, to change the selected operation.
*
* The possible values are "none", "copy", "link", and "move".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect)
*/
dropEffect: "none" | "copy" | "link" | "move";
/**
* Returns the kinds of operations that are to be allowed.
*
* Can be set (during the dragstart event), to change the allowed operations.
*
* The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed)
*/
effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
/**
* Returns a FileList of the files being dragged, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files)
*/
readonly files: FileList;
/**
* Returns a DataTransferItemList object, with the drag data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items)
*/
readonly items: DataTransferItemList;
/**
* Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types)
*/
readonly types: ReadonlyArray<string>;
/**
* Removes the data of the specified formats. Removes all data if the argument is omitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData)
*/
clearData(format?: string): void;
/**
* Returns the specified data. If there is no such data, returns the empty string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData)
*/
getData(format: string): string;
/**
* Adds the specified data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData)
*/
setData(format: string, data: string): void;
/**
* Uses the given element to update the drag feedback, replacing any previously specified feedback.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage)
*/
setDragImage(image: Element, x: number, y: number): void;
}
declare var DataTransfer: {
prototype: DataTransfer;
new(): DataTransfer;
};
/**
* One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem)
*/
interface DataTransferItem {
/**
* Returns the drag data item kind, one of: "string", "file".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind)
*/
readonly kind: string;
/**
* Returns the drag data item type string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type)
*/
readonly type: string;
/**
* Returns a File object, if the drag data item kind is File.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile)
*/
getAsFile(): File | null;
/**
* Invokes the callback with the string data as the argument, if the drag data item kind is text.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString)
*/
getAsString(callback: FunctionStringCallback | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */
webkitGetAsEntry(): FileSystemEntry | null;
}
declare var DataTransferItem: {
prototype: DataTransferItem;
new(): DataTransferItem;
};
/**
* A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList)
*/
interface DataTransferItemList {
/**
* Returns the number of items in the drag data store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length)
*/
readonly length: number;
/**
* Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add)
*/
add(data: string, type: string): DataTransferItem | null;
add(data: File): DataTransferItem | null;
/**
* Removes all the entries in the drag data store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear)
*/
clear(): void;
/**
* Removes the indexth entry in the drag data store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove)
*/
remove(index: number): void;
[index: number]: DataTransferItem;
}
declare var DataTransferItemList: {
prototype: DataTransferItemList;
new(): DataTransferItemList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */
interface DecompressionStream extends GenericTransformStream {
}
declare var DecompressionStream: {
prototype: DecompressionStream;
new(format: CompressionFormat): DecompressionStream;
};
/**
* A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode)
*/
interface DelayNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime) */
readonly delayTime: AudioParam;
}
declare var DelayNode: {
prototype: DelayNode;
new(context: BaseAudioContext, options?: DelayOptions): DelayNode;
};
/**
* The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent)
*/
interface DeviceMotionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */
readonly acceleration: DeviceMotionEventAcceleration | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */
readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */
readonly interval: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate) */
readonly rotationRate: DeviceMotionEventRotationRate | null;
}
declare var DeviceMotionEvent: {
prototype: DeviceMotionEvent;
new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration)
*/
interface DeviceMotionEventAcceleration {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */
readonly x: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */
readonly y: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */
readonly z: number | null;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate)
*/
interface DeviceMotionEventRotationRate {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */
readonly alpha: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */
readonly beta: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */
readonly gamma: number | null;
}
/**
* The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent)
*/
interface DeviceOrientationEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */
readonly absolute: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */
readonly alpha: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */
readonly beta: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma) */
readonly gamma: number | null;
}
declare var DeviceOrientationEvent: {
prototype: DeviceOrientationEvent;
new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
};
interface DocumentEventMap extends GlobalEventHandlersEventMap {
"DOMContentLoaded": Event;
"fullscreenchange": Event;
"fullscreenerror": Event;
"pointerlockchange": Event;
"pointerlockerror": Event;
"readystatechange": Event;
"visibilitychange": Event;
}
/**
* Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document)
*/
interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
/**
* Sets or gets the URL for the current document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL)
*/
readonly URL: string;
/**
* Sets or gets the color of all active links in the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor)
*/
alinkColor: string;
/**
* Returns a reference to the collection of elements contained by the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all)
*/
readonly all: HTMLAllCollection;
/**
* Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors)
*/
readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;
/**
* Retrieves a collection of all applet objects in the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets)
*/
readonly applets: HTMLCollection;
/**
* Deprecated. Sets or retrieves a value that indicates the background color behind the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor)
*/
bgColor: string;
/**
* Specifies the beginning and end of the document body.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body)
*/
body: HTMLElement;
/**
* Returns document's encoding.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)
*/
readonly characterSet: string;
/**
* Gets or sets the character set used to encode the object.
* @deprecated This is a legacy alias of \`characterSet\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)
*/
readonly charset: string;
/**
* Gets a value that indicates whether standards-compliant mode is switched on for the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode)
*/
readonly compatMode: string;
/**
* Returns document's content type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType)
*/
readonly contentType: string;
/**
* Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
*
* Can be set, to add a new cookie to the element's set of HTTP cookies.
*
* If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie)
*/
cookie: string;
/**
* Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.
*
* Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript)
*/
readonly currentScript: HTMLOrSVGScriptElement | null;
/**
* Returns the Window object of the active document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView)
*/
readonly defaultView: (WindowProxy & typeof globalThis) | null;
/**
* Sets or gets a value that indicates whether the document can be edited.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode)
*/
designMode: string;
/**
* Sets or retrieves a value that indicates the reading order of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir)
*/
dir: string;
/**
* Gets an object representing the document type declaration associated with the current document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype)
*/
readonly doctype: DocumentType | null;
/**
* Gets a reference to the root node of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement)
*/
readonly documentElement: HTMLElement;
/**
* Returns document's URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI)
*/
readonly documentURI: string;
/**
* Sets or gets the security domain of the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain)
*/
domain: string;
/**
* Retrieves a collection of all embed objects in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds)
*/
readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
/**
* Sets or gets the foreground (text) color of the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor)
*/
fgColor: string;
/**
* Retrieves a collection, in source order, of all form objects in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms)
*/
readonly forms: HTMLCollectionOf<HTMLFormElement>;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen)
*/
readonly fullscreen: boolean;
/**
* Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled)
*/
readonly fullscreenEnabled: boolean;
/**
* Returns the head element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head)
*/
readonly head: HTMLHeadElement;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */
readonly hidden: boolean;
/**
* Retrieves a collection, in source order, of img objects in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images)
*/
readonly images: HTMLCollectionOf<HTMLImageElement>;
/**
* Gets the implementation object of the current document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation)
*/
readonly implementation: DOMImplementation;
/**
* Returns the character encoding used to create the webpage that is loaded into the document object.
* @deprecated This is a legacy alias of \`characterSet\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)
*/
readonly inputEncoding: string;
/**
* Gets the date that the page was last modified, if the page supplies one.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified)
*/
readonly lastModified: string;
/**
* Sets or gets the color of the document links.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor)
*/
linkColor: string;
/**
* Retrieves a collection of all a objects that specify the href property and all area objects in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links)
*/
readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
/**
* Contains information about the current URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location)
*/
get location(): Location;
set location(href: string | Location);
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */
onfullscreenchange: ((this: Document, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */
onfullscreenerror: ((this: Document, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */
onpointerlockchange: ((this: Document, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */
onpointerlockerror: ((this: Document, ev: Event) => any) | null;
/**
* Fires when the state of the object has changed.
* @param ev The event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event)
*/
onreadystatechange: ((this: Document, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */
onvisibilitychange: ((this: Document, ev: Event) => any) | null;
readonly ownerDocument: null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */
readonly pictureInPictureEnabled: boolean;
/**
* Return an HTMLCollection of the embed elements in the Document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins)
*/
readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;
/**
* Retrieves a value that indicates the current state of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState)
*/
readonly readyState: DocumentReadyState;
/**
* Gets the URL of the location that referred the user to the current page.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer)
*/
readonly referrer: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement)
*/
readonly rootElement: SVGSVGElement | null;
/**
* Retrieves a collection of all script objects in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts)
*/
readonly scripts: HTMLCollectionOf<HTMLScriptElement>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */
readonly scrollingElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */
readonly timeline: DocumentTimeline;
/**
* Contains the title of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title)
*/
title: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */
readonly visibilityState: DocumentVisibilityState;
/**
* Sets or gets the color of the links that the user has visited.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor)
*/
vlinkColor: string;
/**
* Moves node from another document and returns it.
*
* If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode)
*/
adoptNode<T extends Node>(node: T): T;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/captureEvents)
*/
captureEvents(): void;
/** @deprecated */
caretRangeFromPoint(x: number, y: number): Range | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear)
*/
clear(): void;
/**
* Closes an output stream and forces the sent data to display.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close)
*/
close(): void;
/**
* Creates an attribute object with a specified name.
* @param name String that sets the attribute object's name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute)
*/
createAttribute(localName: string): Attr;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */
createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
/**
* Returns a CDATASection node whose data is data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection)
*/
createCDATASection(data: string): CDATASection;
/**
* Creates a comment object with the specified data.
* @param data Sets the comment object's data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment)
*/
createComment(data: string): Comment;
/**
* Creates a new document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment)
*/
createDocumentFragment(): DocumentFragment;
/**
* Creates an instance of the element for the specified tag.
* @param tagName The name of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement)
*/
createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
/** @deprecated */
createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];
createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;
/**
* Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.
*
* If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.
*
* If one of the following conditions is true a "NamespaceError" DOMException will be thrown:
*
* localName does not match the QName production.
* Namespace prefix is not null and namespace is the empty string.
* Namespace prefix is "xml" and namespace is not the XML namespace.
* qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.
* namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".
*
* When supplied, options's is can be used to create a customized built-in element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS)
*/
createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
createElementNS<K extends keyof MathMLElementTagNameMap>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K];
createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement;
createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;
createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */
createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
createEvent(eventInterface: "BlobEvent"): BlobEvent;
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
createEvent(eventInterface: "CloseEvent"): CloseEvent;
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
createEvent(eventInterface: "CustomEvent"): CustomEvent;
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
createEvent(eventInterface: "Event"): Event;
createEvent(eventInterface: "Events"): Event;
createEvent(eventInterface: "FocusEvent"): FocusEvent;
createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
createEvent(eventInterface: "InputEvent"): InputEvent;
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
createEvent(eventInterface: "MessageEvent"): MessageEvent;
createEvent(eventInterface: "MouseEvent"): MouseEvent;
createEvent(eventInterface: "MouseEvents"): MouseEvent;
createEvent(eventInterface: "MutationEvent"): MutationEvent;
createEvent(eventInterface: "MutationEvents"): MutationEvent;
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent;
createEvent(eventInterface: "PointerEvent"): PointerEvent;
createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
createEvent(eventInterface: "StorageEvent"): StorageEvent;
createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
createEvent(eventInterface: "ToggleEvent"): ToggleEvent;
createEvent(eventInterface: "TouchEvent"): TouchEvent;
createEvent(eventInterface: "TrackEvent"): TrackEvent;
createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
createEvent(eventInterface: "UIEvent"): UIEvent;
createEvent(eventInterface: "UIEvents"): UIEvent;
createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
createEvent(eventInterface: "WheelEvent"): WheelEvent;
createEvent(eventInterface: string): Event;
/**
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list
* @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator)
*/
createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
/**
* Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction)
*/
createProcessingInstruction(target: string, data: string): ProcessingInstruction;
/**
* Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange)
*/
createRange(): Range;
/**
* Creates a text string from the specified value.
* @param data String that specifies the nodeValue property of the text node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode)
*/
createTextNode(data: string): Text;
/**
* Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
* @param filter A custom NodeFilter function to use.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker)
*/
createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
/**
* Executes a command on the current document, current selection, or the given range.
* @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
* @param showUI Display the user interface, defaults to false.
* @param value Value to assign.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand)
*/
execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
/**
* Stops document's fullscreen element from being displayed fullscreen and resolves promise when done.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen)
*/
exitFullscreen(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */
exitPictureInPicture(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */
exitPointerLock(): void;
/**
* Returns a reference to the first object with the specified value of the ID attribute.
* @param elementId String that specifies the ID value.
*/
getElementById(elementId: string): HTMLElement | null;
/**
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName)
*/
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
/**
* Gets a collection of objects based on the value of the NAME or ID attribute.
* @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName)
*/
getElementsByName(elementName: string): NodeListOf<HTMLElement>;
/**
* Retrieves a collection of objects based on the specified element name.
* @param name Specifies the name of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName)
*/
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
/** @deprecated */
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
/**
* If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
*
* If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.
*
* If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.
*
* Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS)
*/
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
/**
* Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection)
*/
getSelection(): Selection | null;
/**
* Gets a value indicating whether the object currently has focus.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus)
*/
hasFocus(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */
hasStorageAccess(): Promise<boolean>;
/**
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
*
* If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode)
*/
importNode<T extends Node>(node: T, deep?: boolean): T;
/**
* Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
* @param url Specifies a MIME type for the document.
* @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.
* @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
* @param replace Specifies whether the existing entry for the document is replaced in the history list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open)
*/
open(unused1?: string, unused2?: string): Document;
open(url: string | URL, name: string, features: string): WindowProxy | null;
/**
* Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
* @param commandId Specifies a command identifier.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled)
*/
queryCommandEnabled(commandId: string): boolean;
/**
* Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
* @param commandId String that specifies a command identifier.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandIndeterm)
*/
queryCommandIndeterm(commandId: string): boolean;
/**
* Returns a Boolean value that indicates the current state of the command.
* @param commandId String that specifies a command identifier.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState)
*/
queryCommandState(commandId: string): boolean;
/**
* Returns a Boolean value that indicates whether the current command is supported on the current range.
* @param commandId Specifies a command identifier.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported)
*/
queryCommandSupported(commandId: string): boolean;
/**
* Returns the current value of the document, range, or current selection for the given command.
* @param commandId String that specifies a command identifier.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandValue)
*/
queryCommandValue(commandId: string): string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/releaseEvents)
*/
releaseEvents(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */
requestStorageAccess(): Promise<void>;
/**
* Writes one or more HTML expressions to a document in the specified window.
* @param content Specifies the text and HTML tags to write.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write)
*/
write(...text: string[]): void;
/**
* Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
* @param content The text and HTML tags to write.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln)
*/
writeln(...text: string[]): void;
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Document: {
prototype: Document;
new(): Document;
};
/**
* A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment)
*/
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
readonly ownerDocument: Document;
getElementById(elementId: string): HTMLElement | null;
}
declare var DocumentFragment: {
prototype: DocumentFragment;
new(): DocumentFragment;
};
interface DocumentOrShadowRoot {
/**
* Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
*
* For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
*
* Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement)
*/
readonly activeElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
adoptedStyleSheets: CSSStyleSheet[];
/**
* Returns document's fullscreen element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement)
*/
readonly fullscreenElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */
readonly pictureInPictureElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */
readonly pointerLockElement: Element | null;
/**
* Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets)
*/
readonly styleSheets: StyleSheetList;
/**
* Returns the element for the specified x coordinate and the specified y coordinate.
* @param x The x-offset
* @param y The y-offset
*/
elementFromPoint(x: number, y: number): Element | null;
elementsFromPoint(x: number, y: number): Element[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */
getAnimations(): Animation[];
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */
interface DocumentTimeline extends AnimationTimeline {
}
declare var DocumentTimeline: {
prototype: DocumentTimeline;
new(options?: DocumentTimelineOptions): DocumentTimeline;
};
/**
* A Node containing a doctype.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType)
*/
interface DocumentType extends Node, ChildNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */
readonly name: string;
readonly ownerDocument: Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */
readonly publicId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */
readonly systemId: string;
}
declare var DocumentType: {
prototype: DocumentType;
new(): DocumentType;
};
/**
* A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent)
*/
interface DragEvent extends MouseEvent {
/**
* Returns the DataTransfer object for the event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer)
*/
readonly dataTransfer: DataTransfer | null;
}
declare var DragEvent: {
prototype: DragEvent;
new(type: string, eventInitDict?: DragEventInit): DragEvent;
};
/**
* Inherits properties from its parent, AudioNode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode)
*/
interface DynamicsCompressorNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */
readonly attack: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */
readonly knee: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */
readonly ratio: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */
readonly reduction: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */
readonly release: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold) */
readonly threshold: AudioParam;
}
declare var DynamicsCompressorNode: {
prototype: DynamicsCompressorNode;
new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */
interface EXT_blend_minmax {
readonly MIN_EXT: 0x8007;
readonly MAX_EXT: 0x8008;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */
interface EXT_color_buffer_float {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */
interface EXT_color_buffer_half_float {
readonly RGBA16F_EXT: 0x881A;
readonly RGB16F_EXT: 0x881B;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */
interface EXT_float_blend {
}
/**
* The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth)
*/
interface EXT_frag_depth {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */
interface EXT_sRGB {
readonly SRGB_EXT: 0x8C40;
readonly SRGB_ALPHA_EXT: 0x8C42;
readonly SRGB8_ALPHA8_EXT: 0x8C43;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */
interface EXT_shader_texture_lod {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */
interface EXT_texture_compression_bptc {
readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;
readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;
readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;
readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */
interface EXT_texture_compression_rgtc {
readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;
}
/**
* The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic)
*/
interface EXT_texture_filter_anisotropic {
readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */
interface EXT_texture_norm16 {
readonly R16_EXT: 0x822A;
readonly RG16_EXT: 0x822C;
readonly RGB16_EXT: 0x8054;
readonly RGBA16_EXT: 0x805B;
readonly R16_SNORM_EXT: 0x8F98;
readonly RG16_SNORM_EXT: 0x8F99;
readonly RGB16_SNORM_EXT: 0x8F9A;
readonly RGBA16_SNORM_EXT: 0x8F9B;
}
interface ElementEventMap {
"fullscreenchange": Event;
"fullscreenerror": Event;
}
/**
* Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element)
*/
interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */
readonly attributes: NamedNodeMap;
/**
* Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList)
*/
readonly classList: DOMTokenList;
/**
* Returns the value of element's class content attribute. Can be set to change it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className)
*/
className: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */
readonly clientHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */
readonly clientLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */
readonly clientTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */
readonly clientWidth: number;
/**
* Returns the value of element's id content attribute. Can be set to change it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id)
*/
id: string;
/**
* Returns the local name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName)
*/
readonly localName: string;
/**
* Returns the namespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI)
*/
readonly namespaceURI: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */
outerHTML: string;
readonly ownerDocument: Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */
readonly part: DOMTokenList;
/**
* Returns the namespace prefix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix)
*/
readonly prefix: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */
readonly scrollHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */
scrollLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */
scrollTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */
readonly scrollWidth: number;
/**
* Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot)
*/
readonly shadowRoot: ShadowRoot | null;
/**
* Returns the value of element's slot content attribute. Can be set to change it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot)
*/
slot: string;
/**
* Returns the HTML-uppercased qualified name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName)
*/
readonly tagName: string;
/**
* Creates a shadow root for element and returns it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow)
*/
attachShadow(init: ShadowRootInit): ShadowRoot;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */
checkVisibility(options?: CheckVisibilityOptions): boolean;
/**
* Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest)
*/
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
closest<E extends Element = Element>(selectors: string): E | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */
computedStyleMap(): StylePropertyMapReadOnly;
/**
* Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute)
*/
getAttribute(qualifiedName: string): string | null;
/**
* Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS)
*/
getAttributeNS(namespace: string | null, localName: string): string | null;
/**
* Returns the qualified names of all element's attributes. Can contain duplicates.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames)
*/
getAttributeNames(): string[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */
getAttributeNode(qualifiedName: string): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */
getBoundingClientRect(): DOMRect;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */
getClientRects(): DOMRectList;
/**
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName)
*/
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
/** @deprecated */
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
/**
* Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute)
*/
hasAttribute(qualifiedName: string): boolean;
/**
* Returns true if element has an attribute whose namespace is namespace and local name is localName.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS)
*/
hasAttributeNS(namespace: string | null, localName: string): boolean;
/**
* Returns true if element has attributes, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes)
*/
hasAttributes(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */
hasPointerCapture(pointerId: number): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */
insertAdjacentHTML(position: InsertPosition, text: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */
insertAdjacentText(where: InsertPosition, data: string): void;
/**
* Returns true if matching selectors against element's root yields element, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
*/
matches(selectors: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */
releasePointerCapture(pointerId: number): void;
/**
* Removes element's first attribute whose qualified name is qualifiedName.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute)
*/
removeAttribute(qualifiedName: string): void;
/**
* Removes element's attribute whose namespace is namespace and local name is localName.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS)
*/
removeAttributeNS(namespace: string | null, localName: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */
removeAttributeNode(attr: Attr): Attr;
/**
* Displays element fullscreen and resolves promise when done.
*
* When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen)
*/
requestFullscreen(options?: FullscreenOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */
requestPointerLock(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* Sets the value of element's first attribute whose qualified name is qualifiedName to value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute)
*/
setAttribute(qualifiedName: string, value: string): void;
/**
* Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS)
*/
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */
setAttributeNode(attr: Attr): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */
setAttributeNodeNS(attr: Attr): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */
setPointerCapture(pointerId: number): void;
/**
* If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
*
* Returns true if qualifiedName is now present, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute)
*/
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
/**
* @deprecated This is a legacy alias of \`matches\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
*/
webkitMatchesSelector(selectors: string): boolean;
addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Element: {
prototype: Element;
new(): Element;
};
interface ElementCSSInlineStyle {
readonly attributeStyleMap: StylePropertyMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
readonly style: CSSStyleDeclaration;
}
interface ElementContentEditable {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */
contentEditable: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */
enterKeyHint: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */
inputMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */
readonly isContentEditable: boolean;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals) */
interface ElementInternals extends ARIAMixin {
/**
* Returns the form owner of internals's target element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form)
*/
readonly form: HTMLFormElement | null;
/**
* Returns a NodeList of all the label elements that internals's target element is associated with.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels)
*/
readonly labels: NodeList;
/**
* Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot)
*/
readonly shadowRoot: ShadowRoot | null;
/**
* Returns the error message that would be shown to the user if internals's target element was to be checked for validity.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns the ValidityState object for internals's target element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity)
*/
readonly validity: ValidityState;
/**
* Returns true if internals's target element will be validated when the form is submitted; false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate)
*/
readonly willValidate: boolean;
/**
* Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity)
*/
checkValidity(): boolean;
/**
* Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity)
*/
reportValidity(): boolean;
/**
* Sets both the state and submission value of internals's target element to value.
*
* If value is null, the element won't participate in form submission.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue)
*/
setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
/**
* Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity)
*/
setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;
}
declare var ElementInternals: {
prototype: ElementInternals;
new(): ElementInternals;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */
interface EncodedVideoChunk {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */
readonly byteLength: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */
readonly duration: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */
readonly type: EncodedVideoChunkType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */
copyTo(destination: AllowSharedBufferSource): void;
}
declare var EncodedVideoChunk: {
prototype: EncodedVideoChunk;
new(init: EncodedVideoChunkInit): EncodedVideoChunk;
};
/**
* Events providing information related to errors in scripts or in files.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
*/
interface ErrorEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
readonly colno: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
readonly error: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
readonly filename: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
readonly lineno: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
readonly message: string;
}
declare var ErrorEvent: {
prototype: ErrorEvent;
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/**
* An event which takes place in the DOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
*/
interface Event {
/**
* Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
*/
readonly bubbles: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
*/
cancelBubble: boolean;
/**
* Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
*/
readonly cancelable: boolean;
/**
* Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
*/
readonly composed: boolean;
/**
* Returns the object whose event listener's callback is currently being invoked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
*/
readonly currentTarget: EventTarget | null;
/**
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
*/
readonly defaultPrevented: boolean;
/**
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
*/
readonly eventPhase: number;
/**
* Returns true if event was dispatched by the user agent, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
*/
readonly isTrusted: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
*/
returnValue: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
*/
readonly srcElement: EventTarget | null;
/**
* Returns the object to which event is dispatched (its target).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
*/
readonly target: EventTarget | null;
/**
* Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
*/
readonly timeStamp: DOMHighResTimeStamp;
/**
* Returns the type of event, e.g. "click", "hashchange", or "submit".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
*/
readonly type: string;
/**
* Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
*/
composedPath(): EventTarget[];
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
*/
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
/**
* If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
*/
preventDefault(): void;
/**
* Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
*/
stopImmediatePropagation(): void;
/**
* When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
*/
stopPropagation(): void;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
}
declare var Event: {
prototype: Event;
new(type: string, eventInitDict?: EventInit): Event;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */
interface EventCounts {
forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;
}
declare var EventCounts: {
prototype: EventCounts;
new(): EventCounts;
};
interface EventListener {
(evt: Event): void;
}
interface EventListenerObject {
handleEvent(object: Event): void;
}
interface EventSourceEventMap {
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */
interface EventSource extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */
onerror: ((this: EventSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */
onopen: ((this: EventSource, ev: Event) => any) | null;
/**
* Returns the state of this EventSource object's connection. It can have the values described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)
*/
readonly readyState: number;
/**
* Returns the URL providing the event stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)
*/
readonly url: string;
/**
* Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
*/
readonly withCredentials: boolean;
/**
* Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)
*/
close(): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var EventSource: {
prototype: EventSource;
new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
};
/**
* EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
*/
interface EventTarget {
/**
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
*
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
*
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
*
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners.
*
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
*
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
*
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
*/
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
dispatchEvent(event: Event): boolean;
/**
* Removes the event listener in target's event listener list with the same type, callback, and options.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
*/
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
}
declare var EventTarget: {
prototype: EventTarget;
new(): EventTarget;
};
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/External)
*/
interface External {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/AddSearchProvider)
*/
AddSearchProvider(): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/IsSearchProviderInstalled)
*/
IsSearchProviderInstalled(): void;
}
/** @deprecated */
declare var External: {
prototype: External;
new(): External;
};
/**
* Provides information about files and allows JavaScript in a web page to access their content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)
*/
interface File extends Blob {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
readonly lastModified: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */
readonly webkitRelativePath: string;
}
declare var File: {
prototype: File;
new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};
/**
* An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)
*/
interface FileList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */
item(index: number): File | null;
[index: number]: File;
}
declare var FileList: {
prototype: FileList;
new(): FileList;
};
interface FileReaderEventMap {
"abort": ProgressEvent<FileReader>;
"error": ProgressEvent<FileReader>;
"load": ProgressEvent<FileReader>;
"loadend": ProgressEvent<FileReader>;
"loadstart": ProgressEvent<FileReader>;
"progress": ProgressEvent<FileReader>;
}
/**
* Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader)
*/
interface FileReader extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */
readonly error: DOMException | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */
readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */
readonly result: string | ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */
readAsArrayBuffer(blob: Blob): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
*/
readAsBinaryString(blob: Blob): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */
readAsDataURL(blob: Blob): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */
readAsText(blob: Blob, encoding?: string): void;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FileReader: {
prototype: FileReader;
new(): FileReader;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem) */
interface FileSystem {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */
readonly root: FileSystemDirectoryEntry;
}
declare var FileSystem: {
prototype: FileSystem;
new(): FileSystem;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) */
interface FileSystemDirectoryEntry extends FileSystemEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */
createReader(): FileSystemDirectoryReader;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */
getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) */
getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemDirectoryEntry: {
prototype: FileSystemDirectoryEntry;
new(): FileSystemDirectoryEntry;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)
*/
interface FileSystemDirectoryHandle extends FileSystemHandle {
readonly kind: "directory";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
}
declare var FileSystemDirectoryHandle: {
prototype: FileSystemDirectoryHandle;
new(): FileSystemDirectoryHandle;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader) */
interface FileSystemDirectoryReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */
readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemDirectoryReader: {
prototype: FileSystemDirectoryReader;
new(): FileSystemDirectoryReader;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) */
interface FileSystemEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */
readonly filesystem: FileSystem;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */
readonly fullPath: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */
readonly isDirectory: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */
readonly isFile: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */
getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemEntry: {
prototype: FileSystemEntry;
new(): FileSystemEntry;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry) */
interface FileSystemFileEntry extends FileSystemEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */
file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemFileEntry: {
prototype: FileSystemFileEntry;
new(): FileSystemFileEntry;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)
*/
interface FileSystemFileHandle extends FileSystemHandle {
readonly kind: "file";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */
createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */
getFile(): Promise<File>;
}
declare var FileSystemFileHandle: {
prototype: FileSystemFileHandle;
new(): FileSystemFileHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)
*/
interface FileSystemHandle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */
readonly kind: FileSystemHandleKind;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */
isSameEntry(other: FileSystemHandle): Promise<boolean>;
}
declare var FileSystemHandle: {
prototype: FileSystemHandle;
new(): FileSystemHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)
*/
interface FileSystemWritableFileStream extends WritableStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */
seek(position: number): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */
truncate(size: number): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */
write(data: FileSystemWriteChunkType): Promise<void>;
}
declare var FileSystemWritableFileStream: {
prototype: FileSystemWritableFileStream;
new(): FileSystemWritableFileStream;
};
/**
* Focus-related events like focus, blur, focusin, or focusout.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent)
*/
interface FocusEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */
readonly relatedTarget: EventTarget | null;
}
declare var FocusEvent: {
prototype: FocusEvent;
new(type: string, eventInitDict?: FocusEventInit): FocusEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */
interface FontFace {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */
ascentOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */
descentOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */
display: FontDisplay;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */
family: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */
featureSettings: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */
lineGapOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */
readonly loaded: Promise<FontFace>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */
readonly status: FontFaceLoadStatus;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */
stretch: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */
style: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */
unicodeRange: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */
weight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": Event;
"loadingdone": Event;
"loadingerror": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */
interface FontFaceSet extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */
readonly ready: Promise<FontFaceSet>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */
readonly status: FontFaceSetLoadStatus;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */
check(font: string, text?: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */
load(font: string, text?: string): Promise<FontFace[]>;
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FontFaceSet: {
prototype: FontFaceSet;
new(initialFaces: FontFace[]): FontFaceSet;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */
interface FontFaceSetLoadEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */
readonly fontfaces: ReadonlyArray<FontFace>;
}
declare var FontFaceSetLoadEvent: {
prototype: FontFaceSetLoadEvent;
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};
interface FontFaceSource {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */
readonly fonts: FontFaceSet;
}
/**
* Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)
*/
interface FormData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */
append(name: string, value: string | Blob): void;
append(name: string, value: string): void;
append(name: string, blobValue: Blob, filename?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */
delete(name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */
get(name: string): FormDataEntryValue | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */
getAll(name: string): FormDataEntryValue[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */
has(name: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */
set(name: string, value: string | Blob): void;
set(name: string, value: string): void;
set(name: string, blobValue: Blob, filename?: string): void;
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}
declare var FormData: {
prototype: FormData;
new(form?: HTMLFormElement, submitter?: HTMLElement | null): FormData;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */
interface FormDataEvent extends Event {
/**
* Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData)
*/
readonly formData: FormData;
}
declare var FormDataEvent: {
prototype: FormDataEvent;
new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;
};
/**
* A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode)
*/
interface GainNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */
readonly gain: AudioParam;
}
declare var GainNode: {
prototype: GainNode;
new(context: BaseAudioContext, options?: GainOptions): GainNode;
};
/**
* This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad)
*/
interface Gamepad {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */
readonly axes: ReadonlyArray<number>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */
readonly buttons: ReadonlyArray<GamepadButton>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */
readonly connected: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */
readonly index: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */
readonly mapping: GamepadMappingType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */
readonly timestamp: DOMHighResTimeStamp;
readonly vibrationActuator: GamepadHapticActuator | null;
}
declare var Gamepad: {
prototype: Gamepad;
new(): Gamepad;
};
/**
* An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton)
*/
interface GamepadButton {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */
readonly pressed: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */
readonly touched: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */
readonly value: number;
}
declare var GamepadButton: {
prototype: GamepadButton;
new(): GamepadButton;
};
/**
* This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent)
*/
interface GamepadEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) */
readonly gamepad: Gamepad;
}
declare var GamepadEvent: {
prototype: GamepadEvent;
new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;
};
/**
* This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator)
*/
interface GamepadHapticActuator {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/type) */
readonly type: GamepadHapticActuatorType;
playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;
reset(): Promise<GamepadHapticsResult>;
}
declare var GamepadHapticActuator: {
prototype: GamepadHapticActuator;
new(): GamepadHapticActuator;
};
interface GenericTransformStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */
readonly writable: WritableStream;
}
/**
* An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation)
*/
interface Geolocation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */
clearWatch(watchId: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */
getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) */
watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;
}
declare var Geolocation: {
prototype: Geolocation;
new(): Geolocation;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates)
*/
interface GeolocationCoordinates {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */
readonly accuracy: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */
readonly altitude: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */
readonly altitudeAccuracy: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */
readonly heading: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */
readonly latitude: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */
readonly longitude: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */
readonly speed: number | null;
}
declare var GeolocationCoordinates: {
prototype: GeolocationCoordinates;
new(): GeolocationCoordinates;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition)
*/
interface GeolocationPosition {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */
readonly coords: GeolocationCoordinates;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */
readonly timestamp: EpochTimeStamp;
}
declare var GeolocationPosition: {
prototype: GeolocationPosition;
new(): GeolocationPosition;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError) */
interface GeolocationPositionError {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */
readonly code: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message) */
readonly message: string;
readonly PERMISSION_DENIED: 1;
readonly POSITION_UNAVAILABLE: 2;
readonly TIMEOUT: 3;
}
declare var GeolocationPositionError: {
prototype: GeolocationPositionError;
new(): GeolocationPositionError;
readonly PERMISSION_DENIED: 1;
readonly POSITION_UNAVAILABLE: 2;
readonly TIMEOUT: 3;
};
interface GlobalEventHandlersEventMap {
"abort": UIEvent;
"animationcancel": AnimationEvent;
"animationend": AnimationEvent;
"animationiteration": AnimationEvent;
"animationstart": AnimationEvent;
"auxclick": MouseEvent;
"beforeinput": InputEvent;
"beforetoggle": Event;
"blur": FocusEvent;
"cancel": Event;
"canplay": Event;
"canplaythrough": Event;
"change": Event;
"click": MouseEvent;
"close": Event;
"compositionend": CompositionEvent;
"compositionstart": CompositionEvent;
"compositionupdate": CompositionEvent;
"contextmenu": MouseEvent;
"copy": ClipboardEvent;
"cuechange": Event;
"cut": ClipboardEvent;
"dblclick": MouseEvent;
"drag": DragEvent;
"dragend": DragEvent;
"dragenter": DragEvent;
"dragleave": DragEvent;
"dragover": DragEvent;
"dragstart": DragEvent;
"drop": DragEvent;
"durationchange": Event;
"emptied": Event;
"ended": Event;
"error": ErrorEvent;
"focus": FocusEvent;
"focusin": FocusEvent;
"focusout": FocusEvent;
"formdata": FormDataEvent;
"gotpointercapture": PointerEvent;
"input": Event;
"invalid": Event;
"keydown": KeyboardEvent;
"keypress": KeyboardEvent;
"keyup": KeyboardEvent;
"load": Event;
"loadeddata": Event;
"loadedmetadata": Event;
"loadstart": Event;
"lostpointercapture": PointerEvent;
"mousedown": MouseEvent;
"mouseenter": MouseEvent;
"mouseleave": MouseEvent;
"mousemove": MouseEvent;
"mouseout": MouseEvent;
"mouseover": MouseEvent;
"mouseup": MouseEvent;
"paste": ClipboardEvent;
"pause": Event;
"play": Event;
"playing": Event;
"pointercancel": PointerEvent;
"pointerdown": PointerEvent;
"pointerenter": PointerEvent;
"pointerleave": PointerEvent;
"pointermove": PointerEvent;
"pointerout": PointerEvent;
"pointerover": PointerEvent;
"pointerup": PointerEvent;
"progress": ProgressEvent;
"ratechange": Event;
"reset": Event;
"resize": UIEvent;
"scroll": Event;
"scrollend": Event;
"securitypolicyviolation": SecurityPolicyViolationEvent;
"seeked": Event;
"seeking": Event;
"select": Event;
"selectionchange": Event;
"selectstart": Event;
"slotchange": Event;
"stalled": Event;
"submit": SubmitEvent;
"suspend": Event;
"timeupdate": Event;
"toggle": Event;
"touchcancel": TouchEvent;
"touchend": TouchEvent;
"touchmove": TouchEvent;
"touchstart": TouchEvent;
"transitioncancel": TransitionEvent;
"transitionend": TransitionEvent;
"transitionrun": TransitionEvent;
"transitionstart": TransitionEvent;
"volumechange": Event;
"waiting": Event;
"webkitanimationend": Event;
"webkitanimationiteration": Event;
"webkitanimationstart": Event;
"webkittransitionend": Event;
"wheel": WheelEvent;
}
interface GlobalEventHandlers {
/**
* Fires when the user aborts the download.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event)
*/
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)
*/
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event)
*/
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event)
*/
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)
*/
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
*/
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event)
*/
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event)
*/
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user releases the mouse at the close of a drag operation.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event)
*/
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target element when the user drags the object to a valid drop target.
* @param ev The drag event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event)
*/
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
* @param ev The drag event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event)
*/
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target element continuously while the user drags the object over a valid drop target.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event)
*/
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user starts to drag a text selection or selected object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event)
*/
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event)
*/
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event)
*/
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event)
*/
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event)
*/
onerror: OnErrorEventHandler;
/**
* Fires when the object receives focus.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event)
*/
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event)
*/
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event)
*/
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event)
*/
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event)
*/
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event)
*/
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the duration and dimensions of the media have been determined.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event)
*/
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event)
*/
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event)
*/
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event)
*/
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer outside the boundaries of the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event)
*/
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer into the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event)
*/
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user releases a mouse button while the mouse is over the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event)
*/
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event)
*/
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the play method is requested.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event)
*/
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event)
*/
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event)
*/
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event)
*/
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user resets a form.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event)
*/
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
/**
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)
*/
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event)
*/
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event)
*/
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event)
*/
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event)
*/
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event)
*/
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event)
*/
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event)
*/
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback stops because the next frame of a video resource is not available.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event)
*/
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationend\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event)
*/
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationiteration\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event)
*/
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationstart\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event)
*/
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`ontransitionend\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event)
*/
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */
interface HTMLAllCollection {
/**
* Returns the number of elements in the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length)
*/
readonly length: number;
/**
* Returns the item with index index from the collection (determined by tree order).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item)
*/
item(nameOrIndex?: string): HTMLCollection | Element | null;
/**
* Returns the item with ID or name name from the collection.
*
* If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.
*
* Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem)
*/
namedItem(name: string): HTMLCollection | Element | null;
[index: number]: Element;
}
declare var HTMLAllCollection: {
prototype: HTMLAllCollection;
new(): HTMLAllCollection;
};
/**
* Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement)
*/
interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/charset)
*/
charset: string;
/**
* Sets or retrieves the coordinates of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/coords)
*/
coords: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */
download: string;
/**
* Sets or retrieves the language code of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang)
*/
hreflang: string;
/**
* Sets or retrieves the shape of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name)
*/
name: string;
ping: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */
referrerPolicy: string;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel)
*/
rel: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rev)
*/
rev: string;
/**
* Sets or retrieves the shape of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/shape)
*/
shape: string;
/**
* Sets or retrieves the window or frame at which to target content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target)
*/
target: string;
/**
* Retrieves or sets the text of the object as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text)
*/
text: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAnchorElement: {
prototype: HTMLAnchorElement;
new(): HTMLAnchorElement;
};
/**
* Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement)
*/
interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
* Sets or retrieves a text alternative to the graphic.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt)
*/
alt: string;
/**
* Sets or retrieves the coordinates of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords)
*/
coords: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */
download: string;
/**
* Sets or gets whether clicks in this region cause action.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref)
*/
noHref: boolean;
ping: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */
referrerPolicy: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */
rel: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */
readonly relList: DOMTokenList;
/**
* Sets or retrieves the shape of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape)
*/
shape: string;
/**
* Sets or retrieves the window or frame at which to target content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target)
*/
target: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAreaElement: {
prototype: HTMLAreaElement;
new(): HTMLAreaElement;
};
/**
* Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAudioElement)
*/
interface HTMLAudioElement extends HTMLMediaElement {
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAudioElement: {
prototype: HTMLAudioElement;
new(): HTMLAudioElement;
};
/**
* A HTML line break element (<br>). It inherits from HTMLElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement)
*/
interface HTMLBRElement extends HTMLElement {
/**
* Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement/clear)
*/
clear: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBRElement: {
prototype: HTMLBRElement;
new(): HTMLBRElement;
};
/**
* Contains the base URI\xA0for a document. This object inherits all of the properties and methods as described in the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement)
*/
interface HTMLBaseElement extends HTMLElement {
/**
* Gets or sets the baseline URL on which relative links are based.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href)
*/
href: string;
/**
* Sets or retrieves the window or frame at which to target content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/target)
*/
target: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBaseElement: {
prototype: HTMLBaseElement;
new(): HTMLBaseElement;
};
interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
}
/**
* Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement)
*/
interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/aLink)
*/
aLink: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/background)
*/
background: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/bgColor)
*/
bgColor: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/link)
*/
link: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/text)
*/
text: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/vLink)
*/
vLink: string;
addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBodyElement: {
prototype: HTMLBodyElement;
new(): HTMLBodyElement;
};
/**
* Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement)
*/
interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */
disabled: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* Overrides the action attribute (where the data on a form is sent) on the parent form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction)
*/
formAction: string;
/**
* Used to override the encoding (formEnctype attribute) specified on the form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype)
*/
formEnctype: string;
/**
* Overrides the submit method attribute previously specified on a form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod)
*/
formMethod: string;
/**
* Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate)
*/
formNoValidate: boolean;
/**
* Overrides the target attribute on a form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget)
*/
formTarget: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* Sets or retrieves the name of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/name)
*/
name: string;
/**
* Gets the classification and default behavior of the button.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/type)
*/
type: "submit" | "reset" | "button";
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validity)
*/
readonly validity: ValidityState;
/**
* Sets or retrieves the default or selected value of the control.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/value)
*/
value: string;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/willValidate)
*/
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity) */
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLButtonElement: {
prototype: HTMLButtonElement;
new(): HTMLButtonElement;
};
/**
* Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement)
*/
interface HTMLCanvasElement extends HTMLElement {
/**
* Gets or sets the height of a canvas element on a document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/height)
*/
height: number;
/**
* Gets or sets the width of a canvas element on a document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/width)
*/
width: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/captureStream) */
captureStream(frameRequestRate?: number): MediaStream;
/**
* Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
* @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/getContext)
*/
getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
getContext(contextId: string, options?: any): RenderingContext | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob) */
toBlob(callback: BlobCallback, type?: string, quality?: any): void;
/**
* Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
* @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL)
*/
toDataURL(type?: string, quality?: any): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen) */
transferControlToOffscreen(): OffscreenCanvas;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLCanvasElement: {
prototype: HTMLCanvasElement;
new(): HTMLCanvasElement;
};
/**
* A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection)
*/
interface HTMLCollectionBase {
/**
* Sets or retrieves the number of objects in a collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/length)
*/
readonly length: number;
/**
* Retrieves an object from various collections.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/item)
*/
item(index: number): Element | null;
[index: number]: Element;
}
interface HTMLCollection extends HTMLCollectionBase {
/**
* Retrieves a select object or an object from an options collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/namedItem)
*/
namedItem(name: string): Element | null;
}
declare var HTMLCollection: {
prototype: HTMLCollection;
new(): HTMLCollection;
};
interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
item(index: number): T | null;
namedItem(name: string): T | null;
[index: number]: T;
}
/**
* Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement)
*/
interface HTMLDListElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement/compact)
*/
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDListElement: {
prototype: HTMLDListElement;
new(): HTMLDListElement;
};
/**
* Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement)
*/
interface HTMLDataElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement/value) */
value: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDataElement: {
prototype: HTMLDataElement;
new(): HTMLDataElement;
};
/**
* Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement)
*/
interface HTMLDataListElement extends HTMLElement {
/**
* Returns an HTMLCollection of the option elements of the datalist element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement/options)
*/
readonly options: HTMLCollectionOf<HTMLOptionElement>;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDataListElement: {
prototype: HTMLDataListElement;
new(): HTMLDataListElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement) */
interface HTMLDetailsElement extends HTMLElement {
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */
open: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDetailsElement: {
prototype: HTMLDetailsElement;
new(): HTMLDetailsElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement) */
interface HTMLDialogElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/open) */
open: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/returnValue) */
returnValue: string;
/**
* Closes the dialog element.
*
* The argument, if provided, provides a return value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close)
*/
close(returnValue?: string): void;
/**
* Displays the dialog element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/show)
*/
show(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/showModal) */
showModal(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDialogElement: {
prototype: HTMLDialogElement;
new(): HTMLDialogElement;
};
/** @deprecated */
interface HTMLDirectoryElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLDirectoryElement: {
prototype: HTMLDirectoryElement;
new(): HTMLDirectoryElement;
};
/**
* Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement)
*/
interface HTMLDivElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement/align)
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDivElement: {
prototype: HTMLDivElement;
new(): HTMLDivElement;
};
/** @deprecated use Document */
interface HTMLDocument extends Document {
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLDocument: {
prototype: HTMLDocument;
new(): HTMLDocument;
};
interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}
/**
* Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)
*/
interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) */
accessKey: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) */
readonly accessKeyLabel: string;
autocapitalize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) */
dir: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) */
draggable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) */
hidden: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) */
inert: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) */
innerText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) */
lang: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) */
readonly offsetHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) */
readonly offsetLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) */
readonly offsetParent: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) */
readonly offsetTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) */
readonly offsetWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) */
outerText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) */
popover: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) */
spellcheck: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) */
title: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) */
translate: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) */
attachInternals(): ElementInternals;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) */
click(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) */
hidePopover(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) */
showPopover(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */
togglePopover(force?: boolean): boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLElement: {
prototype: HTMLElement;
new(): HTMLElement;
};
/**
* Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement)
*/
interface HTMLEmbedElement extends HTMLElement {
/** @deprecated */
align: string;
/** Sets or retrieves the height of the object. */
height: string;
/**
* Sets or retrieves the name of the object.
* @deprecated
*/
name: string;
/** Sets or retrieves a URL to be loaded by the object. */
src: string;
type: string;
/** Sets or retrieves the width of the object. */
width: string;
getSVGDocument(): Document | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLEmbedElement: {
prototype: HTMLEmbedElement;
new(): HTMLEmbedElement;
};
/**
* Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement)
*/
interface HTMLFieldSetElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/disabled) */
disabled: boolean;
/**
* Returns an HTMLCollection of the form controls in the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/elements)
*/
readonly elements: HTMLCollection;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/form)
*/
readonly form: HTMLFormElement | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/name) */
name: string;
/**
* Returns the string "fieldset".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/type)
*/
readonly type: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validity)
*/
readonly validity: ValidityState;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/willValidate)
*/
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity) */
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLFieldSetElement: {
prototype: HTMLFieldSetElement;
new(): HTMLFieldSetElement;
};
/**
* Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement)
*/
interface HTMLFontElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/color)
*/
color: string;
/**
* Sets or retrieves the current typeface family.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/face)
*/
face: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/size)
*/
size: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFontElement: {
prototype: HTMLFontElement;
new(): HTMLFontElement;
};
/**
* A collection of HTML form control elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection)
*/
interface HTMLFormControlsCollection extends HTMLCollectionBase {
/**
* Returns the item with ID or name name from the collection.
*
* If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection/namedItem)
*/
namedItem(name: string): RadioNodeList | Element | null;
}
declare var HTMLFormControlsCollection: {
prototype: HTMLFormControlsCollection;
new(): HTMLFormControlsCollection;
};
/**
* A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement)
*/
interface HTMLFormElement extends HTMLElement {
/**
* Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/acceptCharset)
*/
acceptCharset: string;
/**
* Sets or retrieves the URL to which the form content is sent for processing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/action)
*/
action: string;
/**
* Specifies whether autocomplete is applied to an editable text field.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete)
*/
autocomplete: AutoFillBase;
/**
* Retrieves a collection, in source order, of all controls in a given form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/elements)
*/
readonly elements: HTMLFormControlsCollection;
/**
* Sets or retrieves the MIME encoding for the form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/encoding)
*/
encoding: string;
/**
* Sets or retrieves the encoding type for the form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/enctype)
*/
enctype: string;
/**
* Sets or retrieves the number of objects in a collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/length)
*/
readonly length: number;
/**
* Sets or retrieves how to send the form data to the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/method)
*/
method: string;
/**
* Sets or retrieves the name of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name)
*/
name: string;
/**
* Designates a form that is not validated when submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/noValidate)
*/
noValidate: boolean;
rel: string;
readonly relList: DOMTokenList;
/**
* Sets or retrieves the window or frame at which to target content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/target)
*/
target: string;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity)
*/
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity) */
reportValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/requestSubmit) */
requestSubmit(submitter?: HTMLElement | null): void;
/**
* Fires when the user resets a form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset)
*/
reset(): void;
/**
* Fires when a FORM is about to be submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit)
*/
submit(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: Element;
[name: string]: any;
}
declare var HTMLFormElement: {
prototype: HTMLFormElement;
new(): HTMLFormElement;
};
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement)
*/
interface HTMLFrameElement extends HTMLElement {
/**
* Retrieves the document object of the page or frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentDocument)
*/
readonly contentDocument: Document | null;
/**
* Retrieves the object of the specified.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentWindow)
*/
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/frameBorder)
*/
frameBorder: string;
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/longDesc)
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginHeight)
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginWidth)
*/
marginWidth: string;
/**
* Sets or retrieves the frame name.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/name)
*/
name: string;
/**
* Sets or retrieves whether the user can resize the frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/noResize)
*/
noResize: boolean;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/scrolling)
*/
scrolling: string;
/**
* Sets or retrieves a URL to be loaded by the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/src)
*/
src: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFrameElement: {
prototype: HTMLFrameElement;
new(): HTMLFrameElement;
};
interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
}
/**
* Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameSetElement)
*/
interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {
/**
* Sets or retrieves the frame widths of the object.
* @deprecated
*/
cols: string;
/**
* Sets or retrieves the frame heights of the object.
* @deprecated
*/
rows: string;
addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFrameSetElement: {
prototype: HTMLFrameSetElement;
new(): HTMLFrameSetElement;
};
/**
* Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHRElement)
*/
interface HTMLHRElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** @deprecated */
color: string;
/**
* Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
* @deprecated
*/
noShade: boolean;
/** @deprecated */
size: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHRElement: {
prototype: HTMLHRElement;
new(): HTMLHRElement;
};
/**
* Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadElement)
*/
interface HTMLHeadElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHeadElement: {
prototype: HTMLHeadElement;
new(): HTMLHeadElement;
};
/**
* The different heading elements. It inherits methods and properties from the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement)
*/
interface HTMLHeadingElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement/align)
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHeadingElement: {
prototype: HTMLHeadingElement;
new(): HTMLHeadingElement;
};
/**
* Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement)
*/
interface HTMLHtmlElement extends HTMLElement {
/**
* Sets or retrieves the DTD version that governs the current document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement/version)
*/
version: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHtmlElement: {
prototype: HTMLHtmlElement;
new(): HTMLHtmlElement;
};
interface HTMLHyperlinkElementUtils {
/**
* Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
*
* Can be set, to change the URL's fragment (ignores leading "#").
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hash)
*/
hash: string;
/**
* Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
*
* Can be set, to change the URL's host and port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/host)
*/
host: string;
/**
* Returns the hyperlink's URL's host.
*
* Can be set, to change the URL's host.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hostname)
*/
hostname: string;
/**
* Returns the hyperlink's URL.
*
* Can be set, to change the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/href)
*/
href: string;
toString(): string;
/**
* Returns the hyperlink's URL's origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/origin)
*/
readonly origin: string;
/**
* Returns the hyperlink's URL's password.
*
* Can be set, to change the URL's password.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/password)
*/
password: string;
/**
* Returns the hyperlink's URL's path.
*
* Can be set, to change the URL's path.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/pathname)
*/
pathname: string;
/**
* Returns the hyperlink's URL's port.
*
* Can be set, to change the URL's port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/port)
*/
port: string;
/**
* Returns the hyperlink's URL's scheme.
*
* Can be set, to change the URL's scheme.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/protocol)
*/
protocol: string;
/**
* Returns the hyperlink's URL's query (includes leading "?" if non-empty).
*
* Can be set, to change the URL's query (ignores leading "?").
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/search)
*/
search: string;
/**
* Returns the hyperlink's URL's username.
*
* Can be set, to change the URL's username.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/username)
*/
username: string;
}
/**
* Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement)
*/
interface HTMLIFrameElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/align)
*/
align: string;
allow: string;
allowFullscreen: boolean;
/**
* Retrieves the document object of the page or frame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentDocument)
*/
readonly contentDocument: Document | null;
/**
* Retrieves the object of the specified.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentWindow)
*/
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/frameBorder)
*/
frameBorder: string;
/**
* Sets or retrieves the height of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height)
*/
height: string;
loading: string;
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/longDesc)
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginHeight)
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginWidth)
*/
marginWidth: string;
/**
* Sets or retrieves the frame name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/name)
*/
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */
referrerPolicy: ReferrerPolicy;
readonly sandbox: DOMTokenList;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/scrolling)
*/
scrolling: string;
/**
* Sets or retrieves a URL to be loaded by the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/src)
*/
src: string;
/**
* Sets or retrives the content of the page that is to contain.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/srcdoc)
*/
srcdoc: string;
/**
* Sets or retrieves the width of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/width)
*/
width: string;
getSVGDocument(): Document | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLIFrameElement: {
prototype: HTMLIFrameElement;
new(): HTMLIFrameElement;
};
/**
* Provides special properties and methods for manipulating <img> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement)
*/
interface HTMLImageElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/align)
*/
align: string;
/**
* Sets or retrieves a text alternative to the graphic.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/alt)
*/
alt: string;
/**
* Specifies the properties of a border drawn around an object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/border)
*/
border: string;
/**
* Retrieves whether the object is fully loaded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/complete)
*/
readonly complete: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/crossOrigin) */
crossOrigin: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/currentSrc) */
readonly currentSrc: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding) */
decoding: "async" | "sync" | "auto";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority) */
fetchPriority: string;
/**
* Sets or retrieves the height of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/height)
*/
height: number;
/**
* Sets or retrieves the width of the border to draw around the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/hspace)
*/
hspace: number;
/**
* Sets or retrieves whether the image is a server-side image map.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/isMap)
*/
isMap: boolean;
/**
* Sets or retrieves the policy for loading image elements that are outside the viewport.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading)
*/
loading: "eager" | "lazy";
/**
* Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/longDesc)
*/
longDesc: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/lowsrc)
*/
lowsrc: string;
/**
* Sets or retrieves the name of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/name)
*/
name: string;
/**
* The original height of the image resource before sizing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalHeight)
*/
readonly naturalHeight: number;
/**
* The original width of the image resource before sizing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalWidth)
*/
readonly naturalWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/referrerPolicy) */
referrerPolicy: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes) */
sizes: string;
/**
* The address or URL of the a media resource that is to be considered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/src)
*/
src: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/srcset) */
srcset: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/useMap)
*/
useMap: string;
/**
* Sets or retrieves the vertical margin for the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/vspace)
*/
vspace: number;
/**
* Sets or retrieves the width of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/width)
*/
width: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */
readonly y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decode) */
decode(): Promise<void>;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLImageElement: {
prototype: HTMLImageElement;
new(): HTMLImageElement;
};
/**
* Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement)
*/
interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
/** Sets or retrieves a comma-separated list of content types. */
accept: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** Sets or retrieves a text alternative to the graphic. */
alt: string;
/**
* Specifies whether autocomplete is applied to an editable text field.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete)
*/
autocomplete: AutoFill;
capture: string;
/** Sets or retrieves the state of the check box or radio button. */
checked: boolean;
/** Sets or retrieves the state of the check box or radio button. */
defaultChecked: boolean;
/** Sets or retrieves the initial contents of the object. */
defaultValue: string;
dirName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */
disabled: boolean;
/**
* Returns a FileList object on a file type input object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/files)
*/
files: FileList | null;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/**
* Overrides the action attribute (where the data on a form is sent) on the parent form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formAction)
*/
formAction: string;
/**
* Used to override the encoding (formEnctype attribute) specified on the form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formEnctype)
*/
formEnctype: string;
/**
* Overrides the submit method attribute previously specified on a form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod)
*/
formMethod: string;
/**
* Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formNoValidate)
*/
formNoValidate: boolean;
/**
* Overrides the target attribute on a form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formTarget)
*/
formTarget: string;
/**
* Sets or retrieves the height of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/height)
*/
height: number;
/** When set, overrides the rendering of checkbox controls so that the current value is not visible. */
indeterminate: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement> | null;
/**
* Specifies the ID of a pre-defined datalist of options for an input element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)
*/
readonly list: HTMLDataListElement | null;
/** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */
max: string;
/** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
maxLength: number;
/** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */
min: string;
minLength: number;
/**
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/multiple)
*/
multiple: boolean;
/** Sets or retrieves the name of the object. */
name: string;
/**
* Gets or sets a string containing a regular expression that the user's input must match.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/pattern)
*/
pattern: string;
/**
* Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/placeholder)
*/
placeholder: string;
readOnly: boolean;
/**
* When present, marks an element that can't be submitted without a value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/required)
*/
required: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */
selectionDirection: "forward" | "backward" | "none" | null;
/** Gets or sets the end position or offset of a text selection. */
selectionEnd: number | null;
/** Gets or sets the starting position or offset of a text selection. */
selectionStart: number | null;
size: number;
/** The address or URL of the a media resource that is to be considered. */
src: string;
/** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */
step: string;
/** Returns the content type of the object. */
type: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
* @deprecated
*/
useMap: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)
*/
readonly validity: ValidityState;
/** Returns the value of the data at the cursor's current position. */
value: string;
/** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */
valueAsDate: Date | null;
/** Returns the input field value as a number. */
valueAsNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory) */
webkitdirectory: boolean;
/**
* Sets or retrieves the width of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/width)
*/
width: number;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/willValidate)
*/
readonly willValidate: boolean;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checkValidity)
*/
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/reportValidity) */
reportValidity(): boolean;
/**
* Makes the selection equal to the current object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select)
*/
select(): void;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setCustomValidity)
*/
setCustomValidity(error: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setRangeText) */
setRangeText(replacement: string): void;
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
/**
* Sets the start and end positions of a selection in a text field.
* @param start The offset into the text field for the start of the selection.
* @param end The offset into the text field for the end of the selection.
* @param direction The direction in which the selection is performed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange)
*/
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/showPicker) */
showPicker(): void;
/**
* Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
* @param n Value to decrement the value by.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepDown)
*/
stepDown(n?: number): void;
/**
* Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
* @param n Value to increment the value by.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepUp)
*/
stepUp(n?: number): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLInputElement: {
prototype: HTMLInputElement;
new(): HTMLInputElement;
};
/**
* Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLIElement)
*/
interface HTMLLIElement extends HTMLElement {
/** @deprecated */
type: string;
/** Sets or retrieves the value of a list item. */
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLIElement: {
prototype: HTMLLIElement;
new(): HTMLLIElement;
};
/**
* Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement)
*/
interface HTMLLabelElement extends HTMLElement {
/**
* Returns the form control that is associated with this element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/control)
*/
readonly control: HTMLElement | null;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves the object to which the given label object is assigned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/htmlFor)
*/
htmlFor: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLabelElement: {
prototype: HTMLLabelElement;
new(): HTMLLabelElement;
};
/**
* The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement)
*/
interface HTMLLegendElement extends HTMLElement {
/** @deprecated */
align: string;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLegendElement: {
prototype: HTMLLegendElement;
new(): HTMLLegendElement;
};
/**
* Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement)
*/
interface HTMLLinkElement extends HTMLElement, LinkStyle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */
as: string;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/crossOrigin) */
crossOrigin: string | null;
disabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */
fetchPriority: string;
/**
* Sets or retrieves a destination URL or an anchor point.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/href)
*/
href: string;
/**
* Sets or retrieves the language code of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/hreflang)
*/
hreflang: string;
imageSizes: string;
imageSrcset: string;
integrity: string;
/** Sets or retrieves the media type. */
media: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/referrerPolicy) */
referrerPolicy: string;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/rel)
*/
rel: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/relList) */
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
* @deprecated
*/
rev: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sizes) */
readonly sizes: DOMTokenList;
/**
* Sets or retrieves the window or frame at which to target content.
* @deprecated
*/
target: string;
/** Sets or retrieves the MIME type of the object. */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLinkElement: {
prototype: HTMLLinkElement;
new(): HTMLLinkElement;
};
/**
* Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement)
*/
interface HTMLMapElement extends HTMLElement {
/**
* Retrieves a collection of the area objects defined for the given map object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/areas)
*/
readonly areas: HTMLCollection;
/**
* Sets or retrieves the name of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/name)
*/
name: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMapElement: {
prototype: HTMLMapElement;
new(): HTMLMapElement;
};
/**
* Provides methods to manipulate <marquee> elements.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMarqueeElement)
*/
interface HTMLMarqueeElement extends HTMLElement {
/** @deprecated */
behavior: string;
/** @deprecated */
bgColor: string;
/** @deprecated */
direction: string;
/** @deprecated */
height: string;
/** @deprecated */
hspace: number;
/** @deprecated */
loop: number;
/** @deprecated */
scrollAmount: number;
/** @deprecated */
scrollDelay: number;
/** @deprecated */
trueSpeed: boolean;
/** @deprecated */
vspace: number;
/** @deprecated */
width: string;
/** @deprecated */
start(): void;
/** @deprecated */
stop(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLMarqueeElement: {
prototype: HTMLMarqueeElement;
new(): HTMLMarqueeElement;
};
interface HTMLMediaElementEventMap extends HTMLElementEventMap {
"encrypted": MediaEncryptedEvent;
"waitingforkey": Event;
}
/**
* Adds to HTMLElement the properties and methods needed to support basic media-related capabilities\xA0that are\xA0common to audio and video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement)
*/
interface HTMLMediaElement extends HTMLElement {
/**
* Gets or sets a value that indicates whether to start playing the media automatically.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/autoplay)
*/
autoplay: boolean;
/**
* Gets a collection of buffered time ranges.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/buffered)
*/
readonly buffered: TimeRanges;
/**
* Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/controls)
*/
controls: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/crossOrigin) */
crossOrigin: string | null;
/**
* Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentSrc)
*/
readonly currentSrc: string;
/**
* Gets or sets the current playback position, in seconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentTime)
*/
currentTime: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultMuted) */
defaultMuted: boolean;
/**
* Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultPlaybackRate)
*/
defaultPlaybackRate: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/disableRemotePlayback) */
disableRemotePlayback: boolean;
/**
* Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/duration)
*/
readonly duration: number;
/**
* Gets information about whether the playback has ended or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended)
*/
readonly ended: boolean;
/**
* Returns an object representing the current error state of the audio or video element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/error)
*/
readonly error: MediaError | null;
/**
* Gets or sets a flag to specify whether playback should restart after it completes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loop)
*/
loop: boolean;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/mediaKeys)
*/
readonly mediaKeys: MediaKeys | null;
/**
* Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/muted)
*/
muted: boolean;
/**
* Gets the current network activity for the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/networkState)
*/
readonly networkState: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/encrypted_event) */
onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waitingforkey_event) */
onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
/**
* Gets a flag that specifies whether playback is paused.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/paused)
*/
readonly paused: boolean;
/**
* Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playbackRate)
*/
playbackRate: number;
/**
* Gets TimeRanges for the current media resource that has been played.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/played)
*/
readonly played: TimeRanges;
/**
* Gets or sets a value indicating what data should be preloaded, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preload)
*/
preload: "none" | "metadata" | "auto" | "";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preservesPitch) */
preservesPitch: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/readyState) */
readonly readyState: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/remote) */
readonly remote: RemotePlayback;
/**
* Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seekable)
*/
readonly seekable: TimeRanges;
/**
* Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking)
*/
readonly seeking: boolean;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/sinkId)
*/
readonly sinkId: string;
/**
* The address or URL of the a media resource that is to be considered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/src)
*/
src: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/srcObject) */
srcObject: MediaProvider | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/textTracks) */
readonly textTracks: TextTrackList;
/**
* Gets or sets the volume level for audio portions of the media element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volume)
*/
volume: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/addTextTrack) */
addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
/**
* Returns a string that specifies whether the client can play a given media resource type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType)
*/
canPlayType(type: string): CanPlayTypeResult;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/fastSeek) */
fastSeek(time: number): void;
/**
* Resets the audio or video object and loads a new media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/load)
*/
load(): void;
/**
* Pauses the current playback and sets paused to TRUE.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause)
*/
pause(): void;
/**
* Loads and starts playback of a media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play)
*/
play(): Promise<void>;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setMediaKeys)
*/
setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setSinkId)
*/
setSinkId(sinkId: string): Promise<void>;
readonly NETWORK_EMPTY: 0;
readonly NETWORK_IDLE: 1;
readonly NETWORK_LOADING: 2;
readonly NETWORK_NO_SOURCE: 3;
readonly HAVE_NOTHING: 0;
readonly HAVE_METADATA: 1;
readonly HAVE_CURRENT_DATA: 2;
readonly HAVE_FUTURE_DATA: 3;
readonly HAVE_ENOUGH_DATA: 4;
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMediaElement: {
prototype: HTMLMediaElement;
new(): HTMLMediaElement;
readonly NETWORK_EMPTY: 0;
readonly NETWORK_IDLE: 1;
readonly NETWORK_LOADING: 2;
readonly NETWORK_NO_SOURCE: 3;
readonly HAVE_NOTHING: 0;
readonly HAVE_METADATA: 1;
readonly HAVE_CURRENT_DATA: 2;
readonly HAVE_FUTURE_DATA: 3;
readonly HAVE_ENOUGH_DATA: 4;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement) */
interface HTMLMenuElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement/compact)
*/
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMenuElement: {
prototype: HTMLMenuElement;
new(): HTMLMenuElement;
};
/**
* Contains descriptive metadata about a document. It\xA0inherits all of the properties and methods described in the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement)
*/
interface HTMLMetaElement extends HTMLElement {
/** Gets or sets meta-information to associate with httpEquiv or name. */
content: string;
/** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
httpEquiv: string;
media: string;
/** Sets or retrieves the value specified in the content attribute of the meta object. */
name: string;
/**
* Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
* @deprecated
*/
scheme: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMetaElement: {
prototype: HTMLMetaElement;
new(): HTMLMetaElement;
};
/**
* The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement)
*/
interface HTMLMeterElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/high) */
high: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/low) */
low: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/max) */
max: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/min) */
min: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/optimum) */
optimum: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/value) */
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMeterElement: {
prototype: HTMLMeterElement;
new(): HTMLMeterElement;
};
/**
* Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement)
*/
interface HTMLModElement extends HTMLElement {
/**
* Sets or retrieves reference information about the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/cite)
*/
cite: string;
/**
* Sets or retrieves the date and time of a modification to the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/dateTime)
*/
dateTime: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLModElement: {
prototype: HTMLModElement;
new(): HTMLModElement;
};
/**
* Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement)
*/
interface HTMLOListElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/compact)
*/
compact: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/reversed) */
reversed: boolean;
/**
* The starting number.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/start)
*/
start: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/type) */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOListElement: {
prototype: HTMLOListElement;
new(): HTMLOListElement;
};
/**
* Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement)
*/
interface HTMLObjectElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/align)
*/
align: string;
/**
* Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/archive)
*/
archive: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/border)
*/
border: string;
/**
* Sets or retrieves the URL of the file containing the compiled Java class.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/code)
*/
code: string;
/**
* Sets or retrieves the URL of the component.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeBase)
*/
codeBase: string;
/**
* Sets or retrieves the Internet media type for the code associated with the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeType)
*/
codeType: string;
/**
* Retrieves the document object of the page or frame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentDocument)
*/
readonly contentDocument: Document | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentWindow) */
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves the URL that references the data of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/data)
*/
data: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/declare)
*/
declare: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves the height of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/height)
*/
height: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/hspace)
*/
hspace: number;
/**
* Sets or retrieves the name of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/name)
*/
name: string;
/**
* Sets or retrieves a message to be displayed while an object is loading.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/standby)
*/
standby: string;
/**
* Sets or retrieves the MIME type of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/type)
*/
type: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap)
*/
useMap: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validity)
*/
readonly validity: ValidityState;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/vspace)
*/
vspace: number;
/**
* Sets or retrieves the width of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/width)
*/
width: string;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/willValidate)
*/
readonly willValidate: boolean;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/checkValidity)
*/
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/getSVGDocument) */
getSVGDocument(): Document | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity) */
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/setCustomValidity)
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLObjectElement: {
prototype: HTMLObjectElement;
new(): HTMLObjectElement;
};
/**
* Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement)
*/
interface HTMLOptGroupElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/disabled) */
disabled: boolean;
/**
* Sets or retrieves a value that you can use to implement your own label functionality for the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/label)
*/
label: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOptGroupElement: {
prototype: HTMLOptGroupElement;
new(): HTMLOptGroupElement;
};
/**
* <option> elements and inherits all classes and methods of the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement)
*/
interface HTMLOptionElement extends HTMLElement {
/**
* Sets or retrieves the status of an option.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/defaultSelected)
*/
defaultSelected: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/disabled) */
disabled: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves the ordinal position of an option in a list box.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/index)
*/
readonly index: number;
/**
* Sets or retrieves a value that you can use to implement your own label functionality for the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/label)
*/
label: string;
/**
* Sets or retrieves whether the option in the list box is the default item.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/selected)
*/
selected: boolean;
/**
* Sets or retrieves the text string specified by the option tag.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/text)
*/
text: string;
/**
* Sets or retrieves the value which is returned to the server when the form control is submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/value)
*/
value: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOptionElement: {
prototype: HTMLOptionElement;
new(): HTMLOptionElement;
};
/**
* HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection)
*/
interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
/**
* Returns the number of elements in the collection.
*
* When set to a smaller number, truncates the number of option elements in the corresponding container.
*
* When set to a greater number, adds new blank option elements to that container.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/length)
*/
length: number;
/**
* Returns the index of the first selected item, if any, or \u22121 if there is no selected item.
*
* Can be set, to change the selection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/selectedIndex)
*/
selectedIndex: number;
/**
* Inserts element before the node given by before.
*
* The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.
*
* If before is omitted, null, or a number out of range, then element will be added at the end of the list.
*
* This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/add)
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/**
* Removes the item with index index from the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/remove)
*/
remove(index: number): void;
}
declare var HTMLOptionsCollection: {
prototype: HTMLOptionsCollection;
new(): HTMLOptionsCollection;
};
interface HTMLOrSVGElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */
autofocus: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */
readonly dataset: DOMStringMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) */
nonce?: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) */
tabIndex: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur) */
blur(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus) */
focus(options?: FocusOptions): void;
}
/**
* Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement)
*/
interface HTMLOutputElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/defaultValue) */
defaultValue: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form) */
readonly form: HTMLFormElement | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor) */
readonly htmlFor: DOMTokenList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name) */
name: string;
/**
* Returns the string "output".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/type)
*/
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validationMessage) */
readonly validationMessage: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validity) */
readonly validity: ValidityState;
/**
* Returns the element's current value.
*
* Can be set, to change the value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/value)
*/
value: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/willValidate) */
readonly willValidate: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity) */
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/reportValidity) */
reportValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/setCustomValidity) */
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOutputElement: {
prototype: HTMLOutputElement;
new(): HTMLOutputElement;
};
/**
* Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement)
*/
interface HTMLParagraphElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement/align)
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLParagraphElement: {
prototype: HTMLParagraphElement;
new(): HTMLParagraphElement;
};
/**
* Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement)
*/
interface HTMLParamElement extends HTMLElement {
/**
* Sets or retrieves the name of an input parameter for an element.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/name)
*/
name: string;
/**
* Sets or retrieves the content type of the resource designated by the value attribute.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/type)
*/
type: string;
/**
* Sets or retrieves the value of an input parameter for an element.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/value)
*/
value: string;
/**
* Sets or retrieves the data type of the value attribute.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/valueType)
*/
valueType: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLParamElement: {
prototype: HTMLParamElement;
new(): HTMLParamElement;
};
/**
* A <picture> HTML element. It doesn't implement specific properties or methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPictureElement)
*/
interface HTMLPictureElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLPictureElement: {
prototype: HTMLPictureElement;
new(): HTMLPictureElement;
};
/**
* Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement)
*/
interface HTMLPreElement extends HTMLElement {
/**
* Sets or gets a value that you can use to implement your own width functionality for the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement/width)
*/
width: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLPreElement: {
prototype: HTMLPreElement;
new(): HTMLPreElement;
};
/**
* Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement)
*/
interface HTMLProgressElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* Defines the maximum, or "done" value for a progress element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/max)
*/
max: number;
/**
* Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/position)
*/
readonly position: number;
/**
* Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/value)
*/
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLProgressElement: {
prototype: HTMLProgressElement;
new(): HTMLProgressElement;
};
/**
* Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement)
*/
interface HTMLQuoteElement extends HTMLElement {
/**
* Sets or retrieves reference information about the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement/cite)
*/
cite: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLQuoteElement: {
prototype: HTMLQuoteElement;
new(): HTMLQuoteElement;
};
/**
* HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement)
*/
interface HTMLScriptElement extends HTMLElement {
async: boolean;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */
crossOrigin: string | null;
/** Sets or retrieves the status of the script. */
defer: boolean;
/**
* Sets or retrieves the event for which the script is written.
* @deprecated
*/
event: string;
fetchPriority: string;
/**
* Sets or retrieves the object that is bound to the event script.
* @deprecated
*/
htmlFor: string;
integrity: string;
noModule: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy) */
referrerPolicy: string;
/** Retrieves the URL to an external file that contains the source code or data. */
src: string;
/** Retrieves or sets the text of the object as a string. */
text: string;
/** Sets or retrieves the MIME type for the associated scripting engine. */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLScriptElement: {
prototype: HTMLScriptElement;
new(): HTMLScriptElement;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports_static) */
supports(type: string): boolean;
};
/**
* A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement)
*/
interface HTMLSelectElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/autocomplete) */
autocomplete: AutoFill;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled) */
disabled: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/form)
*/
readonly form: HTMLFormElement | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* Sets or retrieves the number of objects in a collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/length)
*/
length: number;
/**
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/multiple)
*/
multiple: boolean;
/**
* Sets or retrieves the name of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/name)
*/
name: string;
/**
* Returns an HTMLOptionsCollection of the list of options.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/options)
*/
readonly options: HTMLOptionsCollection;
/**
* When present, marks an element that can't be submitted without a value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/required)
*/
required: boolean;
/**
* Sets or retrieves the index of the selected option in a select object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedIndex)
*/
selectedIndex: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedOptions) */
readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
/**
* Sets or retrieves the number of rows in the list box.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/size)
*/
size: number;
/**
* Retrieves the type of select control based on the value of the MULTIPLE attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type)
*/
readonly type: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validity)
*/
readonly validity: ValidityState;
/**
* Sets or retrieves the value which is returned to the server when the form control is submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/value)
*/
value: string;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/willValidate)
*/
readonly willValidate: boolean;
/**
* Adds an element to the areas, controlRange, or options collection.
* @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.
* @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/add)
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/checkValidity)
*/
checkValidity(): boolean;
/**
* Retrieves a select object or an object from an options collection.
* @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
* @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/item)
*/
item(index: number): HTMLOptionElement | null;
/**
* Retrieves a select object or an object from an options collection.
* @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/namedItem)
*/
namedItem(name: string): HTMLOptionElement | null;
/**
* Removes an element from the collection.
* @param index Number that specifies the zero-based index of the element to remove from the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/remove)
*/
remove(): void;
remove(index: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity) */
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/setCustomValidity)
*/
setCustomValidity(error: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/showPicker) */
showPicker(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[name: number]: HTMLOptionElement | HTMLOptGroupElement;
}
declare var HTMLSelectElement: {
prototype: HTMLSelectElement;
new(): HTMLSelectElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement) */
interface HTMLSlotElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/name) */
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assign) */
assign(...nodes: (Element | Text)[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedElements) */
assignedElements(options?: AssignedNodesOptions): Element[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedNodes) */
assignedNodes(options?: AssignedNodesOptions): Node[];
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSlotElement: {
prototype: HTMLSlotElement;
new(): HTMLSlotElement;
};
/**
* Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement)
*/
interface HTMLSourceElement extends HTMLElement {
height: number;
/**
* Gets or sets the intended media type of the media source.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/media)
*/
media: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/sizes) */
sizes: string;
/**
* The address or URL of the a media resource that is to be considered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/src)
*/
src: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/srcset) */
srcset: string;
/**
* Gets or sets the MIME type of a media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type)
*/
type: string;
width: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSourceElement: {
prototype: HTMLSourceElement;
new(): HTMLSourceElement;
};
/**
* A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSpanElement)
*/
interface HTMLSpanElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSpanElement: {
prototype: HTMLSpanElement;
new(): HTMLSpanElement;
};
/**
* A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)
*/
interface HTMLStyleElement extends HTMLElement, LinkStyle {
/**
* Enables or disables the style sheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/disabled)
*/
disabled: boolean;
/**
* Sets or retrieves the media type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/media)
*/
media: string;
/**
* Retrieves the CSS language in which the style sheet is written.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/type)
*/
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLStyleElement: {
prototype: HTMLStyleElement;
new(): HTMLStyleElement;
};
/**
* Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement)
*/
interface HTMLTableCaptionElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the caption or legend.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement/align)
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableCaptionElement: {
prototype: HTMLTableCaptionElement;
new(): HTMLTableCaptionElement;
};
/**
* Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement)
*/
interface HTMLTableCellElement extends HTMLElement {
/**
* Sets or retrieves abbreviated text for the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/abbr)
*/
abbr: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/align)
*/
align: string;
/**
* Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/axis)
*/
axis: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/bgColor)
*/
bgColor: string;
/**
* Retrieves the position of the object in the cells collection of a row.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/cellIndex)
*/
readonly cellIndex: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/ch)
*/
ch: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/chOff)
*/
chOff: string;
/**
* Sets or retrieves the number columns in the table that the object should span.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/colSpan)
*/
colSpan: number;
/**
* Sets or retrieves a list of header cells that provide information for the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/headers)
*/
headers: string;
/**
* Sets or retrieves the height of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/height)
*/
height: string;
/**
* Sets or retrieves whether the browser automatically performs wordwrap.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/noWrap)
*/
noWrap: boolean;
/**
* Sets or retrieves how many rows in a table the cell should span.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/rowSpan)
*/
rowSpan: number;
/**
* Sets or retrieves the group of cells in a table to which the object's information applies.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/scope)
*/
scope: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/vAlign)
*/
vAlign: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/width)
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableCellElement: {
prototype: HTMLTableCellElement;
new(): HTMLTableCellElement;
};
/**
* Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement)
*/
interface HTMLTableColElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the object relative to the display or table.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/align)
*/
align: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/ch)
*/
ch: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/chOff)
*/
chOff: string;
/**
* Sets or retrieves the number of columns in the group.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/span)
*/
span: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/vAlign)
*/
vAlign: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/width)
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableColElement: {
prototype: HTMLTableColElement;
new(): HTMLTableColElement;
};
/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableDataCellElement extends HTMLTableCellElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/**
* Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement)
*/
interface HTMLTableElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/align)
*/
align: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/bgColor)
*/
bgColor: string;
/**
* Sets or retrieves the width of the border to draw around the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/border)
*/
border: string;
/**
* Retrieves the caption object of a table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/caption)
*/
caption: HTMLTableCaptionElement | null;
/**
* Sets or retrieves the amount of space between the border of the cell and the content of the cell.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellPadding)
*/
cellPadding: string;
/**
* Sets or retrieves the amount of space between cells in a table.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellSpacing)
*/
cellSpacing: string;
/**
* Sets or retrieves the way the border frame around the table is displayed.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/frame)
*/
frame: string;
/**
* Sets or retrieves the number of horizontal rows contained in the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rows)
*/
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/**
* Sets or retrieves which dividing lines (inner borders) are displayed.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rules)
*/
rules: string;
/**
* Sets or retrieves a description and/or structure of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/summary)
*/
summary: string;
/**
* Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tBodies)
*/
readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
/**
* Retrieves the tFoot object of the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tFoot)
*/
tFoot: HTMLTableSectionElement | null;
/**
* Retrieves the tHead object of the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tHead)
*/
tHead: HTMLTableSectionElement | null;
/**
* Sets or retrieves the width of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/width)
*/
width: string;
/**
* Creates an empty caption element in the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createCaption)
*/
createCaption(): HTMLTableCaptionElement;
/**
* Creates an empty tBody element in the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTBody)
*/
createTBody(): HTMLTableSectionElement;
/**
* Creates an empty tFoot element in the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTFoot)
*/
createTFoot(): HTMLTableSectionElement;
/**
* Returns the tHead element object if successful, or null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTHead)
*/
createTHead(): HTMLTableSectionElement;
/**
* Deletes the caption element and its contents from the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteCaption)
*/
deleteCaption(): void;
/**
* Removes the specified row (tr) from the element and from the rows collection.
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteRow)
*/
deleteRow(index: number): void;
/**
* Deletes the tFoot element and its contents from the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTFoot)
*/
deleteTFoot(): void;
/**
* Deletes the tHead element and its contents from the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTHead)
*/
deleteTHead(): void;
/**
* Creates a new row (tr) in the table, and adds the row to the rows collection.
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/insertRow)
*/
insertRow(index?: number): HTMLTableRowElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableElement: {
prototype: HTMLTableElement;
new(): HTMLTableElement;
};
/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/**
* Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement)
*/
interface HTMLTableRowElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/align)
*/
align: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/bgColor)
*/
bgColor: string;
/**
* Retrieves a collection of all cells in the table row.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/cells)
*/
readonly cells: HTMLCollectionOf<HTMLTableCellElement>;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/ch)
*/
ch: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/chOff)
*/
chOff: string;
/**
* Retrieves the position of the object in the rows collection for the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/rowIndex)
*/
readonly rowIndex: number;
/**
* Retrieves the position of the object in the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/sectionRowIndex)
*/
readonly sectionRowIndex: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/vAlign)
*/
vAlign: string;
/**
* Removes the specified cell from the table row, as well as from the cells collection.
* @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/deleteCell)
*/
deleteCell(index: number): void;
/**
* Creates a new cell in the table row, and adds the cell to the cells collection.
* @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/insertCell)
*/
insertCell(index?: number): HTMLTableCellElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableRowElement: {
prototype: HTMLTableRowElement;
new(): HTMLTableRowElement;
};
/**
* Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement)
*/
interface HTMLTableSectionElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/align)
*/
align: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/ch)
*/
ch: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/chOff)
*/
chOff: string;
/**
* Sets or retrieves the number of horizontal rows contained in the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/rows)
*/
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/vAlign)
*/
vAlign: string;
/**
* Removes the specified row (tr) from the element and from the rows collection.
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/deleteRow)
*/
deleteRow(index: number): void;
/**
* Creates a new row (tr) in the table, and adds the row to the rows collection.
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/insertRow)
*/
insertRow(index?: number): HTMLTableRowElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableSectionElement: {
prototype: HTMLTableSectionElement;
new(): HTMLTableSectionElement;
};
/**
* Enables access to the contents of an HTML <template> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement)
*/
interface HTMLTemplateElement extends HTMLElement {
/**
* Returns the template contents (a DocumentFragment).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content)
*/
readonly content: DocumentFragment;
shadowRootMode: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTemplateElement: {
prototype: HTMLTemplateElement;
new(): HTMLTemplateElement;
};
/**
* Provides special properties and methods for manipulating the layout and presentation of <textarea> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement)
*/
interface HTMLTextAreaElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */
autocomplete: AutoFill;
/** Sets or retrieves the width of the object. */
cols: number;
/** Sets or retrieves the initial contents of the object. */
defaultValue: string;
dirName: string;
disabled: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
maxLength: number;
minLength: number;
/** Sets or retrieves the name of the object. */
name: string;
/** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */
placeholder: string;
/** Sets or retrieves the value indicated whether the content of the object is read-only. */
readOnly: boolean;
/** When present, marks an element that can't be submitted without a value. */
required: boolean;
/** Sets or retrieves the number of horizontal rows contained in the object. */
rows: number;
selectionDirection: "forward" | "backward" | "none";
/** Gets or sets the end position or offset of a text selection. */
selectionEnd: number;
/** Gets or sets the starting position or offset of a text selection. */
selectionStart: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */
readonly textLength: number;
/** Retrieves the type of control. */
readonly type: string;
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Retrieves or sets the text in the entry field of the textArea element. */
value: string;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Sets or retrieves how to handle wordwrapping in the object. */
wrap: string;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity) */
reportValidity(): boolean;
/** Highlights the input area of a form element. */
select(): void;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
setRangeText(replacement: string): void;
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
/**
* Sets the start and end positions of a selection in a text field.
* @param start The offset into the text field for the start of the selection.
* @param end The offset into the text field for the end of the selection.
* @param direction The direction in which the selection is performed.
*/
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTextAreaElement: {
prototype: HTMLTextAreaElement;
new(): HTMLTextAreaElement;
};
/**
* Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement)
*/
interface HTMLTimeElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement/dateTime) */
dateTime: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTimeElement: {
prototype: HTMLTimeElement;
new(): HTMLTimeElement;
};
/**
* Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement)
*/
interface HTMLTitleElement extends HTMLElement {
/**
* Retrieves or sets the text of the object as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement/text)
*/
text: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTitleElement: {
prototype: HTMLTitleElement;
new(): HTMLTitleElement;
};
/**
* The HTMLTrackElement
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement)
*/
interface HTMLTrackElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/default) */
default: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/kind) */
kind: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/label) */
label: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/readyState) */
readonly readyState: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/src) */
src: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/srclang) */
srclang: string;
/**
* Returns the TextTrack object corresponding to the text track of the track element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/track)
*/
readonly track: TextTrack;
readonly NONE: 0;
readonly LOADING: 1;
readonly LOADED: 2;
readonly ERROR: 3;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTrackElement: {
prototype: HTMLTrackElement;
new(): HTMLTrackElement;
readonly NONE: 0;
readonly LOADING: 1;
readonly LOADED: 2;
readonly ERROR: 3;
};
/**
* Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement)
*/
interface HTMLUListElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/compact)
*/
compact: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/type)
*/
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLUListElement: {
prototype: HTMLUListElement;
new(): HTMLUListElement;
};
/**
* An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUnknownElement)
*/
interface HTMLUnknownElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLUnknownElement: {
prototype: HTMLUnknownElement;
new(): HTMLUnknownElement;
};
interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
"enterpictureinpicture": Event;
"leavepictureinpicture": Event;
}
/**
* Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
*/
interface HTMLVideoElement extends HTMLMediaElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/disablePictureInPicture) */
disablePictureInPicture: boolean;
/**
* Gets or sets the height of the video element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/height)
*/
height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */
onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */
onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
/** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */
playsInline: boolean;
/**
* Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/poster)
*/
poster: string;
/**
* Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoHeight)
*/
readonly videoHeight: number;
/**
* Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoWidth)
*/
readonly videoWidth: number;
/**
* Gets or sets the width of the video element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width)
*/
width: number;
cancelVideoFrameCallback(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality) */
getVideoPlaybackQuality(): VideoPlaybackQuality;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture) */
requestPictureInPicture(): Promise<PictureInPictureWindow>;
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLVideoElement: {
prototype: HTMLVideoElement;
new(): HTMLVideoElement;
};
/**
* Events that fire when the fragment identifier of the URL has changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent)
*/
interface HashChangeEvent extends Event {
/**
* Returns the URL of the session history entry that is now current.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/newURL)
*/
readonly newURL: string;
/**
* Returns the URL of the session history entry that was previously current.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/oldURL)
*/
readonly oldURL: string;
}
declare var HashChangeEvent: {
prototype: HashChangeEvent;
new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
};
/**
* This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)
*/
interface Headers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */
append(name: string, value: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */
delete(name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */
get(name: string): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */
getSetCookie(): string[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */
has(name: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */
set(name: string, value: string): void;
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
}
declare var Headers: {
prototype: Headers;
new(init?: HeadersInit): Headers;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight) */
interface Highlight {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority) */
priority: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/type) */
type: HighlightType;
forEach(callbackfn: (value: AbstractRange, key: AbstractRange, parent: Highlight) => void, thisArg?: any): void;
}
declare var Highlight: {
prototype: Highlight;
new(...initialRanges: AbstractRange[]): Highlight;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */
interface HighlightRegistry {
forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void;
}
declare var HighlightRegistry: {
prototype: HighlightRegistry;
new(): HighlightRegistry;
};
/**
* Allows\xA0manipulation of\xA0the browser session history, that is the pages visited in the tab or frame that the current page is loaded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/History)
*/
interface History {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/scrollRestoration) */
scrollRestoration: ScrollRestoration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/state) */
readonly state: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/back) */
back(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/forward) */
forward(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/go) */
go(delta?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/pushState) */
pushState(data: any, unused: string, url?: string | URL | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/replaceState) */
replaceState(data: any, unused: string, url?: string | URL | null): void;
}
declare var History: {
prototype: History;
new(): History;
};
/**
* This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor)
*/
interface IDBCursor {
/**
* Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)
*/
readonly direction: IDBCursorDirection;
/**
* Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)
*/
readonly key: IDBValidKey;
/**
* Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)
*/
readonly primaryKey: IDBValidKey;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request) */
readonly request: IDBRequest;
/**
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)
*/
readonly source: IDBObjectStore | IDBIndex;
/**
* Advances the cursor through the next count records in range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)
*/
advance(count: number): void;
/**
* Advances the cursor to the next record in range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)
*/
continue(key?: IDBValidKey): void;
/**
* Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)
*/
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* Delete the record pointed at by the cursor with a new value.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)
*/
delete(): IDBRequest<undefined>;
/**
* Updated the record pointed at by the cursor with a new value.
*
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
*
* If successful, request's result will be the record's key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)
*/
update(value: any): IDBRequest<IDBValidKey>;
}
declare var IDBCursor: {
prototype: IDBCursor;
new(): IDBCursor;
};
/**
* This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)
*/
interface IDBCursorWithValue extends IDBCursor {
/**
* Returns the cursor's current value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/value)
*/
readonly value: any;
}
declare var IDBCursorWithValue: {
prototype: IDBCursorWithValue;
new(): IDBCursorWithValue;
};
interface IDBDatabaseEventMap {
"abort": Event;
"close": Event;
"error": Event;
"versionchange": IDBVersionChangeEvent;
}
/**
* This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)
*/
interface IDBDatabase extends EventTarget {
/**
* Returns the name of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)
*/
readonly name: string;
/**
* Returns a list of the names of object stores in the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
*/
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
/**
* Returns the version of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)
*/
readonly version: number;
/**
* Closes the connection once all running transactions have finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)
*/
close(): void;
/**
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* Deletes the object store with the given name.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)
*/
deleteObjectStore(name: string): void;
/**
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
*/
transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBDatabase: {
prototype: IDBDatabase;
new(): IDBDatabase;
};
/**
* In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)
*/
interface IDBFactory {
/**
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
*
* Throws a "DataError" DOMException if either input is not a valid key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)
*/
cmp(first: any, second: any): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases) */
databases(): Promise<IDBDatabaseInfo[]>;
/**
* Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)
*/
deleteDatabase(name: string): IDBOpenDBRequest;
/**
* Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open)
*/
open(name: string, version?: number): IDBOpenDBRequest;
}
declare var IDBFactory: {
prototype: IDBFactory;
new(): IDBFactory;
};
/**
* IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)
*/
interface IDBIndex {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath) */
readonly keyPath: string | string[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry) */
readonly multiEntry: boolean;
/**
* Returns the name of the index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)
*/
name: string;
/**
* Returns the IDBObjectStore the index belongs to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)
*/
readonly objectStore: IDBObjectStore;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique) */
readonly unique: boolean;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor)
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
}
declare var IDBIndex: {
prototype: IDBIndex;
new(): IDBIndex;
};
/**
* A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs:
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)
*/
interface IDBKeyRange {
/**
* Returns lower bound, or undefined if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)
*/
readonly lower: any;
/**
* Returns true if the lower open flag is set, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)
*/
readonly lowerOpen: boolean;
/**
* Returns upper bound, or undefined if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)
*/
readonly upper: any;
/**
* Returns true if the upper open flag is set, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)
*/
readonly upperOpen: boolean;
/**
* Returns true if key is included in the range, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)
*/
includes(key: any): boolean;
}
declare var IDBKeyRange: {
prototype: IDBKeyRange;
new(): IDBKeyRange;
/**
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
*/
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
/**
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
*/
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/**
* Returns a new IDBKeyRange spanning only key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
*/
only(value: any): IDBKeyRange;
/**
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
*/
upperBound(upper: any, open?: boolean): IDBKeyRange;
};
/**
* This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)
*/
interface IDBObjectStore {
/**
* Returns true if the store has a key generator, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)
*/
readonly autoIncrement: boolean;
/**
* Returns a list of the names of indexes in the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)
*/
readonly indexNames: DOMStringList;
/**
* Returns the key path of the store, or null if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)
*/
readonly keyPath: string | string[];
/**
* Returns the name of the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)
*/
name: string;
/**
* Returns the associated transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)
*/
readonly transaction: IDBTransaction;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)
*/
clear(): IDBRequest<undefined>;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* Deletes records in store with the given key or in the given key range in query.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)
*/
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* Deletes the index in store with the given name.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)
*/
deleteIndex(name: string): void;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index) */
index(name: string): IDBIndex;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put)
*/
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
}
declare var IDBObjectStore: {
prototype: IDBObjectStore;
new(): IDBObjectStore;
};
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
"blocked": IDBVersionChangeEvent;
"upgradeneeded": IDBVersionChangeEvent;
}
/**
* Also inherits methods from its parents IDBRequest and EventTarget.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest)
*/
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */
onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBOpenDBRequest: {
prototype: IDBOpenDBRequest;
new(): IDBOpenDBRequest;
};
interface IDBRequestEventMap {
"error": Event;
"success": Event;
}
/**
* The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)
*/
interface IDBRequest<T = any> extends EventTarget {
/**
* When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error)
*/
readonly error: DOMException | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
/**
* Returns "pending" until a request is complete, then returns "done".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)
*/
readonly readyState: IDBRequestReadyState;
/**
* When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)
*/
readonly result: T;
/**
* Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)
*/
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/**
* Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction)
*/
readonly transaction: IDBTransaction | null;
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBRequest: {
prototype: IDBRequest;
new(): IDBRequest;
};
interface IDBTransactionEventMap {
"abort": Event;
"complete": Event;
"error": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction) */
interface IDBTransaction extends EventTarget {
/**
* Returns the transaction's connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)
*/
readonly db: IDBDatabase;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability) */
readonly durability: IDBTransactionDurability;
/**
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)
*/
readonly error: DOMException | null;
/**
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)
*/
readonly mode: IDBTransactionMode;
/**
* Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)
*/
readonly objectStoreNames: DOMStringList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
/**
* Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)
*/
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit) */
commit(): void;
/**
* Returns an IDBObjectStore in the transaction's scope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore)
*/
objectStore(name: string): IDBObjectStore;
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBTransaction: {
prototype: IDBTransaction;
new(): IDBTransaction;
};
/**
* This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)
*/
interface IDBVersionChangeEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) */
readonly newVersion: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion) */
readonly oldVersion: number;
}
declare var IDBVersionChangeEvent: {
prototype: IDBVersionChangeEvent;
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};
/**
* The\xA0IIRFilterNode\xA0interface of the\xA0Web Audio API\xA0is a AudioNode processor which implements a general infinite impulse response (IIR)\xA0 filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode)
*/
interface IIRFilterNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode/getFrequencyResponse) */
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
}
declare var IIRFilterNode: {
prototype: IIRFilterNode;
new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline) */
interface IdleDeadline {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/didTimeout) */
readonly didTimeout: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/timeRemaining) */
timeRemaining(): DOMHighResTimeStamp;
}
declare var IdleDeadline: {
prototype: IdleDeadline;
new(): IdleDeadline;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap) */
interface ImageBitmap {
/**
* Returns the intrinsic height of the image, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)
*/
readonly height: number;
/**
* Returns the intrinsic width of the image, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)
*/
readonly width: number;
/**
* Releases imageBitmap's underlying bitmap data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)
*/
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */
interface ImageBitmapRenderingContext {
/** Returns the canvas element that the context is bound to. */
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
/**
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)
*/
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
declare var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new(): ImageBitmapRenderingContext;
};
/**
* The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)
*/
interface ImageData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) */
readonly colorSpace: PredefinedColorSpace;
/**
* Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: Uint8ClampedArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)
*/
readonly height: number;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width)
*/
readonly width: number;
}
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
interface InnerHTML {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */
innerHTML: string;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo)
*/
interface InputDeviceInfo extends MediaDeviceInfo {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo/getCapabilities) */
getCapabilities(): MediaTrackCapabilities;
}
declare var InputDeviceInfo: {
prototype: InputDeviceInfo;
new(): InputDeviceInfo;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent) */
interface InputEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/data) */
readonly data: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/dataTransfer) */
readonly dataTransfer: DataTransfer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/inputType) */
readonly inputType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/isComposing) */
readonly isComposing: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/getTargetRanges) */
getTargetRanges(): StaticRange[];
}
declare var InputEvent: {
prototype: InputEvent;
new(type: string, eventInitDict?: InputEventInit): InputEvent;
};
/**
* provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver)
*/
interface IntersectionObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root) */
readonly root: Element | Document | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin) */
readonly rootMargin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds) */
readonly thresholds: ReadonlyArray<number>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe) */
observe(target: Element): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords) */
takeRecords(): IntersectionObserverEntry[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/unobserve) */
unobserve(target: Element): void;
}
declare var IntersectionObserver: {
prototype: IntersectionObserver;
new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;
};
/**
* This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry)
*/
interface IntersectionObserverEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect) */
readonly boundingClientRect: DOMRectReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio) */
readonly intersectionRatio: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect) */
readonly intersectionRect: DOMRectReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting) */
readonly isIntersecting: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds) */
readonly rootBounds: DOMRectReadOnly | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target) */
readonly target: Element;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time) */
readonly time: DOMHighResTimeStamp;
}
declare var IntersectionObserverEntry: {
prototype: IntersectionObserverEntry;
new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */
interface KHR_parallel_shader_compile {
readonly COMPLETION_STATUS_KHR: 0x91B1;
}
/**
* KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent)
*/
interface KeyboardEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/altKey) */
readonly altKey: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/charCode)
*/
readonly charCode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/code) */
readonly code: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/ctrlKey) */
readonly ctrlKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/isComposing) */
readonly isComposing: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/key) */
readonly key: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/keyCode)
*/
readonly keyCode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/location) */
readonly location: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/metaKey) */
readonly metaKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/repeat) */
readonly repeat: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/shiftKey) */
readonly shiftKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/getModifierState) */
getModifierState(keyArg: string): boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/initKeyboardEvent)
*/
initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;
readonly DOM_KEY_LOCATION_STANDARD: 0x00;
readonly DOM_KEY_LOCATION_LEFT: 0x01;
readonly DOM_KEY_LOCATION_RIGHT: 0x02;
readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
}
declare var KeyboardEvent: {
prototype: KeyboardEvent;
new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
readonly DOM_KEY_LOCATION_STANDARD: 0x00;
readonly DOM_KEY_LOCATION_LEFT: 0x01;
readonly DOM_KEY_LOCATION_RIGHT: 0x02;
readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect) */
interface KeyframeEffect extends AnimationEffect {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/composite) */
composite: CompositeOperation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/iterationComposite) */
iterationComposite: IterationCompositeOperation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/pseudoElement) */
pseudoElement: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/target) */
target: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/getKeyframes) */
getKeyframes(): ComputedKeyframe[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/setKeyframes) */
setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;
}
declare var KeyframeEffect: {
prototype: KeyframeEffect;
new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;
new(source: KeyframeEffect): KeyframeEffect;
};
interface LinkStyle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */
readonly sheet: CSSStyleSheet | null;
}
/**
* The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location)
*/
interface Location {
/**
* Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/ancestorOrigins)
*/
readonly ancestorOrigins: DOMStringList;
/**
* Returns the Location object's URL's fragment (includes leading "#" if non-empty).
*
* Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hash)
*/
hash: string;
/**
* Returns the Location object's URL's host and port (if different from the default port for the scheme).
*
* Can be set, to navigate to the same URL with a changed host and port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/host)
*/
host: string;
/**
* Returns the Location object's URL's host.
*
* Can be set, to navigate to the same URL with a changed host.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hostname)
*/
hostname: string;
/**
* Returns the Location object's URL.
*
* Can be set, to navigate to the given URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/href)
*/
href: string;
toString(): string;
/**
* Returns the Location object's URL's origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/origin)
*/
readonly origin: string;
/**
* Returns the Location object's URL's path.
*
* Can be set, to navigate to the same URL with a changed path.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/pathname)
*/
pathname: string;
/**
* Returns the Location object's URL's port.
*
* Can be set, to navigate to the same URL with a changed port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/port)
*/
port: string;
/**
* Returns the Location object's URL's scheme.
*
* Can be set, to navigate to the same URL with a changed scheme.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/protocol)
*/
protocol: string;
/**
* Returns the Location object's URL's query (includes leading "?" if non-empty).
*
* Can be set, to navigate to the same URL with a changed query (ignores leading "?").
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/search)
*/
search: string;
/**
* Navigates to the given URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/assign)
*/
assign(url: string | URL): void;
/**
* Reloads the current page.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/reload)
*/
reload(): void;
/**
* Removes the current page from the session history and navigates to the given URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/replace)
*/
replace(url: string | URL): void;
}
declare var Location: {
prototype: Location;
new(): Location;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)
*/
interface Lock {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode) */
readonly mode: LockMode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name) */
readonly name: string;
}
declare var Lock: {
prototype: Lock;
new(): Lock;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)
*/
interface LockManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
query(): Promise<LockManagerSnapshot>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
request(name: string, callback: LockGrantedCallback): Promise<any>;
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
}
declare var LockManager: {
prototype: LockManager;
new(): LockManager;
};
interface MIDIAccessEventMap {
"statechange": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess)
*/
interface MIDIAccess extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) */
readonly inputs: MIDIInputMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */
onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) */
readonly outputs: MIDIOutputMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled) */
readonly sysexEnabled: boolean;
addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIAccess: {
prototype: MIDIAccess;
new(): MIDIAccess;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent)
*/
interface MIDIConnectionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent/port) */
readonly port: MIDIPort | null;
}
declare var MIDIConnectionEvent: {
prototype: MIDIConnectionEvent;
new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
};
interface MIDIInputEventMap extends MIDIPortEventMap {
"midimessage": MIDIMessageEvent;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput)
*/
interface MIDIInput extends MIDIPort {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput/midimessage_event) */
onmidimessage: ((this: MIDIInput, ev: MIDIMessageEvent) => any) | null;
addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIInput: {
prototype: MIDIInput;
new(): MIDIInput;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap)
*/
interface MIDIInputMap {
forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
}
declare var MIDIInputMap: {
prototype: MIDIInputMap;
new(): MIDIInputMap;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent)
*/
interface MIDIMessageEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent/data) */
readonly data: Uint8Array | null;
}
declare var MIDIMessageEvent: {
prototype: MIDIMessageEvent;
new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput)
*/
interface MIDIOutput extends MIDIPort {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */
send(data: number[], timestamp?: DOMHighResTimeStamp): void;
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIOutput: {
prototype: MIDIOutput;
new(): MIDIOutput;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap)
*/
interface MIDIOutputMap {
forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
}
declare var MIDIOutputMap: {
prototype: MIDIOutputMap;
new(): MIDIOutputMap;
};
interface MIDIPortEventMap {
"statechange": MIDIConnectionEvent;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort)
*/
interface MIDIPort extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/connection) */
readonly connection: MIDIPortConnectionState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/manufacturer) */
readonly manufacturer: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/name) */
readonly name: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/statechange_event) */
onstatechange: ((this: MIDIPort, ev: MIDIConnectionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/state) */
readonly state: MIDIPortDeviceState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/type) */
readonly type: MIDIPortType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/version) */
readonly version: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/close) */
close(): Promise<MIDIPort>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/open) */
open(): Promise<MIDIPort>;
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIPort: {
prototype: MIDIPort;
new(): MIDIPort;
};
interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement) */
interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MathMLElement: {
prototype: MathMLElement;
new(): MathMLElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities) */
interface MediaCapabilities {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) */
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo) */
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}
declare var MediaCapabilities: {
prototype: MediaCapabilities;
new(): MediaCapabilities;
};
/**
* The MediaDevicesInfo interface contains information that describes a single media input or output device.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo)
*/
interface MediaDeviceInfo {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/deviceId) */
readonly deviceId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/groupId) */
readonly groupId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/kind) */
readonly kind: MediaDeviceKind;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/label) */
readonly label: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON) */
toJSON(): any;
}
declare var MediaDeviceInfo: {
prototype: MediaDeviceInfo;
new(): MediaDeviceInfo;
};
interface MediaDevicesEventMap {
"devicechange": Event;
}
/**
* Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices)
*/
interface MediaDevices extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/devicechange_event) */
ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/enumerateDevices) */
enumerateDevices(): Promise<MediaDeviceInfo[]>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getDisplayMedia) */
getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getSupportedConstraints) */
getSupportedConstraints(): MediaTrackSupportedConstraints;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getUserMedia) */
getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaDevices: {
prototype: MediaDevices;
new(): MediaDevices;
};
/**
* A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode)
*/
interface MediaElementAudioSourceNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode/mediaElement) */
readonly mediaElement: HTMLMediaElement;
}
declare var MediaElementAudioSourceNode: {
prototype: MediaElementAudioSourceNode;
new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent) */
interface MediaEncryptedEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initData) */
readonly initData: ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initDataType) */
readonly initDataType: string;
}
declare var MediaEncryptedEvent: {
prototype: MediaEncryptedEvent;
new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;
};
/**
* An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError)
*/
interface MediaError {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/code) */
readonly code: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/message) */
readonly message: string;
readonly MEDIA_ERR_ABORTED: 1;
readonly MEDIA_ERR_NETWORK: 2;
readonly MEDIA_ERR_DECODE: 3;
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
}
declare var MediaError: {
prototype: MediaError;
new(): MediaError;
readonly MEDIA_ERR_ABORTED: 1;
readonly MEDIA_ERR_NETWORK: 2;
readonly MEDIA_ERR_DECODE: 3;
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
};
/**
* This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent)
*/
interface MediaKeyMessageEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/message) */
readonly message: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/messageType) */
readonly messageType: MediaKeyMessageType;
}
declare var MediaKeyMessageEvent: {
prototype: MediaKeyMessageEvent;
new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;
};
interface MediaKeySessionEventMap {
"keystatuseschange": Event;
"message": MediaKeyMessageEvent;
}
/**
* This EncryptedMediaExtensions API interface represents a\xA0context for message exchange with a content decryption module (CDM).
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession)
*/
interface MediaKeySession extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/closed) */
readonly closed: Promise<MediaKeySessionClosedReason>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/expiration) */
readonly expiration: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keyStatuses) */
readonly keyStatuses: MediaKeyStatusMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keystatuseschange_event) */
onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/message_event) */
onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/sessionId) */
readonly sessionId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/generateRequest) */
generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/load) */
load(sessionId: string): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/remove) */
remove(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/update) */
update(response: BufferSource): Promise<void>;
addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaKeySession: {
prototype: MediaKeySession;
new(): MediaKeySession;
};
/**
* This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap)
*/
interface MediaKeyStatusMap {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/size) */
readonly size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/get) */
get(keyId: BufferSource): MediaKeyStatus | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/has) */
has(keyId: BufferSource): boolean;
forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;
}
declare var MediaKeyStatusMap: {
prototype: MediaKeyStatusMap;
new(): MediaKeyStatusMap;
};
/**
* This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess)
*/
interface MediaKeySystemAccess {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/keySystem) */
readonly keySystem: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/createMediaKeys) */
createMediaKeys(): Promise<MediaKeys>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/getConfiguration) */
getConfiguration(): MediaKeySystemConfiguration;
}
declare var MediaKeySystemAccess: {
prototype: MediaKeySystemAccess;
new(): MediaKeySystemAccess;
};
/**
* This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys)
*/
interface MediaKeys {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession) */
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate) */
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
}
declare var MediaKeys: {
prototype: MediaKeys;
new(): MediaKeys;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList) */
interface MediaList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/mediaText) */
mediaText: string;
toString(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/appendMedium) */
appendMedium(medium: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/deleteMedium) */
deleteMedium(medium: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/item) */
item(index: number): string | null;
[index: number]: string;
}
declare var MediaList: {
prototype: MediaList;
new(): MediaList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata) */
interface MediaMetadata {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/album) */
album: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artist) */
artist: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artwork) */
artwork: ReadonlyArray<MediaImage>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/title) */
title: string;
}
declare var MediaMetadata: {
prototype: MediaMetadata;
new(init?: MediaMetadataInit): MediaMetadata;
};
interface MediaQueryListEventMap {
"change": MediaQueryListEvent;
}
/**
* Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList)
*/
interface MediaQueryList extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/matches) */
readonly matches: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/media) */
readonly media: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/change_event) */
onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/addListener)
*/
addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/removeListener)
*/
removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaQueryList: {
prototype: MediaQueryList;
new(): MediaQueryList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent) */
interface MediaQueryListEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/matches) */
readonly matches: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/media) */
readonly media: string;
}
declare var MediaQueryListEvent: {
prototype: MediaQueryListEvent;
new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;
};
interface MediaRecorderEventMap {
"dataavailable": BlobEvent;
"error": Event;
"pause": Event;
"resume": Event;
"start": Event;
"stop": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder) */
interface MediaRecorder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/audioBitsPerSecond) */
readonly audioBitsPerSecond: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/mimeType) */
readonly mimeType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */
ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */
onerror: ((this: MediaRecorder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */
onpause: ((this: MediaRecorder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */
onresume: ((this: MediaRecorder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start_event) */
onstart: ((this: MediaRecorder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop_event) */
onstop: ((this: MediaRecorder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/state) */
readonly state: RecordingState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stream) */
readonly stream: MediaStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/videoBitsPerSecond) */
readonly videoBitsPerSecond: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause) */
pause(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/requestData) */
requestData(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume) */
resume(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start) */
start(timeslice?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop) */
stop(): void;
addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaRecorder: {
prototype: MediaRecorder;
new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/isTypeSupported_static) */
isTypeSupported(type: string): boolean;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession) */
interface MediaSession {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/metadata) */
metadata: MediaMetadata | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/playbackState) */
playbackState: MediaSessionPlaybackState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler) */
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setPositionState) */
setPositionState(state?: MediaPositionState): void;
}
declare var MediaSession: {
prototype: MediaSession;
new(): MediaSession;
};
interface MediaSourceEventMap {
"sourceclose": Event;
"sourceended": Event;
"sourceopen": Event;
}
/**
* This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource)
*/
interface MediaSource extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/activeSourceBuffers) */
readonly activeSourceBuffers: SourceBufferList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/duration) */
duration: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceclose_event) */
onsourceclose: ((this: MediaSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceended_event) */
onsourceended: ((this: MediaSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceopen_event) */
onsourceopen: ((this: MediaSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/readyState) */
readonly readyState: ReadyState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceBuffers) */
readonly sourceBuffers: SourceBufferList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/addSourceBuffer) */
addSourceBuffer(type: string): SourceBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/clearLiveSeekableRange) */
clearLiveSeekableRange(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/endOfStream) */
endOfStream(error?: EndOfStreamError): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/removeSourceBuffer) */
removeSourceBuffer(sourceBuffer: SourceBuffer): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/setLiveSeekableRange) */
setLiveSeekableRange(start: number, end: number): void;
addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaSource: {
prototype: MediaSource;
new(): MediaSource;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static) */
isTypeSupported(type: string): boolean;
};
interface MediaStreamEventMap {
"addtrack": MediaStreamTrackEvent;
"removetrack": MediaStreamTrackEvent;
}
/**
* A stream of media content. A stream consists of several tracks such as\xA0video or audio tracks. Each track is specified as an instance of MediaStreamTrack.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream)
*/
interface MediaStream extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/active) */
readonly active: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addtrack_event) */
onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removetrack_event) */
onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addTrack) */
addTrack(track: MediaStreamTrack): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/clone) */
clone(): MediaStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getAudioTracks) */
getAudioTracks(): MediaStreamTrack[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTrackById) */
getTrackById(trackId: string): MediaStreamTrack | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTracks) */
getTracks(): MediaStreamTrack[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getVideoTracks) */
getVideoTracks(): MediaStreamTrack[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removeTrack) */
removeTrack(track: MediaStreamTrack): void;
addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaStream: {
prototype: MediaStream;
new(): MediaStream;
new(stream: MediaStream): MediaStream;
new(tracks: MediaStreamTrack[]): MediaStream;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode) */
interface MediaStreamAudioDestinationNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode/stream) */
readonly stream: MediaStream;
}
declare var MediaStreamAudioDestinationNode: {
prototype: MediaStreamAudioDestinationNode;
new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;
};
/**
* A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode)
*/
interface MediaStreamAudioSourceNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode/mediaStream) */
readonly mediaStream: MediaStream;
}
declare var MediaStreamAudioSourceNode: {
prototype: MediaStreamAudioSourceNode;
new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;
};
interface MediaStreamTrackEventMap {
"ended": Event;
"mute": Event;
"unmute": Event;
}
/**
* A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack)
*/
interface MediaStreamTrack extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/contentHint) */
contentHint: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/enabled) */
enabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind) */
readonly kind: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/label) */
readonly label: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/muted) */
readonly muted: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/ended_event) */
onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/mute_event) */
onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/unmute_event) */
onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState) */
readonly readyState: MediaStreamTrackState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/applyConstraints) */
applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone) */
clone(): MediaStreamTrack;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getCapabilities) */
getCapabilities(): MediaTrackCapabilities;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getConstraints) */
getConstraints(): MediaTrackConstraints;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getSettings) */
getSettings(): MediaTrackSettings;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/stop) */
stop(): void;
addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaStreamTrack: {
prototype: MediaStreamTrack;
new(): MediaStreamTrack;
};
/**
* Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent)
*/
interface MediaStreamTrackEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent/track) */
readonly track: MediaStreamTrack;
}
declare var MediaStreamTrackEvent: {
prototype: MediaStreamTrackEvent;
new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;
};
/**
* This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)
*/
interface MessageChannel {
/**
* Returns the first MessagePort object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
*/
readonly port1: MessagePort;
/**
* Returns the second MessagePort object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
*/
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/**
* A message received by a target object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
*/
interface MessageEvent<T = any> extends Event {
/**
* Returns the data of the message.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
*/
readonly data: T;
/**
* Returns the last event ID string, for server-sent events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
*/
readonly lastEventId: string;
/**
* Returns the origin of the message, for server-sent events and cross-document messaging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
*/
readonly origin: string;
/**
* Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
*/
readonly ports: ReadonlyArray<MessagePort>;
/**
* Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
*/
readonly source: MessageEventSource | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
*/
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
declare var MessageEvent: {
prototype: MessageEvent;
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};
interface MessagePortEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
*/
interface MessagePort extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
/**
* Disconnects the port, so that it is no longer active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
*/
close(): void;
/**
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* Begins dispatching messages received on the port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
*/
start(): void;
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MessagePort: {
prototype: MessagePort;
new(): MessagePort;
};
/**
* Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType)
*/
interface MimeType {
/**
* Returns the MIME type's description.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/description)
*/
readonly description: string;
/**
* Returns the Plugin object that implements this MIME type.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/enabledPlugin)
*/
readonly enabledPlugin: Plugin;
/**
* Returns the MIME type's typical file extensions, in a comma-separated list.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/suffixes)
*/
readonly suffixes: string;
/**
* Returns the MIME type.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/type)
*/
readonly type: string;
}
/** @deprecated */
declare var MimeType: {
prototype: MimeType;
new(): MimeType;
};
/**
* Returns an array of MimeType instances, each of which contains information\xA0about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray)
*/
interface MimeTypeArray {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/length)
*/
readonly length: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/item)
*/
item(index: number): MimeType | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/namedItem)
*/
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
/** @deprecated */
declare var MimeTypeArray: {
prototype: MimeTypeArray;
new(): MimeTypeArray;
};
/**
* Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent)
*/
interface MouseEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/altKey) */
readonly altKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/button) */
readonly button: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/buttons) */
readonly buttons: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientX) */
readonly clientX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientY) */
readonly clientY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/ctrlKey) */
readonly ctrlKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerX) */
readonly layerX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerY) */
readonly layerY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/metaKey) */
readonly metaKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementX) */
readonly movementX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementY) */
readonly movementY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetX) */
readonly offsetX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetY) */
readonly offsetY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageX) */
readonly pageX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageY) */
readonly pageY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/relatedTarget) */
readonly relatedTarget: EventTarget | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenX) */
readonly screenX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenY) */
readonly screenY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/shiftKey) */
readonly shiftKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/y) */
readonly y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/getModifierState) */
getModifierState(keyArg: string): boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/initMouseEvent)
*/
initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void;
}
declare var MouseEvent: {
prototype: MouseEvent;
new(type: string, eventInitDict?: MouseEventInit): MouseEvent;
};
/**
* Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.
* @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent)
*/
interface MutationEvent extends Event {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/attrChange)
*/
readonly attrChange: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/attrName)
*/
readonly attrName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/newValue)
*/
readonly newValue: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/prevValue)
*/
readonly prevValue: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/relatedNode)
*/
readonly relatedNode: Node | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/initMutationEvent)
*/
initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;
readonly MODIFICATION: 1;
readonly ADDITION: 2;
readonly REMOVAL: 3;
}
/** @deprecated */
declare var MutationEvent: {
prototype: MutationEvent;
new(): MutationEvent;
readonly MODIFICATION: 1;
readonly ADDITION: 2;
readonly REMOVAL: 3;
};
/**
* Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver)
*/
interface MutationObserver {
/**
* Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/disconnect)
*/
disconnect(): void;
/**
* Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).
*
* The options argument allows for setting mutation observation options via object members.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/observe)
*/
observe(target: Node, options?: MutationObserverInit): void;
/**
* Empties the record queue and returns what was in there.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/takeRecords)
*/
takeRecords(): MutationRecord[];
}
declare var MutationObserver: {
prototype: MutationObserver;
new(callback: MutationCallback): MutationObserver;
};
/**
* A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord)
*/
interface MutationRecord {
/**
* Return the nodes added and removed respectively.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/addedNodes)
*/
readonly addedNodes: NodeList;
/**
* Returns the local name of the changed attribute, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeName)
*/
readonly attributeName: string | null;
/**
* Returns the namespace of the changed attribute, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeNamespace)
*/
readonly attributeNamespace: string | null;
/**
* Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/nextSibling)
*/
readonly nextSibling: Node | null;
/**
* The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/oldValue)
*/
readonly oldValue: string | null;
/**
* Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/previousSibling)
*/
readonly previousSibling: Node | null;
/**
* Return the nodes added and removed respectively.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/removedNodes)
*/
readonly removedNodes: NodeList;
/**
* Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/target)
*/
readonly target: Node;
/**
* Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/type)
*/
readonly type: MutationRecordType;
}
declare var MutationRecord: {
prototype: MutationRecord;
new(): MutationRecord;
};
/**
* A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap)
*/
interface NamedNodeMap {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItem) */
getNamedItem(qualifiedName: string): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItemNS) */
getNamedItemNS(namespace: string | null, localName: string): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/item) */
item(index: number): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItem) */
removeNamedItem(qualifiedName: string): Attr;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItemNS) */
removeNamedItemNS(namespace: string | null, localName: string): Attr;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItem) */
setNamedItem(attr: Attr): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItemNS) */
setNamedItemNS(attr: Attr): Attr | null;
[index: number]: Attr;
}
declare var NamedNodeMap: {
prototype: NamedNodeMap;
new(): NamedNodeMap;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)
*/
interface NavigationPreloadManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable) */
disable(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) */
enable(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState) */
getState(): Promise<NavigationPreloadState>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue) */
setHeaderValue(value: string): Promise<void>;
}
declare var NavigationPreloadManager: {
prototype: NavigationPreloadManager;
new(): NavigationPreloadManager;
};
/**
* The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)
*/
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clipboard)
*/
readonly clipboard: Clipboard;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/credentials)
*/
readonly credentials: CredentialsContainer;
readonly doNotTrack: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/geolocation) */
readonly geolocation: Geolocation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/maxTouchPoints) */
readonly maxTouchPoints: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaCapabilities) */
readonly mediaCapabilities: MediaCapabilities;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaDevices)
*/
readonly mediaDevices: MediaDevices;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaSession) */
readonly mediaSession: MediaSession;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/permissions) */
readonly permissions: Permissions;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/serviceWorker)
*/
readonly serviceWorker: ServiceWorkerContainer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userActivation) */
readonly userActivation: UserActivation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/wakeLock) */
readonly wakeLock: WakeLock;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/canShare)
*/
canShare(data?: ShareData): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/getGamepads) */
getGamepads(): (Gamepad | null)[];
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMIDIAccess)
*/
requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
*/
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon) */
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/share)
*/
share(data?: ShareData): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */
vibrate(pattern: VibratePattern): boolean;
}
declare var Navigator: {
prototype: Navigator;
new(): Navigator;
};
interface NavigatorAutomationInformation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/webdriver) */
readonly webdriver: boolean;
}
/** Available only in secure contexts. */
interface NavigatorBadge {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */
clearAppBadge(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */
setAppBadge(contents?: number): Promise<void>;
}
interface NavigatorConcurrentHardware {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */
readonly hardwareConcurrency: number;
}
interface NavigatorContentUtils {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/registerProtocolHandler)
*/
registerProtocolHandler(scheme: string, url: string | URL): void;
}
interface NavigatorCookies {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/cookieEnabled) */
readonly cookieEnabled: boolean;
}
interface NavigatorID {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
*/
readonly appCodeName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
*/
readonly appName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
*/
readonly appVersion: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
*/
readonly platform: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
*/
readonly product: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/productSub)
*/
readonly productSub: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
readonly userAgent: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendor)
*/
readonly vendor: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendorSub)
*/
readonly vendorSub: string;
}
interface NavigatorLanguage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */
readonly language: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */
readonly languages: ReadonlyArray<string>;
}
/** Available only in secure contexts. */
interface NavigatorLocks {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */
readonly locks: LockManager;
}
interface NavigatorOnLine {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */
readonly onLine: boolean;
}
interface NavigatorPlugins {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigatorPlugins/mimeTypes)
*/
readonly mimeTypes: MimeTypeArray;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/pdfViewerEnabled) */
readonly pdfViewerEnabled: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/plugins)
*/
readonly plugins: PluginArray;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/javaEnabled)
*/
javaEnabled(): boolean;
}
/** Available only in secure contexts. */
interface NavigatorStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */
readonly storage: StorageManager;
}
/**
* Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node)
*/
interface Node extends EventTarget {
/**
* Returns node's node document's document base URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/baseURI)
*/
readonly baseURI: string;
/**
* Returns the children.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/childNodes)
*/
readonly childNodes: NodeListOf<ChildNode>;
/**
* Returns the first child.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/firstChild)
*/
readonly firstChild: ChildNode | null;
/**
* Returns true if node is connected and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isConnected)
*/
readonly isConnected: boolean;
/**
* Returns the last child.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lastChild)
*/
readonly lastChild: ChildNode | null;
/**
* Returns the next sibling.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nextSibling)
*/
readonly nextSibling: ChildNode | null;
/**
* Returns a string appropriate for the type of node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeName)
*/
readonly nodeName: string;
/**
* Returns the type of node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeType)
*/
readonly nodeType: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) */
nodeValue: string | null;
/**
* Returns the node document. Returns null for documents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument)
*/
readonly ownerDocument: Document | null;
/**
* Returns the parent element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentElement)
*/
readonly parentElement: HTMLElement | null;
/**
* Returns the parent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentNode)
*/
readonly parentNode: ParentNode | null;
/**
* Returns the previous sibling.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/previousSibling)
*/
readonly previousSibling: ChildNode | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent) */
textContent: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/appendChild) */
appendChild<T extends Node>(node: T): T;
/**
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode)
*/
cloneNode(deep?: boolean): Node;
/**
* Returns a bitmask indicating the position of other relative to node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition)
*/
compareDocumentPosition(other: Node): number;
/**
* Returns true if other is an inclusive descendant of node, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/contains)
*/
contains(other: Node | null): boolean;
/**
* Returns node's root.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/getRootNode)
*/
getRootNode(options?: GetRootNodeOptions): Node;
/**
* Returns whether node has children.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes)
*/
hasChildNodes(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) */
insertBefore<T extends Node>(node: T, child: Node | null): T;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) */
isDefaultNamespace(namespace: string | null): boolean;
/**
* Returns whether node and otherNode have the same properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode)
*/
isEqualNode(otherNode: Node | null): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) */
isSameNode(otherNode: Node | null): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) */
lookupNamespaceURI(prefix: string | null): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) */
lookupPrefix(namespace: string | null): string | null;
/**
* Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/normalize)
*/
normalize(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/removeChild) */
removeChild<T extends Node>(child: T): T;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) */
replaceChild<T extends Node>(node: Node, child: T): T;
/** node is an element. */
readonly ELEMENT_NODE: 1;
readonly ATTRIBUTE_NODE: 2;
/** node is a Text node. */
readonly TEXT_NODE: 3;
/** node is a CDATASection node. */
readonly CDATA_SECTION_NODE: 4;
readonly ENTITY_REFERENCE_NODE: 5;
readonly ENTITY_NODE: 6;
/** node is a ProcessingInstruction node. */
readonly PROCESSING_INSTRUCTION_NODE: 7;
/** node is a Comment node. */
readonly COMMENT_NODE: 8;
/** node is a document. */
readonly DOCUMENT_NODE: 9;
/** node is a doctype. */
readonly DOCUMENT_TYPE_NODE: 10;
/** node is a DocumentFragment node. */
readonly DOCUMENT_FRAGMENT_NODE: 11;
readonly NOTATION_NODE: 12;
/** Set when node and other are not in the same tree. */
readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
/** Set when other is preceding node. */
readonly DOCUMENT_POSITION_PRECEDING: 0x02;
/** Set when other is following node. */
readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
/** Set when other is an ancestor of node. */
readonly DOCUMENT_POSITION_CONTAINS: 0x08;
/** Set when other is a descendant of node. */
readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
}
declare var Node: {
prototype: Node;
new(): Node;
/** node is an element. */
readonly ELEMENT_NODE: 1;
readonly ATTRIBUTE_NODE: 2;
/** node is a Text node. */
readonly TEXT_NODE: 3;
/** node is a CDATASection node. */
readonly CDATA_SECTION_NODE: 4;
readonly ENTITY_REFERENCE_NODE: 5;
readonly ENTITY_NODE: 6;
/** node is a ProcessingInstruction node. */
readonly PROCESSING_INSTRUCTION_NODE: 7;
/** node is a Comment node. */
readonly COMMENT_NODE: 8;
/** node is a document. */
readonly DOCUMENT_NODE: 9;
/** node is a doctype. */
readonly DOCUMENT_TYPE_NODE: 10;
/** node is a DocumentFragment node. */
readonly DOCUMENT_FRAGMENT_NODE: 11;
readonly NOTATION_NODE: 12;
/** Set when node and other are not in the same tree. */
readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
/** Set when other is preceding node. */
readonly DOCUMENT_POSITION_PRECEDING: 0x02;
/** Set when other is following node. */
readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
/** Set when other is an ancestor of node. */
readonly DOCUMENT_POSITION_CONTAINS: 0x08;
/** Set when other is a descendant of node. */
readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
};
/**
* An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator)
*/
interface NodeIterator {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/filter) */
readonly filter: NodeFilter | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/pointerBeforeReferenceNode) */
readonly pointerBeforeReferenceNode: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/referenceNode) */
readonly referenceNode: Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/root) */
readonly root: Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/whatToShow) */
readonly whatToShow: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/detach)
*/
detach(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/nextNode) */
nextNode(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/previousNode) */
previousNode(): Node | null;
}
declare var NodeIterator: {
prototype: NodeIterator;
new(): NodeIterator;
};
/**
* NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList)
*/
interface NodeList {
/**
* Returns the number of nodes in the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/length)
*/
readonly length: number;
/**
* Returns the node with index index from the collection. The nodes are sorted in tree order.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/item)
*/
item(index: number): Node | null;
/**
* Performs the specified action for each node in an list.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;
[index: number]: Node;
}
declare var NodeList: {
prototype: NodeList;
new(): NodeList;
};
interface NodeListOf<TNode extends Node> extends NodeList {
item(index: number): TNode;
/**
* Performs the specified action for each node in an list.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;
[index: number]: TNode;
}
interface NonDocumentTypeChildNode {
/**
* Returns the first following sibling that is an element, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling)
*/
readonly nextElementSibling: Element | null;
/**
* Returns the first preceding sibling that is an element, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling)
*/
readonly previousElementSibling: Element | null;
}
interface NonElementParentNode {
/**
* Returns the first element within node's descendants whose ID is elementId.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementById)
*/
getElementById(elementId: string): Element | null;
}
interface NotificationEventMap {
"click": Event;
"close": Event;
"error": Event;
"show": Event;
}
/**
* This Notifications API interface is used to configure and display desktop notifications to the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
*/
interface Notification extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */
readonly badge: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */
readonly body: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */
readonly data: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir) */
readonly dir: NotificationDirection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon) */
readonly icon: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang) */
readonly lang: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */
onclick: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */
onclose: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */
onerror: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
onshow: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */
readonly requireInteraction: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */
readonly silent: boolean | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
readonly tag: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */
readonly title: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close) */
close(): void;
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Notification: {
prototype: Notification;
new(title: string, options?: NotificationOptions): Notification;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */
readonly permission: NotificationPermission;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission_static) */
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed) */
interface OES_draw_buffers_indexed {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES) */
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES) */
blendEquationiOES(buf: GLuint, mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES) */
blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES) */
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES) */
colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES) */
disableiOES(target: GLenum, index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES) */
enableiOES(target: GLenum, index: GLuint): void;
}
/**
* The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint)
*/
interface OES_element_index_uint {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap) */
interface OES_fbo_render_mipmap {
}
/**
* The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives)
*/
interface OES_standard_derivatives {
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;
}
/**
* The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float)
*/
interface OES_texture_float {
}
/**
* The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear)
*/
interface OES_texture_float_linear {
}
/**
* The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float)
*/
interface OES_texture_half_float {
readonly HALF_FLOAT_OES: 0x8D61;
}
/**
* The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear)
*/
interface OES_texture_half_float_linear {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object) */
interface OES_vertex_array_object {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2) */
interface OVR_multiview2 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR) */
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;
readonly MAX_VIEWS_OVR: 0x9631;
readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;
}
/**
* The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent)
*/
interface OfflineAudioCompletionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent/renderedBuffer) */
readonly renderedBuffer: AudioBuffer;
}
declare var OfflineAudioCompletionEvent: {
prototype: OfflineAudioCompletionEvent;
new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;
};
interface OfflineAudioContextEventMap extends BaseAudioContextEventMap {
"complete": OfflineAudioCompletionEvent;
}
/**
* An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext)
*/
interface OfflineAudioContext extends BaseAudioContext {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/complete_event) */
oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/resume) */
resume(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/startRendering) */
startRendering(): Promise<AudioBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/suspend) */
suspend(suspendTime: number): Promise<void>;
addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OfflineAudioContext: {
prototype: OfflineAudioContext;
new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;
new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
};
interface OffscreenCanvasEventMap {
"contextlost": Event;
"contextrestored": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) */
interface OffscreenCanvas extends EventTarget {
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)
*/
height: number;
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)
*/
width: number;
/**
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
*
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)
*/
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
/**
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
*
* This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
*
* Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
*/
getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
/**
* Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
*/
transferToImageBitmap(): ImageBitmap;
addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OffscreenCanvas: {
prototype: OffscreenCanvas;
new(width: number, height: number): OffscreenCanvas;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
commit(): void;
}
declare var OffscreenCanvasRenderingContext2D: {
prototype: OffscreenCanvasRenderingContext2D;
new(): OffscreenCanvasRenderingContext2D;
};
/**
* The OscillatorNode\xA0interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency\xA0of a given wave to be created\u2014in effect, a constant tone.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode)
*/
interface OscillatorNode extends AudioScheduledSourceNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/detune) */
readonly detune: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/frequency) */
readonly frequency: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/type) */
type: OscillatorType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/setPeriodicWave) */
setPeriodicWave(periodicWave: PeriodicWave): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OscillatorNode: {
prototype: OscillatorNode;
new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError) */
interface OverconstrainedError extends DOMException {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint) */
readonly constraint: string;
}
declare var OverconstrainedError: {
prototype: OverconstrainedError;
new(constraint: string, message?: string): OverconstrainedError;
};
/**
* The PageTransitionEvent is fired when a document is being loaded or unloaded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent)
*/
interface PageTransitionEvent extends Event {
/**
* For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.
*
* For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page.
*
* Things that can cause the page to be unsalvageable include:
*
* The user agent decided to not keep the Document alive in a session history entry after unload
* Having iframes that are not salvageable
* Active WebSocket objects
* Aborting a Document
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent/persisted)
*/
readonly persisted: boolean;
}
declare var PageTransitionEvent: {
prototype: PageTransitionEvent;
new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
};
/**
* A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can't have panning effects without at least two audio channels!
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode)
*/
interface PannerNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneInnerAngle) */
coneInnerAngle: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterAngle) */
coneOuterAngle: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterGain) */
coneOuterGain: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/distanceModel) */
distanceModel: DistanceModelType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/maxDistance) */
maxDistance: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationX) */
readonly orientationX: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationY) */
readonly orientationY: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationZ) */
readonly orientationZ: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/panningModel) */
panningModel: PanningModelType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionX) */
readonly positionX: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionY) */
readonly positionY: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionZ) */
readonly positionZ: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/refDistance) */
refDistance: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/rolloffFactor) */
rolloffFactor: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setOrientation)
*/
setOrientation(x: number, y: number, z: number): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setPosition)
*/
setPosition(x: number, y: number, z: number): void;
}
declare var PannerNode: {
prototype: PannerNode;
new(context: BaseAudioContext, options?: PannerOptions): PannerNode;
};
interface ParentNode extends Node {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/childElementCount) */
readonly childElementCount: number;
/**
* Returns the child elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/children)
*/
readonly children: HTMLCollection;
/**
* Returns the first child that is an element, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild)
*/
readonly firstElementChild: Element | null;
/**
* Returns the last child that is an element, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastElementChild)
*/
readonly lastElementChild: Element | null;
/**
* Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append)
*/
append(...nodes: (Node | string)[]): void;
/**
* Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/prepend)
*/
prepend(...nodes: (Node | string)[]): void;
/**
* Returns the first element that is a descendant of node that matches selectors.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelector)
*/
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
/** @deprecated */
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
querySelector<E extends Element = Element>(selectors: string): E | null;
/**
* Returns all element descendants of node that match selectors.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll)
*/
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
/** @deprecated */
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
/**
* Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren)
*/
replaceChildren(...nodes: (Node | string)[]): void;
}
/**
* This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)
*/
interface Path2D extends CanvasPath {
/**
* Adds to the path the path given by the argument.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath)
*/
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
declare var Path2D: {
prototype: Path2D;
new(path?: Path2D | string): Path2D;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent)
*/
interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails) */
readonly methodDetails: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodName) */
readonly methodName: string;
}
declare var PaymentMethodChangeEvent: {
prototype: PaymentMethodChangeEvent;
new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;
};
interface PaymentRequestEventMap {
"paymentmethodchange": Event;
}
/**
* This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest)
*/
interface PaymentRequest extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */
onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort) */
abort(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment) */
canMakePayment(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/show) */
show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;
addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PaymentRequest: {
prototype: PaymentRequest;
new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
};
/**
* This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent)
*/
interface PaymentRequestUpdateEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent/updateWith) */
updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;
}
declare var PaymentRequestUpdateEvent: {
prototype: PaymentRequestUpdateEvent;
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
};
/**
* This Payment Request API interface is returned after a user selects a payment method and approves a payment request.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse)
*/
interface PaymentResponse extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/details) */
readonly details: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */
readonly methodName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */
readonly requestId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */
complete(result?: PaymentComplete): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry) */
retry(errorFields?: PaymentValidationErrors): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */
toJSON(): any;
}
declare var PaymentResponse: {
prototype: PaymentResponse;
new(): PaymentResponse;
};
interface PerformanceEventMap {
"resourcetimingbufferfull": Event;
}
/**
* Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance)
*/
interface Performance extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts) */
readonly eventCounts: EventCounts;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/navigation)
*/
readonly navigation: PerformanceNavigation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */
readonly timeOrigin: DOMHighResTimeStamp;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timing)
*/
readonly timing: PerformanceTiming;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) */
clearMarks(markName?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) */
clearMeasures(measureName?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) */
clearResourceTimings(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) */
getEntries(): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */
getEntriesByType(type: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) */
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure) */
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now) */
now(): DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) */
setResourceTimingBufferSize(maxSize: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */
toJSON(): any;
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Performance: {
prototype: Performance;
new(): Performance;
};
/**
* Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)
*/
interface PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) */
readonly duration: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) */
readonly entryType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) */
readonly startTime: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming) */
interface PerformanceEventTiming extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable) */
readonly cancelable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingEnd) */
readonly processingEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingStart) */
readonly processingStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/target) */
readonly target: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceEventTiming: {
prototype: PerformanceEventTiming;
new(): PerformanceEventTiming;
};
/**
* PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)
*/
interface PerformanceMark extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) */
readonly detail: any;
}
declare var PerformanceMark: {
prototype: PerformanceMark;
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
};
/**
* PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)
*/
interface PerformanceMeasure extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) */
readonly detail: any;
}
declare var PerformanceMeasure: {
prototype: PerformanceMeasure;
new(): PerformanceMeasure;
};
/**
* The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation)
*/
interface PerformanceNavigation {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/redirectCount)
*/
readonly redirectCount: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/type)
*/
readonly type: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/toJSON)
*/
toJSON(): any;
readonly TYPE_NAVIGATE: 0;
readonly TYPE_RELOAD: 1;
readonly TYPE_BACK_FORWARD: 2;
readonly TYPE_RESERVED: 255;
}
/** @deprecated */
declare var PerformanceNavigation: {
prototype: PerformanceNavigation;
new(): PerformanceNavigation;
readonly TYPE_NAVIGATE: 0;
readonly TYPE_RELOAD: 1;
readonly TYPE_BACK_FORWARD: 2;
readonly TYPE_RESERVED: 255;
};
/**
* Provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming)
*/
interface PerformanceNavigationTiming extends PerformanceResourceTiming {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domComplete) */
readonly domComplete: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd) */
readonly domContentLoadedEventEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart) */
readonly domContentLoadedEventStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domInteractive) */
readonly domInteractive: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventEnd) */
readonly loadEventEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventStart) */
readonly loadEventStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/redirectCount) */
readonly redirectCount: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/type) */
readonly type: NavigationTimingType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd) */
readonly unloadEventEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart) */
readonly unloadEventStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceNavigationTiming: {
prototype: PerformanceNavigationTiming;
new(): PerformanceNavigationTiming;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver) */
interface PerformanceObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) */
observe(options?: PerformanceObserverInit): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) */
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */
readonly supportedEntryTypes: ReadonlyArray<string>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList) */
interface PerformanceObserverEntryList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) */
getEntries(): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */
getEntriesByType(type: string): PerformanceEntryList;
}
declare var PerformanceObserverEntryList: {
prototype: PerformanceObserverEntryList;
new(): PerformanceObserverEntryList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming) */
interface PerformancePaintTiming extends PerformanceEntry {
}
declare var PerformancePaintTiming: {
prototype: PerformancePaintTiming;
new(): PerformancePaintTiming;
};
/**
* Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)
*/
interface PerformanceResourceTiming extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) */
readonly connectEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */
readonly connectStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */
readonly decodedBodySize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) */
readonly domainLookupEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) */
readonly domainLookupStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) */
readonly encodedBodySize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */
readonly fetchStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) */
readonly initiatorType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) */
readonly nextHopProtocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) */
readonly redirectEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) */
readonly redirectStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) */
readonly requestStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) */
readonly responseEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */
readonly responseStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */
readonly secureConnectionStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */
readonly transferSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) */
readonly workerStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming) */
interface PerformanceServerTiming {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description) */
readonly description: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration) */
readonly duration: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};
/**
* A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming)
*/
interface PerformanceTiming {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectEnd)
*/
readonly connectEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectStart)
*/
readonly connectStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domComplete)
*/
readonly domComplete: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd)
*/
readonly domContentLoadedEventEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventStart)
*/
readonly domContentLoadedEventStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domInteractive)
*/
readonly domInteractive: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domLoading)
*/
readonly domLoading: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupEnd)
*/
readonly domainLookupEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupStart)
*/
readonly domainLookupStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/fetchStart)
*/
readonly fetchStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventEnd)
*/
readonly loadEventEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventStart)
*/
readonly loadEventStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/navigationStart)
*/
readonly navigationStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectEnd)
*/
readonly redirectEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectStart)
*/
readonly redirectStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/requestStart)
*/
readonly requestStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseEnd)
*/
readonly responseEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseStart)
*/
readonly responseStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/secureConnectionStart)
*/
readonly secureConnectionStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventEnd)
*/
readonly unloadEventEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventStart)
*/
readonly unloadEventStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/toJSON)
*/
toJSON(): any;
}
/** @deprecated */
declare var PerformanceTiming: {
prototype: PerformanceTiming;
new(): PerformanceTiming;
};
/**
* PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PeriodicWave)
*/
interface PeriodicWave {
}
declare var PeriodicWave: {
prototype: PeriodicWave;
new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;
};
interface PermissionStatusEventMap {
"change": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus) */
interface PermissionStatus extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) */
readonly state: PermissionState;
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PermissionStatus: {
prototype: PermissionStatus;
new(): PermissionStatus;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions) */
interface Permissions {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query) */
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent) */
interface PictureInPictureEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent/pictureInPictureWindow) */
readonly pictureInPictureWindow: PictureInPictureWindow;
}
declare var PictureInPictureEvent: {
prototype: PictureInPictureEvent;
new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent;
};
interface PictureInPictureWindowEventMap {
"resize": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow) */
interface PictureInPictureWindow extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/resize_event) */
onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/width) */
readonly width: number;
addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PictureInPictureWindow: {
prototype: PictureInPictureWindow;
new(): PictureInPictureWindow;
};
/**
* Provides information about a browser plugin.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin)
*/
interface Plugin {
/**
* Returns the plugin's description.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/description)
*/
readonly description: string;
/**
* Returns the plugin library's filename, if applicable on the current platform.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/filename)
*/
readonly filename: string;
/**
* Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
* @deprecated
*/
readonly length: number;
/**
* Returns the plugin's name.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/name)
*/
readonly name: string;
/**
* Returns the specified MimeType object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/item)
*/
item(index: number): MimeType | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/namedItem)
*/
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
/** @deprecated */
declare var Plugin: {
prototype: Plugin;
new(): Plugin;
};
/**
* Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins\xA0property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray)
*/
interface PluginArray {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/length)
*/
readonly length: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/item)
*/
item(index: number): Plugin | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/namedItem)
*/
namedItem(name: string): Plugin | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/refresh)
*/
refresh(): void;
[index: number]: Plugin;
}
/** @deprecated */
declare var PluginArray: {
prototype: PluginArray;
new(): PluginArray;
};
/**
* The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent)
*/
interface PointerEvent extends MouseEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary) */
readonly isPrimary: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerId) */
readonly pointerId: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerType) */
readonly pointerType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pressure) */
readonly pressure: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tangentialPressure) */
readonly tangentialPressure: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltX) */
readonly tiltX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltY) */
readonly tiltY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/twist) */
readonly twist: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/width) */
readonly width: number;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getCoalescedEvents)
*/
getCoalescedEvents(): PointerEvent[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getPredictedEvents) */
getPredictedEvents(): PointerEvent[];
}
declare var PointerEvent: {
prototype: PointerEvent;
new(type: string, eventInitDict?: PointerEventInit): PointerEvent;
};
/**
* PopStateEvent is an event handler for the popstate event on the window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent)
*/
interface PopStateEvent extends Event {
/**
* Returns a copy of the information that was provided to pushState() or replaceState().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent/state)
*/
readonly state: any;
}
declare var PopStateEvent: {
prototype: PopStateEvent;
new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
};
interface PopoverInvokerElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetAction) */
popoverTargetAction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetElement) */
popoverTargetElement: Element | null;
}
/**
* A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction)
*/
interface ProcessingInstruction extends CharacterData, LinkStyle {
readonly ownerDocument: Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction/target) */
readonly target: string;
}
declare var ProcessingInstruction: {
prototype: ProcessingInstruction;
new(): ProcessingInstruction;
};
/**
* Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
*/
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable) */
readonly lengthComputable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */
readonly loaded: number;
readonly target: T | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */
readonly total: number;
}
declare var ProgressEvent: {
prototype: ProgressEvent;
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */
interface PromiseRejectionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */
readonly promise: Promise<any>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */
readonly reason: any;
}
declare var PromiseRejectionEvent: {
prototype: PromiseRejectionEvent;
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential)
*/
interface PublicKeyCredential extends Credential {
readonly authenticatorAttachment: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId) */
readonly rawId: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/response) */
readonly response: AuthenticatorResponse;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
}
declare var PublicKeyCredential: {
prototype: PublicKeyCredential;
new(): PublicKeyCredential;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable) */
isConditionalMediationAvailable(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
};
/**
* This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager)
*/
interface PushManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription) */
getSubscription(): Promise<PushSubscription | null>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState) */
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) */
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */
readonly supportedContentEncodings: ReadonlyArray<string>;
};
/**
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)
*/
interface PushSubscription {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint) */
readonly endpoint: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime) */
readonly expirationTime: EpochTimeStamp | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options) */
readonly options: PushSubscriptionOptions;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) */
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON) */
toJSON(): PushSubscriptionJSON;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe) */
unsubscribe(): Promise<boolean>;
}
declare var PushSubscription: {
prototype: PushSubscription;
new(): PushSubscription;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)
*/
interface PushSubscriptionOptions {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey) */
readonly applicationServerKey: ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly) */
readonly userVisibleOnly: boolean;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate) */
interface RTCCertificate {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/expires) */
readonly expires: EpochTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/getFingerprints) */
getFingerprints(): RTCDtlsFingerprint[];
}
declare var RTCCertificate: {
prototype: RTCCertificate;
new(): RTCCertificate;
};
interface RTCDTMFSenderEventMap {
"tonechange": RTCDTMFToneChangeEvent;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender) */
interface RTCDTMFSender extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/canInsertDTMF) */
readonly canInsertDTMF: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/tonechange_event) */
ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/toneBuffer) */
readonly toneBuffer: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/insertDTMF) */
insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDTMFSender: {
prototype: RTCDTMFSender;
new(): RTCDTMFSender;
};
/**
* Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent)
*/
interface RTCDTMFToneChangeEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent/tone) */
readonly tone: string;
}
declare var RTCDTMFToneChangeEvent: {
prototype: RTCDTMFToneChangeEvent;
new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
};
interface RTCDataChannelEventMap {
"bufferedamountlow": Event;
"close": Event;
"closing": Event;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel) */
interface RTCDataChannel extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType) */
binaryType: BinaryType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount) */
readonly bufferedAmount: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold) */
bufferedAmountLowThreshold: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id) */
readonly id: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label) */
readonly label: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime) */
readonly maxPacketLifeTime: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits) */
readonly maxRetransmits: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated) */
readonly negotiated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) */
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) */
onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */
onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */
onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered) */
readonly ordered: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol) */
readonly protocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState) */
readonly readyState: RTCDataChannelState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send) */
send(data: string): void;
send(data: Blob): void;
send(data: ArrayBuffer): void;
send(data: ArrayBufferView): void;
addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDataChannel: {
prototype: RTCDataChannel;
new(): RTCDataChannel;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent) */
interface RTCDataChannelEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent/channel) */
readonly channel: RTCDataChannel;
}
declare var RTCDataChannelEvent: {
prototype: RTCDataChannelEvent;
new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;
};
interface RTCDtlsTransportEventMap {
"error": Event;
"statechange": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport) */
interface RTCDtlsTransport extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */
readonly iceTransport: RTCIceTransport;
onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/statechange_event) */
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */
readonly state: RTCDtlsTransportState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */
getRemoteCertificates(): ArrayBuffer[];
addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDtlsTransport: {
prototype: RTCDtlsTransport;
new(): RTCDtlsTransport;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */
interface RTCEncodedAudioFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */
data: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */
getMetadata(): RTCEncodedAudioFrameMetadata;
}
declare var RTCEncodedAudioFrame: {
prototype: RTCEncodedAudioFrame;
new(): RTCEncodedAudioFrame;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */
interface RTCEncodedVideoFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */
data: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */
readonly type: RTCEncodedVideoFrameType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */
getMetadata(): RTCEncodedVideoFrameMetadata;
}
declare var RTCEncodedVideoFrame: {
prototype: RTCEncodedVideoFrame;
new(): RTCEncodedVideoFrame;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError) */
interface RTCError extends DOMException {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/errorDetail) */
readonly errorDetail: RTCErrorDetailType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/receivedAlert) */
readonly receivedAlert: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sctpCauseCode) */
readonly sctpCauseCode: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sdpLineNumber) */
readonly sdpLineNumber: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sentAlert) */
readonly sentAlert: number | null;
}
declare var RTCError: {
prototype: RTCError;
new(init: RTCErrorInit, message?: string): RTCError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent) */
interface RTCErrorEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent/error) */
readonly error: RTCError;
}
declare var RTCErrorEvent: {
prototype: RTCErrorEvent;
new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;
};
/**
* The RTCIceCandidate interface\u2014part of the WebRTC API\u2014represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate)
*/
interface RTCIceCandidate {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/address) */
readonly address: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/candidate) */
readonly candidate: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/component) */
readonly component: RTCIceComponent | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/foundation) */
readonly foundation: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/port) */
readonly port: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/priority) */
readonly priority: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/protocol) */
readonly protocol: RTCIceProtocol | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedAddress) */
readonly relatedAddress: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedPort) */
readonly relatedPort: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMLineIndex) */
readonly sdpMLineIndex: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMid) */
readonly sdpMid: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/tcpType) */
readonly tcpType: RTCIceTcpCandidateType | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/type) */
readonly type: RTCIceCandidateType | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/usernameFragment) */
readonly usernameFragment: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/toJSON) */
toJSON(): RTCIceCandidateInit;
}
declare var RTCIceCandidate: {
prototype: RTCIceCandidate;
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
};
interface RTCIceTransportEventMap {
"gatheringstatechange": Event;
"selectedcandidatepairchange": Event;
"statechange": Event;
}
/**
* Provides access to information about the ICE transport layer over which the data is being sent and received.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport)
*/
interface RTCIceTransport extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringState) */
readonly gatheringState: RTCIceGathererState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringstatechange_event) */
ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/selectedcandidatepairchange_event) */
onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */
onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/state) */
readonly state: RTCIceTransportState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/getSelectedCandidatePair) */
getSelectedCandidatePair(): RTCIceCandidatePair | null;
addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCIceTransport: {
prototype: RTCIceTransport;
new(): RTCIceTransport;
};
interface RTCPeerConnectionEventMap {
"connectionstatechange": Event;
"datachannel": RTCDataChannelEvent;
"icecandidate": RTCPeerConnectionIceEvent;
"icecandidateerror": RTCPeerConnectionIceErrorEvent;
"iceconnectionstatechange": Event;
"icegatheringstatechange": Event;
"negotiationneeded": Event;
"signalingstatechange": Event;
"track": RTCTrackEvent;
}
/**
* A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection)
*/
interface RTCPeerConnection extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/canTrickleIceCandidates) */
readonly canTrickleIceCandidates: boolean | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionState) */
readonly connectionState: RTCPeerConnectionState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentLocalDescription) */
readonly currentLocalDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentRemoteDescription) */
readonly currentRemoteDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceConnectionState) */
readonly iceConnectionState: RTCIceConnectionState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceGatheringState) */
readonly iceGatheringState: RTCIceGatheringState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/localDescription) */
readonly localDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionstatechange_event) */
onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/datachannel_event) */
ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidate_event) */
onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidateerror_event) */
onicecandidateerror: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceconnectionstatechange_event) */
oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icegatheringstatechange_event) */
onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/negotiationneeded_event) */
onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingstatechange_event) */
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/track_event) */
ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingLocalDescription) */
readonly pendingLocalDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingRemoteDescription) */
readonly pendingRemoteDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/remoteDescription) */
readonly remoteDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/sctp) */
readonly sctp: RTCSctpTransport | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingState) */
readonly signalingState: RTCSignalingState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addIceCandidate) */
addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
/** @deprecated */
addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTrack) */
addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTransceiver) */
addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createAnswer) */
createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
/** @deprecated */
createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createDataChannel) */
createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createOffer) */
createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
/** @deprecated */
createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getConfiguration) */
getConfiguration(): RTCConfiguration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getReceivers) */
getReceivers(): RTCRtpReceiver[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getSenders) */
getSenders(): RTCRtpSender[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getStats) */
getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getTransceivers) */
getTransceivers(): RTCRtpTransceiver[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/removeTrack) */
removeTrack(sender: RTCRtpSender): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/restartIce) */
restartIce(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setConfiguration) */
setConfiguration(configuration?: RTCConfiguration): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setLocalDescription) */
setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;
/** @deprecated */
setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setRemoteDescription) */
setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
/** @deprecated */
setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCPeerConnection: {
prototype: RTCPeerConnection;
new(configuration?: RTCConfiguration): RTCPeerConnection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/generateCertificate_static) */
generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent) */
interface RTCPeerConnectionIceErrorEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address) */
readonly address: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */
readonly errorCode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */
readonly errorText: string;
readonly port: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */
readonly url: string;
}
declare var RTCPeerConnectionIceErrorEvent: {
prototype: RTCPeerConnectionIceErrorEvent;
new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;
};
/**
* Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent)
*/
interface RTCPeerConnectionIceEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent/candidate) */
readonly candidate: RTCIceCandidate | null;
}
declare var RTCPeerConnectionIceEvent: {
prototype: RTCPeerConnectionIceEvent;
new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;
};
/**
* This WebRTC API interface manages the reception and decoding of data for a\xA0MediaStreamTrack on an\xA0RTCPeerConnection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver)
*/
interface RTCRtpReceiver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track) */
readonly track: MediaStreamTrack;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform) */
transform: RTCRtpTransform | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transport) */
readonly transport: RTCDtlsTransport | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getContributingSources) */
getContributingSources(): RTCRtpContributingSource[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getParameters) */
getParameters(): RTCRtpReceiveParameters;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getStats) */
getStats(): Promise<RTCStatsReport>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getSynchronizationSources) */
getSynchronizationSources(): RTCRtpSynchronizationSource[];
}
declare var RTCRtpReceiver: {
prototype: RTCRtpReceiver;
new(): RTCRtpReceiver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getCapabilities_static) */
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransform) */
interface RTCRtpScriptTransform {
}
declare var RTCRtpScriptTransform: {
prototype: RTCRtpScriptTransform;
new(worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform;
};
/**
* Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender)
*/
interface RTCRtpSender {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/dtmf) */
readonly dtmf: RTCDTMFSender | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/track) */
readonly track: MediaStreamTrack | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transform) */
transform: RTCRtpTransform | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transport) */
readonly transport: RTCDtlsTransport | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getParameters) */
getParameters(): RTCRtpSendParameters;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getStats) */
getStats(): Promise<RTCStatsReport>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/replaceTrack) */
replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setParameters) */
setParameters(parameters: RTCRtpSendParameters, setParameterOptions?: RTCSetParameterOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setStreams) */
setStreams(...streams: MediaStream[]): void;
}
declare var RTCRtpSender: {
prototype: RTCRtpSender;
new(): RTCRtpSender;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getCapabilities_static) */
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver) */
interface RTCRtpTransceiver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/currentDirection) */
readonly currentDirection: RTCRtpTransceiverDirection | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/direction) */
direction: RTCRtpTransceiverDirection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/mid) */
readonly mid: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/receiver) */
readonly receiver: RTCRtpReceiver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender) */
readonly sender: RTCRtpSender;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop) */
stop(): void;
}
declare var RTCRtpTransceiver: {
prototype: RTCRtpTransceiver;
new(): RTCRtpTransceiver;
};
interface RTCSctpTransportEventMap {
"statechange": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport) */
interface RTCSctpTransport extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxChannels) */
readonly maxChannels: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxMessageSize) */
readonly maxMessageSize: number;
onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/state) */
readonly state: RTCSctpTransportState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/transport) */
readonly transport: RTCDtlsTransport;
addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCSctpTransport: {
prototype: RTCSctpTransport;
new(): RTCSctpTransport;
};
/**
* One end of a connection\u2014or potential connection\u2014and how it's configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription)
*/
interface RTCSessionDescription {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/sdp) */
readonly sdp: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/type) */
readonly type: RTCSdpType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/toJSON) */
toJSON(): any;
}
declare var RTCSessionDescription: {
prototype: RTCSessionDescription;
new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */
interface RTCStatsReport {
forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;
}
declare var RTCStatsReport: {
prototype: RTCStatsReport;
new(): RTCStatsReport;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent) */
interface RTCTrackEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/receiver) */
readonly receiver: RTCRtpReceiver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/streams) */
readonly streams: ReadonlyArray<MediaStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/track) */
readonly track: MediaStreamTrack;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/transceiver) */
readonly transceiver: RTCRtpTransceiver;
}
declare var RTCTrackEvent: {
prototype: RTCTrackEvent;
new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList) */
interface RadioNodeList extends NodeList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList/value) */
value: string;
}
declare var RadioNodeList: {
prototype: RadioNodeList;
new(): RadioNodeList;
};
/**
* A fragment of a document that can contain nodes and parts of text nodes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range)
*/
interface Range extends AbstractRange {
/**
* Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer)
*/
readonly commonAncestorContainer: Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneContents) */
cloneContents(): DocumentFragment;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneRange) */
cloneRange(): Range;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/collapse) */
collapse(toStart?: boolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/compareBoundaryPoints) */
compareBoundaryPoints(how: number, sourceRange: Range): number;
/**
* Returns \u22121 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/comparePoint)
*/
comparePoint(node: Node, offset: number): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment) */
createContextualFragment(fragment: string): DocumentFragment;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents) */
deleteContents(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach) */
detach(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/extractContents) */
extractContents(): DocumentFragment;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getBoundingClientRect) */
getBoundingClientRect(): DOMRect;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getClientRects) */
getClientRects(): DOMRectList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/insertNode) */
insertNode(node: Node): void;
/**
* Returns whether range intersects node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/intersectsNode)
*/
intersectsNode(node: Node): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/isPointInRange) */
isPointInRange(node: Node, offset: number): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNode) */
selectNode(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNodeContents) */
selectNodeContents(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEnd) */
setEnd(node: Node, offset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndAfter) */
setEndAfter(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndBefore) */
setEndBefore(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStart) */
setStart(node: Node, offset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartAfter) */
setStartAfter(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartBefore) */
setStartBefore(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/surroundContents) */
surroundContents(newParent: Node): void;
toString(): string;
readonly START_TO_START: 0;
readonly START_TO_END: 1;
readonly END_TO_END: 2;
readonly END_TO_START: 3;
}
declare var Range: {
prototype: Range;
new(): Range;
readonly START_TO_START: 0;
readonly START_TO_END: 1;
readonly END_TO_END: 2;
readonly END_TO_START: 3;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */
interface ReadableByteStreamController {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */
readonly byobRequest: ReadableStreamBYOBRequest | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */
enqueue(chunk: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */
error(e?: any): void;
}
declare var ReadableByteStreamController: {
prototype: ReadableByteStreamController;
new(): ReadableByteStreamController;
};
/**
* This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
*/
interface ReadableStream<R = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */
readonly locked: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */
cancel(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(): ReadableStreamDefaultReader<R>;
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */
tee(): [ReadableStream<R>, ReadableStream<R>];
}
declare var ReadableStream: {
prototype: ReadableStream;
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
releaseLock(): void;
}
declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
new(stream: ReadableStream): ReadableStreamBYOBReader;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
interface ReadableStreamBYOBRequest {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */
readonly view: ArrayBufferView | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */
respond(bytesWritten: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */
respondWithNewView(view: ArrayBufferView): void;
}
declare var ReadableStreamBYOBRequest: {
prototype: ReadableStreamBYOBRequest;
new(): ReadableStreamBYOBRequest;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */
interface ReadableStreamDefaultController<R = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */
enqueue(chunk?: R): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */
read(): Promise<ReadableStreamReadResult<R>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */
releaseLock(): void;
}
declare var ReadableStreamDefaultReader: {
prototype: ReadableStreamDefaultReader;
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};
interface ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */
readonly closed: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */
cancel(reason?: any): Promise<void>;
}
interface RemotePlaybackEventMap {
"connect": Event;
"connecting": Event;
"disconnect": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback) */
interface RemotePlayback extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connect_event) */
onconnect: ((this: RemotePlayback, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connecting_event) */
onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/disconnect_event) */
ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/state) */
readonly state: RemotePlaybackState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/cancelWatchAvailability) */
cancelWatchAvailability(id?: number): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/prompt) */
prompt(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/watchAvailability) */
watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;
addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RemotePlayback: {
prototype: RemotePlayback;
new(): RemotePlayback;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) */
interface Report {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) */
readonly body: ReportBody | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) */
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) */
readonly url: string;
toJSON(): any;
}
declare var Report: {
prototype: Report;
new(): Report;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */
interface ReportBody {
toJSON(): any;
}
declare var ReportBody: {
prototype: ReportBody;
new(): ReportBody;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver) */
interface ReportingObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe) */
observe(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords) */
takeRecords(): ReportList;
}
declare var ReportingObserver: {
prototype: ReportingObserver;
new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;
};
/**
* This Fetch API interface represents a resource request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
*/
interface Request extends Body {
/**
* Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
*/
readonly cache: RequestCache;
/**
* Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)
*/
readonly credentials: RequestCredentials;
/**
* Returns the kind of resource requested by request, e.g., "document" or "script".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)
*/
readonly destination: RequestDestination;
/**
* Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)
*/
readonly headers: Headers;
/**
* Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
*/
readonly integrity: string;
/**
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
*/
readonly keepalive: boolean;
/**
* Returns request's HTTP method, which is "GET" by default.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)
*/
readonly method: string;
/**
* Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)
*/
readonly mode: RequestMode;
/**
* Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)
*/
readonly redirect: RequestRedirect;
/**
* Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)
*/
readonly referrer: string;
/**
* Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)
*/
readonly referrerPolicy: ReferrerPolicy;
/**
* Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)
*/
readonly signal: AbortSignal;
/**
* Returns the URL of request as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)
*/
readonly url: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */
clone(): Request;
}
declare var Request: {
prototype: Request;
new(input: RequestInfo | URL, init?: RequestInit): Request;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver) */
interface ResizeObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/observe) */
observe(target: Element, options?: ResizeObserverOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/unobserve) */
unobserve(target: Element): void;
}
declare var ResizeObserver: {
prototype: ResizeObserver;
new(callback: ResizeObserverCallback): ResizeObserver;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry) */
interface ResizeObserverEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/borderBoxSize) */
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentBoxSize) */
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentRect) */
readonly contentRect: DOMRectReadOnly;
readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/target) */
readonly target: Element;
}
declare var ResizeObserverEntry: {
prototype: ResizeObserverEntry;
new(): ResizeObserverEntry;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize) */
interface ResizeObserverSize {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/blockSize) */
readonly blockSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/inlineSize) */
readonly inlineSize: number;
}
declare var ResizeObserverSize: {
prototype: ResizeObserverSize;
new(): ResizeObserverSize;
};
/**
* This Fetch API interface represents the response to a request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
*/
interface Response extends Body {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */
readonly headers: Headers;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */
readonly ok: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */
readonly redirected: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */
readonly status: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */
readonly statusText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */
readonly type: ResponseType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */
readonly url: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */
clone(): Response;
}
declare var Response: {
prototype: Response;
new(body?: BodyInit | null, init?: ResponseInit): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
error(): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */
json(data: any, init?: ResponseInit): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */
redirect(url: string | URL, status?: number): Response;
};
/**
* Provides access to the properties of <a> element, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
*/
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
rel: string;
readonly relList: DOMTokenList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target) */
readonly target: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAElement: {
prototype: SVGAElement;
new(): SVGAElement;
};
/**
* Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle)
*/
interface SVGAngle {
readonly unitType: number;
value: number;
valueAsString: string;
valueInSpecifiedUnits: number;
convertToSpecifiedUnits(unitType: number): void;
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
readonly SVG_ANGLETYPE_UNKNOWN: 0;
readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
readonly SVG_ANGLETYPE_DEG: 2;
readonly SVG_ANGLETYPE_RAD: 3;
readonly SVG_ANGLETYPE_GRAD: 4;
}
declare var SVGAngle: {
prototype: SVGAngle;
new(): SVGAngle;
readonly SVG_ANGLETYPE_UNKNOWN: 0;
readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
readonly SVG_ANGLETYPE_DEG: 2;
readonly SVG_ANGLETYPE_RAD: 3;
readonly SVG_ANGLETYPE_GRAD: 4;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateElement) */
interface SVGAnimateElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateElement: {
prototype: SVGAnimateElement;
new(): SVGAnimateElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateMotionElement) */
interface SVGAnimateMotionElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateMotionElement: {
prototype: SVGAnimateMotionElement;
new(): SVGAnimateMotionElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateTransformElement) */
interface SVGAnimateTransformElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateTransformElement: {
prototype: SVGAnimateTransformElement;
new(): SVGAnimateTransformElement;
};
/**
* Used for attributes of basic type <angle> which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle)
*/
interface SVGAnimatedAngle {
readonly animVal: SVGAngle;
readonly baseVal: SVGAngle;
}
declare var SVGAnimatedAngle: {
prototype: SVGAnimatedAngle;
new(): SVGAnimatedAngle;
};
/**
* Used for attributes of type boolean which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean)
*/
interface SVGAnimatedBoolean {
readonly animVal: boolean;
baseVal: boolean;
}
declare var SVGAnimatedBoolean: {
prototype: SVGAnimatedBoolean;
new(): SVGAnimatedBoolean;
};
/**
* Used for attributes whose value must be a constant from a particular enumeration and which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration)
*/
interface SVGAnimatedEnumeration {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedEnumeration: {
prototype: SVGAnimatedEnumeration;
new(): SVGAnimatedEnumeration;
};
/**
* Used for attributes of basic type <integer> which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger)
*/
interface SVGAnimatedInteger {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedInteger: {
prototype: SVGAnimatedInteger;
new(): SVGAnimatedInteger;
};
/**
* Used for attributes of basic type <length> which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength)
*/
interface SVGAnimatedLength {
readonly animVal: SVGLength;
readonly baseVal: SVGLength;
}
declare var SVGAnimatedLength: {
prototype: SVGAnimatedLength;
new(): SVGAnimatedLength;
};
/**
* Used for attributes of type SVGLengthList which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList)
*/
interface SVGAnimatedLengthList {
readonly animVal: SVGLengthList;
readonly baseVal: SVGLengthList;
}
declare var SVGAnimatedLengthList: {
prototype: SVGAnimatedLengthList;
new(): SVGAnimatedLengthList;
};
/**
* Used for attributes of basic type <Number> which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber)
*/
interface SVGAnimatedNumber {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedNumber: {
prototype: SVGAnimatedNumber;
new(): SVGAnimatedNumber;
};
/**
* The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList)
*/
interface SVGAnimatedNumberList {
readonly animVal: SVGNumberList;
readonly baseVal: SVGNumberList;
}
declare var SVGAnimatedNumberList: {
prototype: SVGAnimatedNumberList;
new(): SVGAnimatedNumberList;
};
interface SVGAnimatedPoints {
readonly animatedPoints: SVGPointList;
readonly points: SVGPointList;
}
/**
* Used for attributes of type SVGPreserveAspectRatio which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio)
*/
interface SVGAnimatedPreserveAspectRatio {
readonly animVal: SVGPreserveAspectRatio;
readonly baseVal: SVGPreserveAspectRatio;
}
declare var SVGAnimatedPreserveAspectRatio: {
prototype: SVGAnimatedPreserveAspectRatio;
new(): SVGAnimatedPreserveAspectRatio;
};
/**
* Used for attributes of basic SVGRect which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect)
*/
interface SVGAnimatedRect {
readonly animVal: DOMRectReadOnly;
readonly baseVal: DOMRect;
}
declare var SVGAnimatedRect: {
prototype: SVGAnimatedRect;
new(): SVGAnimatedRect;
};
/**
* The SVGAnimatedString\xA0interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared\xA0inside this.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString)
*/
interface SVGAnimatedString {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/animVal) */
readonly animVal: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/baseVal) */
baseVal: string;
}
declare var SVGAnimatedString: {
prototype: SVGAnimatedString;
new(): SVGAnimatedString;
};
/**
* Used for attributes which take a list of numbers and which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList)
*/
interface SVGAnimatedTransformList {
readonly animVal: SVGTransformList;
readonly baseVal: SVGTransformList;
}
declare var SVGAnimatedTransformList: {
prototype: SVGAnimatedTransformList;
new(): SVGAnimatedTransformList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement) */
interface SVGAnimationElement extends SVGElement, SVGTests {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/targetElement) */
readonly targetElement: SVGElement | null;
beginElement(): void;
beginElementAt(offset: number): void;
endElement(): void;
endElementAt(offset: number): void;
getCurrentTime(): number;
getSimpleDuration(): number;
getStartTime(): number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimationElement: {
prototype: SVGAnimationElement;
new(): SVGAnimationElement;
};
/**
* An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement)
*/
interface SVGCircleElement extends SVGGeometryElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cx) */
readonly cx: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cy) */
readonly cy: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/r) */
readonly r: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGCircleElement: {
prototype: SVGCircleElement;
new(): SVGCircleElement;
};
/**
* Provides access to the properties of <clipPath> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement)
*/
interface SVGClipPathElement extends SVGElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/clipPathUnits) */
readonly clipPathUnits: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/transform) */
readonly transform: SVGAnimatedTransformList;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGClipPathElement: {
prototype: SVGClipPathElement;
new(): SVGClipPathElement;
};
/**
* A base interface used by the component transfer function interfaces.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement)
*/
interface SVGComponentTransferFunctionElement extends SVGElement {
readonly amplitude: SVGAnimatedNumber;
readonly exponent: SVGAnimatedNumber;
readonly intercept: SVGAnimatedNumber;
readonly offset: SVGAnimatedNumber;
readonly slope: SVGAnimatedNumber;
readonly tableValues: SVGAnimatedNumberList;
readonly type: SVGAnimatedEnumeration;
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGComponentTransferFunctionElement: {
prototype: SVGComponentTransferFunctionElement;
new(): SVGComponentTransferFunctionElement;
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
};
/**
* Corresponds to the <defs> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDefsElement)
*/
interface SVGDefsElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGDefsElement: {
prototype: SVGDefsElement;
new(): SVGDefsElement;
};
/**
* Corresponds to the <desc> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDescElement)
*/
interface SVGDescElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGDescElement: {
prototype: SVGDescElement;
new(): SVGDescElement;
};
interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}
/**
* All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement)
*/
interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
/** @deprecated */
readonly className: any;
readonly ownerSVGElement: SVGSVGElement | null;
readonly viewportElement: SVGElement | null;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGElement: {
prototype: SVGElement;
new(): SVGElement;
};
/**
* Provides access to the properties of <ellipse> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement)
*/
interface SVGEllipseElement extends SVGGeometryElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly rx: SVGAnimatedLength;
readonly ry: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGEllipseElement: {
prototype: SVGEllipseElement;
new(): SVGEllipseElement;
};
/**
* Corresponds to the <feBlend> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement)
*/
interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly mode: SVGAnimatedEnumeration;
readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
readonly SVG_FEBLEND_MODE_NORMAL: 1;
readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
readonly SVG_FEBLEND_MODE_SCREEN: 3;
readonly SVG_FEBLEND_MODE_DARKEN: 4;
readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
readonly SVG_FEBLEND_MODE_OVERLAY: 6;
readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
readonly SVG_FEBLEND_MODE_HUE: 13;
readonly SVG_FEBLEND_MODE_SATURATION: 14;
readonly SVG_FEBLEND_MODE_COLOR: 15;
readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEBlendElement: {
prototype: SVGFEBlendElement;
new(): SVGFEBlendElement;
readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
readonly SVG_FEBLEND_MODE_NORMAL: 1;
readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
readonly SVG_FEBLEND_MODE_SCREEN: 3;
readonly SVG_FEBLEND_MODE_DARKEN: 4;
readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
readonly SVG_FEBLEND_MODE_OVERLAY: 6;
readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
readonly SVG_FEBLEND_MODE_HUE: 13;
readonly SVG_FEBLEND_MODE_SATURATION: 14;
readonly SVG_FEBLEND_MODE_COLOR: 15;
readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
};
/**
* Corresponds to the <feColorMatrix> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement)
*/
interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/in1) */
readonly in1: SVGAnimatedString;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/type) */
readonly type: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/values) */
readonly values: SVGAnimatedNumberList;
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEColorMatrixElement: {
prototype: SVGFEColorMatrixElement;
new(): SVGFEColorMatrixElement;
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
};
/**
* Corresponds to the <feComponentTransfer> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEComponentTransferElement)
*/
interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEComponentTransferElement: {
prototype: SVGFEComponentTransferElement;
new(): SVGFEComponentTransferElement;
};
/**
* Corresponds to the <feComposite> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement)
*/
interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly k1: SVGAnimatedNumber;
readonly k2: SVGAnimatedNumber;
readonly k3: SVGAnimatedNumber;
readonly k4: SVGAnimatedNumber;
readonly operator: SVGAnimatedEnumeration;
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFECompositeElement: {
prototype: SVGFECompositeElement;
new(): SVGFECompositeElement;
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
};
/**
* Corresponds to the <feConvolveMatrix> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement)
*/
interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly bias: SVGAnimatedNumber;
readonly divisor: SVGAnimatedNumber;
readonly edgeMode: SVGAnimatedEnumeration;
readonly in1: SVGAnimatedString;
readonly kernelMatrix: SVGAnimatedNumberList;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly orderX: SVGAnimatedInteger;
readonly orderY: SVGAnimatedInteger;
readonly preserveAlpha: SVGAnimatedBoolean;
readonly targetX: SVGAnimatedInteger;
readonly targetY: SVGAnimatedInteger;
readonly SVG_EDGEMODE_UNKNOWN: 0;
readonly SVG_EDGEMODE_DUPLICATE: 1;
readonly SVG_EDGEMODE_WRAP: 2;
readonly SVG_EDGEMODE_NONE: 3;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEConvolveMatrixElement: {
prototype: SVGFEConvolveMatrixElement;
new(): SVGFEConvolveMatrixElement;
readonly SVG_EDGEMODE_UNKNOWN: 0;
readonly SVG_EDGEMODE_DUPLICATE: 1;
readonly SVG_EDGEMODE_WRAP: 2;
readonly SVG_EDGEMODE_NONE: 3;
};
/**
* Corresponds to the <feDiffuseLighting> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement)
*/
interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly diffuseConstant: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly surfaceScale: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDiffuseLightingElement: {
prototype: SVGFEDiffuseLightingElement;
new(): SVGFEDiffuseLightingElement;
};
/**
* Corresponds to the <feDisplacementMap> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement)
*/
interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly scale: SVGAnimatedNumber;
readonly xChannelSelector: SVGAnimatedEnumeration;
readonly yChannelSelector: SVGAnimatedEnumeration;
readonly SVG_CHANNEL_UNKNOWN: 0;
readonly SVG_CHANNEL_R: 1;
readonly SVG_CHANNEL_G: 2;
readonly SVG_CHANNEL_B: 3;
readonly SVG_CHANNEL_A: 4;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDisplacementMapElement: {
prototype: SVGFEDisplacementMapElement;
new(): SVGFEDisplacementMapElement;
readonly SVG_CHANNEL_UNKNOWN: 0;
readonly SVG_CHANNEL_R: 1;
readonly SVG_CHANNEL_G: 2;
readonly SVG_CHANNEL_B: 3;
readonly SVG_CHANNEL_A: 4;
};
/**
* Corresponds to the <feDistantLight> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement)
*/
interface SVGFEDistantLightElement extends SVGElement {
readonly azimuth: SVGAnimatedNumber;
readonly elevation: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDistantLightElement: {
prototype: SVGFEDistantLightElement;
new(): SVGFEDistantLightElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement) */
interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly dx: SVGAnimatedNumber;
readonly dy: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
readonly stdDeviationX: SVGAnimatedNumber;
readonly stdDeviationY: SVGAnimatedNumber;
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDropShadowElement: {
prototype: SVGFEDropShadowElement;
new(): SVGFEDropShadowElement;
};
/**
* Corresponds to the <feFlood> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFloodElement)
*/
interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFloodElement: {
prototype: SVGFEFloodElement;
new(): SVGFEFloodElement;
};
/**
* Corresponds to the <feFuncA> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncAElement)
*/
interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncAElement: {
prototype: SVGFEFuncAElement;
new(): SVGFEFuncAElement;
};
/**
* Corresponds to the <feFuncB> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncBElement)
*/
interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncBElement: {
prototype: SVGFEFuncBElement;
new(): SVGFEFuncBElement;
};
/**
* Corresponds to the <feFuncG> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncGElement)
*/
interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncGElement: {
prototype: SVGFEFuncGElement;
new(): SVGFEFuncGElement;
};
/**
* Corresponds to the <feFuncR> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncRElement)
*/
interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncRElement: {
prototype: SVGFEFuncRElement;
new(): SVGFEFuncRElement;
};
/**
* Corresponds to the <feGaussianBlur> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement)
*/
interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly stdDeviationX: SVGAnimatedNumber;
readonly stdDeviationY: SVGAnimatedNumber;
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEGaussianBlurElement: {
prototype: SVGFEGaussianBlurElement;
new(): SVGFEGaussianBlurElement;
};
/**
* Corresponds to the <feImage> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEImageElement)
*/
interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEImageElement: {
prototype: SVGFEImageElement;
new(): SVGFEImageElement;
};
/**
* Corresponds to the <feMerge> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeElement)
*/
interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMergeElement: {
prototype: SVGFEMergeElement;
new(): SVGFEMergeElement;
};
/**
* Corresponds to the <feMergeNode> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement)
*/
interface SVGFEMergeNodeElement extends SVGElement {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMergeNodeElement: {
prototype: SVGFEMergeNodeElement;
new(): SVGFEMergeNodeElement;
};
/**
* Corresponds to the <feMorphology> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement)
*/
interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly operator: SVGAnimatedEnumeration;
readonly radiusX: SVGAnimatedNumber;
readonly radiusY: SVGAnimatedNumber;
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMorphologyElement: {
prototype: SVGFEMorphologyElement;
new(): SVGFEMorphologyElement;
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
};
/**
* Corresponds to the <feOffset> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement)
*/
interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly dx: SVGAnimatedNumber;
readonly dy: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEOffsetElement: {
prototype: SVGFEOffsetElement;
new(): SVGFEOffsetElement;
};
/**
* Corresponds to the <fePointLight> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement)
*/
interface SVGFEPointLightElement extends SVGElement {
readonly x: SVGAnimatedNumber;
readonly y: SVGAnimatedNumber;
readonly z: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEPointLightElement: {
prototype: SVGFEPointLightElement;
new(): SVGFEPointLightElement;
};
/**
* Corresponds to the <feSpecularLighting> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement)
*/
interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly specularConstant: SVGAnimatedNumber;
readonly specularExponent: SVGAnimatedNumber;
readonly surfaceScale: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFESpecularLightingElement: {
prototype: SVGFESpecularLightingElement;
new(): SVGFESpecularLightingElement;
};
/**
* Corresponds to the <feSpotLight> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement)
*/
interface SVGFESpotLightElement extends SVGElement {
readonly limitingConeAngle: SVGAnimatedNumber;
readonly pointsAtX: SVGAnimatedNumber;
readonly pointsAtY: SVGAnimatedNumber;
readonly pointsAtZ: SVGAnimatedNumber;
readonly specularExponent: SVGAnimatedNumber;
readonly x: SVGAnimatedNumber;
readonly y: SVGAnimatedNumber;
readonly z: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFESpotLightElement: {
prototype: SVGFESpotLightElement;
new(): SVGFESpotLightElement;
};
/**
* Corresponds to the <feTile> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETileElement)
*/
interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFETileElement: {
prototype: SVGFETileElement;
new(): SVGFETileElement;
};
/**
* Corresponds to the <feTurbulence> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement)
*/
interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly baseFrequencyX: SVGAnimatedNumber;
readonly baseFrequencyY: SVGAnimatedNumber;
readonly numOctaves: SVGAnimatedInteger;
readonly seed: SVGAnimatedNumber;
readonly stitchTiles: SVGAnimatedEnumeration;
readonly type: SVGAnimatedEnumeration;
readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
readonly SVG_STITCHTYPE_UNKNOWN: 0;
readonly SVG_STITCHTYPE_STITCH: 1;
readonly SVG_STITCHTYPE_NOSTITCH: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFETurbulenceElement: {
prototype: SVGFETurbulenceElement;
new(): SVGFETurbulenceElement;
readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
readonly SVG_STITCHTYPE_UNKNOWN: 0;
readonly SVG_STITCHTYPE_STITCH: 1;
readonly SVG_STITCHTYPE_NOSTITCH: 2;
};
/**
* Provides access to the properties of <filter> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement)
*/
interface SVGFilterElement extends SVGElement, SVGURIReference {
readonly filterUnits: SVGAnimatedEnumeration;
readonly height: SVGAnimatedLength;
readonly primitiveUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFilterElement: {
prototype: SVGFilterElement;
new(): SVGFilterElement;
};
interface SVGFilterPrimitiveStandardAttributes {
readonly height: SVGAnimatedLength;
readonly result: SVGAnimatedString;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
}
interface SVGFitToViewBox {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/preserveAspectRatio) */
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/viewBox) */
readonly viewBox: SVGAnimatedRect;
}
/**
* Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement)
*/
interface SVGForeignObjectElement extends SVGGraphicsElement {
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGForeignObjectElement: {
prototype: SVGForeignObjectElement;
new(): SVGForeignObjectElement;
};
/**
* Corresponds to the <g> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGElement)
*/
interface SVGGElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGElement: {
prototype: SVGGElement;
new(): SVGGElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement) */
interface SVGGeometryElement extends SVGGraphicsElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/pathLength) */
readonly pathLength: SVGAnimatedNumber;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getPointAtLength) */
getPointAtLength(distance: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getTotalLength) */
getTotalLength(): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInFill) */
isPointInFill(point?: DOMPointInit): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInStroke) */
isPointInStroke(point?: DOMPointInit): boolean;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGeometryElement: {
prototype: SVGGeometryElement;
new(): SVGGeometryElement;
};
/**
* The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement)
*/
interface SVGGradientElement extends SVGElement, SVGURIReference {
readonly gradientTransform: SVGAnimatedTransformList;
readonly gradientUnits: SVGAnimatedEnumeration;
readonly spreadMethod: SVGAnimatedEnumeration;
readonly SVG_SPREADMETHOD_UNKNOWN: 0;
readonly SVG_SPREADMETHOD_PAD: 1;
readonly SVG_SPREADMETHOD_REFLECT: 2;
readonly SVG_SPREADMETHOD_REPEAT: 3;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGradientElement: {
prototype: SVGGradientElement;
new(): SVGGradientElement;
readonly SVG_SPREADMETHOD_UNKNOWN: 0;
readonly SVG_SPREADMETHOD_PAD: 1;
readonly SVG_SPREADMETHOD_REFLECT: 2;
readonly SVG_SPREADMETHOD_REPEAT: 3;
};
/**
* SVG elements whose primary purpose is to directly render graphics into a group.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement)
*/
interface SVGGraphicsElement extends SVGElement, SVGTests {
readonly transform: SVGAnimatedTransformList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getBBox) */
getBBox(options?: SVGBoundingBoxOptions): DOMRect;
getCTM(): DOMMatrix | null;
getScreenCTM(): DOMMatrix | null;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGraphicsElement: {
prototype: SVGGraphicsElement;
new(): SVGGraphicsElement;
};
/**
* Corresponds to the <image> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement)
*/
interface SVGImageElement extends SVGGraphicsElement, SVGURIReference {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/crossorigin) */
crossOrigin: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/height) */
readonly height: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/preserveAspectRatio) */
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/width) */
readonly width: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/x) */
readonly x: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/y) */
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGImageElement: {
prototype: SVGImageElement;
new(): SVGImageElement;
};
/**
* Correspond to the <length> basic data type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength)
*/
interface SVGLength {
readonly unitType: number;
value: number;
valueAsString: string;
valueInSpecifiedUnits: number;
convertToSpecifiedUnits(unitType: number): void;
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
readonly SVG_LENGTHTYPE_UNKNOWN: 0;
readonly SVG_LENGTHTYPE_NUMBER: 1;
readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
readonly SVG_LENGTHTYPE_EMS: 3;
readonly SVG_LENGTHTYPE_EXS: 4;
readonly SVG_LENGTHTYPE_PX: 5;
readonly SVG_LENGTHTYPE_CM: 6;
readonly SVG_LENGTHTYPE_MM: 7;
readonly SVG_LENGTHTYPE_IN: 8;
readonly SVG_LENGTHTYPE_PT: 9;
readonly SVG_LENGTHTYPE_PC: 10;
}
declare var SVGLength: {
prototype: SVGLength;
new(): SVGLength;
readonly SVG_LENGTHTYPE_UNKNOWN: 0;
readonly SVG_LENGTHTYPE_NUMBER: 1;
readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
readonly SVG_LENGTHTYPE_EMS: 3;
readonly SVG_LENGTHTYPE_EXS: 4;
readonly SVG_LENGTHTYPE_PX: 5;
readonly SVG_LENGTHTYPE_CM: 6;
readonly SVG_LENGTHTYPE_MM: 7;
readonly SVG_LENGTHTYPE_IN: 8;
readonly SVG_LENGTHTYPE_PT: 9;
readonly SVG_LENGTHTYPE_PC: 10;
};
/**
* The SVGLengthList defines a list of SVGLength objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList)
*/
interface SVGLengthList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGLength): SVGLength;
clear(): void;
getItem(index: number): SVGLength;
initialize(newItem: SVGLength): SVGLength;
insertItemBefore(newItem: SVGLength, index: number): SVGLength;
removeItem(index: number): SVGLength;
replaceItem(newItem: SVGLength, index: number): SVGLength;
[index: number]: SVGLength;
}
declare var SVGLengthList: {
prototype: SVGLengthList;
new(): SVGLengthList;
};
/**
* Provides access to the properties of <line> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement)
*/
interface SVGLineElement extends SVGGeometryElement {
readonly x1: SVGAnimatedLength;
readonly x2: SVGAnimatedLength;
readonly y1: SVGAnimatedLength;
readonly y2: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGLineElement: {
prototype: SVGLineElement;
new(): SVGLineElement;
};
/**
* Corresponds to the <linearGradient> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement)
*/
interface SVGLinearGradientElement extends SVGGradientElement {
readonly x1: SVGAnimatedLength;
readonly x2: SVGAnimatedLength;
readonly y1: SVGAnimatedLength;
readonly y2: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGLinearGradientElement: {
prototype: SVGLinearGradientElement;
new(): SVGLinearGradientElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMPathElement) */
interface SVGMPathElement extends SVGElement, SVGURIReference {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMPathElement: {
prototype: SVGMPathElement;
new(): SVGMPathElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement) */
interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerHeight) */
readonly markerHeight: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerUnits) */
readonly markerUnits: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerWidth) */
readonly markerWidth: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientAngle) */
readonly orientAngle: SVGAnimatedAngle;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientType) */
readonly orientType: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refX) */
readonly refX: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refY) */
readonly refY: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAngle) */
setOrientToAngle(angle: SVGAngle): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAuto) */
setOrientToAuto(): void;
readonly SVG_MARKERUNITS_UNKNOWN: 0;
readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
readonly SVG_MARKER_ORIENT_AUTO: 1;
readonly SVG_MARKER_ORIENT_ANGLE: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMarkerElement: {
prototype: SVGMarkerElement;
new(): SVGMarkerElement;
readonly SVG_MARKERUNITS_UNKNOWN: 0;
readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
readonly SVG_MARKER_ORIENT_AUTO: 1;
readonly SVG_MARKER_ORIENT_ANGLE: 2;
};
/**
* Provides access to the properties of <mask> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement)
*/
interface SVGMaskElement extends SVGElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/height) */
readonly height: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskContentUnits) */
readonly maskContentUnits: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskUnits) */
readonly maskUnits: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/width) */
readonly width: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/x) */
readonly x: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMaskElement: {
prototype: SVGMaskElement;
new(): SVGMaskElement;
};
/**
* Corresponds to the <metadata> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMetadataElement)
*/
interface SVGMetadataElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMetadataElement: {
prototype: SVGMetadataElement;
new(): SVGMetadataElement;
};
/**
* Corresponds to the <number> basic data type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumber)
*/
interface SVGNumber {
value: number;
}
declare var SVGNumber: {
prototype: SVGNumber;
new(): SVGNumber;
};
/**
* The SVGNumberList defines a list of SVGNumber objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList)
*/
interface SVGNumberList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGNumber): SVGNumber;
clear(): void;
getItem(index: number): SVGNumber;
initialize(newItem: SVGNumber): SVGNumber;
insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
removeItem(index: number): SVGNumber;
replaceItem(newItem: SVGNumber, index: number): SVGNumber;
[index: number]: SVGNumber;
}
declare var SVGNumberList: {
prototype: SVGNumberList;
new(): SVGNumberList;
};
/**
* Corresponds to the <path> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement)
*/
interface SVGPathElement extends SVGGeometryElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPathElement: {
prototype: SVGPathElement;
new(): SVGPathElement;
};
/**
* Corresponds to the <pattern> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement)
*/
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly patternContentUnits: SVGAnimatedEnumeration;
readonly patternTransform: SVGAnimatedTransformList;
readonly patternUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPatternElement: {
prototype: SVGPatternElement;
new(): SVGPatternElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList) */
interface SVGPointList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/numberOfItems) */
readonly numberOfItems: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/appendItem) */
appendItem(newItem: DOMPoint): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/clear) */
clear(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/getItem) */
getItem(index: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/initialize) */
initialize(newItem: DOMPoint): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/insertItemBefore) */
insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/removeItem) */
removeItem(index: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/replaceItem) */
replaceItem(newItem: DOMPoint, index: number): DOMPoint;
[index: number]: DOMPoint;
}
declare var SVGPointList: {
prototype: SVGPointList;
new(): SVGPointList;
};
/**
* Provides access to the properties of <polygon> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement)
*/
interface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPolygonElement: {
prototype: SVGPolygonElement;
new(): SVGPolygonElement;
};
/**
* Provides access to the properties of <polyline> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolylineElement)
*/
interface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPolylineElement: {
prototype: SVGPolylineElement;
new(): SVGPolylineElement;
};
/**
* Corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio)
*/
interface SVGPreserveAspectRatio {
align: number;
meetOrSlice: number;
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
readonly SVG_MEETORSLICE_UNKNOWN: 0;
readonly SVG_MEETORSLICE_MEET: 1;
readonly SVG_MEETORSLICE_SLICE: 2;
}
declare var SVGPreserveAspectRatio: {
prototype: SVGPreserveAspectRatio;
new(): SVGPreserveAspectRatio;
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
readonly SVG_MEETORSLICE_UNKNOWN: 0;
readonly SVG_MEETORSLICE_MEET: 1;
readonly SVG_MEETORSLICE_SLICE: 2;
};
/**
* Corresponds to the <RadialGradient> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement)
*/
interface SVGRadialGradientElement extends SVGGradientElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly fr: SVGAnimatedLength;
readonly fx: SVGAnimatedLength;
readonly fy: SVGAnimatedLength;
readonly r: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGRadialGradientElement: {
prototype: SVGRadialGradientElement;
new(): SVGRadialGradientElement;
};
/**
* Provides access to the properties of <rect> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement)
*/
interface SVGRectElement extends SVGGeometryElement {
readonly height: SVGAnimatedLength;
readonly rx: SVGAnimatedLength;
readonly ry: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGRectElement: {
prototype: SVGRectElement;
new(): SVGRectElement;
};
interface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {
}
/**
* Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement)
*/
interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {
currentScale: number;
readonly currentTranslate: DOMPointReadOnly;
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
animationsPaused(): boolean;
checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;
checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;
createSVGAngle(): SVGAngle;
createSVGLength(): SVGLength;
createSVGMatrix(): DOMMatrix;
createSVGNumber(): SVGNumber;
createSVGPoint(): DOMPoint;
createSVGRect(): DOMRect;
createSVGTransform(): SVGTransform;
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
deselectAll(): void;
/** @deprecated */
forceRedraw(): void;
getCurrentTime(): number;
getElementById(elementId: string): Element;
getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
pauseAnimations(): void;
setCurrentTime(seconds: number): void;
/** @deprecated */
suspendRedraw(maxWaitMilliseconds: number): number;
unpauseAnimations(): void;
/** @deprecated */
unsuspendRedraw(suspendHandleID: number): void;
/** @deprecated */
unsuspendRedrawAll(): void;
addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSVGElement: {
prototype: SVGSVGElement;
new(): SVGSVGElement;
};
/**
* Corresponds to the SVG <script> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGScriptElement)
*/
interface SVGScriptElement extends SVGElement, SVGURIReference {
type: string;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGScriptElement: {
prototype: SVGScriptElement;
new(): SVGScriptElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSetElement) */
interface SVGSetElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSetElement: {
prototype: SVGSetElement;
new(): SVGSetElement;
};
/**
* Corresponds to the <stop> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement)
*/
interface SVGStopElement extends SVGElement {
readonly offset: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGStopElement: {
prototype: SVGStopElement;
new(): SVGStopElement;
};
/**
* The SVGStringList defines a list of DOMString objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList)
*/
interface SVGStringList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: string): string;
clear(): void;
getItem(index: number): string;
initialize(newItem: string): string;
insertItemBefore(newItem: string, index: number): string;
removeItem(index: number): string;
replaceItem(newItem: string, index: number): string;
[index: number]: string;
}
declare var SVGStringList: {
prototype: SVGStringList;
new(): SVGStringList;
};
/**
* Corresponds to the SVG <style> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement)
*/
interface SVGStyleElement extends SVGElement, LinkStyle {
disabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/media) */
media: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/title) */
title: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/type)
*/
type: string;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGStyleElement: {
prototype: SVGStyleElement;
new(): SVGStyleElement;
};
/**
* Corresponds to the <switch> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSwitchElement)
*/
interface SVGSwitchElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSwitchElement: {
prototype: SVGSwitchElement;
new(): SVGSwitchElement;
};
/**
* Corresponds to the <symbol> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSymbolElement)
*/
interface SVGSymbolElement extends SVGElement, SVGFitToViewBox {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSymbolElement: {
prototype: SVGSymbolElement;
new(): SVGSymbolElement;
};
/**
* A <tspan> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTSpanElement)
*/
interface SVGTSpanElement extends SVGTextPositioningElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTSpanElement: {
prototype: SVGTSpanElement;
new(): SVGTSpanElement;
};
interface SVGTests {
readonly requiredExtensions: SVGStringList;
readonly systemLanguage: SVGStringList;
}
/**
* Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement)
*/
interface SVGTextContentElement extends SVGGraphicsElement {
readonly lengthAdjust: SVGAnimatedEnumeration;
readonly textLength: SVGAnimatedLength;
getCharNumAtPosition(point?: DOMPointInit): number;
getComputedTextLength(): number;
getEndPositionOfChar(charnum: number): DOMPoint;
getExtentOfChar(charnum: number): DOMRect;
getNumberOfChars(): number;
getRotationOfChar(charnum: number): number;
getStartPositionOfChar(charnum: number): DOMPoint;
getSubStringLength(charnum: number, nchars: number): number;
/** @deprecated */
selectSubString(charnum: number, nchars: number): void;
readonly LENGTHADJUST_UNKNOWN: 0;
readonly LENGTHADJUST_SPACING: 1;
readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextContentElement: {
prototype: SVGTextContentElement;
new(): SVGTextContentElement;
readonly LENGTHADJUST_UNKNOWN: 0;
readonly LENGTHADJUST_SPACING: 1;
readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
};
/**
* Corresponds to the <text> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextElement)
*/
interface SVGTextElement extends SVGTextPositioningElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextElement: {
prototype: SVGTextElement;
new(): SVGTextElement;
};
/**
* Corresponds to the <textPath> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement)
*/
interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
readonly method: SVGAnimatedEnumeration;
readonly spacing: SVGAnimatedEnumeration;
readonly startOffset: SVGAnimatedLength;
readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
readonly TEXTPATH_METHODTYPE_ALIGN: 1;
readonly TEXTPATH_METHODTYPE_STRETCH: 2;
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextPathElement: {
prototype: SVGTextPathElement;
new(): SVGTextPathElement;
readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
readonly TEXTPATH_METHODTYPE_ALIGN: 1;
readonly TEXTPATH_METHODTYPE_STRETCH: 2;
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
};
/**
* Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement)
*/
interface SVGTextPositioningElement extends SVGTextContentElement {
readonly dx: SVGAnimatedLengthList;
readonly dy: SVGAnimatedLengthList;
readonly rotate: SVGAnimatedNumberList;
readonly x: SVGAnimatedLengthList;
readonly y: SVGAnimatedLengthList;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextPositioningElement: {
prototype: SVGTextPositioningElement;
new(): SVGTextPositioningElement;
};
/**
* Corresponds to the <title> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTitleElement)
*/
interface SVGTitleElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTitleElement: {
prototype: SVGTitleElement;
new(): SVGTitleElement;
};
/**
* SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(\u2026) or matrix(\u2026)) within a transform attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform)
*/
interface SVGTransform {
readonly angle: number;
readonly matrix: DOMMatrix;
readonly type: number;
setMatrix(matrix?: DOMMatrix2DInit): void;
setRotate(angle: number, cx: number, cy: number): void;
setScale(sx: number, sy: number): void;
setSkewX(angle: number): void;
setSkewY(angle: number): void;
setTranslate(tx: number, ty: number): void;
readonly SVG_TRANSFORM_UNKNOWN: 0;
readonly SVG_TRANSFORM_MATRIX: 1;
readonly SVG_TRANSFORM_TRANSLATE: 2;
readonly SVG_TRANSFORM_SCALE: 3;
readonly SVG_TRANSFORM_ROTATE: 4;
readonly SVG_TRANSFORM_SKEWX: 5;
readonly SVG_TRANSFORM_SKEWY: 6;
}
declare var SVGTransform: {
prototype: SVGTransform;
new(): SVGTransform;
readonly SVG_TRANSFORM_UNKNOWN: 0;
readonly SVG_TRANSFORM_MATRIX: 1;
readonly SVG_TRANSFORM_TRANSLATE: 2;
readonly SVG_TRANSFORM_SCALE: 3;
readonly SVG_TRANSFORM_ROTATE: 4;
readonly SVG_TRANSFORM_SKEWX: 5;
readonly SVG_TRANSFORM_SKEWY: 6;
};
/**
* The SVGTransformList defines a list of SVGTransform objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList)
*/
interface SVGTransformList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGTransform): SVGTransform;
clear(): void;
consolidate(): SVGTransform | null;
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
getItem(index: number): SVGTransform;
initialize(newItem: SVGTransform): SVGTransform;
insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
removeItem(index: number): SVGTransform;
replaceItem(newItem: SVGTransform, index: number): SVGTransform;
[index: number]: SVGTransform;
}
declare var SVGTransformList: {
prototype: SVGTransformList;
new(): SVGTransformList;
};
interface SVGURIReference {
readonly href: SVGAnimatedString;
}
/**
* A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUnitTypes)
*/
interface SVGUnitTypes {
readonly SVG_UNIT_TYPE_UNKNOWN: 0;
readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
}
declare var SVGUnitTypes: {
prototype: SVGUnitTypes;
new(): SVGUnitTypes;
readonly SVG_UNIT_TYPE_UNKNOWN: 0;
readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
};
/**
* Corresponds to the <use> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement)
*/
interface SVGUseElement extends SVGGraphicsElement, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGUseElement: {
prototype: SVGUseElement;
new(): SVGUseElement;
};
/**
* Provides access to the properties of <view> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGViewElement)
*/
interface SVGViewElement extends SVGElement, SVGFitToViewBox {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGViewElement: {
prototype: SVGViewElement;
new(): SVGViewElement;
};
/**
* A screen, usually the one on which the current window is being rendered, and is obtained using window.screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen)
*/
interface Screen {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availHeight) */
readonly availHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availWidth) */
readonly availWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/colorDepth) */
readonly colorDepth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/orientation) */
readonly orientation: ScreenOrientation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/pixelDepth) */
readonly pixelDepth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/width) */
readonly width: number;
}
declare var Screen: {
prototype: Screen;
new(): Screen;
};
interface ScreenOrientationEventMap {
"change": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation) */
interface ScreenOrientation extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/angle) */
readonly angle: number;
onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */
readonly type: OrientationType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock) */
unlock(): void;
addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ScreenOrientation: {
prototype: ScreenOrientation;
new(): ScreenOrientation;
};
interface ScriptProcessorNodeEventMap {
"audioprocess": AudioProcessingEvent;
}
/**
* Allows the generation, processing, or analyzing of audio using JavaScript.
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode)
*/
interface ScriptProcessorNode extends AudioNode {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/bufferSize)
*/
readonly bufferSize: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/audioprocess_event)
*/
onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;
addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var ScriptProcessorNode: {
prototype: ScriptProcessorNode;
new(): ScriptProcessorNode;
};
/**
* Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)
*/
interface SecurityPolicyViolationEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) */
readonly blockedURI: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */
readonly columnNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition) */
readonly disposition: SecurityPolicyViolationEventDisposition;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI) */
readonly documentURI: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective) */
readonly effectiveDirective: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber) */
readonly lineNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy) */
readonly originalPolicy: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer) */
readonly referrer: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample) */
readonly sample: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile) */
readonly sourceFile: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode) */
readonly statusCode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective) */
readonly violatedDirective: string;
}
declare var SecurityPolicyViolationEvent: {
prototype: SecurityPolicyViolationEvent;
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
};
/**
* A Selection object\xA0represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or\xA0modification, call Window.getSelection().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection)
*/
interface Selection {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorNode) */
readonly anchorNode: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset) */
readonly anchorOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode) */
readonly focusNode: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset) */
readonly focusOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/isCollapsed) */
readonly isCollapsed: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/rangeCount) */
readonly rangeCount: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/type) */
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/addRange) */
addRange(range: Range): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */
collapse(node: Node | null, offset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToEnd) */
collapseToEnd(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToStart) */
collapseToStart(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/containsNode) */
containsNode(node: Node, allowPartialContainment?: boolean): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/deleteFromDocument) */
deleteFromDocument(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */
empty(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/extend) */
extend(node: Node, offset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/getRangeAt) */
getRangeAt(index: number): Range;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/modify) */
modify(alter?: string, direction?: string, granularity?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */
removeAllRanges(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeRange) */
removeRange(range: Range): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/selectAllChildren) */
selectAllChildren(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setBaseAndExtent) */
setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */
setPosition(node: Node | null, offset?: number): void;
toString(): string;
}
declare var Selection: {
prototype: Selection;
new(): Selection;
};
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange": Event;
}
/**
* This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker)
*/
interface ServiceWorker extends EventTarget, AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) */
readonly scriptURL: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state) */
readonly state: ServiceWorkerState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage) */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorker: {
prototype: ServiceWorker;
new(): ServiceWorker;
};
interface ServiceWorkerContainerEventMap {
"controllerchange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer)
*/
interface ServiceWorkerContainer extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */
readonly controller: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
readonly ready: Promise<ServiceWorkerRegistration>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration) */
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations) */
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register) */
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages) */
startMessages(): void;
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerContainer: {
prototype: ServiceWorkerContainer;
new(): ServiceWorkerContainer;
};
interface ServiceWorkerRegistrationEventMap {
"updatefound": Event;
}
/**
* This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
*/
interface ServiceWorkerRegistration extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */
readonly active: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) */
readonly installing: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload) */
readonly navigationPreload: NavigationPreloadManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
readonly pushManager: PushManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope) */
readonly scope: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache) */
readonly updateViaCache: ServiceWorkerUpdateViaCache;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting) */
readonly waiting: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications) */
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification) */
showNotification(title: string, options?: NotificationOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */
unregister(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */
update(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerRegistration: {
prototype: ServiceWorkerRegistration;
new(): ServiceWorkerRegistration;
};
interface ShadowRootEventMap {
"slotchange": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */
readonly delegatesFocus: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */
readonly host: Element;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */
readonly mode: ShadowRootMode;
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */
readonly slotAssignment: SlotAssignmentMode;
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ShadowRoot: {
prototype: ShadowRoot;
new(): ShadowRoot;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker) */
interface SharedWorker extends EventTarget, AbstractWorker {
/**
* Returns sharedWorker's MessagePort object which can be used to communicate with the global environment.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker/port)
*/
readonly port: MessagePort;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SharedWorker: {
prototype: SharedWorker;
new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;
};
interface Slottable {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/assignedSlot) */
readonly assignedSlot: HTMLSlotElement | null;
}
interface SourceBufferEventMap {
"abort": Event;
"error": Event;
"update": Event;
"updateend": Event;
"updatestart": Event;
}
/**
* A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource\xA0object. This can be made up of one or several media segments.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer)
*/
interface SourceBuffer extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowEnd) */
appendWindowEnd: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowStart) */
appendWindowStart: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/buffered) */
readonly buffered: TimeRanges;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode) */
mode: AppendMode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */
onabort: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */
onerror: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */
onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */
onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */
onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/timestampOffset) */
timestampOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updating) */
readonly updating: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort) */
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendBuffer) */
appendBuffer(data: BufferSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/changeType) */
changeType(type: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/remove) */
remove(start: number, end: number): void;
addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SourceBuffer: {
prototype: SourceBuffer;
new(): SourceBuffer;
};
interface SourceBufferListEventMap {
"addsourcebuffer": Event;
"removesourcebuffer": Event;
}
/**
* A simple container list for multiple SourceBuffer objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList)
*/
interface SourceBufferList extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/addsourcebuffer_event) */
onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/removesourcebuffer_event) */
onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: SourceBuffer;
}
declare var SourceBufferList: {
prototype: SourceBufferList;
new(): SourceBufferList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative) */
interface SpeechRecognitionAlternative {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence) */
readonly confidence: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript) */
readonly transcript: string;
}
declare var SpeechRecognitionAlternative: {
prototype: SpeechRecognitionAlternative;
new(): SpeechRecognitionAlternative;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult) */
interface SpeechRecognitionResult {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/isFinal) */
readonly isFinal: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/item) */
item(index: number): SpeechRecognitionAlternative;
[index: number]: SpeechRecognitionAlternative;
}
declare var SpeechRecognitionResult: {
prototype: SpeechRecognitionResult;
new(): SpeechRecognitionResult;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList) */
interface SpeechRecognitionResultList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/item) */
item(index: number): SpeechRecognitionResult;
[index: number]: SpeechRecognitionResult;
}
declare var SpeechRecognitionResultList: {
prototype: SpeechRecognitionResultList;
new(): SpeechRecognitionResultList;
};
interface SpeechSynthesisEventMap {
"voiceschanged": Event;
}
/**
* This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis)
*/
interface SpeechSynthesis extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/voiceschanged_event) */
onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/paused) */
readonly paused: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pending) */
readonly pending: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speaking) */
readonly speaking: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/cancel) */
cancel(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/getVoices) */
getVoices(): SpeechSynthesisVoice[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pause) */
pause(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/resume) */
resume(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speak) */
speak(utterance: SpeechSynthesisUtterance): void;
addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SpeechSynthesis: {
prototype: SpeechSynthesis;
new(): SpeechSynthesis;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent) */
interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent/error) */
readonly error: SpeechSynthesisErrorCode;
}
declare var SpeechSynthesisErrorEvent: {
prototype: SpeechSynthesisErrorEvent;
new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;
};
/**
* This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent)
*/
interface SpeechSynthesisEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charIndex) */
readonly charIndex: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charLength) */
readonly charLength: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/elapsedTime) */
readonly elapsedTime: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/utterance) */
readonly utterance: SpeechSynthesisUtterance;
}
declare var SpeechSynthesisEvent: {
prototype: SpeechSynthesisEvent;
new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;
};
interface SpeechSynthesisUtteranceEventMap {
"boundary": SpeechSynthesisEvent;
"end": SpeechSynthesisEvent;
"error": SpeechSynthesisErrorEvent;
"mark": SpeechSynthesisEvent;
"pause": SpeechSynthesisEvent;
"resume": SpeechSynthesisEvent;
"start": SpeechSynthesisEvent;
}
/**
* This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance)
*/
interface SpeechSynthesisUtterance extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/lang) */
lang: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/boundary_event) */
onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/end_event) */
onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/error_event) */
onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/mark_event) */
onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pause_event) */
onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/resume_event) */
onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/start_event) */
onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pitch) */
pitch: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/rate) */
rate: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/text) */
text: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/voice) */
voice: SpeechSynthesisVoice | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/volume) */
volume: number;
addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SpeechSynthesisUtterance: {
prototype: SpeechSynthesisUtterance;
new(text?: string): SpeechSynthesisUtterance;
};
/**
* This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice)
*/
interface SpeechSynthesisVoice {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/default) */
readonly default: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/lang) */
readonly lang: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/localService) */
readonly localService: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/voiceURI) */
readonly voiceURI: string;
}
declare var SpeechSynthesisVoice: {
prototype: SpeechSynthesisVoice;
new(): SpeechSynthesisVoice;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StaticRange) */
interface StaticRange extends AbstractRange {
}
declare var StaticRange: {
prototype: StaticRange;
new(init: StaticRangeInit): StaticRange;
};
/**
* The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode)
*/
interface StereoPannerNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode/pan) */
readonly pan: AudioParam;
}
declare var StereoPannerNode: {
prototype: StereoPannerNode;
new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;
};
/**
* This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage)
*/
interface Storage {
/**
* Returns the number of key/value pairs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length)
*/
readonly length: number;
/**
* Removes all key/value pairs, if there are any.
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear)
*/
clear(): void;
/**
* Returns the current value associated with the given key, or null if the given key does not exist.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem)
*/
getItem(key: string): string | null;
/**
* Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key)
*/
key(index: number): string | null;
/**
* Removes the key/value pair with the given key, if a key/value pair with the given key exists.
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem)
*/
removeItem(key: string): void;
/**
* Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
*
* Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/setItem)
*/
setItem(key: string, value: string): void;
[name: string]: any;
}
declare var Storage: {
prototype: Storage;
new(): Storage;
};
/**
* A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent)
*/
interface StorageEvent extends Event {
/**
* Returns the key of the storage item being changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/key)
*/
readonly key: string | null;
/**
* Returns the new value of the key of the storage item whose value is being changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/newValue)
*/
readonly newValue: string | null;
/**
* Returns the old value of the key of the storage item whose value is being changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/oldValue)
*/
readonly oldValue: string | null;
/**
* Returns the Storage object that was affected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/storageArea)
*/
readonly storageArea: Storage | null;
/**
* Returns the URL of the document whose storage item changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/url)
*/
readonly url: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/initStorageEvent)
*/
initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;
}
declare var StorageEvent: {
prototype: StorageEvent;
new(type: string, eventInitDict?: StorageEventInit): StorageEvent;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)
*/
interface StorageManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate) */
estimate(): Promise<StorageEstimate>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory) */
getDirectory(): Promise<FileSystemDirectoryHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persist) */
persist(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) */
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
/** @deprecated */
interface StyleMedia {
type: string;
matchMedium(mediaquery: string): boolean;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap) */
interface StylePropertyMap extends StylePropertyMapReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/append) */
append(property: string, ...values: (CSSStyleValue | string)[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/clear) */
clear(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/delete) */
delete(property: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/set) */
set(property: string, ...values: (CSSStyleValue | string)[]): void;
}
declare var StylePropertyMap: {
prototype: StylePropertyMap;
new(): StylePropertyMap;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) */
interface StylePropertyMapReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) */
readonly size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get) */
get(property: string): undefined | CSSStyleValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) */
getAll(property: string): CSSStyleValue[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) */
has(property: string): boolean;
forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void;
}
declare var StylePropertyMapReadOnly: {
prototype: StylePropertyMapReadOnly;
new(): StylePropertyMapReadOnly;
};
/**
* A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet)
*/
interface StyleSheet {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/disabled) */
disabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/href) */
readonly href: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/media) */
readonly media: MediaList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode) */
readonly ownerNode: Element | ProcessingInstruction | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet) */
readonly parentStyleSheet: CSSStyleSheet | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/title) */
readonly title: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/type) */
readonly type: string;
}
declare var StyleSheet: {
prototype: StyleSheet;
new(): StyleSheet;
};
/**
* A list of StyleSheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList)
*/
interface StyleSheetList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/item) */
item(index: number): CSSStyleSheet | null;
[index: number]: CSSStyleSheet;
}
declare var StyleSheetList: {
prototype: StyleSheetList;
new(): StyleSheetList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent) */
interface SubmitEvent extends Event {
/**
* Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent/submitter)
*/
readonly submitter: HTMLElement | null;
}
declare var SubmitEvent: {
prototype: SubmitEvent;
new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;
};
/**
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
*/
interface SubtleCrypto {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
}
declare var SubtleCrypto: {
prototype: SubtleCrypto;
new(): SubtleCrypto;
};
/**
* The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text)
*/
interface Text extends CharacterData, Slottable {
/**
* Returns the combined data of all direct Text node siblings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/wholeText)
*/
readonly wholeText: string;
/**
* Splits data at the given offset and returns the remainder as Text node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/splitText)
*/
splitText(offset: number): Text;
}
declare var Text: {
prototype: Text;
new(data?: string): Text;
};
/**
* A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
*/
interface TextDecoder extends TextDecoderCommon {
/**
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
*
* \`\`\`
* var string = "", decoder = new TextDecoder(encoding), buffer;
* while(buffer = next_chunk()) {
* string += decoder.decode(buffer, {stream:true});
* }
* string += decoder.decode(); // end-of-queue
* \`\`\`
*
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
*/
decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
}
declare var TextDecoder: {
prototype: TextDecoder;
new(label?: string, options?: TextDecoderOptions): TextDecoder;
};
interface TextDecoderCommon {
/**
* Returns encoding's name, lowercased.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding)
*/
readonly encoding: string;
/**
* Returns true if error mode is "fatal", otherwise false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal)
*/
readonly fatal: boolean;
/**
* Returns the value of ignore BOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM)
*/
readonly ignoreBOM: boolean;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
readonly readable: ReadableStream<string>;
readonly writable: WritableStream<BufferSource>;
}
declare var TextDecoderStream: {
prototype: TextDecoderStream;
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
};
/**
* TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
*/
interface TextEncoder extends TextEncoderCommon {
/**
* Returns the result of running UTF-8's encoder.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
*/
encode(input?: string): Uint8Array;
/**
* Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
*/
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
}
declare var TextEncoder: {
prototype: TextEncoder;
new(): TextEncoder;
};
interface TextEncoderCommon {
/**
* Returns "utf-8".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)
*/
readonly encoding: string;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
readonly readable: ReadableStream<Uint8Array>;
readonly writable: WritableStream<string>;
}
declare var TextEncoderStream: {
prototype: TextEncoderStream;
new(): TextEncoderStream;
};
/**
* The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)
*/
interface TextMetrics {
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)
*/
readonly actualBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)
*/
readonly actualBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)
*/
readonly actualBoundingBoxLeft: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)
*/
readonly actualBoundingBoxRight: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)
*/
readonly alphabeticBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)
*/
readonly emHeightAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)
*/
readonly emHeightDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)
*/
readonly fontBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)
*/
readonly fontBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)
*/
readonly hangingBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)
*/
readonly ideographicBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width)
*/
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
interface TextTrackEventMap {
"cuechange": Event;
}
/**
* This interface also inherits properties from EventTarget.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack)
*/
interface TextTrack extends EventTarget {
/**
* Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/activeCues)
*/
readonly activeCues: TextTrackCueList | null;
/**
* Returns the text track list of cues, as a TextTrackCueList object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cues)
*/
readonly cues: TextTrackCueList | null;
/**
* Returns the ID of the given track.
*
* For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method.
*
* For TextTrack objects corresponding to track elements, this is the ID of the track element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/id)
*/
readonly id: string;
/**
* Returns the text track in-band metadata track dispatch type string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/inBandMetadataTrackDispatchType)
*/
readonly inBandMetadataTrackDispatchType: string;
/**
* Returns the text track kind string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/kind)
*/
readonly kind: TextTrackKind;
/**
* Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/label)
*/
readonly label: string;
/**
* Returns the text track language string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/language)
*/
readonly language: string;
/**
* Returns the text track mode, represented by a string from the following list:
*
* Can be set, to change the mode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/mode)
*/
mode: TextTrackMode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cuechange_event) */
oncuechange: ((this: TextTrack, ev: Event) => any) | null;
/**
* Adds the given cue to textTrack's text track list of cues.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/addCue)
*/
addCue(cue: TextTrackCue): void;
/**
* Removes the given cue from textTrack's text track list of cues.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/removeCue)
*/
removeCue(cue: TextTrackCue): void;
addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var TextTrack: {
prototype: TextTrack;
new(): TextTrack;
};
interface TextTrackCueEventMap {
"enter": Event;
"exit": Event;
}
/**
* TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
*/
interface TextTrackCue extends EventTarget {
/**
* Returns the text track cue end time, in seconds.
*
* Can be set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/endTime)
*/
endTime: number;
/**
* Returns the text track cue identifier.
*
* Can be set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/id)
*/
id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/enter_event) */
onenter: ((this: TextTrackCue, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/exit_event) */
onexit: ((this: TextTrackCue, ev: Event) => any) | null;
/**
* Returns true if the text track cue pause-on-exit flag is set, false otherwise.
*
* Can be set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/pauseOnExit)
*/
pauseOnExit: boolean;
/**
* Returns the text track cue start time, in seconds.
*
* Can be set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/startTime)
*/
startTime: number;
/**
* Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/track)
*/
readonly track: TextTrack | null;
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var TextTrackCue: {
prototype: TextTrackCue;
new(): TextTrackCue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList) */
interface TextTrackCueList {
/**
* Returns the number of cues in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/length)
*/
readonly length: number;
/**
* Returns the first text track cue (in text track cue order) with text track cue identifier id.
*
* Returns null if none of the cues have the given identifier or if the argument is the empty string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/getCueById)
*/
getCueById(id: string): TextTrackCue | null;
[index: number]: TextTrackCue;
}
declare var TextTrackCueList: {
prototype: TextTrackCueList;
new(): TextTrackCueList;
};
interface TextTrackListEventMap {
"addtrack": TrackEvent;
"change": Event;
"removetrack": TrackEvent;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList) */
interface TextTrackList extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/addtrack_event) */
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/change_event) */
onchange: ((this: TextTrackList, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/removetrack_event) */
onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/getTrackById) */
getTrackById(id: string): TextTrack | null;
addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: TextTrack;
}
declare var TextTrackList: {
prototype: TextTrackList;
new(): TextTrackList;
};
/**
* Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video>\xA0elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges)
*/
interface TimeRanges {
/**
* Returns the number of ranges in the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/length)
*/
readonly length: number;
/**
* Returns the time for the end of the range with the given index.
*
* Throws an "IndexSizeError" DOMException if the index is out of range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/end)
*/
end(index: number): number;
/**
* Returns the time for the start of the range with the given index.
*
* Throws an "IndexSizeError" DOMException if the index is out of range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/start)
*/
start(index: number): number;
}
declare var TimeRanges: {
prototype: TimeRanges;
new(): TimeRanges;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
interface ToggleEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
readonly newState: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
readonly oldState: string;
}
declare var ToggleEvent: {
prototype: ToggleEvent;
new(type: string, eventInitDict?: ToggleEventInit): ToggleEvent;
};
/**
* A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch)
*/
interface Touch {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientX) */
readonly clientX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientY) */
readonly clientY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/force) */
readonly force: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/identifier) */
readonly identifier: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageX) */
readonly pageX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageY) */
readonly pageY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusX) */
readonly radiusX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusY) */
readonly radiusY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/rotationAngle) */
readonly rotationAngle: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenX) */
readonly screenX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenY) */
readonly screenY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/target) */
readonly target: EventTarget;
}
declare var Touch: {
prototype: Touch;
new(touchInitDict: TouchInit): Touch;
};
/**
* An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent)
*/
interface TouchEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/altKey) */
readonly altKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/changedTouches) */
readonly changedTouches: TouchList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/ctrlKey) */
readonly ctrlKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/metaKey) */
readonly metaKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/shiftKey) */
readonly shiftKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/targetTouches) */
readonly targetTouches: TouchList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/touches) */
readonly touches: TouchList;
}
declare var TouchEvent: {
prototype: TouchEvent;
new(type: string, eventInitDict?: TouchEventInit): TouchEvent;
};
/**
* A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList)
*/
interface TouchList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/item) */
item(index: number): Touch | null;
[index: number]: Touch;
}
declare var TouchList: {
prototype: TouchList;
new(): TouchList;
};
/**
* The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent)
*/
interface TrackEvent extends Event {
/**
* Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent/track)
*/
readonly track: TextTrack | null;
}
declare var TrackEvent: {
prototype: TrackEvent;
new(type: string, eventInitDict?: TrackEventInit): TrackEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */
interface TransformStream<I = any, O = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */
readonly readable: ReadableStream<O>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */
readonly writable: WritableStream<I>;
}
declare var TransformStream: {
prototype: TransformStream;
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
interface TransformStreamDefaultController<O = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
enqueue(chunk?: O): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */
error(reason?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/**
* Events providing information related to transitions.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent)
*/
interface TransitionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/elapsedTime) */
readonly elapsedTime: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/propertyName) */
readonly propertyName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/pseudoElement) */
readonly pseudoElement: string;
}
declare var TransitionEvent: {
prototype: TransitionEvent;
new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;
};
/**
* The nodes of a document subtree and a position within them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker)
*/
interface TreeWalker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/currentNode) */
currentNode: Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/filter) */
readonly filter: NodeFilter | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/root) */
readonly root: Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/whatToShow) */
readonly whatToShow: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/firstChild) */
firstChild(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/lastChild) */
lastChild(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextNode) */
nextNode(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextSibling) */
nextSibling(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/parentNode) */
parentNode(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousNode) */
previousNode(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousSibling) */
previousSibling(): Node | null;
}
declare var TreeWalker: {
prototype: TreeWalker;
new(): TreeWalker;
};
/**
* Simple user interface events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent)
*/
interface UIEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/detail) */
readonly detail: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/view) */
readonly view: Window | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/which)
*/
readonly which: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/initUIEvent)
*/
initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;
}
declare var UIEvent: {
prototype: UIEvent;
new(type: string, eventInitDict?: UIEventInit): UIEvent;
};
/**
* The URL\xA0interface represents an object providing static methods used for creating object URLs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
*/
interface URL {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */
hash: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */
host: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */
hostname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */
href: string;
toString(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */
password: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */
pathname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */
port: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */
protocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */
search: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */
readonly searchParams: URLSearchParams;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */
username: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */
toJSON(): string;
}
declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
canParse(url: string | URL, base?: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
createObjectURL(obj: Blob | MediaSource): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
revokeObjectURL(url: string): void;
};
type webkitURL = URL;
declare var webkitURL: typeof URL;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
interface URLSearchParams {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */
readonly size: number;
/**
* Appends a specified key/value pair as a new search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)
*/
append(name: string, value: string): void;
/**
* Deletes the given search parameter, and its associated value, from the list of all search parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
*/
delete(name: string, value?: string): void;
/**
* Returns the first value associated to the given search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
*/
get(name: string): string | null;
/**
* Returns all the values association with a given search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
*/
getAll(name: string): string[];
/**
* Returns a Boolean indicating if such a search parameter exists.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
*/
has(name: string, value?: string): boolean;
/**
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
*/
set(name: string, value: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */
sort(): void;
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
toString(): string;
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
}
declare var URLSearchParams: {
prototype: URLSearchParams;
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation) */
interface UserActivation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */
readonly hasBeenActive: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */
readonly isActive: boolean;
}
declare var UserActivation: {
prototype: UserActivation;
new(): UserActivation;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue) */
interface VTTCue extends TextTrackCue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/align) */
align: AlignSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/line) */
line: LineAndPositionSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/lineAlign) */
lineAlign: LineAlignSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/position) */
position: LineAndPositionSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/positionAlign) */
positionAlign: PositionAlignSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/region) */
region: VTTRegion | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/size) */
size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/snapToLines) */
snapToLines: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/text) */
text: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/vertical) */
vertical: DirectionSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/getCueAsHTML) */
getCueAsHTML(): DocumentFragment;
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VTTCue: {
prototype: VTTCue;
new(startTime: number, endTime: number, text: string): VTTCue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */
interface VTTRegion {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */
id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */
lines: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */
regionAnchorX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */
regionAnchorY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */
scroll: ScrollSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */
viewportAnchorX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */
viewportAnchorY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */
width: number;
}
declare var VTTRegion: {
prototype: VTTRegion;
new(): VTTRegion;
};
/**
* The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState)
*/
interface ValidityState {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput) */
readonly badInput: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/customError) */
readonly customError: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch) */
readonly patternMismatch: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeOverflow) */
readonly rangeOverflow: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeUnderflow) */
readonly rangeUnderflow: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/stepMismatch) */
readonly stepMismatch: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooLong) */
readonly tooLong: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooShort) */
readonly tooShort: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch) */
readonly typeMismatch: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valid) */
readonly valid: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing) */
readonly valueMissing: boolean;
}
declare var ValidityState: {
prototype: ValidityState;
new(): ValidityState;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) */
interface VideoColorSpace {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) */
readonly fullRange: boolean | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) */
readonly matrix: VideoMatrixCoefficients | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) */
readonly primaries: VideoColorPrimaries | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) */
readonly transfer: VideoTransferCharacteristics | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) */
toJSON(): VideoColorSpaceInit;
}
declare var VideoColorSpace: {
prototype: VideoColorSpace;
new(init?: VideoColorSpaceInit): VideoColorSpace;
};
interface VideoDecoderEventMap {
"dequeue": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)
*/
interface VideoDecoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */
readonly decodeQueueSize: number;
ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */
readonly state: CodecState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure) */
configure(config: VideoDecoderConfig): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode) */
decode(chunk: EncodedVideoChunk): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush) */
flush(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset) */
reset(): void;
addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VideoDecoder: {
prototype: VideoDecoder;
new(init: VideoDecoderInit): VideoDecoder;
isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;
};
interface VideoEncoderEventMap {
"dequeue": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)
*/
interface VideoEncoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */
readonly encodeQueueSize: number;
ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */
readonly state: CodecState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure) */
configure(config: VideoEncoderConfig): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */
encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;
flush(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */
reset(): void;
addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VideoEncoder: {
prototype: VideoEncoder;
new(init: VideoEncoderInit): VideoEncoder;
isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame) */
interface VideoFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) */
readonly codedHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) */
readonly codedRect: DOMRectReadOnly | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) */
readonly codedWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) */
readonly colorSpace: VideoColorSpace;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) */
readonly displayHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) */
readonly displayWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) */
readonly duration: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) */
readonly format: VideoPixelFormat | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) */
readonly visibleRect: DOMRectReadOnly | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) */
allocationSize(options?: VideoFrameCopyToOptions): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) */
clone(): VideoFrame;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */
close(): void;
copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
}
declare var VideoFrame: {
prototype: VideoFrame;
new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;
new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame;
};
/**
* Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality)
*/
interface VideoPlaybackQuality {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/corruptedVideoFrames)
*/
readonly corruptedVideoFrames: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/creationTime) */
readonly creationTime: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/droppedVideoFrames) */
readonly droppedVideoFrames: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/totalVideoFrames) */
readonly totalVideoFrames: number;
}
declare var VideoPlaybackQuality: {
prototype: VideoPlaybackQuality;
new(): VideoPlaybackQuality;
};
interface VisualViewportEventMap {
"resize": Event;
"scroll": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport) */
interface VisualViewport extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetLeft) */
readonly offsetLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetTop) */
readonly offsetTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/resize_event) */
onresize: ((this: VisualViewport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */
onscroll: ((this: VisualViewport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageLeft) */
readonly pageLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageTop) */
readonly pageTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scale) */
readonly scale: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/width) */
readonly width: number;
addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VisualViewport: {
prototype: VisualViewport;
new(): VisualViewport;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */
interface WEBGL_color_buffer_float {
readonly RGBA32F_EXT: 0x8814;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc) */
interface WEBGL_compressed_texture_astc {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles) */
getSupportedProfiles(): string[];
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;
readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;
readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;
readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;
readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;
readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;
readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;
readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;
readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;
readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;
readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;
readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;
readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc) */
interface WEBGL_compressed_texture_etc {
readonly COMPRESSED_R11_EAC: 0x9270;
readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;
readonly COMPRESSED_RG11_EAC: 0x9272;
readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;
readonly COMPRESSED_RGB8_ETC2: 0x9274;
readonly COMPRESSED_SRGB8_ETC2: 0x9275;
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;
readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1) */
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc) */
interface WEBGL_compressed_texture_pvrtc {
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00;
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01;
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02;
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03;
}
/**
* The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc)
*/
interface WEBGL_compressed_texture_s3tc {
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb) */
interface WEBGL_compressed_texture_s3tc_srgb {
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;
}
/**
* The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info)
*/
interface WEBGL_debug_renderer_info {
readonly UNMASKED_VENDOR_WEBGL: 0x9245;
readonly UNMASKED_RENDERER_WEBGL: 0x9246;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders) */
interface WEBGL_debug_shaders {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource) */
getTranslatedShaderSource(shader: WebGLShader): string;
}
/**
* The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture)
*/
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers) */
interface WEBGL_draw_buffers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
drawBuffersWEBGL(buffers: GLenum[]): void;
readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;
readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;
readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;
readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;
readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;
readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;
readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;
readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;
readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;
readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;
readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;
readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;
readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;
readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;
readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;
readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;
readonly DRAW_BUFFER0_WEBGL: 0x8825;
readonly DRAW_BUFFER1_WEBGL: 0x8826;
readonly DRAW_BUFFER2_WEBGL: 0x8827;
readonly DRAW_BUFFER3_WEBGL: 0x8828;
readonly DRAW_BUFFER4_WEBGL: 0x8829;
readonly DRAW_BUFFER5_WEBGL: 0x882A;
readonly DRAW_BUFFER6_WEBGL: 0x882B;
readonly DRAW_BUFFER7_WEBGL: 0x882C;
readonly DRAW_BUFFER8_WEBGL: 0x882D;
readonly DRAW_BUFFER9_WEBGL: 0x882E;
readonly DRAW_BUFFER10_WEBGL: 0x882F;
readonly DRAW_BUFFER11_WEBGL: 0x8830;
readonly DRAW_BUFFER12_WEBGL: 0x8831;
readonly DRAW_BUFFER13_WEBGL: 0x8832;
readonly DRAW_BUFFER14_WEBGL: 0x8833;
readonly DRAW_BUFFER15_WEBGL: 0x8834;
readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;
readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context) */
interface WEBGL_lose_context {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */
loseContext(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */
restoreContext(): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) */
interface WEBGL_multi_draw {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock)
*/
interface WakeLock {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock/request) */
request(type?: WakeLockType): Promise<WakeLockSentinel>;
}
declare var WakeLock: {
prototype: WakeLock;
new(): WakeLock;
};
interface WakeLockSentinelEventMap {
"release": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel)
*/
interface WakeLockSentinel extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release_event) */
onrelease: ((this: WakeLockSentinel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/released) */
readonly released: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/type) */
readonly type: WakeLockType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release) */
release(): Promise<void>;
addEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WakeLockSentinel: {
prototype: WakeLockSentinel;
new(): WakeLockSentinel;
};
/**
* A WaveShaperNode always has exactly one input and one output.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode)
*/
interface WaveShaperNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/curve) */
curve: Float32Array | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/oversample) */
oversample: OverSampleType;
}
declare var WaveShaperNode: {
prototype: WaveShaperNode;
new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
declare var WebGL2RenderingContext: {
prototype: WebGL2RenderingContext;
new(): WebGL2RenderingContext;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGBA8: 0x8058;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGL2RenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */
beginQuery(target: GLenum, query: WebGLQuery): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */
beginTransformFeedback(primitiveMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */
bindVertexArray(array: WebGLVertexArrayObject | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */
createQuery(): WebGLQuery | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */
createSampler(): WebGLSampler | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */
createTransformFeedback(): WebGLTransformFeedback | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */
createVertexArray(): WebGLVertexArrayObject | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */
deleteQuery(query: WebGLQuery | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */
deleteSampler(sampler: WebGLSampler | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */
deleteSync(sync: WebGLSync | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
drawBuffers(buffers: GLenum[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */
endQuery(target: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */
endTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */
getFragDataLocation(program: WebGLProgram, name: string): GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */
getIndexedParameter(target: GLenum, index: GLuint): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */
isQuery(query: WebGLQuery | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */
isSampler(sampler: WebGLSampler | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */
isSync(sync: WebGLSync | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */
pauseTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */
readBuffer(src: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */
resumeTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4iv(index: GLuint, values: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
}
interface WebGL2RenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
}
/**
* Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo)
*/
interface WebGLActiveInfo {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size) */
readonly size: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type) */
readonly type: GLenum;
}
declare var WebGLActiveInfo: {
prototype: WebGLActiveInfo;
new(): WebGLActiveInfo;
};
/**
* Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer)
*/
interface WebGLBuffer {
}
declare var WebGLBuffer: {
prototype: WebGLBuffer;
new(): WebGLBuffer;
};
/**
* The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)
*/
interface WebGLContextEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) */
readonly statusMessage: string;
}
declare var WebGLContextEvent: {
prototype: WebGLContextEvent;
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
};
/**
* Part of the WebGL API and represents a collection of buffers that serve as a rendering destination.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer)
*/
interface WebGLFramebuffer {
}
declare var WebGLFramebuffer: {
prototype: WebGLFramebuffer;
new(): WebGLFramebuffer;
};
/**
* The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram)
*/
interface WebGLProgram {
}
declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery) */
interface WebGLQuery {
}
declare var WebGLQuery: {
prototype: WebGLQuery;
new(): WebGLQuery;
};
/**
* Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)
*/
interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
prototype: WebGLRenderbuffer;
new(): WebGLRenderbuffer;
};
/**
* Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext)
*/
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
}
declare var WebGLRenderingContext: {
prototype: WebGLRenderingContext;
new(): WebGLRenderingContext;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGBA8: 0x8058;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGLRenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas) */
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
drawingBufferColorSpace: PredefinedColorSpace;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */
readonly drawingBufferHeight: GLsizei;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */
readonly drawingBufferWidth: GLsizei;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */
activeTexture(texture: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */
attachShader(program: WebGLProgram, shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */
blendEquation(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */
checkFramebufferStatus(target: GLenum): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */
clear(mask: GLbitfield): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */
clearDepth(depth: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */
clearStencil(s: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */
compileShader(shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */
createBuffer(): WebGLBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */
createFramebuffer(): WebGLFramebuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */
createProgram(): WebGLProgram | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */
createRenderbuffer(): WebGLRenderbuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */
createShader(type: GLenum): WebGLShader | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */
createTexture(): WebGLTexture | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */
cullFace(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */
deleteBuffer(buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */
deleteProgram(program: WebGLProgram | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */
deleteShader(shader: WebGLShader | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */
deleteTexture(texture: WebGLTexture | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */
depthFunc(func: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */
depthMask(flag: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */
depthRange(zNear: GLclampf, zFar: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */
detachShader(program: WebGLProgram, shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */
disable(cap: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */
disableVertexAttribArray(index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */
enable(cap: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */
enableVertexAttribArray(index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */
finish(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */
flush(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */
frontFace(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */
generateMipmap(target: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */
getAttribLocation(program: WebGLProgram, name: string): GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */
getBufferParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */
getContextAttributes(): WebGLContextAttributes | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
getError(): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
getExtension(name: string): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */
getParameter(pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */
getProgramInfoLog(program: WebGLProgram): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */
getShaderInfoLog(shader: WebGLShader): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */
getShaderSource(shader: WebGLShader): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */
getSupportedExtensions(): string[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */
getTexParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */
getVertexAttrib(index: GLuint, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */
hint(target: GLenum, mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */
isBuffer(buffer: WebGLBuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */
isContextLost(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */
isEnabled(cap: GLenum): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */
isProgram(program: WebGLProgram | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */
isShader(shader: WebGLShader | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */
isTexture(texture: WebGLTexture | null): GLboolean;
lineWidth(width: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */
linkProgram(program: WebGLProgram): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */
polygonOffset(factor: GLfloat, units: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */
sampleCoverage(value: GLclampf, invert: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */
shaderSource(shader: WebGLShader, source: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */
stencilMask(mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */
useProgram(program: WebGLProgram | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */
validateProgram(program: WebGLProgram): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1f(index: GLuint, x: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */
viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGBA8: 0x8058;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
}
interface WebGLRenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler) */
interface WebGLSampler {
}
declare var WebGLSampler: {
prototype: WebGLSampler;
new(): WebGLSampler;
};
/**
* The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)
*/
interface WebGLShader {
}
declare var WebGLShader: {
prototype: WebGLShader;
new(): WebGLShader;
};
/**
* Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat)
*/
interface WebGLShaderPrecisionFormat {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision) */
readonly precision: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax) */
readonly rangeMax: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin) */
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync) */
interface WebGLSync {
}
declare var WebGLSync: {
prototype: WebGLSync;
new(): WebGLSync;
};
/**
* Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture)
*/
interface WebGLTexture {
}
declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback) */
interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
prototype: WebGLTransformFeedback;
new(): WebGLTransformFeedback;
};
/**
* Part of the WebGL API and represents the location of a uniform variable in a shader program.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation)
*/
interface WebGLUniformLocation {
}
declare var WebGLUniformLocation: {
prototype: WebGLUniformLocation;
new(): WebGLUniformLocation;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */
interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObjectOES) */
interface WebGLVertexArrayObjectOES {
}
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/**
* Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
*/
interface WebSocket extends EventTarget {
/**
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
*
* Can be set, to change how binary data is returned. The default is "blob".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)
*/
binaryType: BinaryType;
/**
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
*
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)
*/
readonly bufferedAmount: number;
/**
* Returns the extensions selected by the server, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)
*/
readonly extensions: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */
onerror: ((this: WebSocket, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */
onopen: ((this: WebSocket, ev: Event) => any) | null;
/**
* Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)
*/
readonly protocol: string;
/**
* Returns the state of the WebSocket object's connection. It can have the values described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
*/
readonly readyState: number;
/**
* Returns the URL that was used to establish the WebSocket connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)
*/
readonly url: string;
/**
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
*/
close(code?: number, reason?: string): void;
/**
* Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
*/
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WebSocket: {
prototype: WebSocket;
new(url: string | URL, protocols?: string | string[]): WebSocket;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)
*/
interface WebTransport {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */
readonly closed: Promise<WebTransportCloseInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */
readonly datagrams: WebTransportDatagramDuplexStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */
readonly incomingBidirectionalStreams: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */
readonly incomingUnidirectionalStreams: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */
readonly ready: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */
close(closeInfo?: WebTransportCloseInfo): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */
createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
}
declare var WebTransport: {
prototype: WebTransport;
new(url: string | URL, options?: WebTransportOptions): WebTransport;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
*/
interface WebTransportBidirectionalStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */
readonly writable: WritableStream;
}
declare var WebTransportBidirectionalStream: {
prototype: WebTransportBidirectionalStream;
new(): WebTransportBidirectionalStream;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
*/
interface WebTransportDatagramDuplexStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */
incomingHighWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */
incomingMaxAge: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */
readonly maxDatagramSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */
outgoingHighWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */
outgoingMaxAge: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */
readonly writable: WritableStream;
}
declare var WebTransportDatagramDuplexStream: {
prototype: WebTransportDatagramDuplexStream;
new(): WebTransportDatagramDuplexStream;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)
*/
interface WebTransportError extends DOMException {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */
readonly source: WebTransportErrorSource;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */
readonly streamErrorCode: number | null;
}
declare var WebTransportError: {
prototype: WebTransportError;
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
};
/**
* Events that occur due to the user moving a mouse wheel or similar input device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent)
*/
interface WheelEvent extends MouseEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaMode) */
readonly deltaMode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaX) */
readonly deltaX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaY) */
readonly deltaY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaZ) */
readonly deltaZ: number;
readonly DOM_DELTA_PIXEL: 0x00;
readonly DOM_DELTA_LINE: 0x01;
readonly DOM_DELTA_PAGE: 0x02;
}
declare var WheelEvent: {
prototype: WheelEvent;
new(type: string, eventInitDict?: WheelEventInit): WheelEvent;
readonly DOM_DELTA_PIXEL: 0x00;
readonly DOM_DELTA_LINE: 0x01;
readonly DOM_DELTA_PAGE: 0x02;
};
interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
"DOMContentLoaded": Event;
"devicemotion": DeviceMotionEvent;
"deviceorientation": DeviceOrientationEvent;
"deviceorientationabsolute": DeviceOrientationEvent;
"gamepadconnected": GamepadEvent;
"gamepaddisconnected": GamepadEvent;
"orientationchange": Event;
}
/**
* A window containing a DOM document; the document property points to the DOM document loaded in that window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window)
*/
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
/**
* @deprecated This is a legacy alias of \`navigator\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)
*/
readonly clientInformation: Navigator;
/**
* Returns true if the window has been closed, false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)
*/
readonly closed: boolean;
/**
* Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)
*/
readonly customElements: CustomElementRegistry;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio) */
readonly devicePixelRatio: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document) */
readonly document: Document;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)
*/
readonly event: Event | undefined;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)
*/
readonly external: External;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement) */
readonly frameElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames) */
readonly frames: WindowProxy;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history) */
readonly history: History;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight) */
readonly innerHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth) */
readonly innerWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */
get location(): Location;
set location(href: string | Location);
/**
* Returns true if the location bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)
*/
readonly locationbar: BarProp;
/**
* Returns true if the menu bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)
*/
readonly menubar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name) */
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) */
readonly navigator: Navigator;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event)
*/
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)
*/
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event)
*/
ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event)
*/
onorientationchange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener) */
opener: any;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)
*/
readonly orientation: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight) */
readonly outerHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */
readonly outerWidth: number;
/**
* @deprecated This is a legacy alias of \`scrollX\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)
*/
readonly pageXOffset: number;
/**
* @deprecated This is a legacy alias of \`scrollY\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)
*/
readonly pageYOffset: number;
/**
* Refers to either the parent WindowProxy, or itself.
*
* It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)
*/
readonly parent: WindowProxy;
/**
* Returns true if the personal bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)
*/
readonly personalbar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen) */
readonly screen: Screen;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft) */
readonly screenLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop) */
readonly screenTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX) */
readonly screenX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY) */
readonly screenY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */
readonly scrollX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */
readonly scrollY: number;
/**
* Returns true if the scrollbars are visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)
*/
readonly scrollbars: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self) */
readonly self: Window & typeof globalThis;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis) */
readonly speechSynthesis: SpeechSynthesis;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)
*/
status: string;
/**
* Returns true if the status bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)
*/
readonly statusbar: BarProp;
/**
* Returns true if the toolbar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)
*/
readonly toolbar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */
readonly top: WindowProxy | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport) */
readonly visualViewport: VisualViewport | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */
readonly window: Window & typeof globalThis;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
alert(message?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */
blur(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
cancelIdleCallback(handle: number): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)
*/
captureEvents(): void;
/**
* Closes the window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)
*/
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm) */
confirm(message?: string): boolean;
/**
* Moves the focus to the window's browsing context, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)
*/
focus(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection) */
getSelection(): Selection | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia) */
matchMedia(query: string): MediaQueryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy) */
moveBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo) */
moveTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open) */
open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
/**
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
*
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
*
* If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
*
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage)
*/
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
postMessage(message: any, options?: WindowPostMessageOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print) */
print(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt) */
prompt(message?: string, _default?: string): string | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)
*/
releaseEvents(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback) */
requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy) */
resizeBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo) */
resizeTo(width: number, height: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy) */
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo) */
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* Cancels the document load.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop)
*/
stop(): void;
addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: Window;
}
declare var Window: {
prototype: Window;
new(): Window;
};
interface WindowEventHandlersEventMap {
"afterprint": Event;
"beforeprint": Event;
"beforeunload": BeforeUnloadEvent;
"gamepadconnected": GamepadEvent;
"gamepaddisconnected": GamepadEvent;
"hashchange": HashChangeEvent;
"languagechange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
"offline": Event;
"online": Event;
"pagehide": PageTransitionEvent;
"pageshow": PageTransitionEvent;
"popstate": PopStateEvent;
"rejectionhandled": PromiseRejectionEvent;
"storage": StorageEvent;
"unhandledrejection": PromiseRejectionEvent;
"unload": Event;
}
interface WindowEventHandlers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */
onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */
onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */
onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */
ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */
ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */
onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */
onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */
onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */
onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */
onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */
ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */
onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */
onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */
onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */
onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
*/
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface WindowLocalStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */
readonly localStorage: Storage;
}
interface WindowOrWorkerGlobalScope {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
*/
readonly caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
readonly crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
readonly crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
readonly indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
readonly isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
readonly performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
}
interface WindowSessionStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */
readonly sessionStorage: Storage;
}
interface WorkerEventMap extends AbstractWorkerEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)
*/
interface Worker extends EventTarget, AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
/**
* Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* Aborts worker's associated global environment.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate)
*/
terminate(): void;
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Worker: {
prototype: Worker;
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet)
*/
interface Worklet {
/**
* Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes.
*
* The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".
*
* Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet/addModule)
*/
addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;
}
declare var Worklet: {
prototype: Worklet;
new(): Worklet;
};
/**
* This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
*/
interface WritableStream<W = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */
readonly locked: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */
abort(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */
getWriter(): WritableStreamDefaultWriter<W>;
}
declare var WritableStream: {
prototype: WritableStream;
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
};
/**
* This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
*/
interface WritableStreamDefaultController {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */
readonly signal: AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
error(e?: any): void;
}
declare var WritableStreamDefaultController: {
prototype: WritableStreamDefaultController;
new(): WritableStreamDefaultController;
};
/**
* This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
*/
interface WritableStreamDefaultWriter<W = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */
readonly closed: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */
readonly ready: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */
abort(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */
releaseLock(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */
write(chunk?: W): Promise<void>;
}
declare var WritableStreamDefaultWriter: {
prototype: WritableStreamDefaultWriter;
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
};
/**
* An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLDocument)
*/
interface XMLDocument extends Document {
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLDocument: {
prototype: XMLDocument;
new(): XMLDocument;
};
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
"readystatechange": Event;
}
/**
* Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest)
*/
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
/**
* Returns client's state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)
*/
readonly readyState: number;
/**
* Returns the response body.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)
*/
readonly response: any;
/**
* Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)
*/
readonly responseText: string;
/**
* Returns the response type.
*
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
*
* When set: setting to "document" is ignored if current global object is not a Window object.
*
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)
*/
responseType: XMLHttpRequestResponseType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL) */
readonly responseURL: string;
/**
* Returns the response as document.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseXML)
*/
readonly responseXML: Document | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status) */
readonly status: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText) */
readonly statusText: string;
/**
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)
*/
timeout: number;
/**
* Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)
*/
readonly upload: XMLHttpRequestUpload;
/**
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
*
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)
*/
withCredentials: boolean;
/**
* Cancels any network activity.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)
*/
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders) */
getAllResponseHeaders(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader) */
getResponseHeader(name: string): string | null;
/**
* Sets the request method, request URL, and synchronous flag.
*
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
*
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
*
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)
*/
open(method: string, url: string | URL): void;
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
* Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
*
* Throws an "InvalidStateError" DOMException if state is loading or done.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)
*/
overrideMimeType(mime: string): void;
/**
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)
*/
send(body?: Document | XMLHttpRequestBodyInit | null): void;
/**
* Combines a header in author request headers.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader)
*/
setRequestHeader(name: string, value: string): void;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequest: {
prototype: XMLHttpRequest;
new(): XMLHttpRequest;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
};
interface XMLHttpRequestEventTargetEventMap {
"abort": ProgressEvent<XMLHttpRequestEventTarget>;
"error": ProgressEvent<XMLHttpRequestEventTarget>;
"load": ProgressEvent<XMLHttpRequestEventTarget>;
"loadend": ProgressEvent<XMLHttpRequestEventTarget>;
"loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
"progress": ProgressEvent<XMLHttpRequestEventTarget>;
"timeout": ProgressEvent<XMLHttpRequestEventTarget>;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget) */
interface XMLHttpRequestEventTarget extends EventTarget {
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestEventTarget: {
prototype: XMLHttpRequestEventTarget;
new(): XMLHttpRequestEventTarget;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload) */
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestUpload: {
prototype: XMLHttpRequestUpload;
new(): XMLHttpRequestUpload;
};
/**
* Provides the serializeToString() method to construct an XML string representing a DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer)
*/
interface XMLSerializer {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer/serializeToString) */
serializeToString(root: Node): string;
}
declare var XMLSerializer: {
prototype: XMLSerializer;
new(): XMLSerializer;
};
/**
* The\xA0XPathEvaluator interface allows to compile and evaluate XPath expressions.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathEvaluator)
*/
interface XPathEvaluator extends XPathEvaluatorBase {
}
declare var XPathEvaluator: {
prototype: XPathEvaluator;
new(): XPathEvaluator;
};
interface XPathEvaluatorBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createExpression) */
createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNSResolver) */
createNSResolver(nodeResolver: Node): Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/evaluate) */
evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;
}
/**
* This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression)
*/
interface XPathExpression {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression/evaluate) */
evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;
}
declare var XPathExpression: {
prototype: XPathExpression;
new(): XPathExpression;
};
/**
* The results generated by evaluating an XPath expression within the context of a given node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult)
*/
interface XPathResult {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/booleanValue) */
readonly booleanValue: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/invalidIteratorState) */
readonly invalidIteratorState: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/numberValue) */
readonly numberValue: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/resultType) */
readonly resultType: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/singleNodeValue) */
readonly singleNodeValue: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotLength) */
readonly snapshotLength: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/stringValue) */
readonly stringValue: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/iterateNext) */
iterateNext(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotItem) */
snapshotItem(index: number): Node | null;
readonly ANY_TYPE: 0;
readonly NUMBER_TYPE: 1;
readonly STRING_TYPE: 2;
readonly BOOLEAN_TYPE: 3;
readonly UNORDERED_NODE_ITERATOR_TYPE: 4;
readonly ORDERED_NODE_ITERATOR_TYPE: 5;
readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;
readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;
readonly ANY_UNORDERED_NODE_TYPE: 8;
readonly FIRST_ORDERED_NODE_TYPE: 9;
}
declare var XPathResult: {
prototype: XPathResult;
new(): XPathResult;
readonly ANY_TYPE: 0;
readonly NUMBER_TYPE: 1;
readonly STRING_TYPE: 2;
readonly BOOLEAN_TYPE: 3;
readonly UNORDERED_NODE_ITERATOR_TYPE: 4;
readonly ORDERED_NODE_ITERATOR_TYPE: 5;
readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;
readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;
readonly ANY_UNORDERED_NODE_TYPE: 8;
readonly FIRST_ORDERED_NODE_TYPE: 9;
};
/**
* An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor)
*/
interface XSLTProcessor {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */
clearParameters(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */
getParameter(namespaceURI: string | null, localName: string): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */
importStylesheet(style: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */
removeParameter(namespaceURI: string | null, localName: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */
reset(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */
setParameter(namespaceURI: string | null, localName: string, value: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */
transformToDocument(source: Node): Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */
transformToFragment(source: Node, output: Document): DocumentFragment;
}
declare var XSLTProcessor: {
prototype: XSLTProcessor;
new(): XSLTProcessor;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */
interface Console {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */
assert(condition?: boolean, ...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */
clear(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
count(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */
countReset(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
debug(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */
dir(item?: any, options?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */
dirxml(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */
error(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
group(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */
groupCollapsed(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */
groupEnd(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
info(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */
log(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */
table(tabularData?: any, properties?: string[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
time(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */
timeEnd(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
trace(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */
warn(...data: any[]): void;
}
declare var console: Console;
/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
declare namespace CSS {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/highlights_static) */
var highlights: HighlightRegistry;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function Hz(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function Q(value: number): CSSUnitValue;
function cap(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function ch(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cm(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqb(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqmax(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqmin(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqw(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function deg(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dpcm(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dpi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dppx(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvb(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvmax(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvmin(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvw(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function em(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/escape_static) */
function escape(ident: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function ex(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function fr(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function grad(value: number): CSSUnitValue;
function ic(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function kHz(value: number): CSSUnitValue;
function lh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvb(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvmax(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvmin(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvw(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function mm(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function ms(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function number(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function pc(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function percent(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function pt(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function px(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function rad(value: number): CSSUnitValue;
function rcap(value: number): CSSUnitValue;
function rch(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/registerProperty_static) */
function registerProperty(definition: PropertyDefinition): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function rem(value: number): CSSUnitValue;
function rex(value: number): CSSUnitValue;
function ric(value: number): CSSUnitValue;
function rlh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function s(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/supports_static) */
function supports(property: string, value: string): boolean;
function supports(conditionText: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svb(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svmax(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svmin(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svw(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function turn(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vb(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vmax(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vmin(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vw(value: number): CSSUnitValue;
}
declare namespace WebAssembly {
interface CompileError extends Error {
}
var CompileError: {
prototype: CompileError;
new(message?: string): CompileError;
(message?: string): CompileError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */
interface Global<T extends ValueType = ValueType> {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */
value: ValueTypeMap[T];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */
valueOf(): ValueTypeMap[T];
}
var Global: {
prototype: Global;
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance) */
interface Instance {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance/exports) */
readonly exports: Exports;
}
var Instance: {
prototype: Instance;
new(module: Module, importObject?: Imports): Instance;
};
interface LinkError extends Error {
}
var LinkError: {
prototype: LinkError;
new(message?: string): LinkError;
(message?: string): LinkError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory) */
interface Memory {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */
readonly buffer: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/grow) */
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module) */
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */
exports(moduleObject: Module): ModuleExportDescriptor[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError extends Error {
}
var RuntimeError: {
prototype: RuntimeError;
new(message?: string): RuntimeError;
(message?: string): RuntimeError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table) */
interface Table {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */
get(index: number): any;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */
grow(delta: number, value?: any): number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set) */
set(index: number, value?: any): void;
}
var Table: {
prototype: Table;
new(descriptor: TableDescriptor, value?: any): Table;
};
interface GlobalDescriptor<T extends ValueType = ValueType> {
mutable?: boolean;
value: T;
}
interface MemoryDescriptor {
initial: number;
maximum?: number;
shared?: boolean;
}
interface ModuleExportDescriptor {
kind: ImportExportKind;
name: string;
}
interface ModuleImportDescriptor {
kind: ImportExportKind;
module: string;
name: string;
}
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
interface ValueTypeMap {
anyfunc: Function;
externref: any;
f32: number;
f64: number;
i32: number;
i64: bigint;
v128: never;
}
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc" | "externref";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
type Imports = Record<string, ModuleImports>;
type ModuleImports = Record<string, ImportValue>;
type ValueType = keyof ValueTypeMap;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */
function compile(bytes: BufferSource): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */
function validate(bytes: BufferSource): boolean;
}
interface BlobCallback {
(blob: Blob | null): void;
}
interface CustomElementConstructor {
new (...params: any[]): HTMLElement;
}
interface DecodeErrorCallback {
(error: DOMException): void;
}
interface DecodeSuccessCallback {
(decodedData: AudioBuffer): void;
}
interface EncodedVideoChunkOutputCallback {
(chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;
}
interface ErrorCallback {
(err: DOMException): void;
}
interface FileCallback {
(file: File): void;
}
interface FileSystemEntriesCallback {
(entries: FileSystemEntry[]): void;
}
interface FileSystemEntryCallback {
(entry: FileSystemEntry): void;
}
interface FrameRequestCallback {
(time: DOMHighResTimeStamp): void;
}
interface FunctionStringCallback {
(data: string): void;
}
interface IdleRequestCallback {
(deadline: IdleDeadline): void;
}
interface IntersectionObserverCallback {
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
}
interface LockGrantedCallback {
(lock: Lock | null): any;
}
interface MediaSessionActionHandler {
(details: MediaSessionActionDetails): void;
}
interface MutationCallback {
(mutations: MutationRecord[], observer: MutationObserver): void;
}
interface NotificationPermissionCallback {
(permission: NotificationPermission): void;
}
interface OnBeforeUnloadEventHandlerNonNull {
(event: Event): string | null;
}
interface OnErrorEventHandlerNonNull {
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
}
interface PerformanceObserverCallback {
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
}
interface PositionCallback {
(position: GeolocationPosition): void;
}
interface PositionErrorCallback {
(positionError: GeolocationPositionError): void;
}
interface QueuingStrategySize<T = any> {
(chunk: T): number;
}
interface RTCPeerConnectionErrorCallback {
(error: DOMException): void;
}
interface RTCSessionDescriptionCallback {
(description: RTCSessionDescriptionInit): void;
}
interface RemotePlaybackAvailabilityCallback {
(available: boolean): void;
}
interface ReportingObserverCallback {
(reports: Report[], observer: ReportingObserver): void;
}
interface ResizeObserverCallback {
(entries: ResizeObserverEntry[], observer: ResizeObserver): void;
}
interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface TransformerStartCallback<O> {
(controller: TransformStreamDefaultController<O>): any;
}
interface TransformerTransformCallback<I, O> {
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface UnderlyingSinkAbortCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSinkCloseCallback {
(): void | PromiseLike<void>;
}
interface UnderlyingSinkStartCallback {
(controller: WritableStreamDefaultController): any;
}
interface UnderlyingSinkWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface UnderlyingSourceCancelCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSourcePullCallback<R> {
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
}
interface UnderlyingSourceStartCallback<R> {
(controller: ReadableStreamController<R>): any;
}
interface VideoFrameOutputCallback {
(output: VideoFrame): void;
}
interface VideoFrameRequestCallback {
(now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;
}
interface VoidFunction {
(): void;
}
interface WebCodecsErrorCallback {
(error: DOMException): void;
}
interface HTMLElementTagNameMap {
"a": HTMLAnchorElement;
"abbr": HTMLElement;
"address": HTMLElement;
"area": HTMLAreaElement;
"article": HTMLElement;
"aside": HTMLElement;
"audio": HTMLAudioElement;
"b": HTMLElement;
"base": HTMLBaseElement;
"bdi": HTMLElement;
"bdo": HTMLElement;
"blockquote": HTMLQuoteElement;
"body": HTMLBodyElement;
"br": HTMLBRElement;
"button": HTMLButtonElement;
"canvas": HTMLCanvasElement;
"caption": HTMLTableCaptionElement;
"cite": HTMLElement;
"code": HTMLElement;
"col": HTMLTableColElement;
"colgroup": HTMLTableColElement;
"data": HTMLDataElement;
"datalist": HTMLDataListElement;
"dd": HTMLElement;
"del": HTMLModElement;
"details": HTMLDetailsElement;
"dfn": HTMLElement;
"dialog": HTMLDialogElement;
"div": HTMLDivElement;
"dl": HTMLDListElement;
"dt": HTMLElement;
"em": HTMLElement;
"embed": HTMLEmbedElement;
"fieldset": HTMLFieldSetElement;
"figcaption": HTMLElement;
"figure": HTMLElement;
"footer": HTMLElement;
"form": HTMLFormElement;
"h1": HTMLHeadingElement;
"h2": HTMLHeadingElement;
"h3": HTMLHeadingElement;
"h4": HTMLHeadingElement;
"h5": HTMLHeadingElement;
"h6": HTMLHeadingElement;
"head": HTMLHeadElement;
"header": HTMLElement;
"hgroup": HTMLElement;
"hr": HTMLHRElement;
"html": HTMLHtmlElement;
"i": HTMLElement;
"iframe": HTMLIFrameElement;
"img": HTMLImageElement;
"input": HTMLInputElement;
"ins": HTMLModElement;
"kbd": HTMLElement;
"label": HTMLLabelElement;
"legend": HTMLLegendElement;
"li": HTMLLIElement;
"link": HTMLLinkElement;
"main": HTMLElement;
"map": HTMLMapElement;
"mark": HTMLElement;
"menu": HTMLMenuElement;
"meta": HTMLMetaElement;
"meter": HTMLMeterElement;
"nav": HTMLElement;
"noscript": HTMLElement;
"object": HTMLObjectElement;
"ol": HTMLOListElement;
"optgroup": HTMLOptGroupElement;
"option": HTMLOptionElement;
"output": HTMLOutputElement;
"p": HTMLParagraphElement;
"picture": HTMLPictureElement;
"pre": HTMLPreElement;
"progress": HTMLProgressElement;
"q": HTMLQuoteElement;
"rp": HTMLElement;
"rt": HTMLElement;
"ruby": HTMLElement;
"s": HTMLElement;
"samp": HTMLElement;
"script": HTMLScriptElement;
"search": HTMLElement;
"section": HTMLElement;
"select": HTMLSelectElement;
"slot": HTMLSlotElement;
"small": HTMLElement;
"source": HTMLSourceElement;
"span": HTMLSpanElement;
"strong": HTMLElement;
"style": HTMLStyleElement;
"sub": HTMLElement;
"summary": HTMLElement;
"sup": HTMLElement;
"table": HTMLTableElement;
"tbody": HTMLTableSectionElement;
"td": HTMLTableCellElement;
"template": HTMLTemplateElement;
"textarea": HTMLTextAreaElement;
"tfoot": HTMLTableSectionElement;
"th": HTMLTableCellElement;
"thead": HTMLTableSectionElement;
"time": HTMLTimeElement;
"title": HTMLTitleElement;
"tr": HTMLTableRowElement;
"track": HTMLTrackElement;
"u": HTMLElement;
"ul": HTMLUListElement;
"var": HTMLElement;
"video": HTMLVideoElement;
"wbr": HTMLElement;
}
interface HTMLElementDeprecatedTagNameMap {
"acronym": HTMLElement;
"applet": HTMLUnknownElement;
"basefont": HTMLElement;
"bgsound": HTMLUnknownElement;
"big": HTMLElement;
"blink": HTMLUnknownElement;
"center": HTMLElement;
"dir": HTMLDirectoryElement;
"font": HTMLFontElement;
"frame": HTMLFrameElement;
"frameset": HTMLFrameSetElement;
"isindex": HTMLUnknownElement;
"keygen": HTMLUnknownElement;
"listing": HTMLPreElement;
"marquee": HTMLMarqueeElement;
"menuitem": HTMLElement;
"multicol": HTMLUnknownElement;
"nextid": HTMLUnknownElement;
"nobr": HTMLElement;
"noembed": HTMLElement;
"noframes": HTMLElement;
"param": HTMLParamElement;
"plaintext": HTMLElement;
"rb": HTMLElement;
"rtc": HTMLElement;
"spacer": HTMLUnknownElement;
"strike": HTMLElement;
"tt": HTMLElement;
"xmp": HTMLPreElement;
}
interface SVGElementTagNameMap {
"a": SVGAElement;
"animate": SVGAnimateElement;
"animateMotion": SVGAnimateMotionElement;
"animateTransform": SVGAnimateTransformElement;
"circle": SVGCircleElement;
"clipPath": SVGClipPathElement;
"defs": SVGDefsElement;
"desc": SVGDescElement;
"ellipse": SVGEllipseElement;
"feBlend": SVGFEBlendElement;
"feColorMatrix": SVGFEColorMatrixElement;
"feComponentTransfer": SVGFEComponentTransferElement;
"feComposite": SVGFECompositeElement;
"feConvolveMatrix": SVGFEConvolveMatrixElement;
"feDiffuseLighting": SVGFEDiffuseLightingElement;
"feDisplacementMap": SVGFEDisplacementMapElement;
"feDistantLight": SVGFEDistantLightElement;
"feDropShadow": SVGFEDropShadowElement;
"feFlood": SVGFEFloodElement;
"feFuncA": SVGFEFuncAElement;
"feFuncB": SVGFEFuncBElement;
"feFuncG": SVGFEFuncGElement;
"feFuncR": SVGFEFuncRElement;
"feGaussianBlur": SVGFEGaussianBlurElement;
"feImage": SVGFEImageElement;
"feMerge": SVGFEMergeElement;
"feMergeNode": SVGFEMergeNodeElement;
"feMorphology": SVGFEMorphologyElement;
"feOffset": SVGFEOffsetElement;
"fePointLight": SVGFEPointLightElement;
"feSpecularLighting": SVGFESpecularLightingElement;
"feSpotLight": SVGFESpotLightElement;
"feTile": SVGFETileElement;
"feTurbulence": SVGFETurbulenceElement;
"filter": SVGFilterElement;
"foreignObject": SVGForeignObjectElement;
"g": SVGGElement;
"image": SVGImageElement;
"line": SVGLineElement;
"linearGradient": SVGLinearGradientElement;
"marker": SVGMarkerElement;
"mask": SVGMaskElement;
"metadata": SVGMetadataElement;
"mpath": SVGMPathElement;
"path": SVGPathElement;
"pattern": SVGPatternElement;
"polygon": SVGPolygonElement;
"polyline": SVGPolylineElement;
"radialGradient": SVGRadialGradientElement;
"rect": SVGRectElement;
"script": SVGScriptElement;
"set": SVGSetElement;
"stop": SVGStopElement;
"style": SVGStyleElement;
"svg": SVGSVGElement;
"switch": SVGSwitchElement;
"symbol": SVGSymbolElement;
"text": SVGTextElement;
"textPath": SVGTextPathElement;
"title": SVGTitleElement;
"tspan": SVGTSpanElement;
"use": SVGUseElement;
"view": SVGViewElement;
}
interface MathMLElementTagNameMap {
"annotation": MathMLElement;
"annotation-xml": MathMLElement;
"maction": MathMLElement;
"math": MathMLElement;
"merror": MathMLElement;
"mfrac": MathMLElement;
"mi": MathMLElement;
"mmultiscripts": MathMLElement;
"mn": MathMLElement;
"mo": MathMLElement;
"mover": MathMLElement;
"mpadded": MathMLElement;
"mphantom": MathMLElement;
"mprescripts": MathMLElement;
"mroot": MathMLElement;
"mrow": MathMLElement;
"ms": MathMLElement;
"mspace": MathMLElement;
"msqrt": MathMLElement;
"mstyle": MathMLElement;
"msub": MathMLElement;
"msubsup": MathMLElement;
"msup": MathMLElement;
"mtable": MathMLElement;
"mtd": MathMLElement;
"mtext": MathMLElement;
"mtr": MathMLElement;
"munder": MathMLElement;
"munderover": MathMLElement;
"semantics": MathMLElement;
}
/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */
type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;
declare var Audio: {
new(src?: string): HTMLAudioElement;
};
declare var Image: {
new(width?: number, height?: number): HTMLImageElement;
};
declare var Option: {
new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
};
/**
* @deprecated This is a legacy alias of \`navigator\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)
*/
declare var clientInformation: Navigator;
/**
* Returns true if the window has been closed, false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)
*/
declare var closed: boolean;
/**
* Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)
*/
declare var customElements: CustomElementRegistry;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio) */
declare var devicePixelRatio: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document) */
declare var document: Document;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)
*/
declare var event: Event | undefined;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)
*/
declare var external: External;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement) */
declare var frameElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames) */
declare var frames: WindowProxy;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history) */
declare var history: History;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight) */
declare var innerHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth) */
declare var innerWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length) */
declare var length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */
declare var location: Location;
/**
* Returns true if the location bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)
*/
declare var locationbar: BarProp;
/**
* Returns true if the menu bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)
*/
declare var menubar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name) */
/** @deprecated */
declare const name: void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) */
declare var navigator: Navigator;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event)
*/
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)
*/
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event)
*/
declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event)
*/
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener) */
declare var opener: any;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)
*/
declare var orientation: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight) */
declare var outerHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */
declare var outerWidth: number;
/**
* @deprecated This is a legacy alias of \`scrollX\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)
*/
declare var pageXOffset: number;
/**
* @deprecated This is a legacy alias of \`scrollY\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)
*/
declare var pageYOffset: number;
/**
* Refers to either the parent WindowProxy, or itself.
*
* It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)
*/
declare var parent: WindowProxy;
/**
* Returns true if the personal bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)
*/
declare var personalbar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen) */
declare var screen: Screen;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft) */
declare var screenLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop) */
declare var screenTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX) */
declare var screenX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY) */
declare var screenY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */
declare var scrollX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */
declare var scrollY: number;
/**
* Returns true if the scrollbars are visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)
*/
declare var scrollbars: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self) */
declare var self: Window & typeof globalThis;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis) */
declare var speechSynthesis: SpeechSynthesis;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)
*/
declare var status: string;
/**
* Returns true if the status bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)
*/
declare var statusbar: BarProp;
/**
* Returns true if the toolbar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)
*/
declare var toolbar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */
declare var top: WindowProxy | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport) */
declare var visualViewport: VisualViewport | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */
declare var window: Window & typeof globalThis;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
declare function alert(message?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */
declare function blur(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
declare function cancelIdleCallback(handle: number): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)
*/
declare function captureEvents(): void;
/**
* Closes the window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)
*/
declare function close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm) */
declare function confirm(message?: string): boolean;
/**
* Moves the focus to the window's browsing context, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)
*/
declare function focus(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection) */
declare function getSelection(): Selection | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia) */
declare function matchMedia(query: string): MediaQueryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy) */
declare function moveBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo) */
declare function moveTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open) */
declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
/**
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
*
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
*
* If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
*
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage)
*/
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
declare function postMessage(message: any, options?: WindowPostMessageOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print) */
declare function print(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt) */
declare function prompt(message?: string, _default?: string): string | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)
*/
declare function releaseEvents(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback) */
declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy) */
declare function resizeBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo) */
declare function resizeTo(width: number, height: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */
declare function scroll(options?: ScrollToOptions): void;
declare function scroll(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy) */
declare function scrollBy(options?: ScrollToOptions): void;
declare function scrollBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo) */
declare function scrollTo(options?: ScrollToOptions): void;
declare function scrollTo(x: number, y: number): void;
/**
* Cancels the document load.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop)
*/
declare function stop(): void;
declare function toString(): string;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
declare function dispatchEvent(event: Event): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
declare function cancelAnimationFrame(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
/**
* Fires when the user aborts the download.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event)
*/
declare var onabort: ((this: Window, ev: UIEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */
declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */
declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */
declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */
declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */
declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */
declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
declare var onbeforetoggle: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)
*/
declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
declare var oncancel: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event)
*/
declare var oncanplay: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */
declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event)
*/
declare var onchange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)
*/
declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
declare var onclose: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
*/
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
declare var oncuechange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */
declare var oncut: ((this: Window, ev: ClipboardEvent) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event)
*/
declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event)
*/
declare var ondrag: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user releases the mouse at the close of a drag operation.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event)
*/
declare var ondragend: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the target element when the user drags the object to a valid drop target.
* @param ev The drag event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event)
*/
declare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
* @param ev The drag event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event)
*/
declare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the target element continuously while the user drags the object over a valid drop target.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event)
*/
declare var ondragover: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user starts to drag a text selection or selected object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event)
*/
declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */
declare var ondrop: ((this: Window, ev: DragEvent) => any) | null;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event)
*/
declare var ondurationchange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event)
*/
declare var onemptied: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event)
*/
declare var onended: ((this: Window, ev: Event) => any) | null;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event)
*/
declare var onerror: OnErrorEventHandler;
/**
* Fires when the object receives focus.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event)
*/
declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */
declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */
declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */
declare var oninput: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */
declare var oninvalid: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event)
*/
declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event)
*/
declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event)
*/
declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event)
*/
declare var onload: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event)
*/
declare var onloadeddata: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the duration and dimensions of the media have been determined.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event)
*/
declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event)
*/
declare var onloadstart: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */
declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event)
*/
declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */
declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */
declare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event)
*/
declare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer outside the boundaries of the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event)
*/
declare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer into the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event)
*/
declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user releases a mouse button while the mouse is over the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event)
*/
declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */
declare var onpaste: ((this: Window, ev: ClipboardEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event)
*/
declare var onpause: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the play method is requested.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event)
*/
declare var onplay: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event)
*/
declare var onplaying: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */
declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */
declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */
declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */
declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */
declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */
declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event)
*/
declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event)
*/
declare var onratechange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user resets a form.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event)
*/
declare var onreset: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */
declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
/**
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)
*/
declare var onscroll: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */
declare var onscrollend: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event)
*/
declare var onseeked: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event)
*/
declare var onseeking: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event)
*/
declare var onselect: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */
declare var onslotchange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event)
*/
declare var onstalled: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */
declare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event)
*/
declare var onsuspend: ((this: Window, ev: Event) => any) | null;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event)
*/
declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */
declare var ontoggle: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */
declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */
declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */
declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */
declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event)
*/
declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when playback stops because the next frame of a video resource is not available.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event)
*/
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationend\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event)
*/
declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationiteration\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event)
*/
declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationstart\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event)
*/
declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`ontransitionend\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event)
*/
declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */
declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */
declare var onafterprint: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */
declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */
declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */
declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */
declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */
declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */
declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */
declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */
declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */
declare var onoffline: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */
declare var ononline: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */
declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */
declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
*/
declare var onunload: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */
declare var localStorage: Storage;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
*/
declare var caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
declare var crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
declare var crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
declare var indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
declare var isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
declare var origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
declare var performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
declare function atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
declare function btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
declare function clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
declare function clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
declare function queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
declare function reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
declare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */
declare var sessionStorage: Storage;
declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
type AlgorithmIdentifier = Algorithm | string;
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
type AutoFill = AutoFillBase | \`\${OptionalPrefixToken<AutoFillSection>}\${OptionalPrefixToken<AutoFillAddressKind>}\${AutoFillField}\${OptionalPostfixToken<AutoFillCredentialField>}\`;
type AutoFillField = AutoFillNormalField | \`\${OptionalPrefixToken<AutoFillContactKind>}\${AutoFillContactField}\`;
type AutoFillSection = \`section-\${string}\`;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
type COSEAlgorithmIdentifier = number;
type CSSKeywordish = string | CSSKeywordValue;
type CSSNumberish = number | CSSNumericValue;
type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;
type CSSUnparsedSegment = string | CSSVariableReferenceValue;
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame;
type ClipboardItemData = Promise<string | Blob>;
type ClipboardItems = ClipboardItem[];
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
type ConstrainDouble = number | ConstrainDoubleRange;
type ConstrainULong = number | ConstrainULongRange;
type DOMHighResTimeStamp = number;
type EpochTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
type Float32List = Float32Array | GLfloat[];
type FormDataEntryValue = File | string;
type GLbitfield = number;
type GLboolean = boolean;
type GLclampf = number;
type GLenum = number;
type GLfloat = number;
type GLint = number;
type GLint64 = number;
type GLintptr = number;
type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
type GLuint64 = number;
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type Int32List = Int32Array | GLint[];
type LineAndPositionSetting = number | AutoKeyword;
type MediaProvider = MediaStream | MediaSource | Blob;
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
type MutationRecordType = "attributes" | "characterData" | "childList";
type NamedCurve = string;
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type OptionalPostfixToken<T extends string> = \` \${T}\` | "";
type OptionalPrefixToken<T extends string> = \`\${T} \` | "";
type PerformanceEntryList = PerformanceEntry[];
type RTCRtpTransform = RTCRtpScriptTransform;
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type ReportList = Report[];
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
type TimerHandler = string | Function;
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
type Uint32List = Uint32Array | GLuint[];
type VibratePattern = number | number[];
type WindowProxy = Window;
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type AlignSetting = "center" | "end" | "left" | "right" | "start";
type AlphaOption = "discard" | "keep";
type AnimationPlayState = "finished" | "idle" | "paused" | "running";
type AnimationReplaceState = "active" | "persisted" | "removed";
type AppendMode = "segments" | "sequence";
type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
type AudioContextState = "closed" | "running" | "suspended";
type AuthenticatorAttachment = "cross-platform" | "platform";
type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
type AutoFillAddressKind = "billing" | "shipping";
type AutoFillBase = "" | "off" | "on";
type AutoFillContactField = "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national";
type AutoFillContactKind = "home" | "mobile" | "work";
type AutoFillCredentialField = "webauthn";
type AutoFillNormalField = "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username";
type AutoKeyword = "auto";
type AutomationRate = "a-rate" | "k-rate";
type AvcBitstreamFormat = "annexb" | "avc";
type BinaryType = "arraybuffer" | "blob";
type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
type CanPlayTypeResult = "" | "maybe" | "probably";
type CanvasDirection = "inherit" | "ltr" | "rtl";
type CanvasFillRule = "evenodd" | "nonzero";
type CanvasFontKerning = "auto" | "none" | "normal";
type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
type CanvasLineCap = "butt" | "round" | "square";
type CanvasLineJoin = "bevel" | "miter" | "round";
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
type ChannelCountMode = "clamped-max" | "explicit" | "max";
type ChannelInterpretation = "discrete" | "speakers";
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
type CodecState = "closed" | "configured" | "unconfigured";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type CompositeOperation = "accumulate" | "add" | "replace";
type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
type CredentialMediationRequirement = "conditional" | "optional" | "required" | "silent";
type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
type DirectionSetting = "" | "lr" | "rl";
type DisplayCaptureSurfaceType = "browser" | "monitor" | "window";
type DistanceModelType = "exponential" | "inverse" | "linear";
type DocumentReadyState = "complete" | "interactive" | "loading";
type DocumentVisibilityState = "hidden" | "visible";
type EncodedVideoChunkType = "delta" | "key";
type EndOfStreamError = "decode" | "network";
type EndingType = "native" | "transparent";
type FileSystemHandleKind = "directory" | "file";
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FullscreenNavigationUI = "auto" | "hide" | "show";
type GamepadHapticActuatorType = "vibration";
type GamepadHapticEffectType = "dual-rumble";
type GamepadHapticsResult = "complete" | "preempted";
type GamepadMappingType = "" | "standard" | "xr-standard";
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type HighlightType = "grammar-error" | "highlight" | "spelling-error";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "done" | "pending";
type IDBTransactionDurability = "default" | "relaxed" | "strict";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
type ImageOrientation = "flipY" | "from-image" | "none";
type ImageSmoothingQuality = "high" | "low" | "medium";
type InsertPosition = "afterbegin" | "afterend" | "beforebegin" | "beforeend";
type IterationCompositeOperation = "accumulate" | "replace";
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type LatencyMode = "quality" | "realtime";
type LineAlignSetting = "center" | "end" | "start";
type LockMode = "exclusive" | "shared";
type MIDIPortConnectionState = "closed" | "open" | "pending";
type MIDIPortDeviceState = "connected" | "disconnected";
type MIDIPortType = "input" | "output";
type MediaDecodingType = "file" | "media-source" | "webrtc";
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
type MediaEncodingType = "record" | "webrtc";
type MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";
type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";
type MediaKeySessionType = "persistent-license" | "temporary";
type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";
type MediaKeysRequirement = "not-allowed" | "optional" | "required";
type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
type MediaSessionPlaybackState = "none" | "paused" | "playing";
type MediaStreamTrackState = "ended" | "live";
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
type OverSampleType = "2x" | "4x" | "none";
type PanningModelType = "HRTF" | "equalpower";
type PaymentComplete = "fail" | "success" | "unknown";
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
type PermissionState = "denied" | "granted" | "prompt";
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
type PresentationStyle = "attachment" | "inline" | "unspecified";
type PublicKeyCredentialType = "public-key";
type PushEncryptionKeyName = "auth" | "p256dh";
type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error";
type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
type RTCIceComponent = "rtcp" | "rtp";
type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCIceGathererState = "complete" | "gathering" | "new";
type RTCIceGatheringState = "complete" | "gathering" | "new";
type RTCIceProtocol = "tcp" | "udp";
type RTCIceTcpCandidateType = "active" | "passive" | "so";
type RTCIceTransportPolicy = "all" | "relay";
type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";
type RTCPriorityType = "high" | "low" | "medium" | "very-low";
type RTCRtcpMuxPolicy = "require";
type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
type RTCSctpTransportState = "closed" | "connected" | "connecting";
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-playout" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "transport";
type ReadableStreamReaderMode = "byob";
type ReadableStreamType = "bytes";
type ReadyState = "closed" | "ended" | "open";
type RecordingState = "inactive" | "paused" | "recording";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
type RemotePlaybackState = "connected" | "connecting" | "disconnected";
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestPriority = "auto" | "high" | "low";
type RequestRedirect = "error" | "follow" | "manual";
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type ScrollBehavior = "auto" | "instant" | "smooth";
type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
type ScrollRestoration = "auto" | "manual";
type ScrollSetting = "" | "up";
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
type SelectionMode = "end" | "preserve" | "select" | "start";
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
type ShadowRootMode = "closed" | "open";
type SlotAssignmentMode = "manual" | "named";
type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
type TextTrackMode = "disabled" | "hidden" | "showing";
type TouchType = "direct" | "stylus";
type TransferFunction = "hlg" | "pq" | "srgb";
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
type VideoEncoderBitrateMode = "constant" | "quantizer" | "variable";
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
type WakeLockType = "screen";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
type WebTransportErrorSource = "session" | "stream";
type WorkerType = "classic" | "module";
type WriteCommandType = "seek" | "truncate" | "write";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`,_o["lib.dom.iterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Window Iterable APIs
/////////////////////////////
interface AudioParam {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
}
interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
}
interface BaseAudioContext {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */
createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
}
interface CSSKeyframesRule {
[Symbol.iterator](): IterableIterator<CSSKeyframeRule>;
}
interface CSSNumericArray {
[Symbol.iterator](): IterableIterator<CSSNumericValue>;
entries(): IterableIterator<[number, CSSNumericValue]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSNumericValue>;
}
interface CSSRuleList {
[Symbol.iterator](): IterableIterator<CSSRule>;
}
interface CSSStyleDeclaration {
[Symbol.iterator](): IterableIterator<string>;
}
interface CSSTransformValue {
[Symbol.iterator](): IterableIterator<CSSTransformComponent>;
entries(): IterableIterator<[number, CSSTransformComponent]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSTransformComponent>;
}
interface CSSUnparsedValue {
[Symbol.iterator](): IterableIterator<CSSUnparsedSegment>;
entries(): IterableIterator<[number, CSSUnparsedSegment]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSUnparsedSegment>;
}
interface Cache {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
interface CanvasPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
}
interface CanvasPathDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
setLineDash(segments: Iterable<number>): void;
}
interface DOMRectList {
[Symbol.iterator](): IterableIterator<DOMRect>;
}
interface DOMStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface DOMTokenList {
[Symbol.iterator](): IterableIterator<string>;
entries(): IterableIterator<[number, string]>;
keys(): IterableIterator<number>;
values(): IterableIterator<string>;
}
interface DataTransferItemList {
[Symbol.iterator](): IterableIterator<DataTransferItem>;
}
interface EventCounts extends ReadonlyMap<string, number> {
}
interface FileList {
[Symbol.iterator](): IterableIterator<File>;
}
interface FontFaceSet extends Set<FontFace> {
}
interface FormData {
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[string, FormDataEntryValue]>;
/** Returns a list of keys in the list. */
keys(): IterableIterator<string>;
/** Returns a list of values in the list. */
values(): IterableIterator<FormDataEntryValue>;
}
interface HTMLAllCollection {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLCollectionBase {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLCollectionOf<T extends Element> {
[Symbol.iterator](): IterableIterator<T>;
}
interface HTMLFormElement {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLSelectElement {
[Symbol.iterator](): IterableIterator<HTMLOptionElement>;
}
interface Headers {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
entries(): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
keys(): IterableIterator<string>;
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
values(): IterableIterator<string>;
}
interface Highlight extends Set<AbstractRange> {
}
interface HighlightRegistry extends Map<string, Highlight> {
}
interface IDBDatabase {
/**
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
*/
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
}
interface IDBObjectStore {
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
}
interface MIDIOutput {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
}
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
}
interface MediaKeyStatusMap {
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
keys(): IterableIterator<BufferSource>;
values(): IterableIterator<MediaKeyStatus>;
}
interface MediaList {
[Symbol.iterator](): IterableIterator<string>;
}
interface MessageEvent<T = any> {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
*/
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface MimeTypeArray {
[Symbol.iterator](): IterableIterator<MimeType>;
}
interface NamedNodeMap {
[Symbol.iterator](): IterableIterator<Attr>;
}
interface Navigator {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
*/
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */
vibrate(pattern: Iterable<number>): boolean;
}
interface NodeList {
[Symbol.iterator](): IterableIterator<Node>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[number, Node]>;
/** Returns an list of keys in the list. */
keys(): IterableIterator<number>;
/** Returns an list of values in the list. */
values(): IterableIterator<Node>;
}
interface NodeListOf<TNode extends Node> {
[Symbol.iterator](): IterableIterator<TNode>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[number, TNode]>;
/** Returns an list of keys in the list. */
keys(): IterableIterator<number>;
/** Returns an list of values in the list. */
values(): IterableIterator<TNode>;
}
interface Plugin {
[Symbol.iterator](): IterableIterator<MimeType>;
}
interface PluginArray {
[Symbol.iterator](): IterableIterator<Plugin>;
}
interface RTCRtpTransceiver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
}
interface RTCStatsReport extends ReadonlyMap<string, any> {
}
interface SVGLengthList {
[Symbol.iterator](): IterableIterator<SVGLength>;
}
interface SVGNumberList {
[Symbol.iterator](): IterableIterator<SVGNumber>;
}
interface SVGPointList {
[Symbol.iterator](): IterableIterator<DOMPoint>;
}
interface SVGStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface SVGTransformList {
[Symbol.iterator](): IterableIterator<SVGTransform>;
}
interface SourceBufferList {
[Symbol.iterator](): IterableIterator<SourceBuffer>;
}
interface SpeechRecognitionResult {
[Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
}
interface SpeechRecognitionResultList {
[Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
}
interface StylePropertyMapReadOnly {
[Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>;
entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>;
keys(): IterableIterator<string>;
values(): IterableIterator<Iterable<CSSStyleValue>>;
}
interface StyleSheetList {
[Symbol.iterator](): IterableIterator<CSSStyleSheet>;
}
interface SubtleCrypto {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
}
interface TextTrackCueList {
[Symbol.iterator](): IterableIterator<TextTrackCue>;
}
interface TextTrackList {
[Symbol.iterator](): IterableIterator<TextTrack>;
}
interface TouchList {
[Symbol.iterator](): IterableIterator<Touch>;
}
interface URLSearchParams {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an array of key, value pairs for every entry in the search params. */
entries(): IterableIterator<[string, string]>;
/** Returns a list of keys in the search params. */
keys(): IterableIterator<string>;
/** Returns a list of values in the search params. */
values(): IterableIterator<string>;
}
interface WEBGL_draw_buffers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WEBGL_multi_draw {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
}
interface WebGL2RenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
drawBuffers(buffers: Iterable<GLenum>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}
interface WebGL2RenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
}
interface WebGLRenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}
interface WebGLRenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`,_o["lib.es2015.collection.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Map<K, V> {
clear(): void;
/**
* @returns true if an element in the Map existed and has been removed, or false if the element does not exist.
*/
delete(key: K): boolean;
/**
* Executes a provided function once per each key/value pair in the Map, in insertion order.
*/
forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
/**
* Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
* @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
*/
get(key: K): V | undefined;
/**
* @returns boolean indicating whether an element with the specified key exists or not.
*/
has(key: K): boolean;
/**
* Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
*/
set(key: K, value: V): this;
/**
* @returns the number of elements in the Map.
*/
readonly size: number;
}
interface MapConstructor {
new (): Map<any, any>;
new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
readonly prototype: Map<any, any>;
}
declare var Map: MapConstructor;
interface ReadonlyMap<K, V> {
forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
get(key: K): V | undefined;
has(key: K): boolean;
readonly size: number;
}
interface WeakMap<K extends WeakKey, V> {
/**
* Removes the specified element from the WeakMap.
* @returns true if the element was successfully removed, or false if it was not present.
*/
delete(key: K): boolean;
/**
* @returns a specified element.
*/
get(key: K): V | undefined;
/**
* @returns a boolean indicating whether an element with the specified key exists or not.
*/
has(key: K): boolean;
/**
* Adds a new element with a specified key and value.
* @param key Must be an object or symbol.
*/
set(key: K, value: V): this;
}
interface WeakMapConstructor {
new <K extends WeakKey = WeakKey, V = any>(entries?: readonly (readonly [K, V])[] | null): WeakMap<K, V>;
readonly prototype: WeakMap<WeakKey, any>;
}
declare var WeakMap: WeakMapConstructor;
interface Set<T> {
/**
* Appends a new element with a specified value to the end of the Set.
*/
add(value: T): this;
clear(): void;
/**
* Removes a specified value from the Set.
* @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
*/
delete(value: T): boolean;
/**
* Executes a provided function once per each value in the Set object, in insertion order.
*/
forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
/**
* @returns a boolean indicating whether an element with the specified value exists in the Set or not.
*/
has(value: T): boolean;
/**
* @returns the number of (unique) elements in Set.
*/
readonly size: number;
}
interface SetConstructor {
new <T = any>(values?: readonly T[] | null): Set<T>;
readonly prototype: Set<any>;
}
declare var Set: SetConstructor;
interface ReadonlySet<T> {
forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
has(value: T): boolean;
readonly size: number;
}
interface WeakSet<T extends WeakKey> {
/**
* Appends a new value to the end of the WeakSet.
*/
add(value: T): this;
/**
* Removes the specified element from the WeakSet.
* @returns Returns true if the element existed and has been removed, or false if the element does not exist.
*/
delete(value: T): boolean;
/**
* @returns a boolean indicating whether a value exists in the WeakSet or not.
*/
has(value: T): boolean;
}
interface WeakSetConstructor {
new <T extends WeakKey = WeakKey>(values?: readonly T[] | null): WeakSet<T>;
readonly prototype: WeakSet<WeakKey>;
}
declare var WeakSet: WeakSetConstructor;
`,_o["lib.es2015.core.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find<S extends T>(predicate: (value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;
find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: T, start?: number, end?: number): this;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
}
interface ArrayConstructor {
/**
* Creates an array from an array-like object.
* @param arrayLike An array-like object to convert to an array.
*/
from<T>(arrayLike: ArrayLike<T>): T[];
/**
* Creates an array from an iterable object.
* @param arrayLike An array-like object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of<T>(...items: T[]): T[];
}
interface DateConstructor {
new (value: number | string | Date): Date;
}
interface Function {
/**
* Returns the name of the function. Function names are read-only and can not be changed.
*/
readonly name: string;
}
interface Math {
/**
* Returns the number of leading zero bits in the 32-bit binary representation of a number.
* @param x A numeric expression.
*/
clz32(x: number): number;
/**
* Returns the result of 32-bit multiplication of two numbers.
* @param x First number
* @param y Second number
*/
imul(x: number, y: number): number;
/**
* Returns the sign of the x, indicating whether x is positive, negative or zero.
* @param x The numeric expression to test
*/
sign(x: number): number;
/**
* Returns the base 10 logarithm of a number.
* @param x A numeric expression.
*/
log10(x: number): number;
/**
* Returns the base 2 logarithm of a number.
* @param x A numeric expression.
*/
log2(x: number): number;
/**
* Returns the natural logarithm of 1 + x.
* @param x A numeric expression.
*/
log1p(x: number): number;
/**
* Returns the result of (e^x - 1), which is an implementation-dependent approximation to
* subtracting 1 from the exponential function of x (e raised to the power of x, where e
* is the base of the natural logarithms).
* @param x A numeric expression.
*/
expm1(x: number): number;
/**
* Returns the hyperbolic cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
cosh(x: number): number;
/**
* Returns the hyperbolic sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
sinh(x: number): number;
/**
* Returns the hyperbolic tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
tanh(x: number): number;
/**
* Returns the inverse hyperbolic cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
acosh(x: number): number;
/**
* Returns the inverse hyperbolic sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
asinh(x: number): number;
/**
* Returns the inverse hyperbolic tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
atanh(x: number): number;
/**
* Returns the square root of the sum of squares of its arguments.
* @param values Values to compute the square root for.
* If no arguments are passed, the result is +0.
* If there is only one argument, the result is the absolute value.
* If any argument is +Infinity or -Infinity, the result is +Infinity.
* If any argument is NaN, the result is NaN.
* If all arguments are either +0 or \u22120, the result is +0.
*/
hypot(...values: number[]): number;
/**
* Returns the integral part of the a numeric expression, x, removing any fractional digits.
* If x is already an integer, the result is x.
* @param x A numeric expression.
*/
trunc(x: number): number;
/**
* Returns the nearest single precision float representation of a number.
* @param x A numeric expression.
*/
fround(x: number): number;
/**
* Returns an implementation-dependent approximation to the cube root of number.
* @param x A numeric expression.
*/
cbrt(x: number): number;
}
interface NumberConstructor {
/**
* The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
* that is representable as a Number value, which is approximately:
* 2.2204460492503130808472633361816 x 10\u200D\u2212\u200D16.
*/
readonly EPSILON: number;
/**
* Returns true if passed value is finite.
* Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
* number. Only finite values of the type number, result in true.
* @param number A numeric value.
*/
isFinite(number: unknown): boolean;
/**
* Returns true if the value passed is an integer, false otherwise.
* @param number A numeric value.
*/
isInteger(number: unknown): boolean;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
* number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
* to a number. Only values of the type number, that are also NaN, result in true.
* @param number A numeric value.
*/
isNaN(number: unknown): boolean;
/**
* Returns true if the value passed is a safe integer.
* @param number A numeric value.
*/
isSafeInteger(number: unknown): boolean;
/**
* The value of the largest integer n such that n and n + 1 are both exactly representable as
* a Number value.
* The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 \u2212 1.
*/
readonly MAX_SAFE_INTEGER: number;
/**
* The value of the smallest integer n such that n and n \u2212 1 are both exactly representable as
* a Number value.
* The value of Number.MIN_SAFE_INTEGER is \u22129007199254740991 (\u2212(2^53 \u2212 1)).
*/
readonly MIN_SAFE_INTEGER: number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
parseFloat(string: string): number;
/**
* Converts A string to an integer.
* @param string A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
parseInt(string: string, radix?: number): number;
}
interface ObjectConstructor {
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source The source object from which to copy properties.
*/
assign<T extends {}, U>(target: T, source: U): T & U;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
*/
assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
* @param source3 The third source object from which to copy properties.
*/
assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param sources One or more source objects from which to copy properties
*/
assign(target: object, ...sources: any[]): any;
/**
* Returns an array of all symbol properties found directly on object o.
* @param o Object to retrieve the symbols from.
*/
getOwnPropertySymbols(o: any): symbol[];
/**
* Returns the names of the enumerable string properties and methods of an object.
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
keys(o: {}): string[];
/**
* Returns true if the values are the same value, false otherwise.
* @param value1 The first value.
* @param value2 The second value.
*/
is(value1: any, value2: any): boolean;
/**
* Sets the prototype of a specified object o to object proto or null. Returns the object o.
* @param o The object to change its prototype.
* @param proto The value of the new prototype or null.
*/
setPrototypeOf(o: any, proto: object | null): any;
}
interface ReadonlyArray<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;
find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
}
interface RegExp {
/**
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
* The characters in this string are sequenced and concatenated in the following order:
*
* - "g" for global
* - "i" for ignoreCase
* - "m" for multiline
* - "u" for unicode
* - "y" for sticky
*
* If no flags are set, the value is the empty string.
*/
readonly flags: string;
/**
* Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
* expression. Default is false. Read-only.
*/
readonly sticky: boolean;
/**
* Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
* expression. Default is false. Read-only.
*/
readonly unicode: boolean;
}
interface RegExpConstructor {
new (pattern: RegExp | string, flags?: string): RegExp;
(pattern: RegExp | string, flags?: string): RegExp;
}
interface String {
/**
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
* value of the UTF-16 encoded code point starting at the string element at position pos in
* the String resulting from converting this object to a String.
* If there is no element at that position, the result is undefined.
* If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
*/
codePointAt(pos: number): number | undefined;
/**
* Returns true if searchString appears as a substring of the result of converting this
* object to a String, at one or more positions that are
* greater than or equal to position; otherwise, returns false.
* @param searchString search string
* @param position If position is undefined, 0 is assumed, so as to search all of the String.
*/
includes(searchString: string, position?: number): boolean;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* endPosition \u2013 length(this). Otherwise returns false.
*/
endsWith(searchString: string, endPosition?: number): boolean;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form?: string): string;
/**
* Returns a String value that is made from count copies appended together. If count is 0,
* the empty string is returned.
* @param count number of copies to append
*/
repeat(count: number): string;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* position. Otherwise returns false.
*/
startsWith(searchString: string, position?: number): boolean;
/**
* Returns an \`<a>\` HTML anchor element and sets the name attribute to the text value
* @deprecated A legacy feature for browser compatibility
* @param name
*/
anchor(name: string): string;
/**
* Returns a \`<big>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
big(): string;
/**
* Returns a \`<blink>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
blink(): string;
/**
* Returns a \`<b>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
bold(): string;
/**
* Returns a \`<tt>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
fixed(): string;
/**
* Returns a \`<font>\` HTML element and sets the color attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontcolor(color: string): string;
/**
* Returns a \`<font>\` HTML element and sets the size attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontsize(size: number): string;
/**
* Returns a \`<font>\` HTML element and sets the size attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontsize(size: string): string;
/**
* Returns an \`<i>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
italics(): string;
/**
* Returns an \`<a>\` HTML element and sets the href attribute value
* @deprecated A legacy feature for browser compatibility
*/
link(url: string): string;
/**
* Returns a \`<small>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
small(): string;
/**
* Returns a \`<strike>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
strike(): string;
/**
* Returns a \`<sub>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
sub(): string;
/**
* Returns a \`<sup>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
sup(): string;
}
interface StringConstructor {
/**
* Return the String value whose elements are, in order, the elements in the List elements.
* If length is 0, the empty string is returned.
*/
fromCodePoint(...codePoints: number[]): string;
/**
* String.raw is usually used as a tag function of a Tagged Template String. When called as
* such, the first argument will be a well formed template call site object and the rest
* parameter will contain the substitution values. It can also be called directly, for example,
* to interleave strings and values from your own tag function, and in this case the only thing
* it needs from the first argument is the raw property.
* @param template A well-formed template string call site representation.
* @param substitutions A set of substitution values.
*/
raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string;
}
`,_o["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" />
`,_o["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;
}
`,_o["lib.es2015.iterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that returns the default iterator for an object. Called by the semantics of the
* for-of statement.
*/
readonly iterator: unique symbol;
}
interface IteratorYieldResult<TYield> {
done?: false;
value: TYield;
}
interface IteratorReturnResult<TReturn> {
done: true;
value: TReturn;
}
type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
interface Iterator<T, TReturn = any, TNext = undefined> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
return?(value?: TReturn): IteratorResult<T, TReturn>;
throw?(e?: any): IteratorResult<T, TReturn>;
}
interface Iterable<T> {
[Symbol.iterator](): Iterator<T>;
}
interface IterableIterator<T> extends Iterator<T> {
[Symbol.iterator](): IterableIterator<T>;
}
interface Array<T> {
/** Iterator */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an iterable of values in the array
*/
values(): IterableIterator<T>;
}
interface ArrayConstructor {
/**
* Creates an array from an iterable object.
* @param iterable An iterable object to convert to an array.
*/
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
/**
* Creates an array from an iterable object.
* @param iterable An iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
}
interface ReadonlyArray<T> {
/** Iterator of values in the array. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an iterable of values in the array
*/
values(): IterableIterator<T>;
}
interface IArguments {
/** Iterator */
[Symbol.iterator](): IterableIterator<any>;
}
interface Map<K, V> {
/** Returns an iterable of entries in the map. */
[Symbol.iterator](): IterableIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
entries(): IterableIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
keys(): IterableIterator<K>;
/**
* Returns an iterable of values in the map
*/
values(): IterableIterator<V>;
}
interface ReadonlyMap<K, V> {
/** Returns an iterable of entries in the map. */
[Symbol.iterator](): IterableIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
entries(): IterableIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
keys(): IterableIterator<K>;
/**
* Returns an iterable of values in the map
*/
values(): IterableIterator<V>;
}
interface MapConstructor {
new (): Map<any, any>;
new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;
}
interface WeakMap<K extends WeakKey, V> {}
interface WeakMapConstructor {
new <K extends WeakKey, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
}
interface Set<T> {
/** Iterates over values in the set. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
*/
entries(): IterableIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
keys(): IterableIterator<T>;
/**
* Returns an iterable of values in the set.
*/
values(): IterableIterator<T>;
}
interface ReadonlySet<T> {
/** Iterates over values in the set. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
*/
entries(): IterableIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
keys(): IterableIterator<T>;
/**
* Returns an iterable of values in the set.
*/
values(): IterableIterator<T>;
}
interface SetConstructor {
new <T>(iterable?: Iterable<T> | null): Set<T>;
}
interface WeakSet<T extends WeakKey> {}
interface WeakSetConstructor {
new <T extends WeakKey = WeakKey>(iterable: Iterable<T>): WeakSet<T>;
}
interface Promise<T> {}
interface PromiseConstructor {
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An iterable of Promises.
* @returns A new Promise.
*/
all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An iterable of Promises.
* @returns A new Promise.
*/
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
}
interface String {
/** Iterator */
[Symbol.iterator](): IterableIterator<string>;
}
interface Int8Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int8ArrayConstructor {
new (elements: Iterable<number>): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
}
interface Uint8Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint8ArrayConstructor {
new (elements: Iterable<number>): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
}
interface Uint8ClampedArray {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint8ClampedArrayConstructor {
new (elements: Iterable<number>): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
}
interface Int16Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int16ArrayConstructor {
new (elements: Iterable<number>): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
}
interface Uint16Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint16ArrayConstructor {
new (elements: Iterable<number>): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
}
interface Int32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int32ArrayConstructor {
new (elements: Iterable<number>): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
}
interface Uint32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint32ArrayConstructor {
new (elements: Iterable<number>): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
}
interface Float32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Float32ArrayConstructor {
new (elements: Iterable<number>): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
}
interface Float64Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Float64ArrayConstructor {
new (elements: Iterable<number>): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
}
`,_o["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;
`,_o["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;
`,_o["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;
}
`,_o["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;
`,_o["lib.es2015.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that determines if a constructor object recognizes an object as one of the
* constructor\u2019s instances. Called by the semantics of the instanceof operator.
*/
readonly hasInstance: unique symbol;
/**
* A Boolean value that if true indicates that an object should flatten to its array elements
* by Array.prototype.concat.
*/
readonly isConcatSpreadable: unique symbol;
/**
* A regular expression method that matches the regular expression against a string. Called
* by the String.prototype.match method.
*/
readonly match: unique symbol;
/**
* A regular expression method that replaces matched substrings of a string. Called by the
* String.prototype.replace method.
*/
readonly replace: unique symbol;
/**
* A regular expression method that returns the index within a string that matches the
* regular expression. Called by the String.prototype.search method.
*/
readonly search: unique symbol;
/**
* A function valued property that is the constructor function that is used to create
* derived objects.
*/
readonly species: unique symbol;
/**
* A regular expression method that splits a string at the indices that match the regular
* expression. Called by the String.prototype.split method.
*/
readonly split: unique symbol;
/**
* A method that converts an object to a corresponding primitive value.
* Called by the ToPrimitive abstract operation.
*/
readonly toPrimitive: unique symbol;
/**
* A String value that is used in the creation of the default string description of an object.
* Called by the built-in method Object.prototype.toString.
*/
readonly toStringTag: unique symbol;
/**
* An Object whose truthy properties are properties that are excluded from the 'with'
* environment bindings of the associated objects.
*/
readonly unscopables: unique symbol;
}
interface Symbol {
/**
* Converts a Symbol object to a symbol.
*/
[Symbol.toPrimitive](hint: string): symbol;
readonly [Symbol.toStringTag]: string;
}
interface Array<T> {
/**
* Is an object whose properties have the value 'true'
* when they will be absent when used in a 'with' statement.
*/
readonly [Symbol.unscopables]: {
[K in keyof any[]]?: boolean;
};
}
interface ReadonlyArray<T> {
/**
* Is an object whose properties have the value 'true'
* when they will be absent when used in a 'with' statement.
*/
readonly [Symbol.unscopables]: {
[K in keyof readonly any[]]?: boolean;
};
}
interface Date {
/**
* Converts a Date object to a string.
*/
[Symbol.toPrimitive](hint: "default"): string;
/**
* Converts a Date object to a string.
*/
[Symbol.toPrimitive](hint: "string"): string;
/**
* Converts a Date object to a number.
*/
[Symbol.toPrimitive](hint: "number"): number;
/**
* Converts a Date object to a string or number.
*
* @param hint The strings "number", "string", or "default" to specify what primitive to return.
*
* @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
* @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
*/
[Symbol.toPrimitive](hint: string): string | number;
}
interface Map<K, V> {
readonly [Symbol.toStringTag]: string;
}
interface WeakMap<K extends WeakKey, V> {
readonly [Symbol.toStringTag]: string;
}
interface Set<T> {
readonly [Symbol.toStringTag]: string;
}
interface WeakSet<T extends WeakKey> {
readonly [Symbol.toStringTag]: string;
}
interface JSON {
readonly [Symbol.toStringTag]: string;
}
interface Function {
/**
* Determines whether the given value inherits from this function if this function was used
* as a constructor function.
*
* A constructor function can control which objects are recognized as its instances by
* 'instanceof' by overriding this method.
*/
[Symbol.hasInstance](value: any): boolean;
}
interface GeneratorFunction {
readonly [Symbol.toStringTag]: string;
}
interface Math {
readonly [Symbol.toStringTag]: string;
}
interface Promise<T> {
readonly [Symbol.toStringTag]: string;
}
interface PromiseConstructor {
readonly [Symbol.species]: PromiseConstructor;
}
interface RegExp {
/**
* Matches a string with this regular expression, and returns an array containing the results of
* that search.
* @param string A string to search within.
*/
[Symbol.match](string: string): RegExpMatchArray | null;
/**
* Replaces text in a string, using this regular expression.
* @param string A String object or string literal whose contents matching against
* this regular expression will be replaced
* @param replaceValue A String object or string literal containing the text to replace for every
* successful match of this regular expression.
*/
[Symbol.replace](string: string, replaceValue: string): string;
/**
* Replaces text in a string, using this regular expression.
* @param string A String object or string literal whose contents matching against
* this regular expression will be replaced
* @param replacer A function that returns the replacement text.
*/
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the position beginning first substring match in a regular expression search
* using this regular expression.
*
* @param string The string to search within.
*/
[Symbol.search](string: string): number;
/**
* Returns an array of substrings that were delimited by strings in the original input that
* match against this regular expression.
*
* If the regular expression contains capturing parentheses, then each time this
* regular expression matches, the results (including any undefined results) of the
* capturing parentheses are spliced.
*
* @param string string value to split
* @param limit if not undefined, the output array is truncated so that it contains no more
* than 'limit' elements.
*/
[Symbol.split](string: string, limit?: number): string[];
}
interface RegExpConstructor {
readonly [Symbol.species]: RegExpConstructor;
}
interface String {
/**
* Matches a string or an object that supports being matched against, and returns an array
* containing the results of that search, or null if no matches are found.
* @param matcher An object that supports being matched against.
*/
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
/**
* Passes a string and {@linkcode replaceValue} to the \`[Symbol.replace]\` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.
* @param searchValue An object that supports searching for and replacing matches within a string.
* @param replaceValue The replacement text.
*/
replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
/**
* Replaces text in a string, using an object that supports replacement within a string.
* @param searchValue A object can search for and replace matches within a string.
* @param replacer A function that returns the replacement text.
*/
replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the first substring match in a regular expression search.
* @param searcher An object which supports searching within a string.
*/
search(searcher: { [Symbol.search](string: string): number; }): number;
/**
* Split a string into substrings using the specified separator and return them as an array.
* @param splitter An object that can split a string.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];
}
interface ArrayBuffer {
readonly [Symbol.toStringTag]: 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;
}
`,_o["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;
}
`,_o["lib.es2016.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015" />
/// <reference lib="es2016.array.include" />
/// <reference lib="es2016.intl" />
`,_o["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" />
`,_o["lib.es2016.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
/**
* The \`Intl.getCanonicalLocales()\` method returns an array containing
* the canonical locale names. Duplicates will be omitted and elements
* will be validated as structurally valid language tags.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales)
*
* @param locale A list of String values for which to get the canonical locale names
* @returns An array containing the canonical and validated locale names.
*/
function getCanonicalLocales(locale?: string | readonly string[]): string[];
}
`,_o["lib.es2017.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2016" />
/// <reference lib="es2017.object" />
/// <reference lib="es2017.sharedmemory" />
/// <reference lib="es2017.string" />
/// <reference lib="es2017.intl" />
/// <reference lib="es2017.typedarrays" />
/// <reference lib="es2017.date" />
`,_o["lib.es2017.date.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface DateConstructor {
/**
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
* @param monthIndex The month as a number between 0 and 11 (January to December).
* @param date The date as a number between 1 and 31.
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
* @param ms A number from 0 to 999 that specifies the milliseconds.
*/
UTC(year: number, monthIndex?: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
}
`,_o["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" />
`,_o["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[];
}
}
`,_o["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; };
}
`,_o["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;
`,_o["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;
}
`,_o["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;
}
`,_o["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;
}
`,_o["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>;
}
`,_o["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" />
`,_o["lib.es2018.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`,_o["lib.es2018.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
// http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";
type PluralRuleType = "cardinal" | "ordinal";
interface PluralRulesOptions {
localeMatcher?: "lookup" | "best fit" | undefined;
type?: PluralRuleType | undefined;
minimumIntegerDigits?: number | undefined;
minimumFractionDigits?: number | undefined;
maximumFractionDigits?: number | undefined;
minimumSignificantDigits?: number | undefined;
maximumSignificantDigits?: number | undefined;
}
interface ResolvedPluralRulesOptions {
locale: string;
pluralCategories: LDMLPluralRule[];
type: PluralRuleType;
minimumIntegerDigits: number;
minimumFractionDigits: number;
maximumFractionDigits: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
}
interface PluralRules {
resolvedOptions(): ResolvedPluralRulesOptions;
select(n: number): LDMLPluralRule;
}
interface PluralRulesConstructor {
new (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
(locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
supportedLocalesOf(locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
}
const PluralRules: PluralRulesConstructor;
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
interface NumberFormatPart {
type: NumberFormatPartTypes;
value: string;
}
interface NumberFormat {
formatToParts(number?: number | bigint): NumberFormatPart[];
}
}
`,_o["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>;
}
`,_o["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;
}
`,_o["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>[];
}
`,_o["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" />
`,_o["lib.es2019.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2019" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`,_o["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;
}
}
`,_o["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;
}
`,_o["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;
}
`,_o["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;
}
`,_o["lib.es2020.bigint.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020.intl" />
interface BigIntToLocaleStringOptions {
/**
* The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
*/
localeMatcher?: string;
/**
* The formatting style to use , the default is "decimal".
*/
style?: string;
numberingSystem?: string;
/**
* The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.
*/
unit?: string;
/**
* The unit formatting style to use in unit formatting, the defaults is "short".
*/
unitDisplay?: string;
/**
* The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB \u2014 see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency".
*/
currency?: string;
/**
* How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".
*
* "symbol" to use a localized currency symbol such as \u20AC,
*
* "code" to use the ISO currency code,
*
* "name" to use a localized currency name such as "dollar"
*/
currencyDisplay?: string;
/**
* Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.
*/
useGrouping?: boolean;
/**
* The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.
*/
minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information).
*/
minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
/**
* The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.
*/
maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
/**
* The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.
*/
minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.
*/
maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The formatting that should be displayed for the number, the defaults is "standard"
*
* "standard" plain number formatting
*
* "scientific" return the order-of-magnitude for formatted number.
*
* "engineering" return the exponent of ten when divisible by three
*
* "compact" string representing exponent, defaults is using the "short" form
*/
notation?: string;
/**
* used only when notation is "compact"
*/
compactDisplay?: string;
}
interface BigInt {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings.
*/
toString(radix?: number): string;
/** Returns a string representation appropriate to the host environment's current locale. */
toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string;
/** Returns the primitive value of the specified object. */
valueOf(): bigint;
readonly [Symbol.toStringTag]: "BigInt";
}
interface BigIntConstructor {
(value: bigint | boolean | number | string): bigint;
readonly prototype: BigInt;
/**
* Interprets the low bits of a BigInt as a 2's-complement signed integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asIntN(bits: number, int: bigint): bigint;
/**
* Interprets the low bits of a BigInt as an unsigned integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asUintN(bits: number, int: bigint): bigint;
}
declare var BigInt: BigIntConstructor;
/**
* A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated, an exception is raised.
*/
interface BigInt64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
/** The length in bytes of the array. */
readonly byteLength: number;
/** The offset in bytes of the array. */
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
entries(): IterableIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns false,
* or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: bigint, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: bigint, fromIndex?: number): boolean;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: bigint, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/** Yields each index in the array. */
keys(): IterableIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: bigint, fromIndex?: number): number;
/** The length of the array. */
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
/** Reverses the elements in the array. */
reverse(): this;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<bigint>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): BigInt64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls the
* predicate function for each element in the array until the predicate returns true, or until
* the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
/**
* Sorts the array.
* @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
*/
sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
/**
* Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): BigInt64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;
/** Returns a string representation of the array. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): BigInt64Array;
/** Yields each value in the array. */
values(): IterableIterator<bigint>;
[Symbol.iterator](): IterableIterator<bigint>;
readonly [Symbol.toStringTag]: "BigInt64Array";
[index: number]: bigint;
}
interface BigInt64ArrayConstructor {
readonly prototype: BigInt64Array;
new (length?: number): BigInt64Array;
new (array: Iterable<bigint>): BigInt64Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: bigint[]): BigInt64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike<bigint>): BigInt64Array;
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
}
declare var BigInt64Array: BigInt64ArrayConstructor;
/**
* A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated, an exception is raised.
*/
interface BigUint64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
/** The length in bytes of the array. */
readonly byteLength: number;
/** The offset in bytes of the array. */
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
entries(): IterableIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns false,
* or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: bigint, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: bigint, fromIndex?: number): boolean;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: bigint, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/** Yields each index in the array. */
keys(): IterableIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: bigint, fromIndex?: number): number;
/** The length of the array. */
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
/** Reverses the elements in the array. */
reverse(): this;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<bigint>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): BigUint64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls the
* predicate function for each element in the array until the predicate returns true, or until
* the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
/**
* Sorts the array.
* @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
*/
sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
/**
* Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): BigUint64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;
/** Returns a string representation of the array. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): BigUint64Array;
/** Yields each value in the array. */
values(): IterableIterator<bigint>;
[Symbol.iterator](): IterableIterator<bigint>;
readonly [Symbol.toStringTag]: "BigUint64Array";
[index: number]: bigint;
}
interface BigUint64ArrayConstructor {
readonly prototype: BigUint64Array;
new (length?: number): BigUint64Array;
new (array: Iterable<bigint>): BigUint64Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: bigint[]): BigUint64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike<bigint>): BigUint64Array;
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
}
declare var BigUint64Array: BigUint64ArrayConstructor;
interface DataView {
/**
* Gets the BigInt64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;
/**
* Gets the BigUint64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;
/**
* Stores a BigInt64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
/**
* Stores a BigUint64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
}
declare namespace Intl {
interface NumberFormat {
format(value: number | bigint): string;
resolvedOptions(): ResolvedNumberFormatOptions;
}
}
`,_o["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" />
`,_o["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;
}
`,_o["lib.es2020.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`,_o["lib.es2020.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018.intl" />
declare namespace Intl {
/**
* A string that is a valid [Unicode BCP 47 Locale Identifier](https://unicode.org/reports/tr35/#Unicode_locale_identifier).
*
* For example: "fa", "es-MX", "zh-Hant-TW".
*
* See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
*/
type UnicodeBCP47LocaleIdentifier = string;
/**
* Unit to use in the relative time internationalized message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
*/
type RelativeTimeFormatUnit =
| "year"
| "years"
| "quarter"
| "quarters"
| "month"
| "months"
| "week"
| "weeks"
| "day"
| "days"
| "hour"
| "hours"
| "minute"
| "minutes"
| "second"
| "seconds";
/**
* Value of the \`unit\` property in objects returned by
* \`Intl.RelativeTimeFormat.prototype.formatToParts()\`. \`formatToParts\` and
* \`format\` methods accept either singular or plural unit names as input,
* but \`formatToParts\` only outputs singular (e.g. "day") not plural (e.g.
* "days").
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
*/
type RelativeTimeFormatUnitSingular =
| "year"
| "quarter"
| "month"
| "week"
| "day"
| "hour"
| "minute"
| "second";
/**
* The locale matching algorithm to use.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
*/
type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";
/**
* The format of output message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*/
type RelativeTimeFormatNumeric = "always" | "auto";
/**
* The length of the internationalized message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*/
type RelativeTimeFormatStyle = "long" | "short" | "narrow";
/**
* The locale or locales to use
*
* See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
*/
type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;
/**
* An object with some or all of properties of \`options\` parameter
* of \`Intl.RelativeTimeFormat\` constructor.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*/
interface RelativeTimeFormatOptions {
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
localeMatcher?: RelativeTimeFormatLocaleMatcher;
/** The format of output message. */
numeric?: RelativeTimeFormatNumeric;
/** The length of the internationalized message. */
style?: RelativeTimeFormatStyle;
}
/**
* An object with properties reflecting the locale
* and formatting options computed during initialization
* of the \`Intl.RelativeTimeFormat\` object
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
*/
interface ResolvedRelativeTimeFormatOptions {
locale: UnicodeBCP47LocaleIdentifier;
style: RelativeTimeFormatStyle;
numeric: RelativeTimeFormatNumeric;
numberingSystem: string;
}
/**
* An object representing the relative time format in parts
* that can be used for custom locale-aware formatting.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
*/
type RelativeTimeFormatPart =
| {
type: "literal";
value: string;
}
| {
type: Exclude<NumberFormatPartTypes, "literal">;
value: string;
unit: RelativeTimeFormatUnitSingular;
};
interface RelativeTimeFormat {
/**
* Formats a value and a unit according to the locale
* and formatting options of the given
* [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
* object.
*
* While this method automatically provides the correct plural forms,
* the grammatical form is otherwise as neutral as possible.
*
* It is the caller's responsibility to handle cut-off logic
* such as deciding between displaying "in 7 days" or "in 1 week".
* This API does not support relative dates involving compound units.
* e.g "in 5 days and 4 hours".
*
* @param value - Numeric value to use in the internationalized relative time message
*
* @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
*
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
*
* @returns {string} Internationalized relative time message as string
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
*/
format(value: number, unit: RelativeTimeFormatUnit): string;
/**
* Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
*
* @param value - Numeric value to use in the internationalized relative time message
*
* @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
*
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
*/
formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];
/**
* Provides access to the locale and options computed during initialization of this \`Intl.RelativeTimeFormat\` object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
*/
resolvedOptions(): ResolvedRelativeTimeFormatOptions;
}
/**
* The [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
* object is a constructor for objects that enable language-sensitive relative time formatting.
*
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
*/
const RelativeTimeFormat: {
/**
* Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
* with some or all of options of \`RelativeTimeFormatOptions\`.
*
* @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
*/
new (
locales?: LocalesArgument,
options?: RelativeTimeFormatOptions,
): RelativeTimeFormat;
/**
* Returns an array containing those of the provided locales
* that are supported in date and time formatting
* without having to fall back to the runtime's default locale.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
* with some or all of options of the formatting.
*
* @returns An array containing those of the provided locales
* that are supported in date and time formatting
* without having to fall back to the runtime's default locale.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
*/
supportedLocalesOf(
locales?: LocalesArgument,
options?: RelativeTimeFormatOptions,
): UnicodeBCP47LocaleIdentifier[];
};
interface NumberFormatOptions {
compactDisplay?: "short" | "long" | undefined;
notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
unit?: string | undefined;
unitDisplay?: "short" | "long" | "narrow" | undefined;
currencyDisplay?: string | undefined;
currencySign?: string | undefined;
}
interface ResolvedNumberFormatOptions {
compactDisplay?: "short" | "long";
notation?: "standard" | "scientific" | "engineering" | "compact";
signDisplay?: "auto" | "never" | "always" | "exceptZero";
unit?: string;
unitDisplay?: "short" | "long" | "narrow";
currencyDisplay?: string;
currencySign?: string;
}
interface DateTimeFormatOptions {
calendar?: string | undefined;
dayPeriod?: "narrow" | "short" | "long" | undefined;
numberingSystem?: string | undefined;
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
timeStyle?: "full" | "long" | "medium" | "short" | undefined;
hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
}
type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";
type LocaleCollationCaseFirst = "upper" | "lower" | "false";
interface LocaleOptions {
/** A string containing the language, and the script and region if available. */
baseName?: string;
/** The part of the Locale that indicates the locale's calendar era. */
calendar?: string;
/** Flag that defines whether case is taken into account for the locale's collation rules. */
caseFirst?: LocaleCollationCaseFirst;
/** The collation type used for sorting */
collation?: string;
/** The time keeping format convention used by the locale. */
hourCycle?: LocaleHourCycleKey;
/** The primary language subtag associated with the locale. */
language?: string;
/** The numeral system used by the locale. */
numberingSystem?: string;
/** Flag that defines whether the locale has special collation handling for numeric characters. */
numeric?: boolean;
/** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */
region?: string;
/** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */
script?: string;
}
interface Locale extends LocaleOptions {
/** A string containing the language, and the script and region if available. */
baseName: string;
/** The primary language subtag associated with the locale. */
language: string;
/** Gets the most likely values for the language, script, and region of the locale based on existing values. */
maximize(): Locale;
/** Attempts to remove information about the locale that would be added by calling \`Locale.maximize()\`. */
minimize(): Locale;
/** Returns the locale's full locale identifier string. */
toString(): UnicodeBCP47LocaleIdentifier;
}
/**
* Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
* objects
*
* @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.
*
* @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
*/
const Locale: {
new (tag: UnicodeBCP47LocaleIdentifier | Locale, options?: LocaleOptions): Locale;
};
type DisplayNamesFallback =
| "code"
| "none";
type DisplayNamesType =
| "language"
| "region"
| "script"
| "calendar"
| "dateTimeField"
| "currency";
type DisplayNamesLanguageDisplay =
| "dialect"
| "standard";
interface DisplayNamesOptions {
localeMatcher?: RelativeTimeFormatLocaleMatcher;
style?: RelativeTimeFormatStyle;
type: DisplayNamesType;
languageDisplay?: DisplayNamesLanguageDisplay;
fallback?: DisplayNamesFallback;
}
interface ResolvedDisplayNamesOptions {
locale: UnicodeBCP47LocaleIdentifier;
style: RelativeTimeFormatStyle;
type: DisplayNamesType;
fallback: DisplayNamesFallback;
languageDisplay?: DisplayNamesLanguageDisplay;
}
interface DisplayNames {
/**
* Receives a code and returns a string based on the locale and options provided when instantiating
* [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
*
* @param code The \`code\` to provide depends on the \`type\` passed to display name during creation:
* - If the type is \`"region"\`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),
* or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).
* - If the type is \`"script"\`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).
* - If the type is \`"language"\`, code should be a \`languageCode\` ["-" \`scriptCode\`] ["-" \`regionCode\` ] *("-" \`variant\` )
* subsequence of the unicode_language_id grammar in [UTS 35's Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).
* \`languageCode\` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
* - If the type is \`"currency"\`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
*/
of(code: string): string | undefined;
/**
* Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
* [\`Intl/DisplayNames\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
*/
resolvedOptions(): ResolvedDisplayNamesOptions;
}
/**
* The [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
* object enables the consistent translation of language, region and script display names.
*
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
*/
const DisplayNames: {
prototype: DisplayNames;
/**
* @param locales A string with a BCP 47 language tag, or an array of such strings.
* For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
* page.
*
* @param options An object for setting up a display name.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
*/
new (locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;
/**
* Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.
*
* @param locales A string with a BCP 47 language tag, or an array of such strings.
* For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
* page.
*
* @param options An object with a locale matcher.
*
* @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
*/
supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher; }): UnicodeBCP47LocaleIdentifier[];
};
interface CollatorConstructor {
new (locales?: LocalesArgument, options?: CollatorOptions): Collator;
(locales?: LocalesArgument, options?: CollatorOptions): Collator;
supportedLocalesOf(locales: LocalesArgument, options?: CollatorOptions): string[];
}
interface DateTimeFormatConstructor {
new (locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat;
(locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat;
supportedLocalesOf(locales: LocalesArgument, options?: DateTimeFormatOptions): string[];
}
interface NumberFormatConstructor {
new (locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat;
(locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat;
supportedLocalesOf(locales: LocalesArgument, options?: NumberFormatOptions): string[];
}
interface PluralRulesConstructor {
new (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;
(locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;
supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
}
}
`,_o["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;
}
`,_o["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>>[]>;
}
`,_o["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;
}
`,_o["lib.es2020.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface String {
/**
* Matches a string with a regular expression, and returns an iterable of matches
* containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
matchAll(regexp: RegExp): IterableIterator<RegExpExecArray>;
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
toLocaleLowerCase(locales?: Intl.LocalesArgument): string;
/** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
toLocaleUpperCase(locales?: Intl.LocalesArgument): string;
/**
* Determines whether two strings are equivalent in the current or specified locale.
* @param that String to compare to target string
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
*/
localeCompare(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
}
`,_o["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>;
}
`,_o["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" />
`,_o["lib.es2021.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2021" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`,_o["lib.es2021.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
interface DateTimeFormatPartTypesRegistry {
fractionalSecond: any;
}
interface DateTimeFormatOptions {
formatMatcher?: "basic" | "best fit" | "best fit" | undefined;
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
timeStyle?: "full" | "long" | "medium" | "short" | undefined;
dayPeriod?: "narrow" | "short" | "long" | undefined;
fractionalSecondDigits?: 1 | 2 | 3 | undefined;
}
interface DateTimeRangeFormatPart extends DateTimeFormatPart {
source: "startRange" | "endRange" | "shared";
}
interface DateTimeFormat {
formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string;
formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[];
}
interface ResolvedDateTimeFormatOptions {
formatMatcher?: "basic" | "best fit" | "best fit";
dateStyle?: "full" | "long" | "medium" | "short";
timeStyle?: "full" | "long" | "medium" | "short";
hourCycle?: "h11" | "h12" | "h23" | "h24";
dayPeriod?: "narrow" | "short" | "long";
fractionalSecondDigits?: 1 | 2 | 3;
}
/**
* The locale matching algorithm to use.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
type ListFormatLocaleMatcher = "lookup" | "best fit";
/**
* The format of output message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
type ListFormatType = "conjunction" | "disjunction" | "unit";
/**
* The length of the formatted message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
type ListFormatStyle = "long" | "short" | "narrow";
/**
* An object with some or all properties of the \`Intl.ListFormat\` constructor \`options\` parameter.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
interface ListFormatOptions {
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
localeMatcher?: ListFormatLocaleMatcher | undefined;
/** The format of output message. */
type?: ListFormatType | undefined;
/** The length of the internationalized message. */
style?: ListFormatStyle | undefined;
}
interface ResolvedListFormatOptions {
locale: string;
style: ListFormatStyle;
type: ListFormatType;
}
interface ListFormat {
/**
* Returns a string with a language-specific representation of the list.
*
* @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array).
*
* @throws \`TypeError\` if \`list\` includes something other than the possible values.
*
* @returns {string} A language-specific formatted string representing the elements of the list.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).
*/
format(list: Iterable<string>): string;
/**
* Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.
*
* @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale.
*
* @throws \`TypeError\` if \`list\` includes something other than the possible values.
*
* @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).
*/
formatToParts(list: Iterable<string>): { type: "element" | "literal"; value: string; }[];
/**
* Returns a new object with properties reflecting the locale and style
* formatting options computed during the construction of the current
* \`Intl.ListFormat\` object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).
*/
resolvedOptions(): ResolvedListFormatOptions;
}
const ListFormat: {
prototype: ListFormat;
/**
* Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that
* enable language-sensitive list formatting.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)
* with some or all options of \`ListFormatOptions\`.
*
* @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
*/
new (locales?: LocalesArgument, options?: ListFormatOptions): ListFormat;
/**
* Returns an array containing those of the provided locales that are
* supported in list formatting without having to fall back to the runtime's default locale.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).
* with some or all possible options.
*
* @returns An array of strings representing a subset of the given locale tags that are supported in list
* formatting without having to fall back to the runtime's default locale.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).
*/
supportedLocalesOf(locales: LocalesArgument, options?: Pick<ListFormatOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
};
}
`,_o["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>>;
}
`,_o["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;
}
`,_o["lib.es2021.weakref.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface WeakRef<T extends WeakKey> {
readonly [Symbol.toStringTag]: "WeakRef";
/**
* Returns the WeakRef instance's target value, or undefined if the target value has been
* reclaimed.
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
*/
deref(): T | undefined;
}
interface WeakRefConstructor {
readonly prototype: WeakRef<any>;
/**
* Creates a WeakRef instance for the given target value.
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
* @param target The target value for the WeakRef instance.
*/
new <T extends WeakKey>(target: T): WeakRef<T>;
}
declare var WeakRef: WeakRefConstructor;
interface FinalizationRegistry<T> {
readonly [Symbol.toStringTag]: "FinalizationRegistry";
/**
* Registers a value with the registry.
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
* @param target The target value to register.
* @param heldValue The value to pass to the finalizer for this value. This cannot be the
* target value.
* @param unregisterToken The token to pass to the unregister method to unregister the target
* value. If not provided, the target cannot be unregistered.
*/
register(target: WeakKey, heldValue: T, unregisterToken?: WeakKey): void;
/**
* Unregisters a value from the registry.
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
* @param unregisterToken The token that was used as the unregisterToken argument when calling
* register to register the target value.
*/
unregister(unregisterToken: WeakKey): void;
}
interface FinalizationRegistryConstructor {
readonly prototype: FinalizationRegistry<any>;
/**
* Creates a finalization registry with an associated cleanup callback
* @param cleanupCallback The callback to call after a value in the registry has been reclaimed.
*/
new <T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
}
declare var FinalizationRegistry: FinalizationRegistryConstructor;
`,_o["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;
}
`,_o["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" />
`,_o["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;
}
`,_o["lib.es2022.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2022" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`,_o["lib.es2022.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
/**
* An object with some or all properties of the \`Intl.Segmenter\` constructor \`options\` parameter.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
*/
interface SegmenterOptions {
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
localeMatcher?: "best fit" | "lookup" | undefined;
/** The type of input to be split */
granularity?: "grapheme" | "word" | "sentence" | undefined;
}
interface Segmenter {
/**
* Returns \`Segments\` object containing the segments of the input string, using the segmenter's locale and granularity.
*
* @param input - The text to be segmented as a \`string\`.
*
* @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity.
*/
segment(input: string): Segments;
resolvedOptions(): ResolvedSegmenterOptions;
}
interface ResolvedSegmenterOptions {
locale: string;
granularity: "grapheme" | "word" | "sentence";
}
interface Segments {
/**
* Returns an object describing the segment in the original string that includes the code unit at a specified index.
*
* @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to \`0\`.
*/
containing(codeUnitIndex?: number): SegmentData;
/** Returns an iterator to iterate over the segments. */
[Symbol.iterator](): IterableIterator<SegmentData>;
}
interface SegmentData {
/** A string containing the segment extracted from the original input string. */
segment: string;
/** The code unit index in the original input string at which the segment begins. */
index: number;
/** The complete input string that was segmented. */
input: string;
/**
* A boolean value only if granularity is "word"; otherwise, undefined.
* If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.
*/
isWordLike?: boolean;
}
const Segmenter: {
prototype: Segmenter;
/**
* Creates a new \`Intl.Segmenter\` object.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
* with some or all options of \`SegmenterOptions\`.
*
* @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
*/
new (locales?: LocalesArgument, options?: SegmenterOptions): Segmenter;
/**
* Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
* with some or all possible options.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
*/
supportedLocalesOf(locales: LocalesArgument, options?: Pick<SegmenterOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
};
/**
* Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation.
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf)
*
* @param key A string indicating the category of values to return.
* @returns A sorted array of the supported values.
*/
function supportedValuesOf(key: "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit"): string[];
}
`,_o["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;
}
`,_o["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;
}
`,_o["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">; };
}
`,_o["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;
}
`,_o["lib.es2023.array.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number;
/**
* Returns a copy of an array with its elements reversed.
*/
toReversed(): T[];
/**
* Returns a copy of an array with its elements sorted.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: T, b: T) => number): T[];
/**
* Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @param items Elements to insert into the copied array in place of the deleted elements.
* @returns The copied array.
*/
toSpliced(start: number, deleteCount: number, ...items: T[]): T[];
/**
* Copies an array and removes elements while returning the remaining elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @returns A copy of the original array with the remaining elements.
*/
toSpliced(start: number, deleteCount?: number): T[];
/**
* Copies an array, then overwrites the value at the provided index with the
* given value. If the index is negative, then it replaces from the end
* of the array.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to write into the copied array.
* @returns The copied array with the updated value.
*/
with(index: number, value: T): T[];
}
interface ReadonlyArray<T> {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends T>(
predicate: (value: T, index: number, array: readonly T[]) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (value: T, index: number, array: readonly T[]) => unknown,
thisArg?: any,
): T | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (value: T, index: number, array: readonly T[]) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copied array with all of its elements reversed.
*/
toReversed(): T[];
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: T, b: T) => number): T[];
/**
* Copies an array and removes elements while, if necessary, inserting new elements in their place, returning the remaining elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @param items Elements to insert into the copied array in place of the deleted elements.
* @returns A copy of the original array with the remaining elements.
*/
toSpliced(start: number, deleteCount: number, ...items: T[]): T[];
/**
* Copies an array and removes elements while returning the remaining elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @returns A copy of the original array with the remaining elements.
*/
toSpliced(start: number, deleteCount?: number): T[];
/**
* Copies an array, then overwrites the value at the provided index with the
* given value. If the index is negative, then it replaces from the end
* of the array
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: T): T[];
}
interface Int8Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Int8Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (value: number, index: number, array: Int8Array) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (value: number, index: number, array: Int8Array) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint8Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Uint8Array.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint8Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint8Array;
}
interface Uint8Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Uint8Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (value: number, index: number, array: Uint8Array) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (value: number, index: number, array: Uint8Array) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint8Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Uint8Array.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint8Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint8Array;
}
interface Uint8ClampedArray {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Uint8ClampedArray,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: Uint8ClampedArray,
) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (
value: number,
index: number,
array: Uint8ClampedArray,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint8ClampedArray;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Uint8ClampedArray.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint8ClampedArray;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint8ClampedArray;
}
interface Int16Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Int16Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (value: number, index: number, array: Int16Array) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (value: number, index: number, array: Int16Array) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Int16Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Int16Array.from([11, 2, -22, 1]);
* myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Int16Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Int16Array;
}
interface Uint16Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Uint16Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: Uint16Array,
) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (
value: number,
index: number,
array: Uint16Array,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint16Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Uint16Array.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint16Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint16Array;
}
interface Int32Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Int32Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (value: number, index: number, array: Int32Array) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (value: number, index: number, array: Int32Array) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Int32Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Int32Array.from([11, 2, -22, 1]);
* myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Int32Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Int32Array;
}
interface Uint32Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Uint32Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: Uint32Array,
) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (
value: number,
index: number,
array: Uint32Array,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint32Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Uint32Array.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint32Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint32Array;
}
interface Float32Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Float32Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: Float32Array,
) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (
value: number,
index: number,
array: Float32Array,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Float32Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Float32Array.from([11.25, 2, -22.5, 1]);
* myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Float32Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Float32Array;
}
interface Float64Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Float64Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: Float64Array,
) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (
value: number,
index: number,
array: Float64Array,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Float64Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Float64Array.from([11.25, 2, -22.5, 1]);
* myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Float64Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Float64Array;
}
interface BigInt64Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends bigint>(
predicate: (
value: bigint,
index: number,
array: BigInt64Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: bigint,
index: number,
array: BigInt64Array,
) => unknown,
thisArg?: any,
): bigint | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (
value: bigint,
index: number,
array: BigInt64Array,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): BigInt64Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]);
* myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n]
* \`\`\`
*/
toSorted(compareFn?: (a: bigint, b: bigint) => number): BigInt64Array;
/**
* Copies the array and inserts the given bigint at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: bigint): BigInt64Array;
}
interface BigUint64Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends bigint>(
predicate: (
value: bigint,
index: number,
array: BigUint64Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: bigint,
index: number,
array: BigUint64Array,
) => unknown,
thisArg?: any,
): bigint | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (
value: bigint,
index: number,
array: BigUint64Array,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): BigUint64Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]);
* myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n]
* \`\`\`
*/
toSorted(compareFn?: (a: bigint, b: bigint) => number): BigUint64Array;
/**
* Copies the array and inserts the given bigint at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: bigint): BigUint64Array;
}
`,_o["lib.es2023.collection.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface WeakKeyTypes {
symbol: symbol;
}
`,_o["lib.es2023.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2022" />
/// <reference lib="es2023.array" />
/// <reference lib="es2023.collection" />
`,_o["lib.es2023.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2023" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`,_o["lib.es5.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="decorators" />
/// <reference lib="decorators.legacy" />
/////////////////////////////
/// ECMAScript APIs
/////////////////////////////
declare var NaN: number;
declare var Infinity: number;
/**
* Evaluates JavaScript code and executes it.
* @param x A String value that contains valid JavaScript code.
*/
declare function eval(x: string): any;
/**
* Converts a string to an integer.
* @param string A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
declare function parseInt(string: string, radix?: number): number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
declare function parseFloat(string: string): number;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
* @param number A numeric value.
*/
declare function isNaN(number: number): boolean;
/**
* Determines whether a supplied number is finite.
* @param number Any numeric value.
*/
declare function isFinite(number: number): boolean;
/**
* Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
* @param encodedURI A value representing an encoded URI.
*/
declare function decodeURI(encodedURI: string): string;
/**
* Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
* @param encodedURIComponent A value representing an encoded URI component.
*/
declare function decodeURIComponent(encodedURIComponent: string): string;
/**
* Encodes a text string as a valid Uniform Resource Identifier (URI)
* @param uri A value representing an unencoded URI.
*/
declare function encodeURI(uri: string): string;
/**
* Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
* @param uriComponent A value representing an unencoded URI component.
*/
declare function encodeURIComponent(uriComponent: string | number | boolean): string;
/**
* Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
* @deprecated A legacy feature for browser compatibility
* @param string A string value
*/
declare function escape(string: string): string;
/**
* Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
* @deprecated A legacy feature for browser compatibility
* @param string A string value
*/
declare function unescape(string: string): string;
interface Symbol {
/** Returns a string representation of an object. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): symbol;
}
declare type PropertyKey = string | number | symbol;
interface PropertyDescriptor {
configurable?: boolean;
enumerable?: boolean;
value?: any;
writable?: boolean;
get?(): any;
set?(v: any): void;
}
interface PropertyDescriptorMap {
[key: PropertyKey]: PropertyDescriptor;
}
interface Object {
/** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
constructor: Function;
/** Returns a string representation of an object. */
toString(): string;
/** Returns a date converted to a string using the current locale. */
toLocaleString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Object;
/**
* Determines whether an object has a property with the specified name.
* @param v A property name.
*/
hasOwnProperty(v: PropertyKey): boolean;
/**
* Determines whether an object exists in another object's prototype chain.
* @param v Another object whose prototype chain is to be checked.
*/
isPrototypeOf(v: Object): boolean;
/**
* Determines whether a specified property is enumerable.
* @param v A property name.
*/
propertyIsEnumerable(v: PropertyKey): boolean;
}
interface ObjectConstructor {
new (value?: any): Object;
(): any;
(value: any): any;
/** A reference to the prototype for a class of objects. */
readonly prototype: Object;
/**
* Returns the prototype of an object.
* @param o The object that references the prototype.
*/
getPrototypeOf(o: any): any;
/**
* Gets the own property descriptor of the specified object.
* An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
* @param o Object that contains the property.
* @param p Name of the property.
*/
getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;
/**
* Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
* on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
* @param o Object that contains the own properties.
*/
getOwnPropertyNames(o: any): string[];
/**
* Creates an object that has the specified prototype or that has null prototype.
* @param o Object to use as a prototype. May be null.
*/
create(o: object | null): any;
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties.
* @param o Object to use as a prototype. May be null
* @param properties JavaScript object that contains one or more property descriptors.
*/
create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
/**
* Adds a property to an object, or modifies attributes of an existing property.
* @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
* @param p The property name.
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
*/
defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;
/**
* Adds one or more properties to an object, and/or modifies attributes of existing properties.
* @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
* @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
*/
defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;
/**
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
seal<T>(o: T): T;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param f Object on which to lock the attributes.
*/
freeze<T extends Function>(f: T): T;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze<T extends { [idx: string]: U | null | undefined | object; }, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze<T>(o: T): Readonly<T>;
/**
* Prevents the addition of new properties to an object.
* @param o Object to make non-extensible.
*/
preventExtensions<T>(o: T): T;
/**
* Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
* @param o Object to test.
*/
isSealed(o: any): boolean;
/**
* Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
* @param o Object to test.
*/
isFrozen(o: any): boolean;
/**
* Returns a value that indicates whether new properties can be added to an object.
* @param o Object to test.
*/
isExtensible(o: any): boolean;
/**
* Returns the names of the enumerable string properties and methods of an object.
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
keys(o: object): string[];
}
/**
* Provides functionality common to all JavaScript objects.
*/
declare var Object: ObjectConstructor;
/**
* Creates a new function.
*/
interface Function {
/**
* Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
* @param thisArg The object to be used as the this object.
* @param argArray A set of arguments to be passed to the function.
*/
apply(this: Function, thisArg: any, argArray?: any): any;
/**
* Calls a method of an object, substituting another object for the current object.
* @param thisArg The object to be used as the current object.
* @param argArray A list of arguments to be passed to the method.
*/
call(this: Function, thisArg: any, ...argArray: any[]): any;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg An object to which the this keyword can refer inside the new function.
* @param argArray A list of arguments to be passed to the new function.
*/
bind(this: Function, thisArg: any, ...argArray: any[]): any;
/** Returns a string representation of a function. */
toString(): string;
prototype: any;
readonly length: number;
// Non-standard extensions
arguments: any;
caller: Function;
}
interface FunctionConstructor {
/**
* Creates a new function.
* @param args A list of arguments the function accepts.
*/
new (...args: string[]): Function;
(...args: string[]): Function;
readonly prototype: Function;
}
declare var Function: FunctionConstructor;
/**
* Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
*/
type ThisParameterType<T> = T extends (this: infer U, ...args: never) => any ? U : unknown;
/**
* Removes the 'this' parameter from a function type.
*/
type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;
interface CallableFunction extends Function {
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
*/
apply<T, R>(this: (this: T) => R, thisArg: T): R;
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
* @param args An array of argument values to be passed to the function.
*/
apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;
/**
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
* @param thisArg The object to be used as the this object.
* @param args Argument values to be passed to the function.
*/
call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
*/
bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
* @param args Arguments to bind to the parameters of the function.
*/
bind<T, A extends any[], B extends any[], R>(this: (this: T, ...args: [...A, ...B]) => R, thisArg: T, ...args: A): (...args: B) => R;
}
interface NewableFunction extends Function {
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
*/
apply<T>(this: new () => T, thisArg: T): void;
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
* @param args An array of argument values to be passed to the function.
*/
apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;
/**
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
* @param thisArg The object to be used as the this object.
* @param args Argument values to be passed to the function.
*/
call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
*/
bind<T>(this: T, thisArg: any): T;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
* @param args Arguments to bind to the parameters of the function.
*/
bind<A extends any[], B extends any[], R>(this: new (...args: [...A, ...B]) => R, thisArg: any, ...args: A): new (...args: B) => R;
}
interface IArguments {
[index: number]: any;
length: number;
callee: Function;
}
interface String {
/** Returns a string representation of a string. */
toString(): string;
/**
* Returns the character at the specified index.
* @param pos The zero-based index of the desired character.
*/
charAt(pos: number): string;
/**
* Returns the Unicode value of the character at the specified location.
* @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
*/
charCodeAt(index: number): number;
/**
* Returns a string that contains the concatenation of two or more strings.
* @param strings The strings to append to the end of the string.
*/
concat(...strings: string[]): string;
/**
* Returns the position of the first occurrence of a substring.
* @param searchString The substring to search for in the string
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
*/
indexOf(searchString: string, position?: number): number;
/**
* Returns the last occurrence of a substring in the string.
* @param searchString The substring to search for.
* @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
*/
lastIndexOf(searchString: string, position?: number): number;
/**
* Determines whether two strings are equivalent in the current locale.
* @param that String to compare to target string
*/
localeCompare(that: string): number;
/**
* Matches a string with a regular expression, and returns an array containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
match(regexp: string | RegExp): RegExpMatchArray | null;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A string or regular expression to search for.
* @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a \`RegExp\`, all matches are replaced if the \`g\` flag is set (or only those matches at the beginning, if the \`y\` flag is also present). Otherwise, only the first match of {@linkcode searchValue} is replaced.
*/
replace(searchValue: string | RegExp, replaceValue: string): string;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replacer A function that returns the replacement text.
*/
replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the first substring match in a regular expression search.
* @param regexp The regular expression pattern and applicable flags.
*/
search(regexp: string | RegExp): number;
/**
* Returns a section of a string.
* @param start The index to the beginning of the specified portion of stringObj.
* @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
* If this value is not specified, the substring continues to the end of stringObj.
*/
slice(start?: number, end?: number): string;
/**
* Split a string into substrings using the specified separator and return them as an array.
* @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(separator: string | RegExp, limit?: number): string[];
/**
* Returns the substring at the specified location within a String object.
* @param start The zero-based index number indicating the beginning of the substring.
* @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
* If end is omitted, the characters from start through the end of the original string are returned.
*/
substring(start: number, end?: number): string;
/** Converts all the alphabetic characters in a string to lowercase. */
toLowerCase(): string;
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
toLocaleLowerCase(locales?: string | string[]): string;
/** Converts all the alphabetic characters in a string to uppercase. */
toUpperCase(): string;
/** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
toLocaleUpperCase(locales?: string | string[]): string;
/** Removes the leading and trailing white space and line terminator characters from a string. */
trim(): string;
/** Returns the length of a String object. */
readonly length: number;
// IE extensions
/**
* Gets a substring beginning at the specified location and having the specified length.
* @deprecated A legacy feature for browser compatibility
* @param from The starting position of the desired substring. The index of the first character in the string is zero.
* @param length The number of characters to include in the returned substring.
*/
substr(from: number, length?: number): string;
/** Returns the primitive value of the specified object. */
valueOf(): string;
readonly [index: number]: string;
}
interface StringConstructor {
new (value?: any): String;
(value?: any): string;
readonly prototype: String;
fromCharCode(...codes: number[]): string;
}
/**
* Allows manipulation and formatting of text strings and determination and location of substrings within strings.
*/
declare var String: StringConstructor;
interface Boolean {
/** Returns the primitive value of the specified object. */
valueOf(): boolean;
}
interface BooleanConstructor {
new (value?: any): Boolean;
<T>(value?: T): boolean;
readonly prototype: Boolean;
}
declare var Boolean: BooleanConstructor;
interface Number {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
*/
toString(radix?: number): string;
/**
* Returns a string representing a number in fixed-point notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toFixed(fractionDigits?: number): string;
/**
* Returns a string containing a number represented in exponential notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toExponential(fractionDigits?: number): string;
/**
* Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
*/
toPrecision(precision?: number): string;
/** Returns the primitive value of the specified object. */
valueOf(): number;
}
interface NumberConstructor {
new (value?: any): Number;
(value?: any): number;
readonly prototype: Number;
/** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
readonly MAX_VALUE: number;
/** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
readonly MIN_VALUE: number;
/**
* A value that is not a number.
* In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
*/
readonly NaN: number;
/**
* A value that is less than the largest negative number that can be represented in JavaScript.
* JavaScript displays NEGATIVE_INFINITY values as -infinity.
*/
readonly NEGATIVE_INFINITY: number;
/**
* A value greater than the largest number that can be represented in JavaScript.
* JavaScript displays POSITIVE_INFINITY values as infinity.
*/
readonly POSITIVE_INFINITY: number;
}
/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
declare var Number: NumberConstructor;
interface TemplateStringsArray extends ReadonlyArray<string> {
readonly raw: readonly string[];
}
/**
* The type of \`import.meta\`.
*
* If you need to declare that a given property exists on \`import.meta\`,
* this type may be augmented via interface merging.
*/
interface ImportMeta {
}
/**
* The type for the optional second argument to \`import()\`.
*
* If your host environment supports additional options, this type may be
* augmented via interface merging.
*/
interface ImportCallOptions {
/** @deprecated*/ assert?: ImportAssertions;
with?: ImportAttributes;
}
/**
* The type for the \`assert\` property of the optional second argument to \`import()\`.
* @deprecated
*/
interface ImportAssertions {
[key: string]: string;
}
/**
* The type for the \`with\` property of the optional second argument to \`import()\`.
*/
interface ImportAttributes {
[key: string]: string;
}
interface Math {
/** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
readonly E: number;
/** The natural logarithm of 10. */
readonly LN10: number;
/** The natural logarithm of 2. */
readonly LN2: number;
/** The base-2 logarithm of e. */
readonly LOG2E: number;
/** The base-10 logarithm of e. */
readonly LOG10E: number;
/** Pi. This is the ratio of the circumference of a circle to its diameter. */
readonly PI: number;
/** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
readonly SQRT1_2: number;
/** The square root of 2. */
readonly SQRT2: number;
/**
* Returns the absolute value of a number (the value without regard to whether it is positive or negative).
* For example, the absolute value of -5 is the same as the absolute value of 5.
* @param x A numeric expression for which the absolute value is needed.
*/
abs(x: number): number;
/**
* Returns the arc cosine (or inverse cosine) of a number.
* @param x A numeric expression.
*/
acos(x: number): number;
/**
* Returns the arcsine of a number.
* @param x A numeric expression.
*/
asin(x: number): number;
/**
* Returns the arctangent of a number.
* @param x A numeric expression for which the arctangent is needed.
*/
atan(x: number): number;
/**
* Returns the angle (in radians) from the X axis to a point.
* @param y A numeric expression representing the cartesian y-coordinate.
* @param x A numeric expression representing the cartesian x-coordinate.
*/
atan2(y: number, x: number): number;
/**
* Returns the smallest integer greater than or equal to its numeric argument.
* @param x A numeric expression.
*/
ceil(x: number): number;
/**
* Returns the cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
cos(x: number): number;
/**
* Returns e (the base of natural logarithms) raised to a power.
* @param x A numeric expression representing the power of e.
*/
exp(x: number): number;
/**
* Returns the greatest integer less than or equal to its numeric argument.
* @param x A numeric expression.
*/
floor(x: number): number;
/**
* Returns the natural logarithm (base e) of a number.
* @param x A numeric expression.
*/
log(x: number): number;
/**
* Returns the larger of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
max(...values: number[]): number;
/**
* Returns the smaller of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
min(...values: number[]): number;
/**
* Returns the value of a base expression taken to a specified power.
* @param x The base value of the expression.
* @param y The exponent value of the expression.
*/
pow(x: number, y: number): number;
/** Returns a pseudorandom number between 0 and 1. */
random(): number;
/**
* Returns a supplied numeric expression rounded to the nearest integer.
* @param x The value to be rounded to the nearest integer.
*/
round(x: number): number;
/**
* Returns the sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
sin(x: number): number;
/**
* Returns the square root of a number.
* @param x A numeric expression.
*/
sqrt(x: number): number;
/**
* Returns the tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
tan(x: number): number;
}
/** An intrinsic object that provides basic mathematics functionality and constants. */
declare var Math: Math;
/** Enables basic storage and retrieval of dates and times. */
interface Date {
/** Returns a string representation of a date. The format of the string depends on the locale. */
toString(): string;
/** Returns a date as a string value. */
toDateString(): string;
/** Returns a time as a string value. */
toTimeString(): string;
/** Returns a value as a string value appropriate to the host environment's current locale. */
toLocaleString(): string;
/** Returns a date as a string value appropriate to the host environment's current locale. */
toLocaleDateString(): string;
/** Returns a time as a string value appropriate to the host environment's current locale. */
toLocaleTimeString(): string;
/** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
valueOf(): number;
/** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
getTime(): number;
/** Gets the year, using local time. */
getFullYear(): number;
/** Gets the year using Universal Coordinated Time (UTC). */
getUTCFullYear(): number;
/** Gets the month, using local time. */
getMonth(): number;
/** Gets the month of a Date object using Universal Coordinated Time (UTC). */
getUTCMonth(): number;
/** Gets the day-of-the-month, using local time. */
getDate(): number;
/** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
getUTCDate(): number;
/** Gets the day of the week, using local time. */
getDay(): number;
/** Gets the day of the week using Universal Coordinated Time (UTC). */
getUTCDay(): number;
/** Gets the hours in a date, using local time. */
getHours(): number;
/** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
getUTCHours(): number;
/** Gets the minutes of a Date object, using local time. */
getMinutes(): number;
/** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
getUTCMinutes(): number;
/** Gets the seconds of a Date object, using local time. */
getSeconds(): number;
/** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
getUTCSeconds(): number;
/** Gets the milliseconds of a Date, using local time. */
getMilliseconds(): number;
/** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
getUTCMilliseconds(): number;
/** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
getTimezoneOffset(): number;
/**
* Sets the date and time value in the Date object.
* @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
*/
setTime(time: number): number;
/**
* Sets the milliseconds value in the Date object using local time.
* @param ms A numeric value equal to the millisecond value.
*/
setMilliseconds(ms: number): number;
/**
* Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
* @param ms A numeric value equal to the millisecond value.
*/
setUTCMilliseconds(ms: number): number;
/**
* Sets the seconds value in the Date object using local time.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setSeconds(sec: number, ms?: number): number;
/**
* Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCSeconds(sec: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using local time.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the hour value in the Date object using local time.
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the hours value in the Date object using Universal Coordinated Time (UTC).
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the numeric day-of-the-month value of the Date object using local time.
* @param date A numeric value equal to the day of the month.
*/
setDate(date: number): number;
/**
* Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
* @param date A numeric value equal to the day of the month.
*/
setUTCDate(date: number): number;
/**
* Sets the month value in the Date object using local time.
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
*/
setMonth(month: number, date?: number): number;
/**
* Sets the month value in the Date object using Universal Coordinated Time (UTC).
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
*/
setUTCMonth(month: number, date?: number): number;
/**
* Sets the year of the Date object using local time.
* @param year A numeric value for the year.
* @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
* @param date A numeric value equal for the day of the month.
*/
setFullYear(year: number, month?: number, date?: number): number;
/**
* Sets the year value in the Date object using Universal Coordinated Time (UTC).
* @param year A numeric value equal to the year.
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
* @param date A numeric value equal to the day of the month.
*/
setUTCFullYear(year: number, month?: number, date?: number): number;
/** Returns a date converted to a string using Universal Coordinated Time (UTC). */
toUTCString(): string;
/** Returns a date as a string value in ISO format. */
toISOString(): string;
/** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
toJSON(key?: any): string;
}
interface DateConstructor {
new (): Date;
new (value: number | string): Date;
/**
* Creates a new Date.
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
* @param monthIndex The month as a number between 0 and 11 (January to December).
* @param date The date as a number between 1 and 31.
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
* @param ms A number from 0 to 999 that specifies the milliseconds.
*/
new (year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
(): string;
readonly prototype: Date;
/**
* Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
* @param s A date string
*/
parse(s: string): number;
/**
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
* @param monthIndex The month as a number between 0 and 11 (January to December).
* @param date The date as a number between 1 and 31.
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
* @param ms A number from 0 to 999 that specifies the milliseconds.
*/
UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
/** Returns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC). */
now(): number;
}
declare var Date: DateConstructor;
interface RegExpMatchArray extends Array<string> {
/**
* The index of the search at which the result was found.
*/
index?: number;
/**
* A copy of the search string.
*/
input?: string;
/**
* The first match. This will always be present because \`null\` will be returned if there are no matches.
*/
0: string;
}
interface RegExpExecArray extends Array<string> {
/**
* The index of the search at which the result was found.
*/
index: number;
/**
* A copy of the search string.
*/
input: string;
/**
* The first match. This will always be present because \`null\` will be returned if there are no matches.
*/
0: string;
}
interface RegExp {
/**
* Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
* @param string The String object or string literal on which to perform the search.
*/
exec(string: string): RegExpExecArray | null;
/**
* Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
* @param string String on which to perform the search.
*/
test(string: string): boolean;
/** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
readonly source: string;
/** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
readonly global: boolean;
/** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
readonly ignoreCase: boolean;
/** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
readonly multiline: boolean;
lastIndex: number;
// Non-standard extensions
/** @deprecated A legacy feature for browser compatibility */
compile(pattern: string, flags?: string): this;
}
interface RegExpConstructor {
new (pattern: RegExp | string): RegExp;
new (pattern: string, flags?: string): RegExp;
(pattern: RegExp | string): RegExp;
(pattern: string, flags?: string): RegExp;
readonly "prototype": RegExp;
// Non-standard extensions
/** @deprecated A legacy feature for browser compatibility */
"$1": string;
/** @deprecated A legacy feature for browser compatibility */
"$2": string;
/** @deprecated A legacy feature for browser compatibility */
"$3": string;
/** @deprecated A legacy feature for browser compatibility */
"$4": string;
/** @deprecated A legacy feature for browser compatibility */
"$5": string;
/** @deprecated A legacy feature for browser compatibility */
"$6": string;
/** @deprecated A legacy feature for browser compatibility */
"$7": string;
/** @deprecated A legacy feature for browser compatibility */
"$8": string;
/** @deprecated A legacy feature for browser compatibility */
"$9": string;
/** @deprecated A legacy feature for browser compatibility */
"input": string;
/** @deprecated A legacy feature for browser compatibility */
"$_": string;
/** @deprecated A legacy feature for browser compatibility */
"lastMatch": string;
/** @deprecated A legacy feature for browser compatibility */
"$&": string;
/** @deprecated A legacy feature for browser compatibility */
"lastParen": string;
/** @deprecated A legacy feature for browser compatibility */
"$+": string;
/** @deprecated A legacy feature for browser compatibility */
"leftContext": string;
/** @deprecated A legacy feature for browser compatibility */
"$\`": string;
/** @deprecated A legacy feature for browser compatibility */
"rightContext": string;
/** @deprecated A legacy feature for browser compatibility */
"$'": string;
}
declare var RegExp: RegExpConstructor;
interface Error {
name: string;
message: string;
stack?: string;
}
interface ErrorConstructor {
new (message?: string): Error;
(message?: string): Error;
readonly prototype: Error;
}
declare var Error: ErrorConstructor;
interface EvalError extends Error {
}
interface EvalErrorConstructor extends ErrorConstructor {
new (message?: string): EvalError;
(message?: string): EvalError;
readonly prototype: EvalError;
}
declare var EvalError: EvalErrorConstructor;
interface RangeError extends Error {
}
interface RangeErrorConstructor extends ErrorConstructor {
new (message?: string): RangeError;
(message?: string): RangeError;
readonly prototype: RangeError;
}
declare var RangeError: RangeErrorConstructor;
interface ReferenceError extends Error {
}
interface ReferenceErrorConstructor extends ErrorConstructor {
new (message?: string): ReferenceError;
(message?: string): ReferenceError;
readonly prototype: ReferenceError;
}
declare var ReferenceError: ReferenceErrorConstructor;
interface SyntaxError extends Error {
}
interface SyntaxErrorConstructor extends ErrorConstructor {
new (message?: string): SyntaxError;
(message?: string): SyntaxError;
readonly prototype: SyntaxError;
}
declare var SyntaxError: SyntaxErrorConstructor;
interface TypeError extends Error {
}
interface TypeErrorConstructor extends ErrorConstructor {
new (message?: string): TypeError;
(message?: string): TypeError;
readonly prototype: TypeError;
}
declare var TypeError: TypeErrorConstructor;
interface URIError extends Error {
}
interface URIErrorConstructor extends ErrorConstructor {
new (message?: string): URIError;
(message?: string): URIError;
readonly prototype: URIError;
}
declare var URIError: URIErrorConstructor;
interface JSON {
/**
* Converts a JavaScript Object Notation (JSON) string into an object.
* @param text A valid JSON string.
* @param reviver A function that transforms the results. This function is called for each member of the object.
* If a member contains nested objects, the nested objects are transformed before the parent object is.
*/
parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer A function that transforms the results.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
}
/**
* An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
*/
declare var JSON: JSON;
/////////////////////////////
/// ECMAScript Array API (specially handled by compiler)
/////////////////////////////
interface ReadonlyArray<T> {
/**
* Gets the length of the array. This is a number one higher than the highest element defined in an array.
*/
readonly length: number;
/**
* Returns a string representation of an array.
*/
toString(): string;
/**
* Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
*/
toLocaleString(): string;
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: ConcatArray<T>[]): T[];
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: (T | ConcatArray<T>)[]): T[];
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): T[];
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
*/
indexOf(searchElement: T, fromIndex?: number): number;
/**
* Returns the index of the last occurrence of a specified value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
*/
lastIndexOf(searchElement: T, fromIndex?: number): number;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
readonly [n: number]: T;
}
interface ConcatArray<T> {
readonly length: number;
readonly [n: number]: T;
join(separator?: string): string;
slice(start?: number, end?: number): T[];
}
interface Array<T> {
/**
* Gets or sets the length of the array. This is a number one higher than the highest index in the array.
*/
length: number;
/**
* Returns a string representation of an array.
*/
toString(): string;
/**
* Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
*/
toLocaleString(): string;
/**
* Removes the last element from an array and returns it.
* If the array is empty, undefined is returned and the array is not modified.
*/
pop(): T | undefined;
/**
* Appends new elements to the end of an array, and returns the new length of the array.
* @param items New elements to add to the array.
*/
push(...items: T[]): number;
/**
* Combines two or more arrays.
* This method returns a new array without modifying any existing arrays.
* @param items Additional arrays and/or items to add to the end of the array.
*/
concat(...items: ConcatArray<T>[]): T[];
/**
* Combines two or more arrays.
* This method returns a new array without modifying any existing arrays.
* @param items Additional arrays and/or items to add to the end of the array.
*/
concat(...items: (T | ConcatArray<T>)[]): T[];
/**
* Adds all the elements of an array into a string, separated by the specified separator string.
* @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Reverses the elements in an array in place.
* This method mutates the array and returns a reference to the same array.
*/
reverse(): T[];
/**
* Removes the first element from an array and returns it.
* If the array is empty, undefined is returned and the array is not modified.
*/
shift(): T | undefined;
/**
* Returns a copy of a section of an array.
* For both start and end, a negative index can be used to indicate an offset from the end of the array.
* For example, -2 refers to the second to last element of the array.
* @param start The beginning index of the specified portion of the array.
* If start is undefined, then the slice begins at index 0.
* @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.
* If end is undefined, then the slice extends to the end of the array.
*/
slice(start?: number, end?: number): T[];
/**
* Sorts an array in place.
* This method mutates the array and returns a reference to the same array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: T, b: T) => number): this;
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @returns An array containing the elements that were deleted.
*/
splice(start: number, deleteCount?: number): T[];
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @param items Elements to insert into the array in place of the deleted elements.
* @returns An array containing the elements that were deleted.
*/
splice(start: number, deleteCount: number, ...items: T[]): T[];
/**
* Inserts new elements at the start of an array, and returns the new length of the array.
* @param items Elements to insert at the start of the array.
*/
unshift(...items: T[]): number;
/**
* Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
*/
indexOf(searchElement: T, fromIndex?: number): number;
/**
* Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.
*/
lastIndexOf(searchElement: T, fromIndex?: number): number;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
[n: number]: T;
}
interface ArrayConstructor {
new (arrayLength?: number): any[];
new <T>(arrayLength: number): T[];
new <T>(...items: T[]): T[];
(arrayLength?: number): any[];
<T>(arrayLength: number): T[];
<T>(...items: T[]): T[];
isArray(arg: any): arg is any[];
readonly prototype: any[];
}
declare var Array: ArrayConstructor;
interface TypedPropertyDescriptor<T> {
enumerable?: boolean;
configurable?: boolean;
writable?: boolean;
value?: T;
get?: () => T;
set?: (value: T) => void;
}
declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
interface PromiseLike<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
}
/**
* Represents the completion of an asynchronous operation
*/
interface Promise<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
}
/**
* Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to \`never\`. This emulates the behavior of \`await\`.
*/
type Awaited<T> = T extends null | undefined ? T : // special case for \`null | undefined\` when not in \`--strictNullChecks\` mode
T extends object & { then(onfulfilled: infer F, ...args: infer _): any; } ? // \`await\` only unwraps object types with a callable \`then\`. Non-object types are not unwrapped
F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to \`then\` is callable, extracts the first argument
Awaited<V> : // recursively unwrap the value
never : // the argument to \`then\` was not callable
T; // non-object or non-thenable
interface ArrayLike<T> {
readonly length: number;
readonly [n: number]: T;
}
/**
* Make all properties in T optional
*/
type Partial<T> = {
[P in keyof T]?: T[P];
};
/**
* Make all properties in T required
*/
type Required<T> = {
[P in keyof T]-?: T[P];
};
/**
* Make all properties in T readonly
*/
type Readonly<T> = {
readonly [P in keyof T]: T[P];
};
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
/**
* Construct a type with a set of properties K of type T
*/
type Record<K extends keyof any, T> = {
[P in K]: T;
};
/**
* Exclude from T those types that are assignable to U
*/
type Exclude<T, U> = T extends U ? never : T;
/**
* Extract from T those types that are assignable to U
*/
type Extract<T, U> = T extends U ? T : never;
/**
* Construct a type with the properties of T except for those in type K.
*/
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
/**
* Exclude null and undefined from T
*/
type NonNullable<T> = T & {};
/**
* Obtain the parameters of a function type in a tuple
*/
type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
/**
* Obtain the parameters of a constructor function type in a tuple
*/
type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;
/**
* Obtain the return type of a function type
*/
type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
/**
* Obtain the return type of a constructor function type
*/
type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;
/**
* Convert string literal type to uppercase
*/
type Uppercase<S extends string> = intrinsic;
/**
* Convert string literal type to lowercase
*/
type Lowercase<S extends string> = intrinsic;
/**
* Convert first character of string literal type to uppercase
*/
type Capitalize<S extends string> = intrinsic;
/**
* Convert first character of string literal type to lowercase
*/
type Uncapitalize<S extends string> = intrinsic;
/**
* Marker for non-inference type position
*/
type NoInfer<T> = intrinsic;
/**
* Marker for contextual 'this' type
*/
interface ThisType<T> {}
/**
* Stores types to be used with WeakSet, WeakMap, WeakRef, and FinalizationRegistry
*/
interface WeakKeyTypes {
object: object;
}
type WeakKey = WeakKeyTypes[keyof WeakKeyTypes];
/**
* Represents a raw buffer of binary data, which is used to store data for the
* different typed arrays. ArrayBuffers cannot be read from or written to directly,
* but can be passed to a typed array or DataView Object to interpret the raw
* buffer as needed.
*/
interface ArrayBuffer {
/**
* Read-only. The length of the ArrayBuffer (in bytes).
*/
readonly byteLength: number;
/**
* Returns a section of an ArrayBuffer.
*/
slice(begin: number, end?: number): ArrayBuffer;
}
/**
* Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
*/
interface ArrayBufferTypes {
ArrayBuffer: ArrayBuffer;
}
type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
interface ArrayBufferConstructor {
readonly prototype: ArrayBuffer;
new (byteLength: number): ArrayBuffer;
isView(arg: any): arg is ArrayBufferView;
}
declare var ArrayBuffer: ArrayBufferConstructor;
interface ArrayBufferView {
/**
* The ArrayBuffer instance referenced by the array.
*/
buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
byteLength: number;
/**
* The offset in bytes of the array.
*/
byteOffset: number;
}
interface DataView {
readonly buffer: ArrayBuffer;
readonly byteLength: number;
readonly byteOffset: number;
/**
* Gets the Float32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getFloat32(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Float64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getFloat64(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Int8 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getInt8(byteOffset: number): number;
/**
* Gets the Int16 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getInt16(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Int32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getInt32(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Uint8 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getUint8(byteOffset: number): number;
/**
* Gets the Uint16 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getUint16(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Uint32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getUint32(byteOffset: number, littleEndian?: boolean): number;
/**
* Stores an Float32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Float64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Int8 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
*/
setInt8(byteOffset: number, value: number): void;
/**
* Stores an Int16 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Int32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Uint8 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
*/
setUint8(byteOffset: number, value: number): void;
/**
* Stores an Uint16 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Uint32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
}
interface DataViewConstructor {
readonly prototype: DataView;
new (buffer: ArrayBufferLike & { BYTES_PER_ELEMENT?: never; }, byteOffset?: number, byteLength?: number): DataView;
}
declare var DataView: DataViewConstructor;
/**
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
* number of bytes could not be allocated an exception is raised.
*/
interface Int8Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int8Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int8Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int8Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Int8Array;
[index: number]: number;
}
interface Int8ArrayConstructor {
readonly prototype: Int8Array;
new (length: number): Int8Array;
new (array: ArrayLike<number> | ArrayBufferLike): Int8Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
}
declare var Int8Array: Int8ArrayConstructor;
/**
* A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint8Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint8Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint8Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint8Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint8Array;
[index: number]: number;
}
interface Uint8ArrayConstructor {
readonly prototype: Uint8Array;
new (length: number): Uint8Array;
new (array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
}
declare var Uint8Array: Uint8ArrayConstructor;
/**
* A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
* If the requested number of bytes could not be allocated an exception is raised.
*/
interface Uint8ClampedArray {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint8ClampedArray;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint8ClampedArray;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint8ClampedArray;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint8ClampedArray;
[index: number]: number;
}
interface Uint8ClampedArrayConstructor {
readonly prototype: Uint8ClampedArray;
new (length: number): Uint8ClampedArray;
new (array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;
}
declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
/**
* A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Int16Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int16Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int16Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int16Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Int16Array;
[index: number]: number;
}
interface Int16ArrayConstructor {
readonly prototype: Int16Array;
new (length: number): Int16Array;
new (array: ArrayLike<number> | ArrayBufferLike): Int16Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
}
declare var Int16Array: Int16ArrayConstructor;
/**
* A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint16Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint16Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint16Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint16Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint16Array;
[index: number]: number;
}
interface Uint16ArrayConstructor {
readonly prototype: Uint16Array;
new (length: number): Uint16Array;
new (array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
}
declare var Uint16Array: Uint16ArrayConstructor;
/**
* A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Int32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Int32Array;
[index: number]: number;
}
interface Int32ArrayConstructor {
readonly prototype: Int32Array;
new (length: number): Int32Array;
new (array: ArrayLike<number> | ArrayBufferLike): Int32Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
}
declare var Int32Array: Int32ArrayConstructor;
/**
* A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint32Array;
[index: number]: number;
}
interface Uint32ArrayConstructor {
readonly prototype: Uint32Array;
new (length: number): Uint32Array;
new (array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
}
declare var Uint32Array: Uint32ArrayConstructor;
/**
* A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
* of bytes could not be allocated an exception is raised.
*/
interface Float32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Float32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Float32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Float32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Float32Array;
[index: number]: number;
}
interface Float32ArrayConstructor {
readonly prototype: Float32Array;
new (length: number): Float32Array;
new (array: ArrayLike<number> | ArrayBufferLike): Float32Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
}
declare var Float32Array: Float32ArrayConstructor;
/**
* A typed array of 64-bit float values. The contents are initialized to 0. If the requested
* number of bytes could not be allocated an exception is raised.
*/
interface Float64Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Float64Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Float64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Float64Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Float64Array;
[index: number]: number;
}
interface Float64ArrayConstructor {
readonly prototype: Float64Array;
new (length: number): Float64Array;
new (array: ArrayLike<number> | ArrayBufferLike): Float64Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
}
declare var Float64Array: Float64ArrayConstructor;
/////////////////////////////
/// ECMAScript Internationalization API
/////////////////////////////
declare namespace Intl {
interface CollatorOptions {
usage?: "sort" | "search" | undefined;
localeMatcher?: "lookup" | "best fit" | undefined;
numeric?: boolean | undefined;
caseFirst?: "upper" | "lower" | "false" | undefined;
sensitivity?: "base" | "accent" | "case" | "variant" | undefined;
collation?: "big5han" | "compat" | "dict" | "direct" | "ducet" | "emoji" | "eor" | "gb2312" | "phonebk" | "phonetic" | "pinyin" | "reformed" | "searchjl" | "stroke" | "trad" | "unihan" | "zhuyin" | undefined;
ignorePunctuation?: boolean | undefined;
}
interface ResolvedCollatorOptions {
locale: string;
usage: string;
sensitivity: string;
ignorePunctuation: boolean;
collation: string;
caseFirst: string;
numeric: boolean;
}
interface Collator {
compare(x: string, y: string): number;
resolvedOptions(): ResolvedCollatorOptions;
}
interface CollatorConstructor {
new (locales?: string | string[], options?: CollatorOptions): Collator;
(locales?: string | string[], options?: CollatorOptions): Collator;
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
}
var Collator: CollatorConstructor;
interface NumberFormatOptions {
localeMatcher?: string | undefined;
style?: string | undefined;
currency?: string | undefined;
currencySign?: string | undefined;
useGrouping?: boolean | undefined;
minimumIntegerDigits?: number | undefined;
minimumFractionDigits?: number | undefined;
maximumFractionDigits?: number | undefined;
minimumSignificantDigits?: number | undefined;
maximumSignificantDigits?: number | undefined;
}
interface ResolvedNumberFormatOptions {
locale: string;
numberingSystem: string;
style: string;
currency?: string;
minimumIntegerDigits: number;
minimumFractionDigits: number;
maximumFractionDigits: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
useGrouping: boolean;
}
interface NumberFormat {
format(value: number): string;
resolvedOptions(): ResolvedNumberFormatOptions;
}
interface NumberFormatConstructor {
new (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
readonly prototype: NumberFormat;
}
var NumberFormat: NumberFormatConstructor;
interface DateTimeFormatOptions {
localeMatcher?: "best fit" | "lookup" | undefined;
weekday?: "long" | "short" | "narrow" | undefined;
era?: "long" | "short" | "narrow" | undefined;
year?: "numeric" | "2-digit" | undefined;
month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;
day?: "numeric" | "2-digit" | undefined;
hour?: "numeric" | "2-digit" | undefined;
minute?: "numeric" | "2-digit" | undefined;
second?: "numeric" | "2-digit" | undefined;
timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
formatMatcher?: "best fit" | "basic" | undefined;
hour12?: boolean | undefined;
timeZone?: string | undefined;
}
interface ResolvedDateTimeFormatOptions {
locale: string;
calendar: string;
numberingSystem: string;
timeZone: string;
hour12?: boolean;
weekday?: string;
era?: string;
year?: string;
month?: string;
day?: string;
hour?: string;
minute?: string;
second?: string;
timeZoneName?: string;
}
interface DateTimeFormat {
format(date?: Date | number): string;
resolvedOptions(): ResolvedDateTimeFormatOptions;
}
interface DateTimeFormatConstructor {
new (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
readonly prototype: DateTimeFormat;
}
var DateTimeFormat: DateTimeFormatConstructor;
}
interface String {
/**
* Determines whether two strings are equivalent in the current or specified locale.
* @param that String to compare to target string
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
*/
localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
}
interface Number {
/**
* Converts a number to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
}
interface Date {
/**
* Converts a date and time to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a date to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a time to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
}
`,_o["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" />
`,_o["lib.esnext.collection.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface MapConstructor {
/**
* Groups members of an iterable according to the return value of the passed callback.
* @param items An iterable.
* @param keySelector A callback which will be invoked for each item in items.
*/
groupBy<K, T>(
items: Iterable<T>,
keySelector: (item: T, index: number) => K,
): Map<K, T[]>;
}
`,_o["lib.esnext.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2023" />
/// <reference lib="esnext.intl" />
/// <reference lib="esnext.decorators" />
/// <reference lib="esnext.disposable" />
/// <reference lib="esnext.promise" />
/// <reference lib="esnext.object" />
/// <reference lib="esnext.collection" />
`,_o["lib.esnext.decorators.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
/// <reference lib="decorators" />
interface SymbolConstructor {
readonly metadata: unique symbol;
}
interface Function {
[Symbol.metadata]: DecoratorMetadata | null;
}
`,_o["lib.esnext.disposable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that is used to release resources held by an object. Called by the semantics of the \`using\` statement.
*/
readonly dispose: unique symbol;
/**
* A method that is used to asynchronously release resources held by an object. Called by the semantics of the \`await using\` statement.
*/
readonly asyncDispose: unique symbol;
}
interface Disposable {
[Symbol.dispose](): void;
}
interface AsyncDisposable {
[Symbol.asyncDispose](): PromiseLike<void>;
}
interface SuppressedError extends Error {
error: any;
suppressed: any;
}
interface SuppressedErrorConstructor {
new (error: any, suppressed: any, message?: string): SuppressedError;
(error: any, suppressed: any, message?: string): SuppressedError;
readonly prototype: SuppressedError;
}
declare var SuppressedError: SuppressedErrorConstructor;
interface DisposableStack {
/**
* Returns a value indicating whether this stack has been disposed.
*/
readonly disposed: boolean;
/**
* Disposes each resource in the stack in the reverse order that they were added.
*/
dispose(): void;
/**
* Adds a disposable resource to the stack, returning the resource.
* @param value The resource to add. \`null\` and \`undefined\` will not be added, but will be returned.
* @returns The provided {@link value}.
*/
use<T extends Disposable | null | undefined>(value: T): T;
/**
* Adds a value and associated disposal callback as a resource to the stack.
* @param value The value to add.
* @param onDispose The callback to use in place of a \`[Symbol.dispose]()\` method. Will be invoked with \`value\`
* as the first parameter.
* @returns The provided {@link value}.
*/
adopt<T>(value: T, onDispose: (value: T) => void): T;
/**
* Adds a callback to be invoked when the stack is disposed.
*/
defer(onDispose: () => void): void;
/**
* Move all resources out of this stack and into a new \`DisposableStack\`, and marks this stack as disposed.
* @example
* \`\`\`ts
* class C {
* #res1: Disposable;
* #res2: Disposable;
* #disposables: DisposableStack;
* constructor() {
* // stack will be disposed when exiting constructor for any reason
* using stack = new DisposableStack();
*
* // get first resource
* this.#res1 = stack.use(getResource1());
*
* // get second resource. If this fails, both \`stack\` and \`#res1\` will be disposed.
* this.#res2 = stack.use(getResource2());
*
* // all operations succeeded, move resources out of \`stack\` so that they aren't disposed
* // when constructor exits
* this.#disposables = stack.move();
* }
*
* [Symbol.dispose]() {
* this.#disposables.dispose();
* }
* }
* \`\`\`
*/
move(): DisposableStack;
[Symbol.dispose](): void;
readonly [Symbol.toStringTag]: string;
}
interface DisposableStackConstructor {
new (): DisposableStack;
readonly prototype: DisposableStack;
}
declare var DisposableStack: DisposableStackConstructor;
interface AsyncDisposableStack {
/**
* Returns a value indicating whether this stack has been disposed.
*/
readonly disposed: boolean;
/**
* Disposes each resource in the stack in the reverse order that they were added.
*/
disposeAsync(): Promise<void>;
/**
* Adds a disposable resource to the stack, returning the resource.
* @param value The resource to add. \`null\` and \`undefined\` will not be added, but will be returned.
* @returns The provided {@link value}.
*/
use<T extends AsyncDisposable | Disposable | null | undefined>(value: T): T;
/**
* Adds a value and associated disposal callback as a resource to the stack.
* @param value The value to add.
* @param onDisposeAsync The callback to use in place of a \`[Symbol.asyncDispose]()\` method. Will be invoked with \`value\`
* as the first parameter.
* @returns The provided {@link value}.
*/
adopt<T>(value: T, onDisposeAsync: (value: T) => PromiseLike<void> | void): T;
/**
* Adds a callback to be invoked when the stack is disposed.
*/
defer(onDisposeAsync: () => PromiseLike<void> | void): void;
/**
* Move all resources out of this stack and into a new \`DisposableStack\`, and marks this stack as disposed.
* @example
* \`\`\`ts
* class C {
* #res1: Disposable;
* #res2: Disposable;
* #disposables: DisposableStack;
* constructor() {
* // stack will be disposed when exiting constructor for any reason
* using stack = new DisposableStack();
*
* // get first resource
* this.#res1 = stack.use(getResource1());
*
* // get second resource. If this fails, both \`stack\` and \`#res1\` will be disposed.
* this.#res2 = stack.use(getResource2());
*
* // all operations succeeded, move resources out of \`stack\` so that they aren't disposed
* // when constructor exits
* this.#disposables = stack.move();
* }
*
* [Symbol.dispose]() {
* this.#disposables.dispose();
* }
* }
* \`\`\`
*/
move(): AsyncDisposableStack;
[Symbol.asyncDispose](): Promise<void>;
readonly [Symbol.toStringTag]: string;
}
interface AsyncDisposableStackConstructor {
new (): AsyncDisposableStack;
readonly prototype: AsyncDisposableStack;
}
declare var AsyncDisposableStack: AsyncDisposableStackConstructor;
`,_o["lib.esnext.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="esnext" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`,_o["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[];
}
}
`,_o["lib.esnext.object.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ObjectConstructor {
/**
* Groups members of an iterable according to the return value of the passed callback.
* @param items An iterable.
* @param keySelector A callback which will be invoked for each item in items.
*/
groupBy<K extends PropertyKey, T>(
items: Iterable<T>,
keySelector: (item: T, index: number) => K,
): Partial<Record<K, T[]>>;
}
`,_o["lib.esnext.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface PromiseWithResolvers<T> {
promise: Promise<T>;
resolve: (value: T | PromiseLike<T>) => void;
reject: (reason?: any) => void;
}
interface PromiseConstructor {
/**
* Creates a new Promise and returns it in an object, along with its resolve and reject functions.
* @returns An object with the properties \`promise\`, \`resolve\`, and \`reject\`.
*
* \`\`\`ts
* const { promise, resolve, reject } = Promise.withResolvers<T>();
* \`\`\`
*/
withResolvers<T>(): PromiseWithResolvers<T>;
}
`,_o["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;
}
`,_o["lib.webworker.asynciterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Worker Async Iterable APIs
/////////////////////////////
interface FileSystemDirectoryHandle {
[Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>;
entries(): AsyncIterableIterator<[string, FileSystemHandle]>;
keys(): AsyncIterableIterator<string>;
values(): AsyncIterableIterator<FileSystemHandle>;
}
`,_o["lib.webworker.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Worker APIs
/////////////////////////////
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
signal?: AbortSignal;
}
interface AesCbcParams extends Algorithm {
iv: BufferSource;
}
interface AesCtrParams extends Algorithm {
counter: BufferSource;
length: number;
}
interface AesDerivedKeyParams extends Algorithm {
length: number;
}
interface AesGcmParams extends Algorithm {
additionalData?: BufferSource;
iv: BufferSource;
tagLength?: number;
}
interface AesKeyAlgorithm extends KeyAlgorithm {
length: number;
}
interface AesKeyGenParams extends Algorithm {
length: number;
}
interface Algorithm {
name: string;
}
interface AudioConfiguration {
bitrate?: number;
channels?: string;
contentType: string;
samplerate?: number;
spatialRendering?: boolean;
}
interface AvcEncoderConfig {
format?: AvcBitstreamFormat;
}
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
interface CSSMatrixComponentOptions {
is2D?: boolean;
}
interface CSSNumericType {
angle?: number;
flex?: number;
frequency?: number;
length?: number;
percent?: number;
percentHint?: CSSNumericBaseType;
resolution?: number;
time?: number;
}
interface CacheQueryOptions {
ignoreMethod?: boolean;
ignoreSearch?: boolean;
ignoreVary?: boolean;
}
interface ClientQueryOptions {
includeUncontrolled?: boolean;
type?: ClientTypes;
}
interface CloseEventInit extends EventInit {
code?: number;
reason?: string;
wasClean?: boolean;
}
interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}
interface CustomEventInit<T = any> extends EventInit {
detail?: T;
}
interface DOMMatrix2DInit {
a?: number;
b?: number;
c?: number;
d?: number;
e?: number;
f?: number;
m11?: number;
m12?: number;
m21?: number;
m22?: number;
m41?: number;
m42?: number;
}
interface DOMMatrixInit extends DOMMatrix2DInit {
is2D?: boolean;
m13?: number;
m14?: number;
m23?: number;
m24?: number;
m31?: number;
m32?: number;
m33?: number;
m34?: number;
m43?: number;
m44?: number;
}
interface DOMPointInit {
w?: number;
x?: number;
y?: number;
z?: number;
}
interface DOMQuadInit {
p1?: DOMPointInit;
p2?: DOMPointInit;
p3?: DOMPointInit;
p4?: DOMPointInit;
}
interface DOMRectInit {
height?: number;
width?: number;
x?: number;
y?: number;
}
interface EcKeyGenParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcKeyImportParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcdhKeyDeriveParams extends Algorithm {
public: CryptoKey;
}
interface EcdsaParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface EncodedVideoChunkInit {
data: AllowSharedBufferSource;
duration?: number;
timestamp: number;
type: EncodedVideoChunkType;
}
interface EncodedVideoChunkMetadata {
decoderConfig?: VideoDecoderConfig;
}
interface ErrorEventInit extends EventInit {
colno?: number;
error?: any;
filename?: string;
lineno?: number;
message?: string;
}
interface EventInit {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}
interface EventListenerOptions {
capture?: boolean;
}
interface EventSourceInit {
withCredentials?: boolean;
}
interface ExtendableEventInit extends EventInit {
}
interface ExtendableMessageEventInit extends ExtendableEventInit {
data?: any;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: Client | ServiceWorker | MessagePort | null;
}
interface FetchEventInit extends ExtendableEventInit {
clientId?: string;
handled?: Promise<undefined>;
preloadResponse?: Promise<any>;
replacesClientId?: string;
request: Request;
resultingClientId?: string;
}
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
interface FileSystemCreateWritableOptions {
keepExistingData?: boolean;
}
interface FileSystemGetDirectoryOptions {
create?: boolean;
}
interface FileSystemGetFileOptions {
create?: boolean;
}
interface FileSystemReadWriteOptions {
at?: number;
}
interface FileSystemRemoveOptions {
recursive?: boolean;
}
interface FontFaceDescriptors {
ascentOverride?: string;
descentOverride?: string;
display?: FontDisplay;
featureSettings?: string;
lineGapOverride?: string;
stretch?: string;
style?: string;
unicodeRange?: string;
weight?: string;
}
interface FontFaceSetLoadEventInit extends EventInit {
fontfaces?: FontFace[];
}
interface GetNotificationOptions {
tag?: string;
}
interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
info: BufferSource;
salt: BufferSource;
}
interface HmacImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface HmacKeyGenParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface IDBDatabaseInfo {
name?: string;
version?: number;
}
interface IDBIndexParameters {
multiEntry?: boolean;
unique?: boolean;
}
interface IDBObjectStoreParameters {
autoIncrement?: boolean;
keyPath?: string | string[] | null;
}
interface IDBTransactionOptions {
durability?: IDBTransactionDurability;
}
interface IDBVersionChangeEventInit extends EventInit {
newVersion?: number | null;
oldVersion?: number;
}
interface ImageBitmapOptions {
colorSpaceConversion?: ColorSpaceConversion;
imageOrientation?: ImageOrientation;
premultiplyAlpha?: PremultiplyAlpha;
resizeHeight?: number;
resizeQuality?: ResizeQuality;
resizeWidth?: number;
}
interface ImageBitmapRenderingContextSettings {
alpha?: boolean;
}
interface ImageDataSettings {
colorSpace?: PredefinedColorSpace;
}
interface ImageEncodeOptions {
quality?: number;
type?: string;
}
interface ImportMeta {
url: string;
}
interface JsonWebKey {
alg?: string;
crv?: string;
d?: string;
dp?: string;
dq?: string;
e?: string;
ext?: boolean;
k?: string;
key_ops?: string[];
kty?: string;
n?: string;
oth?: RsaOtherPrimesInfo[];
p?: string;
q?: string;
qi?: string;
use?: string;
x?: string;
y?: string;
}
interface KeyAlgorithm {
name: string;
}
interface LockInfo {
clientId?: string;
mode?: LockMode;
name?: string;
}
interface LockManagerSnapshot {
held?: LockInfo[];
pending?: LockInfo[];
}
interface LockOptions {
ifAvailable?: boolean;
mode?: LockMode;
signal?: AbortSignal;
steal?: boolean;
}
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaDecodingConfiguration;
}
interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaEncodingConfiguration;
}
interface MediaCapabilitiesInfo {
powerEfficient: boolean;
smooth: boolean;
supported: boolean;
}
interface MediaConfiguration {
audio?: AudioConfiguration;
video?: VideoConfiguration;
}
interface MediaDecodingConfiguration extends MediaConfiguration {
type: MediaDecodingType;
}
interface MediaEncodingConfiguration extends MediaConfiguration {
type: MediaEncodingType;
}
interface MessageEventInit<T = any> extends EventInit {
data?: T;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: MessageEventSource | null;
}
interface MultiCacheQueryOptions extends CacheQueryOptions {
cacheName?: string;
}
interface NavigationPreloadState {
enabled?: boolean;
headerValue?: string;
}
interface NotificationEventInit extends ExtendableEventInit {
action?: string;
notification: Notification;
}
interface NotificationOptions {
badge?: string;
body?: string;
data?: any;
dir?: NotificationDirection;
icon?: string;
lang?: string;
requireInteraction?: boolean;
silent?: boolean | null;
tag?: string;
}
interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
salt: BufferSource;
}
interface PerformanceMarkOptions {
detail?: any;
startTime?: DOMHighResTimeStamp;
}
interface PerformanceMeasureOptions {
detail?: any;
duration?: DOMHighResTimeStamp;
end?: string | DOMHighResTimeStamp;
start?: string | DOMHighResTimeStamp;
}
interface PerformanceObserverInit {
buffered?: boolean;
entryTypes?: string[];
type?: string;
}
interface PermissionDescriptor {
name: PermissionName;
}
interface PlaneLayout {
offset: number;
stride: number;
}
interface ProgressEventInit extends EventInit {
lengthComputable?: boolean;
loaded?: number;
total?: number;
}
interface PromiseRejectionEventInit extends EventInit {
promise: Promise<any>;
reason?: any;
}
interface PushEventInit extends ExtendableEventInit {
data?: PushMessageDataInit;
}
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: EpochTimeStamp | null;
keys?: Record<string, string>;
}
interface PushSubscriptionOptionsInit {
applicationServerKey?: BufferSource | string | null;
userVisibleOnly?: boolean;
}
interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySize<T>;
}
interface QueuingStrategyInit {
/**
* Creates a new ByteLengthQueuingStrategy with the provided high water mark.
*
* Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
*/
highWaterMark: number;
}
interface RTCEncodedAudioFrameMetadata {
contributingSources?: number[];
payloadType?: number;
sequenceNumber?: number;
synchronizationSource?: number;
}
interface RTCEncodedVideoFrameMetadata {
contributingSources?: number[];
dependencies?: number[];
frameId?: number;
height?: number;
payloadType?: number;
spatialIndex?: number;
synchronizationSource?: number;
temporalIndex?: number;
timestamp?: number;
width?: number;
}
interface ReadableStreamGetReaderOptions {
/**
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
*
* This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
*/
mode?: ReadableStreamReaderMode;
}
interface ReadableStreamReadDoneResult<T> {
done: true;
value?: T;
}
interface ReadableStreamReadValueResult<T> {
done: false;
value: T;
}
interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/**
* Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*/
writable: WritableStream<W>;
}
interface RegistrationOptions {
scope?: string;
type?: WorkerType;
updateViaCache?: ServiceWorkerUpdateViaCache;
}
interface ReportingObserverOptions {
buffered?: boolean;
types?: string[];
}
interface RequestInit {
/** A BodyInit object or null to set request's body. */
body?: BodyInit | null;
/** A string indicating how the request will interact with the browser's cache to set request's cache. */
cache?: RequestCache;
/** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */
credentials?: RequestCredentials;
/** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
headers?: HeadersInit;
/** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
integrity?: string;
/** A boolean to set request's keepalive. */
keepalive?: boolean;
/** A string to set request's method. */
method?: string;
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
mode?: RequestMode;
priority?: RequestPriority;
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
redirect?: RequestRedirect;
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
referrer?: string;
/** A referrer policy to set request's referrerPolicy. */
referrerPolicy?: ReferrerPolicy;
/** An AbortSignal to set request's signal. */
signal?: AbortSignal | null;
/** Can only be null. Used to disassociate request from any Window. */
window?: null;
}
interface ResponseInit {
headers?: HeadersInit;
status?: number;
statusText?: string;
}
interface RsaHashedImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash: HashAlgorithmIdentifier;
}
interface RsaKeyGenParams extends Algorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaOaepParams extends Algorithm {
label?: BufferSource;
}
interface RsaOtherPrimesInfo {
d?: string;
r?: string;
t?: string;
}
interface RsaPssParams extends Algorithm {
saltLength: number;
}
interface SecurityPolicyViolationEventInit extends EventInit {
blockedURI?: string;
columnNumber?: number;
disposition: SecurityPolicyViolationEventDisposition;
documentURI: string;
effectiveDirective: string;
lineNumber?: number;
originalPolicy: string;
referrer?: string;
sample?: string;
sourceFile?: string;
statusCode: number;
violatedDirective: string;
}
interface StorageEstimate {
quota?: number;
usage?: number;
}
interface StreamPipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
/**
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*
* Errors and closures of the source and destination streams propagate as follows:
*
* An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
*
* An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
*
* When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
*
* If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
*
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
*/
preventClose?: boolean;
signal?: AbortSignal;
}
interface StructuredSerializeOptions {
transfer?: Transferable[];
}
interface TextDecodeOptions {
stream?: boolean;
}
interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: boolean;
}
interface TextEncoderEncodeIntoResult {
read: number;
written: number;
}
interface Transformer<I = any, O = any> {
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
transform?: TransformerTransformCallback<I, O>;
writableType?: undefined;
}
interface UnderlyingByteSource {
autoAllocateChunkSize?: number;
cancel?: UnderlyingSourceCancelCallback;
pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
start?: (controller: ReadableByteStreamController) => any;
type: "bytes";
}
interface UnderlyingDefaultSource<R = any> {
cancel?: UnderlyingSourceCancelCallback;
pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
start?: (controller: ReadableStreamDefaultController<R>) => any;
type?: undefined;
}
interface UnderlyingSink<W = any> {
abort?: UnderlyingSinkAbortCallback;
close?: UnderlyingSinkCloseCallback;
start?: UnderlyingSinkStartCallback;
type?: undefined;
write?: UnderlyingSinkWriteCallback<W>;
}
interface UnderlyingSource<R = any> {
autoAllocateChunkSize?: number;
cancel?: UnderlyingSourceCancelCallback;
pull?: UnderlyingSourcePullCallback<R>;
start?: UnderlyingSourceStartCallback<R>;
type?: ReadableStreamType;
}
interface VideoColorSpaceInit {
fullRange?: boolean | null;
matrix?: VideoMatrixCoefficients | null;
primaries?: VideoColorPrimaries | null;
transfer?: VideoTransferCharacteristics | null;
}
interface VideoConfiguration {
bitrate: number;
colorGamut?: ColorGamut;
contentType: string;
framerate: number;
hdrMetadataType?: HdrMetadataType;
height: number;
scalabilityMode?: string;
transferFunction?: TransferFunction;
width: number;
}
interface VideoDecoderConfig {
codec: string;
codedHeight?: number;
codedWidth?: number;
colorSpace?: VideoColorSpaceInit;
description?: AllowSharedBufferSource;
displayAspectHeight?: number;
displayAspectWidth?: number;
hardwareAcceleration?: HardwareAcceleration;
optimizeForLatency?: boolean;
}
interface VideoDecoderInit {
error: WebCodecsErrorCallback;
output: VideoFrameOutputCallback;
}
interface VideoDecoderSupport {
config?: VideoDecoderConfig;
supported?: boolean;
}
interface VideoEncoderConfig {
alpha?: AlphaOption;
avc?: AvcEncoderConfig;
bitrate?: number;
bitrateMode?: VideoEncoderBitrateMode;
codec: string;
displayHeight?: number;
displayWidth?: number;
framerate?: number;
hardwareAcceleration?: HardwareAcceleration;
height: number;
latencyMode?: LatencyMode;
scalabilityMode?: string;
width: number;
}
interface VideoEncoderEncodeOptions {
keyFrame?: boolean;
}
interface VideoEncoderInit {
error: WebCodecsErrorCallback;
output: EncodedVideoChunkOutputCallback;
}
interface VideoEncoderSupport {
config?: VideoEncoderConfig;
supported?: boolean;
}
interface VideoFrameBufferInit {
codedHeight: number;
codedWidth: number;
colorSpace?: VideoColorSpaceInit;
displayHeight?: number;
displayWidth?: number;
duration?: number;
format: VideoPixelFormat;
layout?: PlaneLayout[];
timestamp: number;
visibleRect?: DOMRectInit;
}
interface VideoFrameCopyToOptions {
layout?: PlaneLayout[];
rect?: DOMRectInit;
}
interface VideoFrameInit {
alpha?: AlphaOption;
displayHeight?: number;
displayWidth?: number;
duration?: number;
timestamp?: number;
visibleRect?: DOMRectInit;
}
interface WebGLContextAttributes {
alpha?: boolean;
antialias?: boolean;
depth?: boolean;
desynchronized?: boolean;
failIfMajorPerformanceCaveat?: boolean;
powerPreference?: WebGLPowerPreference;
premultipliedAlpha?: boolean;
preserveDrawingBuffer?: boolean;
stencil?: boolean;
}
interface WebGLContextEventInit extends EventInit {
statusMessage?: string;
}
interface WebTransportCloseInfo {
closeCode?: number;
reason?: string;
}
interface WebTransportErrorOptions {
source?: WebTransportErrorSource;
streamErrorCode?: number | null;
}
interface WebTransportHash {
algorithm?: string;
value?: BufferSource;
}
interface WebTransportOptions {
allowPooling?: boolean;
congestionControl?: WebTransportCongestionControl;
requireUnreliable?: boolean;
serverCertificateHashes?: WebTransportHash[];
}
interface WebTransportSendStreamOptions {
sendOrder?: number;
}
interface WorkerOptions {
credentials?: RequestCredentials;
name?: string;
type?: WorkerType;
}
interface WriteParams {
data?: BufferSource | Blob | string | null;
position?: number | null;
size?: number | null;
type: WriteCommandType;
}
/**
* The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays)
*/
interface ANGLE_instanced_arrays {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
}
/**
* A controller object that allows you to abort one or more DOM requests as and when desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
*/
interface AbortController {
/**
* Returns the AbortSignal object associated with this object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)
*/
readonly signal: AbortSignal;
/**
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)
*/
abort(reason?: any): void;
}
declare var AbortController: {
prototype: AbortController;
new(): AbortController;
};
interface AbortSignalEventMap {
"abort": Event;
}
/**
* A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
*/
interface AbortSignal extends EventTarget {
/**
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)
*/
readonly aborted: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */
onabort: ((this: AbortSignal, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */
readonly reason: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */
throwIfAborted(): void;
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AbortSignal: {
prototype: AbortSignal;
new(): AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
abort(reason?: any): AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
timeout(milliseconds: number): AbortSignal;
};
interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
interface AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface AnimationFrameProvider {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
cancelAnimationFrame(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
requestAnimationFrame(callback: FrameRequestCallback): number;
}
/**
* A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)
*/
interface Blob {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
readonly size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
arrayBuffer(): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
slice(start?: number, end?: number, contentType?: string): Blob;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
stream(): ReadableStream<Uint8Array>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
text(): Promise<string>;
}
declare var Blob: {
prototype: Blob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
interface Body {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
readonly body: ReadableStream<Uint8Array> | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
readonly bodyUsed: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
arrayBuffer(): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
blob(): Promise<Blob>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
formData(): Promise<FormData>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
json(): Promise<any>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
text(): Promise<string>;
}
interface BroadcastChannelEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */
interface BroadcastChannel extends EventTarget {
/**
* Returns the channel name (as passed to the constructor).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name)
*/
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/**
* Closes the BroadcastChannel object, opening it up to garbage collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)
*/
close(): void;
/**
* Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage)
*/
postMessage(message: any): void;
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var BroadcastChannel: {
prototype: BroadcastChannel;
new(name: string): BroadcastChannel;
};
/**
* This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
*/
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */
readonly highWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */
readonly size: QueuingStrategySize<ArrayBufferView>;
}
declare var ByteLengthQueuingStrategy: {
prototype: ByteLengthQueuingStrategy;
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */
interface CSSImageValue extends CSSStyleValue {
}
declare var CSSImageValue: {
prototype: CSSImageValue;
new(): CSSImageValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */
interface CSSKeywordValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */
value: string;
}
declare var CSSKeywordValue: {
prototype: CSSKeywordValue;
new(value: string): CSSKeywordValue;
};
interface CSSMathClamp extends CSSMathValue {
readonly lower: CSSNumericValue;
readonly upper: CSSNumericValue;
readonly value: CSSNumericValue;
}
declare var CSSMathClamp: {
prototype: CSSMathClamp;
new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */
interface CSSMathInvert extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */
readonly value: CSSNumericValue;
}
declare var CSSMathInvert: {
prototype: CSSMathInvert;
new(arg: CSSNumberish): CSSMathInvert;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */
interface CSSMathMax extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathMax: {
prototype: CSSMathMax;
new(...args: CSSNumberish[]): CSSMathMax;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */
interface CSSMathMin extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathMin: {
prototype: CSSMathMin;
new(...args: CSSNumberish[]): CSSMathMin;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */
interface CSSMathNegate extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */
readonly value: CSSNumericValue;
}
declare var CSSMathNegate: {
prototype: CSSMathNegate;
new(arg: CSSNumberish): CSSMathNegate;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */
interface CSSMathProduct extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathProduct: {
prototype: CSSMathProduct;
new(...args: CSSNumberish[]): CSSMathProduct;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */
interface CSSMathSum extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathSum: {
prototype: CSSMathSum;
new(...args: CSSNumberish[]): CSSMathSum;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */
interface CSSMathValue extends CSSNumericValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */
readonly operator: CSSMathOperator;
}
declare var CSSMathValue: {
prototype: CSSMathValue;
new(): CSSMathValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */
interface CSSMatrixComponent extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */
matrix: DOMMatrix;
}
declare var CSSMatrixComponent: {
prototype: CSSMatrixComponent;
new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */
interface CSSNumericArray {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */
readonly length: number;
forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void;
[index: number]: CSSNumericValue;
}
declare var CSSNumericArray: {
prototype: CSSNumericArray;
new(): CSSNumericArray;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */
interface CSSNumericValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */
add(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */
div(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */
equals(...value: CSSNumberish[]): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */
max(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */
min(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */
mul(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */
sub(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */
to(unit: string): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */
toSum(...units: string[]): CSSMathSum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */
type(): CSSNumericType;
}
declare var CSSNumericValue: {
prototype: CSSNumericValue;
new(): CSSNumericValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */
interface CSSPerspective extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */
length: CSSPerspectiveValue;
}
declare var CSSPerspective: {
prototype: CSSPerspective;
new(length: CSSPerspectiveValue): CSSPerspective;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */
interface CSSRotate extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */
angle: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */
x: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */
y: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */
z: CSSNumberish;
}
declare var CSSRotate: {
prototype: CSSRotate;
new(angle: CSSNumericValue): CSSRotate;
new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */
interface CSSScale extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */
x: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */
y: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */
z: CSSNumberish;
}
declare var CSSScale: {
prototype: CSSScale;
new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */
interface CSSSkew extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */
ax: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */
ay: CSSNumericValue;
}
declare var CSSSkew: {
prototype: CSSSkew;
new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */
interface CSSSkewX extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */
ax: CSSNumericValue;
}
declare var CSSSkewX: {
prototype: CSSSkewX;
new(ax: CSSNumericValue): CSSSkewX;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */
interface CSSSkewY extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */
ay: CSSNumericValue;
}
declare var CSSSkewY: {
prototype: CSSSkewY;
new(ay: CSSNumericValue): CSSSkewY;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */
interface CSSStyleValue {
toString(): string;
}
declare var CSSStyleValue: {
prototype: CSSStyleValue;
new(): CSSStyleValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */
interface CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */
is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */
toMatrix(): DOMMatrix;
toString(): string;
}
declare var CSSTransformComponent: {
prototype: CSSTransformComponent;
new(): CSSTransformComponent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */
interface CSSTransformValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */
readonly is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */
toMatrix(): DOMMatrix;
forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void;
[index: number]: CSSTransformComponent;
}
declare var CSSTransformValue: {
prototype: CSSTransformValue;
new(transforms: CSSTransformComponent[]): CSSTransformValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */
interface CSSTranslate extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */
x: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */
y: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */
z: CSSNumericValue;
}
declare var CSSTranslate: {
prototype: CSSTranslate;
new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */
interface CSSUnitValue extends CSSNumericValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */
readonly unit: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */
value: number;
}
declare var CSSUnitValue: {
prototype: CSSUnitValue;
new(value: number, unit: string): CSSUnitValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */
interface CSSUnparsedValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */
readonly length: number;
forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void;
[index: number]: CSSUnparsedSegment;
}
declare var CSSUnparsedValue: {
prototype: CSSUnparsedValue;
new(members: CSSUnparsedSegment[]): CSSUnparsedValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */
interface CSSVariableReferenceValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */
readonly fallback: CSSUnparsedValue | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */
variable: string;
}
declare var CSSVariableReferenceValue: {
prototype: CSSVariableReferenceValue;
new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
};
/**
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)
*/
interface Cache {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */
add(request: RequestInfo | URL): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
addAll(requests: RequestInfo[]): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */
delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */
match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */
put(request: RequestInfo | URL, response: Response): Promise<void>;
}
declare var Cache: {
prototype: Cache;
new(): Cache;
};
/**
* The storage for Cache objects.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage)
*/
interface CacheStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */
delete(cacheName: string): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */
has(cacheName: string): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */
keys(): Promise<string[]>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */
open(cacheName: string): Promise<Cache>;
}
declare var CacheStorage: {
prototype: CacheStorage;
new(): CacheStorage;
};
interface CanvasCompositing {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */
globalAlpha: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */
globalCompositeOperation: GlobalCompositeOperation;
}
interface CanvasDrawImage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */
drawImage(image: CanvasImageSource, dx: number, dy: number): void;
drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
}
interface CanvasDrawPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */
beginPath(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */
clip(fillRule?: CanvasFillRule): void;
clip(path: Path2D, fillRule?: CanvasFillRule): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */
fill(fillRule?: CanvasFillRule): void;
fill(path: Path2D, fillRule?: CanvasFillRule): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */
isPointInStroke(x: number, y: number): boolean;
isPointInStroke(path: Path2D, x: number, y: number): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */
stroke(): void;
stroke(path: Path2D): void;
}
interface CanvasFillStrokeStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */
fillStyle: string | CanvasGradient | CanvasPattern;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */
strokeStyle: string | CanvasGradient | CanvasPattern;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}
interface CanvasFilters {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */
filter: string;
}
/**
* An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
*/
interface CanvasGradient {
/**
* Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
*
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop)
*/
addColorStop(offset: number, color: string): void;
}
declare var CanvasGradient: {
prototype: CanvasGradient;
new(): CanvasGradient;
};
interface CanvasImageData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
createImageData(imagedata: ImageData): ImageData;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */
putImageData(imagedata: ImageData, dx: number, dy: number): void;
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
}
interface CanvasImageSmoothing {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */
imageSmoothingEnabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */
imageSmoothingQuality: ImageSmoothingQuality;
}
interface CanvasPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */
closePath(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */
lineTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */
moveTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */
rect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
}
interface CanvasPathDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */
lineCap: CanvasLineCap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */
lineDashOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */
lineJoin: CanvasLineJoin;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */
lineWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */
miterLimit: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */
getLineDash(): number[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
setLineDash(segments: number[]): void;
}
/**
* An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern)
*/
interface CanvasPattern {
/**
* Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform)
*/
setTransform(transform?: DOMMatrix2DInit): void;
}
declare var CanvasPattern: {
prototype: CanvasPattern;
new(): CanvasPattern;
};
interface CanvasRect {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */
clearRect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */
fillRect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */
strokeRect(x: number, y: number, w: number, h: number): void;
}
interface CanvasShadowStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */
shadowBlur: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */
shadowColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */
shadowOffsetX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */
shadowOffsetY: number;
}
interface CanvasState {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
reset(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
restore(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */
save(): void;
}
interface CanvasText {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */
fillText(text: string, x: number, y: number, maxWidth?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */
measureText(text: string): TextMetrics;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}
interface CanvasTextDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */
direction: CanvasDirection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */
font: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */
fontKerning: CanvasFontKerning;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */
fontStretch: CanvasFontStretch;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
fontVariantCaps: CanvasFontVariantCaps;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
letterSpacing: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
textAlign: CanvasTextAlign;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */
textBaseline: CanvasTextBaseline;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */
textRendering: CanvasTextRendering;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */
wordSpacing: string;
}
interface CanvasTransform {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */
getTransform(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */
resetTransform(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */
rotate(angle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */
scale(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
setTransform(transform?: DOMMatrix2DInit): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */
translate(x: number, y: number): void;
}
/**
* The Client\xA0interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific\xA0WindowClient. You can get\xA0Client/WindowClient\xA0objects from methods such as Clients.matchAll() and\xA0Clients.get().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client)
*/
interface Client {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/frameType) */
readonly frameType: FrameType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/type) */
readonly type: ClientTypes;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/url) */
readonly url: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/postMessage) */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
}
declare var Client: {
prototype: Client;
new(): Client;
};
/**
* Provides access to\xA0Client\xA0objects. Access it\xA0via self.clients\xA0within a\xA0service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients)
*/
interface Clients {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/claim) */
claim(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/get) */
get(id: string): Promise<Client | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/matchAll) */
matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/openWindow) */
openWindow(url: string | URL): Promise<WindowClient | null>;
}
declare var Clients: {
prototype: Clients;
new(): Clients;
};
/**
* A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
*/
interface CloseEvent extends Event {
/**
* Returns the WebSocket connection close code provided by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
*/
readonly code: number;
/**
* Returns the WebSocket connection close reason provided by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
*/
readonly reason: string;
/**
* Returns true if the connection closed cleanly; false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
*/
readonly wasClean: boolean;
}
declare var CloseEvent: {
prototype: CloseEvent;
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */
interface CompressionStream extends GenericTransformStream {
}
declare var CompressionStream: {
prototype: CompressionStream;
new(format: CompressionFormat): CompressionStream;
};
/**
* This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
*/
interface CountQueuingStrategy extends QueuingStrategy {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */
readonly highWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
readonly size: QueuingStrategySize;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
new(init: QueuingStrategyInit): CountQueuingStrategy;
};
/**
* Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)
*/
interface Crypto {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
*/
readonly subtle: SubtleCrypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
*/
randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`;
}
declare var Crypto: {
prototype: Crypto;
new(): Crypto;
};
/**
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
*/
interface CryptoKey {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */
readonly algorithm: KeyAlgorithm;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */
readonly extractable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */
readonly type: KeyType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */
interface CustomEvent<T = any> extends Event {
/**
* Returns any custom data event was created with. Typically used for synthetic events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
*/
readonly detail: T;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)
*/
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};
/**
* An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
*/
interface DOMException extends Error {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
*/
readonly code: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
readonly message: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
readonly name: string;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
}
declare var DOMException: {
prototype: DOMException;
new(message?: string, name?: string): DOMException;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */
interface DOMMatrix extends DOMMatrixReadOnly {
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
m11: number;
m12: number;
m13: number;
m14: number;
m21: number;
m22: number;
m23: number;
m24: number;
m31: number;
m32: number;
m33: number;
m34: number;
m41: number;
m42: number;
m43: number;
m44: number;
invertSelf(): DOMMatrix;
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
skewXSelf(sx?: number): DOMMatrix;
skewYSelf(sy?: number): DOMMatrix;
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrix: {
prototype: DOMMatrix;
new(init?: string | number[]): DOMMatrix;
fromFloat32Array(array32: Float32Array): DOMMatrix;
fromFloat64Array(array64: Float64Array): DOMMatrix;
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */
interface DOMMatrixReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */
readonly a: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */
readonly b: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */
readonly c: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */
readonly d: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */
readonly e: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */
readonly f: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */
readonly is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */
readonly isIdentity: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */
readonly m11: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */
readonly m12: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */
readonly m13: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */
readonly m14: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */
readonly m21: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */
readonly m22: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */
readonly m23: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */
readonly m24: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */
readonly m31: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */
readonly m32: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */
readonly m33: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */
readonly m34: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */
readonly m41: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */
readonly m42: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */
readonly m43: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */
readonly m44: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */
flipX(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */
flipY(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */
inverse(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */
multiply(other?: DOMMatrixInit): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */
rotateFromVector(x?: number, y?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)
*/
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */
skewX(sx?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */
skewY(sy?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */
toFloat32Array(): Float32Array;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */
toFloat64Array(): Float64Array;
toJSON(): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */
transformPoint(point?: DOMPointInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrixReadOnly: {
prototype: DOMMatrixReadOnly;
new(init?: string | number[]): DOMMatrixReadOnly;
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */
interface DOMPoint extends DOMPointReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */
w: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */
x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */
y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */
z: number;
}
declare var DOMPoint: {
prototype: DOMPoint;
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */
fromPoint(other?: DOMPointInit): DOMPoint;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */
interface DOMPointReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */
readonly w: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */
readonly y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */
readonly z: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */
toJSON(): any;
}
declare var DOMPointReadOnly: {
prototype: DOMPointReadOnly;
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */
interface DOMQuad {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */
readonly p1: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */
readonly p2: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */
readonly p3: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */
readonly p4: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */
getBounds(): DOMRect;
toJSON(): any;
}
declare var DOMQuad: {
prototype: DOMQuad;
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
fromQuad(other?: DOMQuadInit): DOMQuad;
fromRect(other?: DOMRectInit): DOMQuad;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */
interface DOMRect extends DOMRectReadOnly {
height: number;
width: number;
x: number;
y: number;
}
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
fromRect(other?: DOMRectInit): DOMRect;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */
interface DOMRectReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */
readonly bottom: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */
readonly left: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */
readonly right: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */
readonly top: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */
readonly width: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */
readonly y: number;
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/**
* A type returned by some APIs which contains a list of DOMString (strings).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)
*/
interface DOMStringList {
/**
* Returns the number of strings in strings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)
*/
readonly length: number;
/**
* Returns true if strings contains string, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)
*/
contains(string: string): boolean;
/**
* Returns the string with index index from strings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)
*/
item(index: number): string | null;
[index: number]: string;
}
declare var DOMStringList: {
prototype: DOMStringList;
new(): DOMStringList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */
interface DecompressionStream extends GenericTransformStream {
}
declare var DecompressionStream: {
prototype: DecompressionStream;
new(format: CompressionFormat): DecompressionStream;
};
interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
"rtctransform": Event;
}
/**
* (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope)
*/
interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {
/**
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)
*/
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */
onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */
onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/**
* Aborts dedicatedWorkerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)
*/
close(): void;
/**
* Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var DedicatedWorkerGlobalScope: {
prototype: DedicatedWorkerGlobalScope;
new(): DedicatedWorkerGlobalScope;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */
interface EXT_blend_minmax {
readonly MIN_EXT: 0x8007;
readonly MAX_EXT: 0x8008;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */
interface EXT_color_buffer_float {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */
interface EXT_color_buffer_half_float {
readonly RGBA16F_EXT: 0x881A;
readonly RGB16F_EXT: 0x881B;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */
interface EXT_float_blend {
}
/**
* The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth)
*/
interface EXT_frag_depth {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */
interface EXT_sRGB {
readonly SRGB_EXT: 0x8C40;
readonly SRGB_ALPHA_EXT: 0x8C42;
readonly SRGB8_ALPHA8_EXT: 0x8C43;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */
interface EXT_shader_texture_lod {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */
interface EXT_texture_compression_bptc {
readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;
readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;
readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;
readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */
interface EXT_texture_compression_rgtc {
readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;
}
/**
* The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic)
*/
interface EXT_texture_filter_anisotropic {
readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */
interface EXT_texture_norm16 {
readonly R16_EXT: 0x822A;
readonly RG16_EXT: 0x822C;
readonly RGB16_EXT: 0x8054;
readonly RGBA16_EXT: 0x805B;
readonly R16_SNORM_EXT: 0x8F98;
readonly RG16_SNORM_EXT: 0x8F99;
readonly RGB16_SNORM_EXT: 0x8F9A;
readonly RGBA16_SNORM_EXT: 0x8F9B;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */
interface EncodedVideoChunk {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */
readonly byteLength: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */
readonly duration: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */
readonly type: EncodedVideoChunkType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */
copyTo(destination: AllowSharedBufferSource): void;
}
declare var EncodedVideoChunk: {
prototype: EncodedVideoChunk;
new(init: EncodedVideoChunkInit): EncodedVideoChunk;
};
/**
* Events providing information related to errors in scripts or in files.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
*/
interface ErrorEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
readonly colno: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
readonly error: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
readonly filename: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
readonly lineno: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
readonly message: string;
}
declare var ErrorEvent: {
prototype: ErrorEvent;
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/**
* An event which takes place in the DOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
*/
interface Event {
/**
* Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
*/
readonly bubbles: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
*/
cancelBubble: boolean;
/**
* Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
*/
readonly cancelable: boolean;
/**
* Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
*/
readonly composed: boolean;
/**
* Returns the object whose event listener's callback is currently being invoked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
*/
readonly currentTarget: EventTarget | null;
/**
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
*/
readonly defaultPrevented: boolean;
/**
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
*/
readonly eventPhase: number;
/**
* Returns true if event was dispatched by the user agent, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
*/
readonly isTrusted: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
*/
returnValue: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
*/
readonly srcElement: EventTarget | null;
/**
* Returns the object to which event is dispatched (its target).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
*/
readonly target: EventTarget | null;
/**
* Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
*/
readonly timeStamp: DOMHighResTimeStamp;
/**
* Returns the type of event, e.g. "click", "hashchange", or "submit".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
*/
readonly type: string;
/**
* Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
*/
composedPath(): EventTarget[];
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
*/
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
/**
* If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
*/
preventDefault(): void;
/**
* Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
*/
stopImmediatePropagation(): void;
/**
* When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
*/
stopPropagation(): void;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
}
declare var Event: {
prototype: Event;
new(type: string, eventInitDict?: EventInit): Event;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
};
interface EventListener {
(evt: Event): void;
}
interface EventListenerObject {
handleEvent(object: Event): void;
}
interface EventSourceEventMap {
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */
interface EventSource extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */
onerror: ((this: EventSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */
onopen: ((this: EventSource, ev: Event) => any) | null;
/**
* Returns the state of this EventSource object's connection. It can have the values described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)
*/
readonly readyState: number;
/**
* Returns the URL providing the event stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)
*/
readonly url: string;
/**
* Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
*/
readonly withCredentials: boolean;
/**
* Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)
*/
close(): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var EventSource: {
prototype: EventSource;
new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
};
/**
* EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
*/
interface EventTarget {
/**
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
*
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
*
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
*
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners.
*
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
*
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
*
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
*/
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
dispatchEvent(event: Event): boolean;
/**
* Removes the event listener in target's event listener list with the same type, callback, and options.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
*/
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
}
declare var EventTarget: {
prototype: EventTarget;
new(): EventTarget;
};
/**
* Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
*/
interface ExtendableEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil) */
waitUntil(f: Promise<any>): void;
}
declare var ExtendableEvent: {
prototype: ExtendableEvent;
new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;
};
/**
* This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) \u2014 extends the lifetime of such events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent)
*/
interface ExtendableMessageEvent extends ExtendableEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/data) */
readonly data: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/lastEventId) */
readonly lastEventId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/ports) */
readonly ports: ReadonlyArray<MessagePort>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/source) */
readonly source: Client | ServiceWorker | MessagePort | null;
}
declare var ExtendableMessageEvent: {
prototype: ExtendableMessageEvent;
new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;
};
/**
* This is the event type for fetch\xA0events dispatched on the\xA0service worker global scope. It contains information about the fetch, including the\xA0request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent)
*/
interface FetchEvent extends ExtendableEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/clientId) */
readonly clientId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/handled) */
readonly handled: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/preloadResponse) */
readonly preloadResponse: Promise<any>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request) */
readonly request: Request;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/resultingClientId) */
readonly resultingClientId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith) */
respondWith(r: Response | PromiseLike<Response>): void;
}
declare var FetchEvent: {
prototype: FetchEvent;
new(type: string, eventInitDict: FetchEventInit): FetchEvent;
};
/**
* Provides information about files and allows JavaScript in a web page to access their content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)
*/
interface File extends Blob {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
readonly lastModified: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */
readonly webkitRelativePath: string;
}
declare var File: {
prototype: File;
new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};
/**
* An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)
*/
interface FileList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */
item(index: number): File | null;
[index: number]: File;
}
declare var FileList: {
prototype: FileList;
new(): FileList;
};
interface FileReaderEventMap {
"abort": ProgressEvent<FileReader>;
"error": ProgressEvent<FileReader>;
"load": ProgressEvent<FileReader>;
"loadend": ProgressEvent<FileReader>;
"loadstart": ProgressEvent<FileReader>;
"progress": ProgressEvent<FileReader>;
}
/**
* Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader)
*/
interface FileReader extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */
readonly error: DOMException | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */
readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */
readonly result: string | ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */
readAsArrayBuffer(blob: Blob): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
*/
readAsBinaryString(blob: Blob): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */
readAsDataURL(blob: Blob): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */
readAsText(blob: Blob, encoding?: string): void;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FileReader: {
prototype: FileReader;
new(): FileReader;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
};
/**
* Allows to read File or Blob objects in a synchronous way.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync)
*/
interface FileReaderSync {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsArrayBuffer) */
readAsArrayBuffer(blob: Blob): ArrayBuffer;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsBinaryString)
*/
readAsBinaryString(blob: Blob): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsDataURL) */
readAsDataURL(blob: Blob): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsText) */
readAsText(blob: Blob, encoding?: string): string;
}
declare var FileReaderSync: {
prototype: FileReaderSync;
new(): FileReaderSync;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)
*/
interface FileSystemDirectoryHandle extends FileSystemHandle {
readonly kind: "directory";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
}
declare var FileSystemDirectoryHandle: {
prototype: FileSystemDirectoryHandle;
new(): FileSystemDirectoryHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)
*/
interface FileSystemFileHandle extends FileSystemHandle {
readonly kind: "file";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createSyncAccessHandle) */
createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */
createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */
getFile(): Promise<File>;
}
declare var FileSystemFileHandle: {
prototype: FileSystemFileHandle;
new(): FileSystemFileHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)
*/
interface FileSystemHandle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */
readonly kind: FileSystemHandleKind;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */
isSameEntry(other: FileSystemHandle): Promise<boolean>;
}
declare var FileSystemHandle: {
prototype: FileSystemHandle;
new(): FileSystemHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle)
*/
interface FileSystemSyncAccessHandle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/flush) */
flush(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize) */
getSize(): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read) */
read(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate) */
truncate(newSize: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write) */
write(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
}
declare var FileSystemSyncAccessHandle: {
prototype: FileSystemSyncAccessHandle;
new(): FileSystemSyncAccessHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)
*/
interface FileSystemWritableFileStream extends WritableStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */
seek(position: number): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */
truncate(size: number): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */
write(data: FileSystemWriteChunkType): Promise<void>;
}
declare var FileSystemWritableFileStream: {
prototype: FileSystemWritableFileStream;
new(): FileSystemWritableFileStream;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */
interface FontFace {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */
ascentOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */
descentOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */
display: FontDisplay;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */
family: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */
featureSettings: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */
lineGapOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */
readonly loaded: Promise<FontFace>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */
readonly status: FontFaceLoadStatus;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */
stretch: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */
style: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */
unicodeRange: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */
weight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": Event;
"loadingdone": Event;
"loadingerror": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */
interface FontFaceSet extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */
readonly ready: Promise<FontFaceSet>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */
readonly status: FontFaceSetLoadStatus;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */
check(font: string, text?: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */
load(font: string, text?: string): Promise<FontFace[]>;
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FontFaceSet: {
prototype: FontFaceSet;
new(initialFaces: FontFace[]): FontFaceSet;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */
interface FontFaceSetLoadEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */
readonly fontfaces: ReadonlyArray<FontFace>;
}
declare var FontFaceSetLoadEvent: {
prototype: FontFaceSetLoadEvent;
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};
interface FontFaceSource {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */
readonly fonts: FontFaceSet;
}
/**
* Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)
*/
interface FormData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */
append(name: string, value: string | Blob): void;
append(name: string, value: string): void;
append(name: string, blobValue: Blob, filename?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */
delete(name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */
get(name: string): FormDataEntryValue | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */
getAll(name: string): FormDataEntryValue[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */
has(name: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */
set(name: string, value: string | Blob): void;
set(name: string, value: string): void;
set(name: string, blobValue: Blob, filename?: string): void;
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}
declare var FormData: {
prototype: FormData;
new(): FormData;
};
interface GenericTransformStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */
readonly writable: WritableStream;
}
/**
* This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)
*/
interface Headers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */
append(name: string, value: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */
delete(name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */
get(name: string): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */
getSetCookie(): string[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */
has(name: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */
set(name: string, value: string): void;
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
}
declare var Headers: {
prototype: Headers;
new(init?: HeadersInit): Headers;
};
/**
* This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor)
*/
interface IDBCursor {
/**
* Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)
*/
readonly direction: IDBCursorDirection;
/**
* Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)
*/
readonly key: IDBValidKey;
/**
* Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)
*/
readonly primaryKey: IDBValidKey;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request) */
readonly request: IDBRequest;
/**
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)
*/
readonly source: IDBObjectStore | IDBIndex;
/**
* Advances the cursor through the next count records in range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)
*/
advance(count: number): void;
/**
* Advances the cursor to the next record in range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)
*/
continue(key?: IDBValidKey): void;
/**
* Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)
*/
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* Delete the record pointed at by the cursor with a new value.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)
*/
delete(): IDBRequest<undefined>;
/**
* Updated the record pointed at by the cursor with a new value.
*
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
*
* If successful, request's result will be the record's key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)
*/
update(value: any): IDBRequest<IDBValidKey>;
}
declare var IDBCursor: {
prototype: IDBCursor;
new(): IDBCursor;
};
/**
* This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)
*/
interface IDBCursorWithValue extends IDBCursor {
/**
* Returns the cursor's current value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/value)
*/
readonly value: any;
}
declare var IDBCursorWithValue: {
prototype: IDBCursorWithValue;
new(): IDBCursorWithValue;
};
interface IDBDatabaseEventMap {
"abort": Event;
"close": Event;
"error": Event;
"versionchange": IDBVersionChangeEvent;
}
/**
* This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)
*/
interface IDBDatabase extends EventTarget {
/**
* Returns the name of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)
*/
readonly name: string;
/**
* Returns a list of the names of object stores in the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
*/
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
/**
* Returns the version of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)
*/
readonly version: number;
/**
* Closes the connection once all running transactions have finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)
*/
close(): void;
/**
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* Deletes the object store with the given name.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)
*/
deleteObjectStore(name: string): void;
/**
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
*/
transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBDatabase: {
prototype: IDBDatabase;
new(): IDBDatabase;
};
/**
* In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)
*/
interface IDBFactory {
/**
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
*
* Throws a "DataError" DOMException if either input is not a valid key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)
*/
cmp(first: any, second: any): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases) */
databases(): Promise<IDBDatabaseInfo[]>;
/**
* Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)
*/
deleteDatabase(name: string): IDBOpenDBRequest;
/**
* Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open)
*/
open(name: string, version?: number): IDBOpenDBRequest;
}
declare var IDBFactory: {
prototype: IDBFactory;
new(): IDBFactory;
};
/**
* IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)
*/
interface IDBIndex {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath) */
readonly keyPath: string | string[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry) */
readonly multiEntry: boolean;
/**
* Returns the name of the index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)
*/
name: string;
/**
* Returns the IDBObjectStore the index belongs to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)
*/
readonly objectStore: IDBObjectStore;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique) */
readonly unique: boolean;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor)
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
}
declare var IDBIndex: {
prototype: IDBIndex;
new(): IDBIndex;
};
/**
* A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs:
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)
*/
interface IDBKeyRange {
/**
* Returns lower bound, or undefined if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)
*/
readonly lower: any;
/**
* Returns true if the lower open flag is set, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)
*/
readonly lowerOpen: boolean;
/**
* Returns upper bound, or undefined if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)
*/
readonly upper: any;
/**
* Returns true if the upper open flag is set, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)
*/
readonly upperOpen: boolean;
/**
* Returns true if key is included in the range, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)
*/
includes(key: any): boolean;
}
declare var IDBKeyRange: {
prototype: IDBKeyRange;
new(): IDBKeyRange;
/**
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
*/
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
/**
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
*/
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/**
* Returns a new IDBKeyRange spanning only key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
*/
only(value: any): IDBKeyRange;
/**
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
*/
upperBound(upper: any, open?: boolean): IDBKeyRange;
};
/**
* This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)
*/
interface IDBObjectStore {
/**
* Returns true if the store has a key generator, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)
*/
readonly autoIncrement: boolean;
/**
* Returns a list of the names of indexes in the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)
*/
readonly indexNames: DOMStringList;
/**
* Returns the key path of the store, or null if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)
*/
readonly keyPath: string | string[];
/**
* Returns the name of the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)
*/
name: string;
/**
* Returns the associated transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)
*/
readonly transaction: IDBTransaction;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)
*/
clear(): IDBRequest<undefined>;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* Deletes records in store with the given key or in the given key range in query.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)
*/
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* Deletes the index in store with the given name.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)
*/
deleteIndex(name: string): void;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index) */
index(name: string): IDBIndex;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put)
*/
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
}
declare var IDBObjectStore: {
prototype: IDBObjectStore;
new(): IDBObjectStore;
};
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
"blocked": IDBVersionChangeEvent;
"upgradeneeded": IDBVersionChangeEvent;
}
/**
* Also inherits methods from its parents IDBRequest and EventTarget.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest)
*/
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */
onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBOpenDBRequest: {
prototype: IDBOpenDBRequest;
new(): IDBOpenDBRequest;
};
interface IDBRequestEventMap {
"error": Event;
"success": Event;
}
/**
* The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)
*/
interface IDBRequest<T = any> extends EventTarget {
/**
* When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error)
*/
readonly error: DOMException | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
/**
* Returns "pending" until a request is complete, then returns "done".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)
*/
readonly readyState: IDBRequestReadyState;
/**
* When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)
*/
readonly result: T;
/**
* Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)
*/
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/**
* Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction)
*/
readonly transaction: IDBTransaction | null;
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBRequest: {
prototype: IDBRequest;
new(): IDBRequest;
};
interface IDBTransactionEventMap {
"abort": Event;
"complete": Event;
"error": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction) */
interface IDBTransaction extends EventTarget {
/**
* Returns the transaction's connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)
*/
readonly db: IDBDatabase;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability) */
readonly durability: IDBTransactionDurability;
/**
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)
*/
readonly error: DOMException | null;
/**
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)
*/
readonly mode: IDBTransactionMode;
/**
* Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)
*/
readonly objectStoreNames: DOMStringList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
/**
* Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)
*/
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit) */
commit(): void;
/**
* Returns an IDBObjectStore in the transaction's scope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore)
*/
objectStore(name: string): IDBObjectStore;
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBTransaction: {
prototype: IDBTransaction;
new(): IDBTransaction;
};
/**
* This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)
*/
interface IDBVersionChangeEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) */
readonly newVersion: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion) */
readonly oldVersion: number;
}
declare var IDBVersionChangeEvent: {
prototype: IDBVersionChangeEvent;
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap) */
interface ImageBitmap {
/**
* Returns the intrinsic height of the image, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)
*/
readonly height: number;
/**
* Returns the intrinsic width of the image, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)
*/
readonly width: number;
/**
* Releases imageBitmap's underlying bitmap data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)
*/
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */
interface ImageBitmapRenderingContext {
/**
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)
*/
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
declare var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new(): ImageBitmapRenderingContext;
};
/**
* The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)
*/
interface ImageData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) */
readonly colorSpace: PredefinedColorSpace;
/**
* Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: Uint8ClampedArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)
*/
readonly height: number;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width)
*/
readonly width: number;
}
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */
interface KHR_parallel_shader_compile {
readonly COMPLETION_STATUS_KHR: 0x91B1;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)
*/
interface Lock {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode) */
readonly mode: LockMode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name) */
readonly name: string;
}
declare var Lock: {
prototype: Lock;
new(): Lock;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)
*/
interface LockManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
query(): Promise<LockManagerSnapshot>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
request(name: string, callback: LockGrantedCallback): Promise<any>;
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
}
declare var LockManager: {
prototype: LockManager;
new(): LockManager;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities) */
interface MediaCapabilities {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) */
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo) */
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}
declare var MediaCapabilities: {
prototype: MediaCapabilities;
new(): MediaCapabilities;
};
/**
* This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)
*/
interface MessageChannel {
/**
* Returns the first MessagePort object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
*/
readonly port1: MessagePort;
/**
* Returns the second MessagePort object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
*/
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/**
* A message received by a target object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
*/
interface MessageEvent<T = any> extends Event {
/**
* Returns the data of the message.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
*/
readonly data: T;
/**
* Returns the last event ID string, for server-sent events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
*/
readonly lastEventId: string;
/**
* Returns the origin of the message, for server-sent events and cross-document messaging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
*/
readonly origin: string;
/**
* Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
*/
readonly ports: ReadonlyArray<MessagePort>;
/**
* Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
*/
readonly source: MessageEventSource | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
*/
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
declare var MessageEvent: {
prototype: MessageEvent;
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};
interface MessagePortEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
*/
interface MessagePort extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
/**
* Disconnects the port, so that it is no longer active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
*/
close(): void;
/**
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* Begins dispatching messages received on the port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
*/
start(): void;
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MessagePort: {
prototype: MessagePort;
new(): MessagePort;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)
*/
interface NavigationPreloadManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable) */
disable(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) */
enable(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState) */
getState(): Promise<NavigationPreloadState>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue) */
setHeaderValue(value: string): Promise<void>;
}
declare var NavigationPreloadManager: {
prototype: NavigationPreloadManager;
new(): NavigationPreloadManager;
};
/** Available only in secure contexts. */
interface NavigatorBadge {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */
clearAppBadge(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */
setAppBadge(contents?: number): Promise<void>;
}
interface NavigatorConcurrentHardware {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */
readonly hardwareConcurrency: number;
}
interface NavigatorID {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
*/
readonly appCodeName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
*/
readonly appName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
*/
readonly appVersion: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
*/
readonly platform: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
*/
readonly product: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
readonly userAgent: string;
}
interface NavigatorLanguage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */
readonly language: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */
readonly languages: ReadonlyArray<string>;
}
/** Available only in secure contexts. */
interface NavigatorLocks {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */
readonly locks: LockManager;
}
interface NavigatorOnLine {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */
readonly onLine: boolean;
}
/** Available only in secure contexts. */
interface NavigatorStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */
readonly storage: StorageManager;
}
interface NotificationEventMap {
"click": Event;
"close": Event;
"error": Event;
"show": Event;
}
/**
* This Notifications API interface is used to configure and display desktop notifications to the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
*/
interface Notification extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */
readonly badge: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */
readonly body: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */
readonly data: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir) */
readonly dir: NotificationDirection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon) */
readonly icon: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang) */
readonly lang: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */
onclick: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */
onclose: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */
onerror: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
onshow: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */
readonly requireInteraction: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */
readonly silent: boolean | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
readonly tag: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */
readonly title: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close) */
close(): void;
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Notification: {
prototype: Notification;
new(title: string, options?: NotificationOptions): Notification;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */
readonly permission: NotificationPermission;
};
/**
* The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent)
*/
interface NotificationEvent extends ExtendableEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/action) */
readonly action: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/notification) */
readonly notification: Notification;
}
declare var NotificationEvent: {
prototype: NotificationEvent;
new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed) */
interface OES_draw_buffers_indexed {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES) */
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES) */
blendEquationiOES(buf: GLuint, mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES) */
blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES) */
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES) */
colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES) */
disableiOES(target: GLenum, index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES) */
enableiOES(target: GLenum, index: GLuint): void;
}
/**
* The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint)
*/
interface OES_element_index_uint {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap) */
interface OES_fbo_render_mipmap {
}
/**
* The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives)
*/
interface OES_standard_derivatives {
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;
}
/**
* The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float)
*/
interface OES_texture_float {
}
/**
* The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear)
*/
interface OES_texture_float_linear {
}
/**
* The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float)
*/
interface OES_texture_half_float {
readonly HALF_FLOAT_OES: 0x8D61;
}
/**
* The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear)
*/
interface OES_texture_half_float_linear {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object) */
interface OES_vertex_array_object {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2) */
interface OVR_multiview2 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR) */
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;
readonly MAX_VIEWS_OVR: 0x9631;
readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;
}
interface OffscreenCanvasEventMap {
"contextlost": Event;
"contextrestored": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) */
interface OffscreenCanvas extends EventTarget {
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)
*/
height: number;
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)
*/
width: number;
/**
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
*
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)
*/
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
/**
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
*
* This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
*
* Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
*/
getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
/**
* Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
*/
transferToImageBitmap(): ImageBitmap;
addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OffscreenCanvas: {
prototype: OffscreenCanvas;
new(width: number, height: number): OffscreenCanvas;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
commit(): void;
}
declare var OffscreenCanvasRenderingContext2D: {
prototype: OffscreenCanvasRenderingContext2D;
new(): OffscreenCanvasRenderingContext2D;
};
/**
* This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)
*/
interface Path2D extends CanvasPath {
/**
* Adds to the path the path given by the argument.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath)
*/
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
declare var Path2D: {
prototype: Path2D;
new(path?: Path2D | string): Path2D;
};
interface PerformanceEventMap {
"resourcetimingbufferfull": Event;
}
/**
* Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance)
*/
interface Performance extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */
readonly timeOrigin: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) */
clearMarks(markName?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) */
clearMeasures(measureName?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) */
clearResourceTimings(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) */
getEntries(): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */
getEntriesByType(type: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) */
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure) */
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now) */
now(): DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) */
setResourceTimingBufferSize(maxSize: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */
toJSON(): any;
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Performance: {
prototype: Performance;
new(): Performance;
};
/**
* Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)
*/
interface PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) */
readonly duration: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) */
readonly entryType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) */
readonly startTime: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
/**
* PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)
*/
interface PerformanceMark extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) */
readonly detail: any;
}
declare var PerformanceMark: {
prototype: PerformanceMark;
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
};
/**
* PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)
*/
interface PerformanceMeasure extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) */
readonly detail: any;
}
declare var PerformanceMeasure: {
prototype: PerformanceMeasure;
new(): PerformanceMeasure;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver) */
interface PerformanceObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) */
observe(options?: PerformanceObserverInit): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) */
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */
readonly supportedEntryTypes: ReadonlyArray<string>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList) */
interface PerformanceObserverEntryList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) */
getEntries(): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */
getEntriesByType(type: string): PerformanceEntryList;
}
declare var PerformanceObserverEntryList: {
prototype: PerformanceObserverEntryList;
new(): PerformanceObserverEntryList;
};
/**
* Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)
*/
interface PerformanceResourceTiming extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) */
readonly connectEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */
readonly connectStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */
readonly decodedBodySize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) */
readonly domainLookupEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) */
readonly domainLookupStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) */
readonly encodedBodySize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */
readonly fetchStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) */
readonly initiatorType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) */
readonly nextHopProtocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) */
readonly redirectEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) */
readonly redirectStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) */
readonly requestStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) */
readonly responseEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */
readonly responseStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */
readonly secureConnectionStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */
readonly transferSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) */
readonly workerStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming) */
interface PerformanceServerTiming {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description) */
readonly description: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration) */
readonly duration: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};
interface PermissionStatusEventMap {
"change": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus) */
interface PermissionStatus extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) */
readonly state: PermissionState;
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PermissionStatus: {
prototype: PermissionStatus;
new(): PermissionStatus;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions) */
interface Permissions {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query) */
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
/**
* Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
*/
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable) */
readonly lengthComputable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */
readonly loaded: number;
readonly target: T | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */
readonly total: number;
}
declare var ProgressEvent: {
prototype: ProgressEvent;
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */
interface PromiseRejectionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */
readonly promise: Promise<any>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */
readonly reason: any;
}
declare var PromiseRejectionEvent: {
prototype: PromiseRejectionEvent;
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};
/**
* This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent)
*/
interface PushEvent extends ExtendableEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent/data) */
readonly data: PushMessageData | null;
}
declare var PushEvent: {
prototype: PushEvent;
new(type: string, eventInitDict?: PushEventInit): PushEvent;
};
/**
* This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager)
*/
interface PushManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription) */
getSubscription(): Promise<PushSubscription | null>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState) */
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) */
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */
readonly supportedContentEncodings: ReadonlyArray<string>;
};
/**
* This Push API interface provides methods which let you retrieve the push data sent by a server in various formats.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData)
*/
interface PushMessageData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/arrayBuffer) */
arrayBuffer(): ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/blob) */
blob(): Blob;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/json) */
json(): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/text) */
text(): string;
}
declare var PushMessageData: {
prototype: PushMessageData;
new(): PushMessageData;
};
/**
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)
*/
interface PushSubscription {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint) */
readonly endpoint: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime) */
readonly expirationTime: EpochTimeStamp | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options) */
readonly options: PushSubscriptionOptions;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) */
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON) */
toJSON(): PushSubscriptionJSON;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe) */
unsubscribe(): Promise<boolean>;
}
declare var PushSubscription: {
prototype: PushSubscription;
new(): PushSubscription;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)
*/
interface PushSubscriptionOptions {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey) */
readonly applicationServerKey: ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly) */
readonly userVisibleOnly: boolean;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */
interface RTCEncodedAudioFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */
data: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */
getMetadata(): RTCEncodedAudioFrameMetadata;
}
declare var RTCEncodedAudioFrame: {
prototype: RTCEncodedAudioFrame;
new(): RTCEncodedAudioFrame;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */
interface RTCEncodedVideoFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */
data: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */
readonly type: RTCEncodedVideoFrameType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */
getMetadata(): RTCEncodedVideoFrameMetadata;
}
declare var RTCEncodedVideoFrame: {
prototype: RTCEncodedVideoFrame;
new(): RTCEncodedVideoFrame;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer) */
interface RTCRtpScriptTransformer extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/options) */
readonly options: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/writable) */
readonly writable: WritableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame) */
generateKeyFrame(rid?: string): Promise<number>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest) */
sendKeyFrameRequest(): Promise<void>;
}
declare var RTCRtpScriptTransformer: {
prototype: RTCRtpScriptTransformer;
new(): RTCRtpScriptTransformer;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent) */
interface RTCTransformEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent/transformer) */
readonly transformer: RTCRtpScriptTransformer;
}
declare var RTCTransformEvent: {
prototype: RTCTransformEvent;
new(): RTCTransformEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */
interface ReadableByteStreamController {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */
readonly byobRequest: ReadableStreamBYOBRequest | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */
enqueue(chunk: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */
error(e?: any): void;
}
declare var ReadableByteStreamController: {
prototype: ReadableByteStreamController;
new(): ReadableByteStreamController;
};
/**
* This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
*/
interface ReadableStream<R = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */
readonly locked: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */
cancel(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(): ReadableStreamDefaultReader<R>;
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */
tee(): [ReadableStream<R>, ReadableStream<R>];
}
declare var ReadableStream: {
prototype: ReadableStream;
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
releaseLock(): void;
}
declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
new(stream: ReadableStream): ReadableStreamBYOBReader;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
interface ReadableStreamBYOBRequest {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */
readonly view: ArrayBufferView | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */
respond(bytesWritten: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */
respondWithNewView(view: ArrayBufferView): void;
}
declare var ReadableStreamBYOBRequest: {
prototype: ReadableStreamBYOBRequest;
new(): ReadableStreamBYOBRequest;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */
interface ReadableStreamDefaultController<R = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */
enqueue(chunk?: R): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */
read(): Promise<ReadableStreamReadResult<R>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */
releaseLock(): void;
}
declare var ReadableStreamDefaultReader: {
prototype: ReadableStreamDefaultReader;
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};
interface ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */
readonly closed: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */
cancel(reason?: any): Promise<void>;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) */
interface Report {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) */
readonly body: ReportBody | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) */
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) */
readonly url: string;
toJSON(): any;
}
declare var Report: {
prototype: Report;
new(): Report;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */
interface ReportBody {
toJSON(): any;
}
declare var ReportBody: {
prototype: ReportBody;
new(): ReportBody;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver) */
interface ReportingObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe) */
observe(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords) */
takeRecords(): ReportList;
}
declare var ReportingObserver: {
prototype: ReportingObserver;
new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;
};
/**
* This Fetch API interface represents a resource request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
*/
interface Request extends Body {
/**
* Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
*/
readonly cache: RequestCache;
/**
* Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)
*/
readonly credentials: RequestCredentials;
/**
* Returns the kind of resource requested by request, e.g., "document" or "script".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)
*/
readonly destination: RequestDestination;
/**
* Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)
*/
readonly headers: Headers;
/**
* Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
*/
readonly integrity: string;
/**
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
*/
readonly keepalive: boolean;
/**
* Returns request's HTTP method, which is "GET" by default.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)
*/
readonly method: string;
/**
* Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)
*/
readonly mode: RequestMode;
/**
* Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)
*/
readonly redirect: RequestRedirect;
/**
* Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)
*/
readonly referrer: string;
/**
* Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)
*/
readonly referrerPolicy: ReferrerPolicy;
/**
* Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)
*/
readonly signal: AbortSignal;
/**
* Returns the URL of request as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)
*/
readonly url: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */
clone(): Request;
}
declare var Request: {
prototype: Request;
new(input: RequestInfo | URL, init?: RequestInit): Request;
};
/**
* This Fetch API interface represents the response to a request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
*/
interface Response extends Body {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */
readonly headers: Headers;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */
readonly ok: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */
readonly redirected: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */
readonly status: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */
readonly statusText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */
readonly type: ResponseType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */
readonly url: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */
clone(): Response;
}
declare var Response: {
prototype: Response;
new(body?: BodyInit | null, init?: ResponseInit): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
error(): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */
json(data: any, init?: ResponseInit): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */
redirect(url: string | URL, status?: number): Response;
};
/**
* Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)
*/
interface SecurityPolicyViolationEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) */
readonly blockedURI: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */
readonly columnNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition) */
readonly disposition: SecurityPolicyViolationEventDisposition;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI) */
readonly documentURI: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective) */
readonly effectiveDirective: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber) */
readonly lineNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy) */
readonly originalPolicy: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer) */
readonly referrer: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample) */
readonly sample: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile) */
readonly sourceFile: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode) */
readonly statusCode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective) */
readonly violatedDirective: string;
}
declare var SecurityPolicyViolationEvent: {
prototype: SecurityPolicyViolationEvent;
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
};
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange": Event;
}
/**
* This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker)
*/
interface ServiceWorker extends EventTarget, AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) */
readonly scriptURL: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state) */
readonly state: ServiceWorkerState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage) */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorker: {
prototype: ServiceWorker;
new(): ServiceWorker;
};
interface ServiceWorkerContainerEventMap {
"controllerchange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer)
*/
interface ServiceWorkerContainer extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */
readonly controller: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
readonly ready: Promise<ServiceWorkerRegistration>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration) */
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations) */
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register) */
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages) */
startMessages(): void;
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerContainer: {
prototype: ServiceWorkerContainer;
new(): ServiceWorkerContainer;
};
interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"activate": ExtendableEvent;
"fetch": FetchEvent;
"install": ExtendableEvent;
"message": ExtendableMessageEvent;
"messageerror": MessageEvent;
"notificationclick": NotificationEvent;
"notificationclose": NotificationEvent;
"push": PushEvent;
"pushsubscriptionchange": Event;
}
/**
* This ServiceWorker API interface represents the global execution context of a service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)
*/
interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/clients) */
readonly clients: Clients;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/push_event) */
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/pushsubscriptionchange_event) */
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration) */
readonly registration: ServiceWorkerRegistration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker) */
readonly serviceWorker: ServiceWorker;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting) */
skipWaiting(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerGlobalScope: {
prototype: ServiceWorkerGlobalScope;
new(): ServiceWorkerGlobalScope;
};
interface ServiceWorkerRegistrationEventMap {
"updatefound": Event;
}
/**
* This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
*/
interface ServiceWorkerRegistration extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */
readonly active: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) */
readonly installing: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload) */
readonly navigationPreload: NavigationPreloadManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
readonly pushManager: PushManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope) */
readonly scope: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache) */
readonly updateViaCache: ServiceWorkerUpdateViaCache;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting) */
readonly waiting: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications) */
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification) */
showNotification(title: string, options?: NotificationOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */
unregister(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */
update(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerRegistration: {
prototype: ServiceWorkerRegistration;
new(): ServiceWorkerRegistration;
};
interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"connect": MessageEvent;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope) */
interface SharedWorkerGlobalScope extends WorkerGlobalScope {
/**
* Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/name)
*/
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/connect_event) */
onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/**
* Aborts sharedWorkerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/close)
*/
close(): void;
addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SharedWorkerGlobalScope: {
prototype: SharedWorkerGlobalScope;
new(): SharedWorkerGlobalScope;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)
*/
interface StorageManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate) */
estimate(): Promise<StorageEstimate>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory) */
getDirectory(): Promise<FileSystemDirectoryHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) */
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) */
interface StylePropertyMapReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) */
readonly size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get) */
get(property: string): undefined | CSSStyleValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) */
getAll(property: string): CSSStyleValue[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) */
has(property: string): boolean;
forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void;
}
declare var StylePropertyMapReadOnly: {
prototype: StylePropertyMapReadOnly;
new(): StylePropertyMapReadOnly;
};
/**
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
*/
interface SubtleCrypto {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
}
declare var SubtleCrypto: {
prototype: SubtleCrypto;
new(): SubtleCrypto;
};
/**
* A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
*/
interface TextDecoder extends TextDecoderCommon {
/**
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
*
* \`\`\`
* var string = "", decoder = new TextDecoder(encoding), buffer;
* while(buffer = next_chunk()) {
* string += decoder.decode(buffer, {stream:true});
* }
* string += decoder.decode(); // end-of-queue
* \`\`\`
*
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
*/
decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
}
declare var TextDecoder: {
prototype: TextDecoder;
new(label?: string, options?: TextDecoderOptions): TextDecoder;
};
interface TextDecoderCommon {
/**
* Returns encoding's name, lowercased.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding)
*/
readonly encoding: string;
/**
* Returns true if error mode is "fatal", otherwise false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal)
*/
readonly fatal: boolean;
/**
* Returns the value of ignore BOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM)
*/
readonly ignoreBOM: boolean;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
readonly readable: ReadableStream<string>;
readonly writable: WritableStream<BufferSource>;
}
declare var TextDecoderStream: {
prototype: TextDecoderStream;
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
};
/**
* TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
*/
interface TextEncoder extends TextEncoderCommon {
/**
* Returns the result of running UTF-8's encoder.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
*/
encode(input?: string): Uint8Array;
/**
* Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
*/
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
}
declare var TextEncoder: {
prototype: TextEncoder;
new(): TextEncoder;
};
interface TextEncoderCommon {
/**
* Returns "utf-8".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)
*/
readonly encoding: string;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
readonly readable: ReadableStream<Uint8Array>;
readonly writable: WritableStream<string>;
}
declare var TextEncoderStream: {
prototype: TextEncoderStream;
new(): TextEncoderStream;
};
/**
* The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)
*/
interface TextMetrics {
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)
*/
readonly actualBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)
*/
readonly actualBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)
*/
readonly actualBoundingBoxLeft: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)
*/
readonly actualBoundingBoxRight: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)
*/
readonly alphabeticBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)
*/
readonly emHeightAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)
*/
readonly emHeightDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)
*/
readonly fontBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)
*/
readonly fontBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)
*/
readonly hangingBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)
*/
readonly ideographicBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width)
*/
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */
interface TransformStream<I = any, O = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */
readonly readable: ReadableStream<O>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */
readonly writable: WritableStream<I>;
}
declare var TransformStream: {
prototype: TransformStream;
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
interface TransformStreamDefaultController<O = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
enqueue(chunk?: O): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */
error(reason?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/**
* The URL\xA0interface represents an object providing static methods used for creating object URLs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
*/
interface URL {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */
hash: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */
host: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */
hostname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */
href: string;
toString(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */
password: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */
pathname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */
port: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */
protocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */
search: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */
readonly searchParams: URLSearchParams;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */
username: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */
toJSON(): string;
}
declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
canParse(url: string | URL, base?: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
createObjectURL(obj: Blob): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
revokeObjectURL(url: string): void;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
interface URLSearchParams {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */
readonly size: number;
/**
* Appends a specified key/value pair as a new search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)
*/
append(name: string, value: string): void;
/**
* Deletes the given search parameter, and its associated value, from the list of all search parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
*/
delete(name: string, value?: string): void;
/**
* Returns the first value associated to the given search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
*/
get(name: string): string | null;
/**
* Returns all the values association with a given search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
*/
getAll(name: string): string[];
/**
* Returns a Boolean indicating if such a search parameter exists.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
*/
has(name: string, value?: string): boolean;
/**
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
*/
set(name: string, value: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */
sort(): void;
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
toString(): string;
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
}
declare var URLSearchParams: {
prototype: URLSearchParams;
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) */
interface VideoColorSpace {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) */
readonly fullRange: boolean | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) */
readonly matrix: VideoMatrixCoefficients | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) */
readonly primaries: VideoColorPrimaries | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) */
readonly transfer: VideoTransferCharacteristics | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) */
toJSON(): VideoColorSpaceInit;
}
declare var VideoColorSpace: {
prototype: VideoColorSpace;
new(init?: VideoColorSpaceInit): VideoColorSpace;
};
interface VideoDecoderEventMap {
"dequeue": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)
*/
interface VideoDecoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */
readonly decodeQueueSize: number;
ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */
readonly state: CodecState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure) */
configure(config: VideoDecoderConfig): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode) */
decode(chunk: EncodedVideoChunk): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush) */
flush(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset) */
reset(): void;
addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VideoDecoder: {
prototype: VideoDecoder;
new(init: VideoDecoderInit): VideoDecoder;
isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;
};
interface VideoEncoderEventMap {
"dequeue": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)
*/
interface VideoEncoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */
readonly encodeQueueSize: number;
ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */
readonly state: CodecState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure) */
configure(config: VideoEncoderConfig): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */
encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;
flush(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */
reset(): void;
addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VideoEncoder: {
prototype: VideoEncoder;
new(init: VideoEncoderInit): VideoEncoder;
isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame) */
interface VideoFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) */
readonly codedHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) */
readonly codedRect: DOMRectReadOnly | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) */
readonly codedWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) */
readonly colorSpace: VideoColorSpace;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) */
readonly displayHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) */
readonly displayWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) */
readonly duration: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) */
readonly format: VideoPixelFormat | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) */
readonly visibleRect: DOMRectReadOnly | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) */
allocationSize(options?: VideoFrameCopyToOptions): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) */
clone(): VideoFrame;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */
close(): void;
copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
}
declare var VideoFrame: {
prototype: VideoFrame;
new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;
new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */
interface WEBGL_color_buffer_float {
readonly RGBA32F_EXT: 0x8814;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc) */
interface WEBGL_compressed_texture_astc {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles) */
getSupportedProfiles(): string[];
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;
readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;
readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;
readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;
readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;
readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;
readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;
readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;
readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;
readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;
readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;
readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;
readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc) */
interface WEBGL_compressed_texture_etc {
readonly COMPRESSED_R11_EAC: 0x9270;
readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;
readonly COMPRESSED_RG11_EAC: 0x9272;
readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;
readonly COMPRESSED_RGB8_ETC2: 0x9274;
readonly COMPRESSED_SRGB8_ETC2: 0x9275;
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;
readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1) */
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc) */
interface WEBGL_compressed_texture_pvrtc {
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00;
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01;
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02;
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03;
}
/**
* The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc)
*/
interface WEBGL_compressed_texture_s3tc {
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb) */
interface WEBGL_compressed_texture_s3tc_srgb {
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;
}
/**
* The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info)
*/
interface WEBGL_debug_renderer_info {
readonly UNMASKED_VENDOR_WEBGL: 0x9245;
readonly UNMASKED_RENDERER_WEBGL: 0x9246;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders) */
interface WEBGL_debug_shaders {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource) */
getTranslatedShaderSource(shader: WebGLShader): string;
}
/**
* The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture)
*/
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers) */
interface WEBGL_draw_buffers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
drawBuffersWEBGL(buffers: GLenum[]): void;
readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;
readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;
readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;
readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;
readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;
readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;
readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;
readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;
readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;
readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;
readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;
readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;
readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;
readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;
readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;
readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;
readonly DRAW_BUFFER0_WEBGL: 0x8825;
readonly DRAW_BUFFER1_WEBGL: 0x8826;
readonly DRAW_BUFFER2_WEBGL: 0x8827;
readonly DRAW_BUFFER3_WEBGL: 0x8828;
readonly DRAW_BUFFER4_WEBGL: 0x8829;
readonly DRAW_BUFFER5_WEBGL: 0x882A;
readonly DRAW_BUFFER6_WEBGL: 0x882B;
readonly DRAW_BUFFER7_WEBGL: 0x882C;
readonly DRAW_BUFFER8_WEBGL: 0x882D;
readonly DRAW_BUFFER9_WEBGL: 0x882E;
readonly DRAW_BUFFER10_WEBGL: 0x882F;
readonly DRAW_BUFFER11_WEBGL: 0x8830;
readonly DRAW_BUFFER12_WEBGL: 0x8831;
readonly DRAW_BUFFER13_WEBGL: 0x8832;
readonly DRAW_BUFFER14_WEBGL: 0x8833;
readonly DRAW_BUFFER15_WEBGL: 0x8834;
readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;
readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context) */
interface WEBGL_lose_context {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */
loseContext(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */
restoreContext(): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) */
interface WEBGL_multi_draw {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
declare var WebGL2RenderingContext: {
prototype: WebGL2RenderingContext;
new(): WebGL2RenderingContext;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGBA8: 0x8058;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGL2RenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */
beginQuery(target: GLenum, query: WebGLQuery): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */
beginTransformFeedback(primitiveMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */
bindVertexArray(array: WebGLVertexArrayObject | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */
createQuery(): WebGLQuery | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */
createSampler(): WebGLSampler | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */
createTransformFeedback(): WebGLTransformFeedback | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */
createVertexArray(): WebGLVertexArrayObject | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */
deleteQuery(query: WebGLQuery | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */
deleteSampler(sampler: WebGLSampler | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */
deleteSync(sync: WebGLSync | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
drawBuffers(buffers: GLenum[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */
endQuery(target: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */
endTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */
getFragDataLocation(program: WebGLProgram, name: string): GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */
getIndexedParameter(target: GLenum, index: GLuint): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */
isQuery(query: WebGLQuery | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */
isSampler(sampler: WebGLSampler | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */
isSync(sync: WebGLSync | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */
pauseTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */
readBuffer(src: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */
resumeTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4iv(index: GLuint, values: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
}
interface WebGL2RenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
}
/**
* Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo)
*/
interface WebGLActiveInfo {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size) */
readonly size: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type) */
readonly type: GLenum;
}
declare var WebGLActiveInfo: {
prototype: WebGLActiveInfo;
new(): WebGLActiveInfo;
};
/**
* Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer)
*/
interface WebGLBuffer {
}
declare var WebGLBuffer: {
prototype: WebGLBuffer;
new(): WebGLBuffer;
};
/**
* The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)
*/
interface WebGLContextEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) */
readonly statusMessage: string;
}
declare var WebGLContextEvent: {
prototype: WebGLContextEvent;
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
};
/**
* Part of the WebGL API and represents a collection of buffers that serve as a rendering destination.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer)
*/
interface WebGLFramebuffer {
}
declare var WebGLFramebuffer: {
prototype: WebGLFramebuffer;
new(): WebGLFramebuffer;
};
/**
* The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram)
*/
interface WebGLProgram {
}
declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery) */
interface WebGLQuery {
}
declare var WebGLQuery: {
prototype: WebGLQuery;
new(): WebGLQuery;
};
/**
* Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)
*/
interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
prototype: WebGLRenderbuffer;
new(): WebGLRenderbuffer;
};
/**
* Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext)
*/
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
}
declare var WebGLRenderingContext: {
prototype: WebGLRenderingContext;
new(): WebGLRenderingContext;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGBA8: 0x8058;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGLRenderingContextBase {
drawingBufferColorSpace: PredefinedColorSpace;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */
readonly drawingBufferHeight: GLsizei;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */
readonly drawingBufferWidth: GLsizei;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */
activeTexture(texture: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */
attachShader(program: WebGLProgram, shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */
blendEquation(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */
checkFramebufferStatus(target: GLenum): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */
clear(mask: GLbitfield): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */
clearDepth(depth: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */
clearStencil(s: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */
compileShader(shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */
createBuffer(): WebGLBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */
createFramebuffer(): WebGLFramebuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */
createProgram(): WebGLProgram | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */
createRenderbuffer(): WebGLRenderbuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */
createShader(type: GLenum): WebGLShader | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */
createTexture(): WebGLTexture | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */
cullFace(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */
deleteBuffer(buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */
deleteProgram(program: WebGLProgram | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */
deleteShader(shader: WebGLShader | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */
deleteTexture(texture: WebGLTexture | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */
depthFunc(func: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */
depthMask(flag: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */
depthRange(zNear: GLclampf, zFar: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */
detachShader(program: WebGLProgram, shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */
disable(cap: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */
disableVertexAttribArray(index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */
enable(cap: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */
enableVertexAttribArray(index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */
finish(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */
flush(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */
frontFace(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */
generateMipmap(target: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */
getAttribLocation(program: WebGLProgram, name: string): GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */
getBufferParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */
getContextAttributes(): WebGLContextAttributes | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
getError(): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
getExtension(name: string): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */
getParameter(pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */
getProgramInfoLog(program: WebGLProgram): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */
getShaderInfoLog(shader: WebGLShader): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */
getShaderSource(shader: WebGLShader): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */
getSupportedExtensions(): string[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */
getTexParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */
getVertexAttrib(index: GLuint, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */
hint(target: GLenum, mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */
isBuffer(buffer: WebGLBuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */
isContextLost(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */
isEnabled(cap: GLenum): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */
isProgram(program: WebGLProgram | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */
isShader(shader: WebGLShader | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */
isTexture(texture: WebGLTexture | null): GLboolean;
lineWidth(width: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */
linkProgram(program: WebGLProgram): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */
polygonOffset(factor: GLfloat, units: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */
sampleCoverage(value: GLclampf, invert: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */
shaderSource(shader: WebGLShader, source: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */
stencilMask(mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */
useProgram(program: WebGLProgram | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */
validateProgram(program: WebGLProgram): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1f(index: GLuint, x: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */
viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGBA8: 0x8058;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
}
interface WebGLRenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler) */
interface WebGLSampler {
}
declare var WebGLSampler: {
prototype: WebGLSampler;
new(): WebGLSampler;
};
/**
* The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)
*/
interface WebGLShader {
}
declare var WebGLShader: {
prototype: WebGLShader;
new(): WebGLShader;
};
/**
* Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat)
*/
interface WebGLShaderPrecisionFormat {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision) */
readonly precision: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax) */
readonly rangeMax: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin) */
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync) */
interface WebGLSync {
}
declare var WebGLSync: {
prototype: WebGLSync;
new(): WebGLSync;
};
/**
* Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture)
*/
interface WebGLTexture {
}
declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback) */
interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
prototype: WebGLTransformFeedback;
new(): WebGLTransformFeedback;
};
/**
* Part of the WebGL API and represents the location of a uniform variable in a shader program.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation)
*/
interface WebGLUniformLocation {
}
declare var WebGLUniformLocation: {
prototype: WebGLUniformLocation;
new(): WebGLUniformLocation;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */
interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObjectOES) */
interface WebGLVertexArrayObjectOES {
}
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/**
* Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
*/
interface WebSocket extends EventTarget {
/**
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
*
* Can be set, to change how binary data is returned. The default is "blob".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)
*/
binaryType: BinaryType;
/**
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
*
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)
*/
readonly bufferedAmount: number;
/**
* Returns the extensions selected by the server, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)
*/
readonly extensions: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */
onerror: ((this: WebSocket, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */
onopen: ((this: WebSocket, ev: Event) => any) | null;
/**
* Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)
*/
readonly protocol: string;
/**
* Returns the state of the WebSocket object's connection. It can have the values described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
*/
readonly readyState: number;
/**
* Returns the URL that was used to establish the WebSocket connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)
*/
readonly url: string;
/**
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
*/
close(code?: number, reason?: string): void;
/**
* Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
*/
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WebSocket: {
prototype: WebSocket;
new(url: string | URL, protocols?: string | string[]): WebSocket;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)
*/
interface WebTransport {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */
readonly closed: Promise<WebTransportCloseInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */
readonly datagrams: WebTransportDatagramDuplexStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */
readonly incomingBidirectionalStreams: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */
readonly incomingUnidirectionalStreams: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */
readonly ready: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */
close(closeInfo?: WebTransportCloseInfo): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */
createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
}
declare var WebTransport: {
prototype: WebTransport;
new(url: string | URL, options?: WebTransportOptions): WebTransport;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
*/
interface WebTransportBidirectionalStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */
readonly writable: WritableStream;
}
declare var WebTransportBidirectionalStream: {
prototype: WebTransportBidirectionalStream;
new(): WebTransportBidirectionalStream;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
*/
interface WebTransportDatagramDuplexStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */
incomingHighWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */
incomingMaxAge: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */
readonly maxDatagramSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */
outgoingHighWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */
outgoingMaxAge: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */
readonly writable: WritableStream;
}
declare var WebTransportDatagramDuplexStream: {
prototype: WebTransportDatagramDuplexStream;
new(): WebTransportDatagramDuplexStream;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)
*/
interface WebTransportError extends DOMException {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */
readonly source: WebTransportErrorSource;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */
readonly streamErrorCode: number | null;
}
declare var WebTransportError: {
prototype: WebTransportError;
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
};
/**
* This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient)
*/
interface WindowClient extends Client {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focused) */
readonly focused: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/visibilityState) */
readonly visibilityState: DocumentVisibilityState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focus) */
focus(): Promise<WindowClient>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/navigate) */
navigate(url: string | URL): Promise<WindowClient | null>;
}
declare var WindowClient: {
prototype: WindowClient;
new(): WindowClient;
};
interface WindowOrWorkerGlobalScope {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
*/
readonly caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
readonly crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
readonly crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
readonly indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
readonly isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
readonly performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
}
interface WorkerEventMap extends AbstractWorkerEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)
*/
interface Worker extends EventTarget, AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
/**
* Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* Aborts worker's associated global environment.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate)
*/
terminate(): void;
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Worker: {
prototype: Worker;
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
};
interface WorkerGlobalScopeEventMap {
"error": ErrorEvent;
"languagechange": Event;
"offline": Event;
"online": Event;
"rejectionhandled": PromiseRejectionEvent;
"unhandledrejection": PromiseRejectionEvent;
}
/**
* This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects \u2014 in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope)
*/
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
/**
* Returns workerGlobal's WorkerLocation object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
*/
readonly location: WorkerLocation;
/**
* Returns workerGlobal's WorkerNavigator object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator)
*/
readonly navigator: WorkerNavigator;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) */
onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) */
onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) */
onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */
ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/**
* Returns workerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)
*/
readonly self: WorkerGlobalScope & typeof globalThis;
/**
* Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
*/
importScripts(...urls: (string | URL)[]): void;
addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WorkerGlobalScope: {
prototype: WorkerGlobalScope;
new(): WorkerGlobalScope;
};
/**
* The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation)
*/
interface WorkerLocation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hash) */
readonly hash: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/host) */
readonly host: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hostname) */
readonly hostname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/href) */
readonly href: string;
toString(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/pathname) */
readonly pathname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/port) */
readonly port: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/protocol) */
readonly protocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/search) */
readonly search: string;
}
declare var WorkerLocation: {
prototype: WorkerLocation;
new(): WorkerLocation;
};
/**
* A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
*/
interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/mediaCapabilities) */
readonly mediaCapabilities: MediaCapabilities;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions) */
readonly permissions: Permissions;
}
declare var WorkerNavigator: {
prototype: WorkerNavigator;
new(): WorkerNavigator;
};
/**
* This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
*/
interface WritableStream<W = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */
readonly locked: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */
abort(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */
getWriter(): WritableStreamDefaultWriter<W>;
}
declare var WritableStream: {
prototype: WritableStream;
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
};
/**
* This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
*/
interface WritableStreamDefaultController {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */
readonly signal: AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
error(e?: any): void;
}
declare var WritableStreamDefaultController: {
prototype: WritableStreamDefaultController;
new(): WritableStreamDefaultController;
};
/**
* This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
*/
interface WritableStreamDefaultWriter<W = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */
readonly closed: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */
readonly ready: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */
abort(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */
releaseLock(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */
write(chunk?: W): Promise<void>;
}
declare var WritableStreamDefaultWriter: {
prototype: WritableStreamDefaultWriter;
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
};
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
"readystatechange": Event;
}
/**
* Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest)
*/
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
/**
* Returns client's state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)
*/
readonly readyState: number;
/**
* Returns the response body.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)
*/
readonly response: any;
/**
* Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)
*/
readonly responseText: string;
/**
* Returns the response type.
*
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
*
* When set: setting to "document" is ignored if current global object is not a Window object.
*
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)
*/
responseType: XMLHttpRequestResponseType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL) */
readonly responseURL: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status) */
readonly status: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText) */
readonly statusText: string;
/**
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)
*/
timeout: number;
/**
* Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)
*/
readonly upload: XMLHttpRequestUpload;
/**
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
*
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)
*/
withCredentials: boolean;
/**
* Cancels any network activity.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)
*/
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders) */
getAllResponseHeaders(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader) */
getResponseHeader(name: string): string | null;
/**
* Sets the request method, request URL, and synchronous flag.
*
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
*
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
*
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)
*/
open(method: string, url: string | URL): void;
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
* Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
*
* Throws an "InvalidStateError" DOMException if state is loading or done.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)
*/
overrideMimeType(mime: string): void;
/**
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)
*/
send(body?: XMLHttpRequestBodyInit | null): void;
/**
* Combines a header in author request headers.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader)
*/
setRequestHeader(name: string, value: string): void;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequest: {
prototype: XMLHttpRequest;
new(): XMLHttpRequest;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
};
interface XMLHttpRequestEventTargetEventMap {
"abort": ProgressEvent<XMLHttpRequestEventTarget>;
"error": ProgressEvent<XMLHttpRequestEventTarget>;
"load": ProgressEvent<XMLHttpRequestEventTarget>;
"loadend": ProgressEvent<XMLHttpRequestEventTarget>;
"loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
"progress": ProgressEvent<XMLHttpRequestEventTarget>;
"timeout": ProgressEvent<XMLHttpRequestEventTarget>;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget) */
interface XMLHttpRequestEventTarget extends EventTarget {
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestEventTarget: {
prototype: XMLHttpRequestEventTarget;
new(): XMLHttpRequestEventTarget;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload) */
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestUpload: {
prototype: XMLHttpRequestUpload;
new(): XMLHttpRequestUpload;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */
interface Console {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */
assert(condition?: boolean, ...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */
clear(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
count(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */
countReset(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
debug(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */
dir(item?: any, options?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */
dirxml(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */
error(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
group(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */
groupCollapsed(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */
groupEnd(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
info(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */
log(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */
table(tabularData?: any, properties?: string[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
time(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */
timeEnd(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
trace(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */
warn(...data: any[]): void;
}
declare var console: Console;
declare namespace WebAssembly {
interface CompileError extends Error {
}
var CompileError: {
prototype: CompileError;
new(message?: string): CompileError;
(message?: string): CompileError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */
interface Global<T extends ValueType = ValueType> {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */
value: ValueTypeMap[T];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */
valueOf(): ValueTypeMap[T];
}
var Global: {
prototype: Global;
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance) */
interface Instance {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance/exports) */
readonly exports: Exports;
}
var Instance: {
prototype: Instance;
new(module: Module, importObject?: Imports): Instance;
};
interface LinkError extends Error {
}
var LinkError: {
prototype: LinkError;
new(message?: string): LinkError;
(message?: string): LinkError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory) */
interface Memory {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */
readonly buffer: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/grow) */
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module) */
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */
exports(moduleObject: Module): ModuleExportDescriptor[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError extends Error {
}
var RuntimeError: {
prototype: RuntimeError;
new(message?: string): RuntimeError;
(message?: string): RuntimeError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table) */
interface Table {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */
get(index: number): any;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */
grow(delta: number, value?: any): number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set) */
set(index: number, value?: any): void;
}
var Table: {
prototype: Table;
new(descriptor: TableDescriptor, value?: any): Table;
};
interface GlobalDescriptor<T extends ValueType = ValueType> {
mutable?: boolean;
value: T;
}
interface MemoryDescriptor {
initial: number;
maximum?: number;
shared?: boolean;
}
interface ModuleExportDescriptor {
kind: ImportExportKind;
name: string;
}
interface ModuleImportDescriptor {
kind: ImportExportKind;
module: string;
name: string;
}
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
interface ValueTypeMap {
anyfunc: Function;
externref: any;
f32: number;
f64: number;
i32: number;
i64: bigint;
v128: never;
}
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc" | "externref";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
type Imports = Record<string, ModuleImports>;
type ModuleImports = Record<string, ImportValue>;
type ValueType = keyof ValueTypeMap;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */
function compile(bytes: BufferSource): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */
function validate(bytes: BufferSource): boolean;
}
interface EncodedVideoChunkOutputCallback {
(chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;
}
interface FrameRequestCallback {
(time: DOMHighResTimeStamp): void;
}
interface LockGrantedCallback {
(lock: Lock | null): any;
}
interface OnErrorEventHandlerNonNull {
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
}
interface PerformanceObserverCallback {
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
}
interface QueuingStrategySize<T = any> {
(chunk: T): number;
}
interface ReportingObserverCallback {
(reports: Report[], observer: ReportingObserver): void;
}
interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface TransformerStartCallback<O> {
(controller: TransformStreamDefaultController<O>): any;
}
interface TransformerTransformCallback<I, O> {
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface UnderlyingSinkAbortCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSinkCloseCallback {
(): void | PromiseLike<void>;
}
interface UnderlyingSinkStartCallback {
(controller: WritableStreamDefaultController): any;
}
interface UnderlyingSinkWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface UnderlyingSourceCancelCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSourcePullCallback<R> {
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
}
interface UnderlyingSourceStartCallback<R> {
(controller: ReadableStreamController<R>): any;
}
interface VideoFrameOutputCallback {
(output: VideoFrame): void;
}
interface VoidFunction {
(): void;
}
interface WebCodecsErrorCallback {
(error: DOMException): void;
}
/**
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)
*/
declare var name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */
declare var onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/**
* Aborts dedicatedWorkerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)
*/
declare function close(): void;
/**
* Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)
*/
declare function postMessage(message: any, transfer: Transferable[]): void;
declare function postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
declare function dispatchEvent(event: Event): boolean;
/**
* Returns workerGlobal's WorkerLocation object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
*/
declare var location: WorkerLocation;
/**
* Returns workerGlobal's WorkerNavigator object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator)
*/
declare var navigator: WorkerNavigator;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) */
declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) */
declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) */
declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */
declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/**
* Returns workerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)
*/
declare var self: WorkerGlobalScope & typeof globalThis;
/**
* Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
*/
declare function importScripts(...urls: (string | URL)[]): void;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
declare function dispatchEvent(event: Event): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */
declare var fonts: FontFaceSet;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
*/
declare var caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
declare var crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
declare var crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
declare var indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
declare var isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
declare var origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
declare var performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
declare function atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
declare function btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
declare function clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
declare function clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
declare function queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
declare function reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
declare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
declare function cancelAnimationFrame(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
type AlgorithmIdentifier = Algorithm | string;
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
type CSSKeywordish = string | CSSKeywordValue;
type CSSNumberish = number | CSSNumericValue;
type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;
type CSSUnparsedSegment = string | CSSVariableReferenceValue;
type CanvasImageSource = ImageBitmap | OffscreenCanvas | VideoFrame;
type DOMHighResTimeStamp = number;
type EpochTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
type Float32List = Float32Array | GLfloat[];
type FormDataEntryValue = File | string;
type GLbitfield = number;
type GLboolean = boolean;
type GLclampf = number;
type GLenum = number;
type GLfloat = number;
type GLint = number;
type GLint64 = number;
type GLintptr = number;
type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
type GLuint64 = number;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type Int32List = Int32Array | GLint[];
type MessageEventSource = MessagePort | ServiceWorker;
type NamedCurve = string;
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type PerformanceEntryList = PerformanceEntry[];
type PushMessageDataInit = BufferSource | string;
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
type ReportList = Report[];
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame;
type TimerHandler = string | Function;
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
type Uint32List = Uint32Array | GLuint[];
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type AlphaOption = "discard" | "keep";
type AvcBitstreamFormat = "annexb" | "avc";
type BinaryType = "arraybuffer" | "blob";
type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
type CanvasDirection = "inherit" | "ltr" | "rtl";
type CanvasFillRule = "evenodd" | "nonzero";
type CanvasFontKerning = "auto" | "none" | "normal";
type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
type CanvasLineCap = "butt" | "round" | "square";
type CanvasLineJoin = "bevel" | "miter" | "round";
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
type CodecState = "closed" | "configured" | "unconfigured";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
type DocumentVisibilityState = "hidden" | "visible";
type EncodedVideoChunkType = "delta" | "key";
type EndingType = "native" | "transparent";
type FileSystemHandleKind = "directory" | "file";
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "done" | "pending";
type IDBTransactionDurability = "default" | "relaxed" | "strict";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
type ImageOrientation = "flipY" | "from-image" | "none";
type ImageSmoothingQuality = "high" | "low" | "medium";
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type LatencyMode = "quality" | "realtime";
type LockMode = "exclusive" | "shared";
type MediaDecodingType = "file" | "media-source" | "webrtc";
type MediaEncodingType = "record" | "webrtc";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
type PermissionState = "denied" | "granted" | "prompt";
type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
type PushEncryptionKeyName = "auth" | "p256dh";
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
type ReadableStreamReaderMode = "byob";
type ReadableStreamType = "bytes";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestPriority = "auto" | "high" | "low";
type RequestRedirect = "error" | "follow" | "manual";
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
type TransferFunction = "hlg" | "pq" | "srgb";
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
type VideoEncoderBitrateMode = "constant" | "quantizer" | "variable";
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
type WebTransportErrorSource = "session" | "stream";
type WorkerType = "classic" | "module";
type WriteCommandType = "seek" | "truncate" | "write";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`,_o["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;
`,_o["lib.webworker.iterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Worker Iterable APIs
/////////////////////////////
interface CSSNumericArray {
[Symbol.iterator](): IterableIterator<CSSNumericValue>;
entries(): IterableIterator<[number, CSSNumericValue]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSNumericValue>;
}
interface CSSTransformValue {
[Symbol.iterator](): IterableIterator<CSSTransformComponent>;
entries(): IterableIterator<[number, CSSTransformComponent]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSTransformComponent>;
}
interface CSSUnparsedValue {
[Symbol.iterator](): IterableIterator<CSSUnparsedSegment>;
entries(): IterableIterator<[number, CSSUnparsedSegment]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSUnparsedSegment>;
}
interface Cache {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
interface CanvasPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
}
interface CanvasPathDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
setLineDash(segments: Iterable<number>): void;
}
interface DOMStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface FileList {
[Symbol.iterator](): IterableIterator<File>;
}
interface FontFaceSet extends Set<FontFace> {
}
interface FormData {
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[string, FormDataEntryValue]>;
/** Returns a list of keys in the list. */
keys(): IterableIterator<string>;
/** Returns a list of values in the list. */
values(): IterableIterator<FormDataEntryValue>;
}
interface Headers {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
entries(): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
keys(): IterableIterator<string>;
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
values(): IterableIterator<string>;
}
interface IDBDatabase {
/**
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
*/
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
}
interface IDBObjectStore {
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface MessageEvent<T = any> {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
*/
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface StylePropertyMapReadOnly {
[Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>;
entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>;
keys(): IterableIterator<string>;
values(): IterableIterator<Iterable<CSSStyleValue>>;
}
interface SubtleCrypto {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
}
interface URLSearchParams {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an array of key, value pairs for every entry in the search params. */
entries(): IterableIterator<[string, string]>;
/** Returns a list of keys in the search params. */
keys(): IterableIterator<string>;
/** Returns a list of values in the search params. */
values(): IterableIterator<string>;
}
interface WEBGL_draw_buffers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WEBGL_multi_draw {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
}
interface WebGL2RenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
drawBuffers(buffers: Iterable<GLenum>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}
interface WebGL2RenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
}
interface WebGLRenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}
interface WebGLRenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`;function Sm(_){return typeof _=="string"?/^file:\/\/\//.test(_)?!!_o[_.substr(8)]:!1:_.path.indexOf("/lib.")===0?!!_o[_.path.slice(1)]:!1}class Bx{constructor(g,S){D8(this,"_ctx");D8(this,"_extraLibs",Object.create(null));D8(this,"_languageService",DEe(this));D8(this,"_compilerOptions");D8(this,"_inlayHintsOptions");this._ctx=g,this._compilerOptions=S.compilerOptions,this._extraLibs=S.extraLibs,this._inlayHintsOptions=S.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(w=>w.uri).filter(w=>!Sm(w)).map(w=>w.toString()).concat(Object.keys(this._extraLibs))}_getModel(g){let S=this._ctx.getMirrorModels();for(let w=0;w<S.length;w++){const H=S[w].uri;if(H.toString()===g||H.toString(!0)===g)return S[w]}return null}getScriptVersion(g){let S=this._getModel(g);return S?S.version.toString():this.isDefaultLibFileName(g)?"1":g in this._extraLibs?String(this._extraLibs[g].version):""}async getScriptText(g){return this._getScriptText(g)}_getScriptText(g){let S,w=this._getModel(g);const H="lib."+g+".d.ts";if(w)S=w.getValue();else if(g in _o)S=_o[g];else if(H in _o)S=_o[H];else if(g in this._extraLibs)S=this._extraLibs[g].content;else return;return S}getScriptSnapshot(g){const S=this._getScriptText(g);if(S!==void 0)return{getText:(w,H)=>S.substring(w,H),getLength:()=>S.length,getChangeRange:()=>{}}}getScriptKind(g){switch(g.substr(g.lastIndexOf(".")+1)){case"ts":return tN.TS;case"tsx":return tN.TSX;case"js":return tN.JS;case"jsx":return tN.JSX;default:return this.getCompilationSettings().allowJs?tN.JS:tN.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(g){switch(g.target){case 99:const S="lib.esnext.full.d.ts";if(S in _o||S in this._extraLibs)return S;case 7:case 6:case 5:case 4:case 3:case 2:default:const w=`lib.es${2013+(g.target||99)}.full.d.ts`;return w in _o||w in this._extraLibs?w:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(g){return g===this.getDefaultLibFileName(this._compilerOptions)}readFile(g){return this._getScriptText(g)}fileExists(g){return this._getScriptText(g)!==void 0}async getLibFiles(){return _o}static clearFiles(g){const S=[];for(const w of g){const H={...w};if(H.file=H.file?{fileName:H.file.fileName}:void 0,w.relatedInformation){H.relatedInformation=[];for(const ue of w.relatedInformation){const Ae={...ue};Ae.file=Ae.file?{fileName:Ae.file.fileName}:void 0,H.relatedInformation.push(Ae)}}S.push(H)}return S}async getSyntacticDiagnostics(g){if(Sm(g))return[];const S=this._languageService.getSyntacticDiagnostics(g);return Bx.clearFiles(S)}async getSemanticDiagnostics(g){if(Sm(g))return[];const S=this._languageService.getSemanticDiagnostics(g);return Bx.clearFiles(S)}async getSuggestionDiagnostics(g){if(Sm(g))return[];const S=this._languageService.getSuggestionDiagnostics(g);return Bx.clearFiles(S)}async getCompilerOptionsDiagnostics(g){if(Sm(g))return[];const S=this._languageService.getCompilerOptionsDiagnostics();return Bx.clearFiles(S)}async getCompletionsAtPosition(g,S){if(!Sm(g))return this._languageService.getCompletionsAtPosition(g,S,void 0)}async getCompletionEntryDetails(g,S,w){return this._languageService.getCompletionEntryDetails(g,S,w,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(g,S,w){if(!Sm(g))return this._languageService.getSignatureHelpItems(g,S,w)}async getQuickInfoAtPosition(g,S){if(!Sm(g))return this._languageService.getQuickInfoAtPosition(g,S)}async getDocumentHighlights(g,S,w){if(!Sm(g))return this._languageService.getDocumentHighlights(g,S,w)}async getDefinitionAtPosition(g,S){if(!Sm(g))return this._languageService.getDefinitionAtPosition(g,S)}async getReferencesAtPosition(g,S){if(!Sm(g))return this._languageService.getReferencesAtPosition(g,S)}async getNavigationTree(g){if(!Sm(g))return this._languageService.getNavigationTree(g)}async getFormattingEditsForDocument(g,S){return Sm(g)?[]:this._languageService.getFormattingEditsForDocument(g,S)}async getFormattingEditsForRange(g,S,w,H){return Sm(g)?[]:this._languageService.getFormattingEditsForRange(g,S,w,H)}async getFormattingEditsAfterKeystroke(g,S,w,H){return Sm(g)?[]:this._languageService.getFormattingEditsAfterKeystroke(g,S,w,H)}async findRenameLocations(g,S,w,H,ue){if(!Sm(g))return this._languageService.findRenameLocations(g,S,w,H,ue)}async getRenameInfo(g,S,w){return Sm(g)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(g,S,w)}async getEmitOutput(g,S,w){if(Sm(g))return{outputFiles:[],emitSkipped:!0};const H=this._languageService.getEmitOutput(g,S,w),ue=H.diagnostics?Bx.clearFiles(H.diagnostics):void 0;return{...H,diagnostics:ue}}async getCodeFixesAtPosition(g,S,w,H,ue){if(Sm(g))return[];const Ae={};try{return this._languageService.getCodeFixesAtPosition(g,S,w,H,ue,Ae)}catch{return[]}}async updateExtraLibs(g){this._extraLibs=g}async provideInlayHints(g,S,w){var Ae;if(Sm(g))return[];const H=(Ae=this._inlayHintsOptions)!=null?Ae:{},ue={start:S,length:w-S};try{return this._languageService.provideInlayHints(g,ue,H)}catch{return[]}}}function Uze(_,g){let S=Bx;if(g.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(g.customWorkerPath);const w=self.customTSWorkerFactory;if(!w)throw new Error(`The script at ${g.customWorkerPath} does not add customTSWorkerFactory to self`);S=w(Bx,jze,_o)}return new S(_,g)}globalThis.ts=NEe,self.onmessage=()=>{wze((_,g)=>Uze(_,g))}})();